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
repeated .appscode.ci.v1beta1.Agent agents = 1;
public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() { return agents_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public List<Agent> listAgentByAgentType(String code);", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.6618716", "0.65855277", "0.6511378", "0.6417877", "0.6395333", "0.6360733", "0.6344078", "0.6309685", "0.6302586", "0.6243509", "0.6228132", "0.6217455", "0.62171274", "0.6197533", "0.6190165", "0.61691797", "0.6159441", "0.6154656", "0.614179", "0.6139357", "0.6123053", "0.61049443", "0.60957664", "0.6093595", "0.60749274", "0.60749274", "0.6057243", "0.60433453", "0.59984696", "0.5945383", "0.5861612", "0.5858874", "0.58398664", "0.58124214", "0.5802755", "0.5791397", "0.5766802", "0.5754685", "0.5744377", "0.5700731", "0.5698636", "0.5678945", "0.56575483", "0.5610625", "0.5609002", "0.56026703", "0.5587593", "0.556466", "0.5564111", "0.5557223", "0.55555826", "0.55349016", "0.5492954", "0.54812384", "0.5477693", "0.54746336", "0.54651767", "0.54496264", "0.54452825", "0.5435186", "0.54192907", "0.5416972", "0.53938216", "0.5393814", "0.5360322", "0.53539973", "0.53516144", "0.5348174", "0.5344673", "0.53313714", "0.5327727", "0.5324425", "0.5313576", "0.53030103", "0.5292575", "0.52923316", "0.52775675", "0.52577925", "0.5220899", "0.52159846", "0.51998013", "0.51925683", "0.51860523", "0.5181294", "0.5180651", "0.516648", "0.5163691", "0.5163519", "0.5162772", "0.5161444", "0.5160861", "0.5151473", "0.514318", "0.5143138", "0.513162", "0.51304865", "0.5128738", "0.5121269", "0.51210296", "0.5101337" ]
0.6381057
5
repeated .appscode.ci.v1beta1.Agent agents = 1;
public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> getAgentsOrBuilderList() { return agents_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.6585908", "0.65137243", "0.64185333", "0.6396455", "0.63829774", "0.63631266", "0.63445365", "0.6311936", "0.63049984", "0.62444", "0.6229512", "0.6218479", "0.6217541", "0.61986876", "0.6191288", "0.6171051", "0.6160996", "0.6157164", "0.61433506", "0.6142023", "0.61236393", "0.6106344", "0.60976374", "0.6094955", "0.60774606", "0.60774606", "0.6058001", "0.60443294", "0.600107", "0.5947927", "0.58631", "0.5860323", "0.58416104", "0.5814754", "0.58028436", "0.57929903", "0.5767709", "0.57558006", "0.57449055", "0.570306", "0.5700108", "0.5680868", "0.5659084", "0.5612897", "0.5611241", "0.5603674", "0.55889344", "0.5566509", "0.55651814", "0.55585814", "0.55581075", "0.5536358", "0.5493867", "0.5481777", "0.5479691", "0.5474814", "0.5467069", "0.54511184", "0.5446698", "0.5436886", "0.5420962", "0.541688", "0.5395026", "0.53950024", "0.5360616", "0.53550386", "0.53518033", "0.53491783", "0.53460926", "0.5331874", "0.5328942", "0.5326003", "0.53154075", "0.53041387", "0.52953047", "0.5293828", "0.52775097", "0.52586675", "0.5222429", "0.5217413", "0.52007776", "0.51930743", "0.5188449", "0.51829827", "0.5182075", "0.5166723", "0.5166451", "0.51645887", "0.5162916", "0.51623976", "0.51598424", "0.51525223", "0.51451355", "0.5144648", "0.5132355", "0.5132194", "0.51304513", "0.5122367", "0.5121615", "0.5103456" ]
0.66199493
0
repeated .appscode.ci.v1beta1.Agent agents = 1;
public int getAgentsCount() { return agents_.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.6159426
17
repeated .appscode.ci.v1beta1.Agent agents = 1;
public com.appscode.api.ci.v1beta1.Agent getAgents(int index) { return agents_.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.62185234", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.6228182
11
repeated .appscode.ci.v1beta1.Agent agents = 1;
public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder( int index) { return agents_.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public List<Agent> listAgentByAgentType(String code);", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.6618716", "0.65855277", "0.6511378", "0.6395333", "0.6381057", "0.6360733", "0.6344078", "0.6309685", "0.6302586", "0.6243509", "0.6228132", "0.6217455", "0.62171274", "0.6197533", "0.6190165", "0.61691797", "0.6159441", "0.6154656", "0.614179", "0.6139357", "0.6123053", "0.61049443", "0.60957664", "0.6093595", "0.60749274", "0.60749274", "0.6057243", "0.60433453", "0.59984696", "0.5945383", "0.5861612", "0.5858874", "0.58398664", "0.58124214", "0.5802755", "0.5791397", "0.5766802", "0.5754685", "0.5744377", "0.5700731", "0.5698636", "0.5678945", "0.56575483", "0.5610625", "0.5609002", "0.56026703", "0.5587593", "0.556466", "0.5564111", "0.5557223", "0.55555826", "0.55349016", "0.5492954", "0.54812384", "0.5477693", "0.54746336", "0.54651767", "0.54496264", "0.54452825", "0.5435186", "0.54192907", "0.5416972", "0.53938216", "0.5393814", "0.5360322", "0.53539973", "0.53516144", "0.5348174", "0.5344673", "0.53313714", "0.5327727", "0.5324425", "0.5313576", "0.53030103", "0.5292575", "0.52923316", "0.52775675", "0.52577925", "0.5220899", "0.52159846", "0.51998013", "0.51925683", "0.51860523", "0.5181294", "0.5180651", "0.516648", "0.5163691", "0.5163519", "0.5162772", "0.5161444", "0.5160861", "0.5151473", "0.514318", "0.5143138", "0.513162", "0.51304865", "0.5128738", "0.5121269", "0.51210296", "0.5101337" ]
0.6417877
3
repeated .appscode.ci.v1beta1.Agent agents = 1;
public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() { if (agentsBuilder_ == null) { return java.util.Collections.unmodifiableList(agents_); } else { return agentsBuilder_.getMessageList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66199493", "0.6585908", "0.65137243", "0.64185333", "0.6396455", "0.63829774", "0.63631266", "0.63445365", "0.6311936", "0.63049984", "0.62444", "0.6229512", "0.6218479", "0.6217541", "0.61986876", "0.6191288", "0.6171051", "0.6160996", "0.6157164", "0.61433506", "0.6142023", "0.61236393", "0.6106344", "0.6094955", "0.60774606", "0.60774606", "0.6058001", "0.60443294", "0.600107", "0.5947927", "0.58631", "0.5860323", "0.58416104", "0.5814754", "0.58028436", "0.57929903", "0.5767709", "0.57558006", "0.57449055", "0.570306", "0.5700108", "0.5680868", "0.5659084", "0.5612897", "0.5611241", "0.5603674", "0.55889344", "0.5566509", "0.55651814", "0.55585814", "0.55581075", "0.5536358", "0.5493867", "0.5481777", "0.5479691", "0.5474814", "0.5467069", "0.54511184", "0.5446698", "0.5436886", "0.5420962", "0.541688", "0.5395026", "0.53950024", "0.5360616", "0.53550386", "0.53518033", "0.53491783", "0.53460926", "0.5331874", "0.5328942", "0.5326003", "0.53154075", "0.53041387", "0.52953047", "0.5293828", "0.52775097", "0.52586675", "0.5222429", "0.5217413", "0.52007776", "0.51930743", "0.5188449", "0.51829827", "0.5182075", "0.5166723", "0.5166451", "0.51645887", "0.5162916", "0.51623976", "0.51598424", "0.51525223", "0.51451355", "0.5144648", "0.5132355", "0.5132194", "0.51304513", "0.5122367", "0.5121615", "0.5103456" ]
0.60976374
23
repeated .appscode.ci.v1beta1.Agent agents = 1;
public int getAgentsCount() { if (agentsBuilder_ == null) { return agents_.size(); } else { return agentsBuilder_.getCount(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.5678647
42
repeated .appscode.ci.v1beta1.Agent agents = 1;
public com.appscode.api.ci.v1beta1.Agent getAgents(int index) { if (agentsBuilder_ == null) { return agents_.get(index); } else { return agentsBuilder_.getMessage(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.6216316", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.61977077
14
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder setAgents( int index, com.appscode.api.ci.v1beta1.Agent value) { if (agentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAgentsIsMutable(); agents_.set(index, value); onChanged(); } else { agentsBuilder_.setMessage(index, value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public List<Agent> listAgentByAgentType(String code);", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.6618716", "0.65855277", "0.6511378", "0.6417877", "0.6381057", "0.6360733", "0.6344078", "0.6309685", "0.6302586", "0.6243509", "0.6228132", "0.6217455", "0.62171274", "0.6197533", "0.6190165", "0.61691797", "0.6159441", "0.6154656", "0.614179", "0.6139357", "0.6123053", "0.61049443", "0.60957664", "0.6093595", "0.60749274", "0.60749274", "0.6057243", "0.60433453", "0.59984696", "0.5945383", "0.5861612", "0.5858874", "0.58398664", "0.58124214", "0.5802755", "0.5791397", "0.5766802", "0.5754685", "0.5744377", "0.5700731", "0.5698636", "0.5678945", "0.56575483", "0.5610625", "0.5609002", "0.56026703", "0.5587593", "0.556466", "0.5564111", "0.5557223", "0.55555826", "0.55349016", "0.5492954", "0.54812384", "0.5477693", "0.54746336", "0.54651767", "0.54496264", "0.54452825", "0.5435186", "0.54192907", "0.5416972", "0.53938216", "0.5393814", "0.5360322", "0.53539973", "0.53516144", "0.5348174", "0.5344673", "0.53313714", "0.5327727", "0.5324425", "0.5313576", "0.53030103", "0.5292575", "0.52923316", "0.52775675", "0.52577925", "0.5220899", "0.52159846", "0.51998013", "0.51925683", "0.51860523", "0.5181294", "0.5180651", "0.516648", "0.5163691", "0.5163519", "0.5162772", "0.5161444", "0.5160861", "0.5151473", "0.514318", "0.5143138", "0.513162", "0.51304865", "0.5128738", "0.5121269", "0.51210296", "0.5101337" ]
0.6395333
4
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder setAgents( int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) { if (agentsBuilder_ == null) { ensureAgentsIsMutable(); agents_.set(index, builderForValue.build()); onChanged(); } else { agentsBuilder_.setMessage(index, builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66199493", "0.6585908", "0.65137243", "0.64185333", "0.6396455", "0.63829774", "0.63631266", "0.63445365", "0.6311936", "0.63049984", "0.62444", "0.6229512", "0.6218479", "0.6217541", "0.61986876", "0.6191288", "0.6171051", "0.6160996", "0.6157164", "0.61433506", "0.6142023", "0.61236393", "0.6106344", "0.60976374", "0.6094955", "0.60774606", "0.60774606", "0.6058001", "0.60443294", "0.600107", "0.5947927", "0.58631", "0.5860323", "0.58416104", "0.5814754", "0.58028436", "0.57929903", "0.5767709", "0.57558006", "0.57449055", "0.570306", "0.5700108", "0.5680868", "0.5659084", "0.5612897", "0.5611241", "0.5603674", "0.55889344", "0.5566509", "0.55651814", "0.55585814", "0.55581075", "0.5536358", "0.5493867", "0.5481777", "0.5479691", "0.5474814", "0.5467069", "0.54511184", "0.5446698", "0.5436886", "0.5420962", "0.541688", "0.5395026", "0.53950024", "0.5360616", "0.53550386", "0.53518033", "0.53491783", "0.53460926", "0.5331874", "0.5328942", "0.53154075", "0.53041387", "0.52953047", "0.5293828", "0.52775097", "0.52586675", "0.5222429", "0.5217413", "0.52007776", "0.51930743", "0.5188449", "0.51829827", "0.5182075", "0.5166723", "0.5166451", "0.51645887", "0.5162916", "0.51623976", "0.51598424", "0.51525223", "0.51451355", "0.5144648", "0.5132355", "0.5132194", "0.51304513", "0.5122367", "0.5121615", "0.5103456" ]
0.5326003
72
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) { if (agentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAgentsIsMutable(); agents_.add(value); onChanged(); } else { agentsBuilder_.addMessage(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.6584888
1
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder addAgents( int index, com.appscode.api.ci.v1beta1.Agent value) { if (agentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAgentsIsMutable(); agents_.add(index, value); onChanged(); } else { agentsBuilder_.addMessage(index, value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.6216316
13
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder addAgents( com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) { if (agentsBuilder_ == null) { ensureAgentsIsMutable(); agents_.add(builderForValue.build()); onChanged(); } else { agentsBuilder_.addMessage(builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public List<Agent> listAgentByAgentType(String code);", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.6618716", "0.65855277", "0.6511378", "0.6417877", "0.6395333", "0.6381057", "0.6360733", "0.6344078", "0.6309685", "0.6302586", "0.6243509", "0.6228132", "0.6217455", "0.62171274", "0.6197533", "0.6190165", "0.61691797", "0.6159441", "0.6154656", "0.614179", "0.6139357", "0.6123053", "0.61049443", "0.60957664", "0.6093595", "0.60749274", "0.60749274", "0.6057243", "0.60433453", "0.59984696", "0.5945383", "0.5861612", "0.5858874", "0.58398664", "0.58124214", "0.5802755", "0.5791397", "0.5766802", "0.5754685", "0.5744377", "0.5700731", "0.5698636", "0.5678945", "0.56575483", "0.5610625", "0.5609002", "0.56026703", "0.5587593", "0.556466", "0.5564111", "0.5557223", "0.55555826", "0.55349016", "0.5492954", "0.54812384", "0.5477693", "0.54746336", "0.54651767", "0.54496264", "0.54452825", "0.5435186", "0.54192907", "0.5416972", "0.53938216", "0.5393814", "0.5360322", "0.53539973", "0.53516144", "0.5348174", "0.5344673", "0.53313714", "0.5327727", "0.5324425", "0.5313576", "0.5292575", "0.52923316", "0.52775675", "0.52577925", "0.5220899", "0.52159846", "0.51998013", "0.51925683", "0.51860523", "0.5181294", "0.5180651", "0.516648", "0.5163691", "0.5163519", "0.5162772", "0.5161444", "0.5160861", "0.5151473", "0.514318", "0.5143138", "0.513162", "0.51304865", "0.5128738", "0.5121269", "0.51210296", "0.5101337" ]
0.53030103
74
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder addAgents( int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) { if (agentsBuilder_ == null) { ensureAgentsIsMutable(); agents_.add(index, builderForValue.build()); onChanged(); } else { agentsBuilder_.addMessage(index, builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66199493", "0.6585908", "0.65137243", "0.64185333", "0.6396455", "0.63829774", "0.63631266", "0.63445365", "0.6311936", "0.63049984", "0.62444", "0.6229512", "0.6218479", "0.6217541", "0.61986876", "0.6191288", "0.6171051", "0.6160996", "0.6157164", "0.61433506", "0.6142023", "0.61236393", "0.6106344", "0.60976374", "0.6094955", "0.60774606", "0.60774606", "0.6058001", "0.60443294", "0.600107", "0.5947927", "0.58631", "0.5860323", "0.58416104", "0.5814754", "0.58028436", "0.57929903", "0.5767709", "0.57558006", "0.57449055", "0.570306", "0.5700108", "0.5680868", "0.5659084", "0.5612897", "0.5611241", "0.5603674", "0.55889344", "0.5566509", "0.55651814", "0.55585814", "0.55581075", "0.5536358", "0.5493867", "0.5481777", "0.5479691", "0.5474814", "0.5467069", "0.54511184", "0.5446698", "0.5436886", "0.5420962", "0.541688", "0.5395026", "0.53950024", "0.5360616", "0.53550386", "0.53518033", "0.53491783", "0.53460926", "0.5331874", "0.5328942", "0.5326003", "0.53154075", "0.53041387", "0.52953047", "0.5293828", "0.52775097", "0.52586675", "0.5222429", "0.5217413", "0.52007776", "0.51930743", "0.5188449", "0.51829827", "0.5182075", "0.5166723", "0.5166451", "0.5162916", "0.51623976", "0.51598424", "0.51525223", "0.51451355", "0.5144648", "0.5132355", "0.5132194", "0.51304513", "0.5122367", "0.5121615", "0.5103456" ]
0.51645887
88
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder addAllAgents( java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) { if (agentsBuilder_ == null) { ensureAgentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, agents_); onChanged(); } else { agentsBuilder_.addAllMessages(values); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.5557368
50
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder clearAgents() { if (agentsBuilder_ == null) { agents_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { agentsBuilder_.clear(); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.5658466
43
repeated .appscode.ci.v1beta1.Agent agents = 1;
public Builder removeAgents(int index) { if (agentsBuilder_ == null) { ensureAgentsIsMutable(); agents_.remove(index); onChanged(); } else { agentsBuilder_.remove(index); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public List<Agent> listAgentByAgentType(String code);", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.6618716", "0.65855277", "0.6511378", "0.6417877", "0.6395333", "0.6381057", "0.6360733", "0.6344078", "0.6309685", "0.6302586", "0.6243509", "0.6228132", "0.6217455", "0.62171274", "0.6197533", "0.6190165", "0.61691797", "0.6159441", "0.6154656", "0.614179", "0.6139357", "0.6123053", "0.61049443", "0.60957664", "0.6093595", "0.60749274", "0.60749274", "0.6057243", "0.60433453", "0.59984696", "0.5945383", "0.5861612", "0.5858874", "0.58398664", "0.58124214", "0.5802755", "0.5791397", "0.5766802", "0.5754685", "0.5744377", "0.5700731", "0.5698636", "0.5678945", "0.56575483", "0.5610625", "0.5609002", "0.56026703", "0.5587593", "0.556466", "0.5564111", "0.5557223", "0.55555826", "0.55349016", "0.5492954", "0.54812384", "0.5477693", "0.54746336", "0.54651767", "0.54496264", "0.54452825", "0.5435186", "0.54192907", "0.5416972", "0.53938216", "0.5393814", "0.5360322", "0.53539973", "0.53516144", "0.5348174", "0.5344673", "0.53313714", "0.5327727", "0.5324425", "0.5313576", "0.53030103", "0.5292575", "0.52923316", "0.52775675", "0.52577925", "0.5220899", "0.52159846", "0.51998013", "0.51925683", "0.51860523", "0.5181294", "0.5180651", "0.516648", "0.5163691", "0.5163519", "0.5162772", "0.5161444", "0.5160861", "0.5151473", "0.514318", "0.5143138", "0.513162", "0.51304865", "0.5128738", "0.5121269", "0.51210296", "0.5101337" ]
0.0
-1
repeated .appscode.ci.v1beta1.Agent agents = 1;
public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder( int index) { return getAgentsFieldBuilder().getBuilder(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66199493", "0.6585908", "0.65137243", "0.64185333", "0.6396455", "0.63829774", "0.63631266", "0.63445365", "0.6311936", "0.63049984", "0.62444", "0.6229512", "0.6218479", "0.6217541", "0.61986876", "0.6191288", "0.6171051", "0.6160996", "0.6157164", "0.61433506", "0.6142023", "0.61236393", "0.6106344", "0.60976374", "0.6094955", "0.60774606", "0.60774606", "0.6058001", "0.60443294", "0.600107", "0.5947927", "0.58631", "0.5860323", "0.58416104", "0.5814754", "0.58028436", "0.57929903", "0.5767709", "0.57558006", "0.57449055", "0.570306", "0.5700108", "0.5680868", "0.5659084", "0.5612897", "0.5611241", "0.5603674", "0.55889344", "0.5566509", "0.55651814", "0.55585814", "0.55581075", "0.5536358", "0.5481777", "0.5479691", "0.5474814", "0.5467069", "0.54511184", "0.5446698", "0.5436886", "0.5420962", "0.541688", "0.5395026", "0.53950024", "0.5360616", "0.53550386", "0.53518033", "0.53491783", "0.53460926", "0.5331874", "0.5328942", "0.5326003", "0.53154075", "0.53041387", "0.52953047", "0.5293828", "0.52775097", "0.52586675", "0.5222429", "0.5217413", "0.52007776", "0.51930743", "0.5188449", "0.51829827", "0.5182075", "0.5166723", "0.5166451", "0.51645887", "0.5162916", "0.51623976", "0.51598424", "0.51525223", "0.51451355", "0.5144648", "0.5132355", "0.5132194", "0.51304513", "0.5122367", "0.5121615", "0.5103456" ]
0.5493867
53
repeated .appscode.ci.v1beta1.Agent agents = 1;
public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder( int index) { if (agentsBuilder_ == null) { return agents_.get(index); } else { return agentsBuilder_.getMessageOrBuilder(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.63445354
7
repeated .appscode.ci.v1beta1.Agent agents = 1;
public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> getAgentsOrBuilderList() { if (agentsBuilder_ != null) { return agentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(agents_); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.62185234
12
repeated .appscode.ci.v1beta1.Agent agents = 1;
public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() { return getAgentsFieldBuilder().addBuilder( com.appscode.api.ci.v1beta1.Agent.getDefaultInstance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public List<Agent> listAgentByAgentType(String code);", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.6618716", "0.65855277", "0.6511378", "0.6417877", "0.6395333", "0.6381057", "0.6360733", "0.6344078", "0.6309685", "0.6302586", "0.6243509", "0.6228132", "0.6217455", "0.62171274", "0.6197533", "0.61691797", "0.6159441", "0.6154656", "0.614179", "0.6139357", "0.6123053", "0.61049443", "0.60957664", "0.6093595", "0.60749274", "0.60749274", "0.6057243", "0.60433453", "0.59984696", "0.5945383", "0.5861612", "0.5858874", "0.58398664", "0.58124214", "0.5802755", "0.5791397", "0.5766802", "0.5754685", "0.5744377", "0.5700731", "0.5698636", "0.5678945", "0.56575483", "0.5610625", "0.5609002", "0.56026703", "0.5587593", "0.556466", "0.5564111", "0.5557223", "0.55555826", "0.55349016", "0.5492954", "0.54812384", "0.5477693", "0.54746336", "0.54651767", "0.54496264", "0.54452825", "0.5435186", "0.54192907", "0.5416972", "0.53938216", "0.5393814", "0.5360322", "0.53539973", "0.53516144", "0.5348174", "0.5344673", "0.53313714", "0.5327727", "0.5324425", "0.5313576", "0.53030103", "0.5292575", "0.52923316", "0.52775675", "0.52577925", "0.5220899", "0.52159846", "0.51998013", "0.51925683", "0.51860523", "0.5181294", "0.5180651", "0.516648", "0.5163691", "0.5163519", "0.5162772", "0.5161444", "0.5160861", "0.5151473", "0.514318", "0.5143138", "0.513162", "0.51304865", "0.5128738", "0.5121269", "0.51210296", "0.5101337" ]
0.6190165
15
repeated .appscode.ci.v1beta1.Agent agents = 1;
public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder( int index) { return getAgentsFieldBuilder().addBuilder( index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public String getAgentName() {\n return agentName;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66199493", "0.6585908", "0.65137243", "0.64185333", "0.6396455", "0.63829774", "0.63631266", "0.63445365", "0.6311936", "0.63049984", "0.62444", "0.6229512", "0.6218479", "0.6217541", "0.61986876", "0.6191288", "0.6171051", "0.6160996", "0.6157164", "0.61433506", "0.6142023", "0.61236393", "0.6106344", "0.60976374", "0.6094955", "0.60774606", "0.60774606", "0.6058001", "0.60443294", "0.600107", "0.5947927", "0.58631", "0.5860323", "0.58416104", "0.5814754", "0.58028436", "0.57929903", "0.5767709", "0.57558006", "0.57449055", "0.570306", "0.5700108", "0.5680868", "0.5659084", "0.5612897", "0.5611241", "0.5603674", "0.55889344", "0.5566509", "0.55651814", "0.55585814", "0.55581075", "0.5536358", "0.5493867", "0.5481777", "0.5479691", "0.5467069", "0.54511184", "0.5446698", "0.5436886", "0.5420962", "0.541688", "0.5395026", "0.53950024", "0.5360616", "0.53550386", "0.53518033", "0.53491783", "0.53460926", "0.5331874", "0.5328942", "0.5326003", "0.53154075", "0.53041387", "0.52953047", "0.5293828", "0.52775097", "0.52586675", "0.5222429", "0.5217413", "0.52007776", "0.51930743", "0.5188449", "0.51829827", "0.5182075", "0.5166723", "0.5166451", "0.51645887", "0.5162916", "0.51623976", "0.51598424", "0.51525223", "0.51451355", "0.5144648", "0.5132355", "0.5132194", "0.51304513", "0.5122367", "0.5121615", "0.5103456" ]
0.5474814
56
repeated .appscode.ci.v1beta1.Agent agents = 1;
public java.util.List<com.appscode.api.ci.v1beta1.Agent.Builder> getAgentsBuilderList() { return getAgentsFieldBuilder().getBuilderList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n return agents_;\n }", "public Builder addAgents(com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(value);\n }\n return this;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n return agents_.get(index);\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.set(index, value);\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n return agents_;\n }", "List<AgentReference> getCurrentAgents();", "public com.appscode.api.ci.v1beta1.AgentOrBuilder getAgentsOrBuilder(\n int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index); } else {\n return agentsBuilder_.getMessageOrBuilder(index);\n }\n }", "T setJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n return agents_.get(index);\n }", "public java.util.List<? extends com.appscode.api.ci.v1beta1.AgentOrBuilder> \n getAgentsOrBuilderList() {\n if (agentsBuilder_ != null) {\n return agentsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(agents_);\n }\n }", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent value) {\n if (agentsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAgentsIsMutable();\n agents_.add(index, value);\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public com.appscode.api.ci.v1beta1.Agent getAgents(int index) {\n if (agentsBuilder_ == null) {\n return agents_.get(index);\n } else {\n return agentsBuilder_.getMessage(index);\n }\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder() {\n return getAgentsFieldBuilder().addBuilder(\n com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public int getAgentsCount() {\n return agents_.size();\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "Agent getAgent();", "List<JavaAgent> getJavaAgents();", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public java.util.List<com.appscode.api.ci.v1beta1.Agent> getAgentsList() {\n if (agentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(agents_);\n } else {\n return agentsBuilder_.getMessageList();\n }\n }", "T addJavaAgents(JavaAgent... javaAgents);", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void setAgentListDialogWithAgentsList(List<String> agents);", "public void addAgent(Agent a) {\n\t\tagents.add(a);\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "public void addAllAgents(Collection agents){\n Iterator itr = agents.iterator();\n while(itr.hasNext()){\n MonitorAgent agent = (MonitorAgent)itr.next();\n addAgent(agent);\n }\n }", "public String getAgent() {\n return agent;\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public Builder clearAgents() {\n if (agentsBuilder_ == null) {\n agents_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n agentsBuilder_.clear();\n }\n return this;\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgent() {\n return this.agent;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Builder addAllAgents(\n java.lang.Iterable<? extends com.appscode.api.ci.v1beta1.Agent> values) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, agents_);\n onChanged();\n } else {\n agentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Set<Agent> getAllAgents() {\n return agents.keySet();\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public com.appscode.api.ci.v1beta1.Agent.Builder getAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().getBuilder(index);\n }", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "public void startAgent(String agName);", "public com.appscode.api.ci.v1beta1.Agent.Builder addAgentsBuilder(\n int index) {\n return getAgentsFieldBuilder().addBuilder(\n index, com.appscode.api.ci.v1beta1.Agent.getDefaultInstance());\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Builder mergeAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n agent_ != null &&\n agent_ != org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance()) {\n getAgentBuilder().mergeFrom(value);\n } else {\n agent_ = value;\n }\n } else {\n agentBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DefaultAgent(Controller controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "java.util.concurrent.Future<DescribeAgentsResult> describeAgentsAsync(DescribeAgentsRequest describeAgentsRequest);", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Builder setAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.set(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public Builder addAgents(\n com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@Test\r\n\tpublic void selectAgentsTest() {\r\n\t\tSet<AgentInfo> recentlyUsedAgents = getRecentlyUsedAgents();\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\tUser testUser = new User();\r\n\t\ttestUser.setUserId(TEST_USER_ID);\r\n\r\n\t\tSet<AgentInfo> allFreeAgents = getFreeAgents();\r\n\t\tSet<AgentInfo> selectedAgents = agentService.selectAgent(testUser, allFreeAgents, 5);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(5));\r\n\r\n\t\tList<AgentInfo> selectedDedicatedAgents = selectedAgents\r\n\t\t\t.stream()\r\n\t\t\t.filter(agentInfo -> StringUtils.isNotEmpty(agentInfo.getOwner()))\r\n\t\t\t.collect(toList());\r\n\t\tassertThat(selectedDedicatedAgents.size(), is(2));\r\n\r\n\t\t// Check if recently used agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-1\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-3\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-5\")));\r\n\r\n\t\t// Add recently used agents.\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\trecentlyUsedAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\thazelcastService.put(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID, recentlyUsedAgents);\r\n\r\n\t\t// Add owned agents for another test.\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-8\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-9\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-10\", \"test-region\", \"another-user\"));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-11\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-12\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-13\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-14\", \"test-region\", TEST_USER_ID));\r\n\t\tallFreeAgents.add(createAgentInfo(\"test-agent-15\", \"test-region\", TEST_USER_ID));\r\n\r\n\t\tselectedAgents = agentService.selectAgent(testUser, allFreeAgents, 3);\r\n\r\n\t\tassertThat(selectedAgents.size(), is(3));\r\n\t\t// Check if recently used owned agents are selected.\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-6\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-11\")));\r\n\t\tassertTrue(selectedAgents.contains(createAgentInfo(\"test-agent-14\")));\r\n\r\n\t\thazelcastService.delete(DIST_MAP_NAME_RECENTLY_USED_AGENTS, TEST_USER_ID);\r\n\t}", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void removeAllAgents() {\n\t\tagents.clear();\n\t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public Game(Agent a, Agent b) \r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tagent = new Agent[2];\r\n\t\tagent[0] = a;\r\n\t\tagent[1] = b;\r\n winner.setRole(2);\r\n //System.out.println(\" 1st winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n\t\tdraw=false;\r\n\t}", "private String getAgentLista() {\n return agentLista;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public interface GuidesDataAgent {\n\n void loadGuides();\n}", "AgentPolicy build();", "public List<Agent> listAgentByAgentType(String code);", "public Builder addAgents(\n int index, com.appscode.api.ci.v1beta1.Agent.Builder builderForValue) {\n if (agentsBuilder_ == null) {\n ensureAgentsIsMutable();\n agents_.add(index, builderForValue.build());\n onChanged();\n } else {\n agentsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public QLearnAgent() {\n\t\tthis(name);\t\n\t}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public String getAgentName() {\n return agentName;\n }", "public Agent createAgent(String name) {\n return this.gamygdala.createAgent(name);\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "private void freeAgent() {\n }", "protected abstract Simulate collectAgentData ();", "public String getAgentId() {\n return agentId;\n }" ]
[ "0.66192716", "0.6584888", "0.65108615", "0.64180946", "0.6394472", "0.638128", "0.6361315", "0.63445354", "0.6308792", "0.63028985", "0.62435037", "0.6228182", "0.62185234", "0.6216316", "0.61977077", "0.6189978", "0.6168902", "0.6159426", "0.6154247", "0.6141905", "0.61397105", "0.6123684", "0.6104598", "0.60966104", "0.60930145", "0.6075293", "0.6075293", "0.60568947", "0.60434866", "0.5999038", "0.59458447", "0.5861251", "0.58584607", "0.5840395", "0.58120114", "0.58033234", "0.57917416", "0.57669705", "0.5754484", "0.5745365", "0.57009465", "0.56981736", "0.5678647", "0.5658466", "0.56111234", "0.5609201", "0.56027585", "0.5586854", "0.5564884", "0.5564343", "0.5557368", "0.5557315", "0.55353975", "0.54927474", "0.548125", "0.5476448", "0.5473961", "0.5465463", "0.54498327", "0.5445962", "0.5435257", "0.54189533", "0.5417156", "0.53945255", "0.53934294", "0.53605354", "0.5354117", "0.5351955", "0.5348985", "0.53451943", "0.5331694", "0.53281206", "0.5323703", "0.53136367", "0.5302866", "0.5293569", "0.52929264", "0.5278514", "0.52582824", "0.5220961", "0.5217887", "0.5200374", "0.5192381", "0.5186651", "0.51816756", "0.51807714", "0.5165951", "0.5164434", "0.516307", "0.5162832", "0.5161968", "0.516101", "0.5151077", "0.5143958", "0.514345", "0.51309913", "0.5130625", "0.5128512", "0.51224583", "0.5121121", "0.51016366" ]
0.0
-1
private static final Logger LOGGER=Logger.getLogger(ForbidenException.class);
public ServerNotFoundException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ExceptionLogger() {\n }", "private void logException(java.lang.Exception e) {\n }", "static void logWarning(Throwable t) {\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate TransporterException(){\r\n\t\t\r\n\t}", "public static void disableWarning() {\n try {\n Field theUnsafe = Unsafe.class.getDeclaredField(\"theUnsafe\");\n theUnsafe.setAccessible(true);\n Unsafe u = (Unsafe) theUnsafe.get(null);\n\n Class<?> c = Class.forName(\"jdk.internal.module.IllegalAccessLogger\");\n Field logger = c.getDeclaredField(\"logger\");\n u.putObjectVolatile(c, u.staticFieldOffset(logger), null);\n } catch (ClassNotFoundException e) {\n // do nothing\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private Log() {\r\n\t}", "private ExtentLogger() {}", "private LoggerConstants() {\n\t\tsuper();\n\t}", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "private Logger(){ }", "public static void logGenericUserError() {\n\n }", "private Logger() {\n\n }", "public static void preventIllegalAccessWarnings()\n {\n // Example \"annoying\" trace:\n // WARNING: An illegal reflective access operation has occurred\n // WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:...)\n // WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil\n // WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations\n // WARNING: All illegal access operations will be denied in a future release\n try\n {\n Class<?> c = Class.forName(\"jdk.internal.module.IllegalAccessLogger\");\n Field f = c.getDeclaredField(\"logger\");\n f.setAccessible(true);\n f.set(null, null);\n }\n catch (Exception e)\n {\n // ignore\n }\n }", "private JavaUtilLogHandlers() { }", "static void ignore() {\n }", "public void warningPermit();", "private Logger(){\n\n }", "public UserBlockedException() {\r\n }", "private Log() {\n }", "public OrderServiceSecurityException() {\n\t}", "public NEOLoggerException()\n {\n }", "protected Warning() {\n\n }", "@Override\n public void logs() {\n \n }", "private LogUtil() {\r\n /* no-op */\r\n }", "public Logger (){}", "@Override\n\tpublic void printStackTrace() {\n\t\tSystem.out.println(\"该账户已被限制\");\n\t}", "public Exception() {\n\tsuper();\n }", "public Exception getException ()\n {\n return exception;\n }", "private Log()\n {\n //Hides implicit constructor.\n }", "public void disableLogging();", "protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }", "Throwable cause();", "public ImpossibleAccessException() {\n super(Constants.IMPOSSIBLE_ACCESS);\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }", "private XLogger() {\n throw new UnsupportedOperationException(\"Do not need instantiate!\");\n }", "GitletException() {\n super();\n }", "private void MinorException(Exception ex) {\n logger.logException(ex);\n }", "protected static Logger log() {\n return LogSingleton.INSTANCE.value;\n }", "protected AbstractLogger() {\n \n }", "public AuthException()\n {\n\n }", "private void permissionsDenied() {\n Log.w(\"TAG\", \"permissionsDenied()\");\n }", "protected boolean allowInExceptionThrowers() {\n return true;\n }", "public Preventivo() {\n\n }", "@Override\n protected Logger getLogger() {\n return LOGGER;\n }", "@Override\n\tpublic void exucute() {\n\t\t\n\t}", "public LoginUnauthorizedException() {\r\n }", "private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }", "private static void logException(Throwable t\r\n ,String user\r\n ,HttpSession session\r\n ,Hashtable parameters\r\n ,PrintWriter out\r\n ,HttpServletRequest request\r\n ,HttpServletResponse response )\r\n {\n \tAppObjects.error(\"GlobalExceptionHandler\", \"\\n********************\");\r\n \tAppObjects.error(\"GlobalExceptionHandler\", \"Serving URL:%s\",ServletCompatibility.getRequestURL(request));\r\n \tAppObjects.error(\"GlobalExceptionHandler\", \"User is: %s\",user);\r\n \tAppObjects.error(\"GlobalExceptionHandler\", \"Parameters are: %s\",parameters);\r\n \tAppObjects.log(AppObjects.LOG_ERROR,t);\r\n }", "private HeaderBrandingTest()\n\t{\n\t\tBaseTest.classLogger = LoggerFactory.getLogger( HeaderBrandingTest.class );\n\t}", "private void logToFile() {\n }", "public ExLoggingHandler() {\n super();\n }", "private Ex() {\n }", "String getLogHandled();", "public AuthenticationException() {\n }", "@Override\n public void log()\n {\n }", "private Constantes() {\r\n\t\t// No way\r\n\t}", "public SucheException() {\n }", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "public MyLogger () {}", "public ExceptionUtils()\n {\n // nothing to do\n }", "public OAuthorizationException(String message){\n super(message);\n }", "void logStackTrace(String pMessage, Exception pE)\n{\n\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, pMessage, pE);\n\n}", "public OfferingException() {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG,\"onFailure : \" +e.toString());\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG,\"onFailure : \" +e.toString());\n }", "public MyCustomException()\n {\n super( \"Attempted to divide by zero\" );\n log.log(Level.INFO, \"Attempt to divide by zero.\");\n \t // Why are we doing this??\n }", "Boolean ignoreExceptions();", "void logSevere(String pMessage)\n{\n\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, pMessage);\n\n}", "public TechnicalException() {\r\n }", "public ControllerException() {\n super();\n }", "private ErrorFactory() {\r\n\t}", "public IllegalFilterException () {\n super();\n }", "private void logika_rozpocznij(){\n\t}", "public ShieldException() {\n }", "private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}", "public void enableLogging();", "@Override\n\tpublic void warn(Object message, Throwable t) {\n\n\t}", "public static synchronized void logError(Exception e) {\n\t\te.printStackTrace();\r\n\t}", "private DAOLogger() {\n\t}", "private Object logError(WebClientResponseException e, String string) {\n\t\treturn null;\n\t}", "private LoggerSingleton() {\n\n }", "public void onException(Exception ex) \n {\n ex.printStackTrace();\n }", "public ServicioLogger() {\n }", "public LoggingUncaughtExceptionHandler(final Logger log) {\n this.log = log;\n }", "public PriceModelException() {\n\n }", "public ReferenciaNoDisponibleException() {\n }", "@Override\n\tpublic void rejectLogFor(Model reference) {\n\t}", "private void handleException(java.lang.Throwable exception) {\r\n\r\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\r\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\r\n\t// exception.printStackTrace(System.out);\r\n}", "public static void disableJava9IllegalAccessWarning( ClassLoader cl )\n {\n if( JreUtil.isJava8() )\n {\n return;\n }\n\n try\n {\n Class cls = Class.forName( \"jdk.internal.module.IllegalAccessLogger\", false, cl );\n Field logger = cls.getDeclaredField( \"logger\" );\n getUnsafe().putObjectVolatile( cls, getUnsafe().staticFieldOffset( logger ), null );\n }\n catch( Throwable ignore )\n {\n }\n }", "protected final void logInitializationError() {\n SimpleServerException e = new SimpleServerException(\n SimpleServerException.service_state_exception, new Object[] {});\n getLogger().log(Level.SEVERE, \"\", e);\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public EmailException()\n {\n super();\n }", "void log();", "public VariableNotSetException() {\n }", "void checked(){\n \n try {\n \n throw new CheckedException();\n } catch (CheckedException e) {\n e.printStackTrace();\n }\n\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "@Override\n\tpublic void onException(Exception e) {\n\n\t}", "static void logError(Throwable t) {\n }", "public OAuthorizationException(Throwable throwable){\n super(throwable);\n }", "@Override\r\n public void onException(Exception arg0) {\n\r\n }", "void onFailure() {\n\t}" ]
[ "0.64648664", "0.6432292", "0.6298994", "0.6167008", "0.61646587", "0.6056335", "0.60513383", "0.60414815", "0.60367274", "0.6001573", "0.5967995", "0.5883192", "0.58763975", "0.5870188", "0.58539677", "0.5795448", "0.5793084", "0.5768282", "0.5763759", "0.5761361", "0.57582605", "0.574913", "0.5721393", "0.56871635", "0.5681728", "0.5677915", "0.5667774", "0.565258", "0.5635796", "0.563426", "0.56280845", "0.56010145", "0.558464", "0.55844563", "0.5579953", "0.5563676", "0.555509", "0.55400544", "0.5525834", "0.552422", "0.5497038", "0.5491691", "0.54866445", "0.5482494", "0.5476065", "0.547456", "0.5454924", "0.544653", "0.54412735", "0.543542", "0.5430643", "0.5430331", "0.542986", "0.5427155", "0.5420191", "0.54054475", "0.54020244", "0.5396677", "0.53941375", "0.539152", "0.53816897", "0.5373614", "0.5372148", "0.5371992", "0.5371992", "0.53657496", "0.5361573", "0.5352627", "0.53443927", "0.5344074", "0.53358454", "0.53317463", "0.5328008", "0.53226143", "0.5322134", "0.5314249", "0.53079057", "0.5300817", "0.5291174", "0.528801", "0.5280004", "0.52794325", "0.5278136", "0.5274708", "0.52732223", "0.52710205", "0.52690077", "0.5266946", "0.5266927", "0.526172", "0.526095", "0.5258709", "0.5258695", "0.5258369", "0.5258157", "0.52560335", "0.5254049", "0.5248467", "0.52484316", "0.5247156", "0.5245459" ]
0.0
-1
Upload an image for an application
@Test public void uploadAppImageTest() throws ApiException { File file = null; Integer id = null; Application response = api.uploadAppImage(file, id); // TODO: test validations }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IbeisImage uploadImage(File image) throws UnsupportedImageFileTypeException, IOException, MalformedHttpRequestException,\n UnsuccessfulHttpRequestException;", "public void uploadImage() {\n if (imgPath != null && !imgPath.isEmpty()) {\n //prgDialog.setMessage(\"Converting Image to Binary Data\");\n //prgDialog.show();\n // Convert image to String using Base64\n new EncodeImageToStringTask().execute();\n // When Image is not selected from Gallery\n } else {\n //Toast.makeText(\n // getApplicationContext(),\n // \"You must select image from gallery before you try to upload\",\n // Toast.LENGTH_LONG).show();\n }\n }", "private void uploadImage() {\n FileChooser fileChooser = new FileChooser();\n\n //Extension de l'image\n FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"Fichier image\", \"*.*\");\n fileChooser.getExtensionFilters().addAll(extFilter);\n\n File file = fileChooser.showOpenDialog(null);\n\n try {\n BufferedImage bufferedImage = ImageIO.read(file);\n Image image = SwingFXUtils.toFXImage(bufferedImage, null);\n imageViewAvatar.setImage(image);\n getUser().setAvatar(image);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void doUpload(Part img1, String image) throws IOException{\n OutputStream out = null;\n InputStream filecontent = null;\n try {\n out = new FileOutputStream(new File(path \n + image));\n System.out.println(path \n + image);\n filecontent = img1.getInputStream();\n\n int read = 0;\n final byte[] bytes = new byte[1024];\n\n while ((read = filecontent.read(bytes)) != -1) {\n out.write(bytes, 0, read);\n }\n \n } catch (Exception fne) {\n System.out.println(\"You either did not specify a file to upload or are \"\n + \"trying to upload a file to a protected or nonexistent \"\n + \"location.\");\n fne.printStackTrace();\n\n } finally {\n if (out != null) {\n out.close();\n }\n if (filecontent != null) {\n filecontent.close();\n }\n }\n }", "private void uploadImage(byte[] imageData) {\n\n }", "private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }", "public void upload(FileUploadEvent event) {\r\n\t\tUploadedFile uploadFile = event.getFile();\r\n\t\t// Recuperer le contenu de l'image en byte array (pixels)\r\n\t\tbyte[] contents = uploadFile.getContents();\r\n\t\tSystem.out.println(\"---------------- \" + contents);\r\n\t\tproduit.setPhoto(contents);\r\n\t\t// Transforme byte array en string (format basé64)\r\n\t\timage = \"data:image/png;base64,\" + Base64.encodeBase64String(produit.getPhoto());\r\n\t\t\r\n\t}", "private void uploadImage() {\n if(checkPermissions()){ // if permission is granted we move on with the code\n Intent gallery = new Intent();\n gallery.setType(\"image/\");\n gallery.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(gallery,\"Select Image With: \"),CHOOSE_IMAGE_FROM_GALLERY);\n }else{\n requestPermissionFromUser(); // if permission is not granted we go and request a permission from the user\n }\n }", "public void uploadMultipart() {\n //getting the actual path of the image\n String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, \"todo\")\n .addFileToUpload(path, \"image\") //Adding file\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "@PostMapping(path = \"/uploadAppImg\")\n\tpublic ResponseEntity<String> uploadAppImg(@RequestParam(\"file\") MultipartFile file) {\n\t\tif (file.isEmpty()) {\n\t\t\treturn new ResponseEntity<>(\"上传的图片不能为空\", HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tswitch (fileProperties.getLocation()) {\n\t\tcase \"oss\":\n\t\t\treturn fileUploadService.ossUpload(file)\n\t\t .map(url -> new ResponseEntity<String>(url, HttpStatus.OK))\n\t\t .orElse(new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR));\n\t\tcase \"local\":\n\t\t\treturn fileUploadService.uploadToLocal(file)\n\t\t .map(url -> new ResponseEntity<String>(url, HttpStatus.OK))\n\t\t .orElse(new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR));\n\t\tcase \"cloud\":\n\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);\n\t\t}\n\t\treturn new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n\n\t}", "String uploadProfileImage(String fileNameWithOutRepository,String fileName) throws GwtException, ServerDownException;", "public Result uploadImage() {\n MultipartFormData<File> body = request().body().asMultipartFormData();\n MultipartFormData.FilePart<File> fileInput = body.getFile(\"inputFile\");\n if (fileInput != null) {\n File file = (File) fileInput.getFile();\n String imageUrl = S3Action.putImg(s3, file, UUID.randomUUID().toString());\n return ok(afterPutImg.render(imageUrl));\n } else {\n return badRequest(\"error\");\n }\n }", "public void postPhoto() throws InterruptedException, IOException, AWTException{\n\t\tString filepath= getTargetFilePath(\"PhotoToUpload\", \"Image\", \"jpeg\");\n\t\tSystem.out.println(\"File path is:\"+ filepath);\n\t\t\n\t\tclick(profileIcon);\n\t\tThread.sleep(1000);\n\t\tclick(PhotoTab);\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(PhotoUpload).sendKeys(filepath);\n\t\tclick(PostBttn);\n\t}", "private void uploadToServer(String filePath, String title) {\n APIClient apiClient = new APIClient();\n Retrofit retrofit = apiClient.getApiClient();\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n File file = new File(filePath);\n\n MultipartBody.Part filePart =\n MultipartBody.Part.createFormData(\"file\", title+\".jpg\", //file.getName(),\n RequestBody.create(MediaType.parse(\"image/*\"), file));\n\n\n Call call = apiInterface.uploadImage(filePart);\n call.enqueue(new Callback() {\n @Override\n public void onResponse(Call call, Response response) {\n Toast.makeText(AddPost.this, \"Worked\",Toast.LENGTH_SHORT).show();\n }\n @Override\n public void onFailure(Call call, Throwable t) {\n t.printStackTrace();\n Toast.makeText(AddPost.this, \"Didn't work\",Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void uploadImage() {\n\t\tif (fileChooser.showOpenDialog(btnUploadImage) == JFileChooser.APPROVE_OPTION)\n\t\t\t;\n\n\t\tfileChooser.addChoosableFileFilter(new FileNameExtensionFilter(\"Images\", \"jpg\", \"png\", \"gif\", \"bmp\"));\n\t\tif (fileChooser.getSelectedFile() != null) {\n\t\t\timage = new ImageIcon(fileChooser.getSelectedFile().getAbsolutePath());\n\t\t\t// Resize image to 100x100\n\t\t\timg = image.getImage();\n\t\t\tImage newimg = img.getScaledInstance(100, 100, java.awt.Image.SCALE_SMOOTH);\n\t\t\timage = new ImageIcon(newimg);\n\t\t}\n\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tbyte image[] = Global.File2byte(pathImage);\r\n\t\t\t\r\n\t\t\tTransfer.uploadImage(image, new TransferListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onSucceed(JSONObject obj) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tLog.e(\"upload\",obj.toString());\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 void onFail(String desc) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t Log.e(\"upload\",desc);\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}", "public void uploadImg(View view){\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"image/*\");\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), SELECT_PICTURE);\n }", "public void photoUpload() throws Exception {\n\r\n\t\tString Window=commonUtil.getWindowHandle(driver);\r\n\t\tcommonUtil.switchToWindow(Window, driver);\r\n\r\n\t\t// display picture window \r\n\t\tcommonUtil.clickOnButton(driver, ChangePicture,\"ChangePicture\");\r\n\r\n\r\n\t\t//load picture using robot class\r\n\t\r\n\t\tcommonUtil.LoadFile(driver, prop.getProperty(\"photopath\"));\r\n\t\t//System.out.println(\"photo is loading...\"); \r\n\r\n\t\t\r\n\t\t\r\n\t\t//switch to crop window\r\n\r\n\t\tWindow=commonUtil.getWindowHandle(driver);\r\n\t\tcommonUtil.switchToWindow(Window, driver);\r\n\r\n\r\n\t\t//crop image window \r\n\t\tcommonUtil.clickOnButton(driver, Cropimage,\"CropImage\");\r\n\t\t\r\n\t\t//enter Display name and discription\r\n\t\t\r\n\t\tcommonUtil.enterText(driver, Displaytext, prop.getProperty(\"displayname\"),\"Displayname\");\r\n\t\tcommonUtil.enterText(driver, Discriptiontext, prop.getProperty(\"Address\"),\"Discription\");\r\n\t\t\r\n\t\t//click on save button\r\n\t\t\r\n\t\tcommonUtil.clickOnButton(driver, Save,\"SaveButton\");\r\n\r\n\t\t\r\n\t}", "public void upload(FileUploadEvent event){\n UploadedFile file = event.getFile();\n if(file != null){\n try {\n imagePic = new OracleSerialBlob(file.getContents());\n Long size = imagePic.length();\n putProfPic(imagePic);\n //setPhoto_profile(new ByteArrayContent(imagePic.getBytes(1, size.intValue())));\n } catch (SQLException ex) {\n LOG.error(ex);\n GBMessage.putErrorMessage(\"Error al subir el archivo\");\n } catch (IOException ex) {\n Logger.getLogger(StaffBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n GBMessage.putInfoMessage(\"Carga correcta\");\n }\n }", "public static void uploadFile(HttpServletRequest request, MultipartFile file, String code) {\n\t\tREAL_PATH = request.getSession().getServletContext().getRealPath(\"/assets/images/\");\n\t\t\n\t\tlogger.info(REAL_PATH);\n\t\t\n\t\tif (!new File(REAL_PATH).exists()) {\n\t\t\tnew File(REAL_PATH).mkdirs();\n\t\t}\n\t\tif (!new File(ABSOLUTE_PATH).exists()) {\n\t\t\tnew File(ABSOLUTE_PATH).mkdirs();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t// uploading ... project directory upload\n\t\t\tfile.transferTo(new File(ABSOLUTE_PATH + code + \".jpg\"));\n\t\t\t\n\t\t\t// uploading ... for the server\n\t\t\tfile.transferTo(new File(REAL_PATH + code + \".jpg\"));\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@POST\r\n\t@Path(\"/publishimage\")\r\n\t@Consumes({ MediaType.MULTIPART_FORM_DATA })\r\n\tpublic Response uploadImageFile(@FormDataParam(\"file\") InputStream fileInputStream,\r\n\t\t\t@FormDataParam(\"file\") FormDataContentDisposition fileMetaData) throws Exception {\r\n\t\tString TEMP_PATH_ON_MAC = \"/tmp\";\r\n\t\twriteFileToServer(fileInputStream, fileMetaData, TEMP_PATH_ON_MAC);\r\n\t\treturn Response.ok().build();\r\n\t}", "public void uploadImage(View v) {\n // When Image is selected from Gallery\n if (imgPath != null && !imgPath.isEmpty()) {\n prgDialog.setMessage(\"Converting Image to Binary Data\");\n prgDialog.show();\n // Convert image to String using Base64\n encodeImagetoString();\n // When Image is not selected from Gallery\n } else {\n Toast.makeText(\n getApplicationContext(),\n \"You must select image from gallery before you try to upload\",\n Toast.LENGTH_LONG).show();\n }\n }", "public void uploadPic(View view) {\n Intent si=new Intent();\n si.setType(\"image/*\");\n si.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(si,1);\n\n\n }", "public static void uploadFile(HttpServletRequest request, MultipartFile file, String code) \r\n\t{\n\t\tREAL_PAIH=request.getSession().getServletContext().getRealPath(\"/assets/images/\");\r\n\t\t\r\n\t\tlogger.info(REAL_PAIH);\r\n\t\t\r\n\t\t//to make sure all directory exists\r\n\t\t//create new directory hmmmm\r\n\t\t\r\n\t\tif(!new File(ABS_PAIH).exists())\r\n\t\t{\r\n\t\t\t//create the directories\t\t\t\r\n\t\t\tnew File(ABS_PAIH).mkdirs();\r\n\t\t}\r\n\t\t\r\n\t\tif(!new File(REAL_PAIH).exists())\r\n\t\t{\r\n\t\t\t//create the directories\t\t\t\r\n\t\t\tnew File(REAL_PAIH).mkdirs();\r\n\t\t}\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t //server upload\r\n\t\t\tfile.transferTo(new File(REAL_PAIH + code + \".jpg\"));\r\n\t\t\t\r\n\t\t\t//project directory upload\r\n\t\t\tfile.transferTo(new File(ABS_PAIH + code + \".jpg\"));\r\n\r\n\t\t\t\r\n\t\t}catch(IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public PictureResult upload(byte[] fileBytes,String extName,String orignalName) throws Exception;", "public void testPhotoUpload() throws Exception {\n LoginRequestTest.registerUser(\n getContext(),\n \"Tom\",\n LoginRequestTest.getUniqueEmail(),\n \"12345678\"\n );\n\n Place place = new Place();\n place.setId(6);\n\n //region Save picture\n Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), R.drawable.upload_image);\n File tempFile = null;\n try {\n tempFile = File.createTempFile(\"UPLOAD_TEST\", \".jpg\", getContext().getCacheDir());\n FileOutputStream out = new FileOutputStream(tempFile);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);\n out.close();\n } catch (IOException e) {\n Log.e(TAG, \"Image file could not be written.\", e);\n }\n //endregion\n\n assertNotNull(\"Temp file is null!\", tempFile);\n PhotoUploadRequest request = new PhotoUploadRequest(getContext(), place, tempFile);\n ResponseEntity<Picture> pictureResponseEntity = request.sendRequest();\n assertNotNull(\"No response entity received\", pictureResponseEntity);\n Picture picture = pictureResponseEntity.getBody();\n assertNotNull(\"Response entity has empty body\", picture);\n }", "public void addPicture() {\n FileChooser chooser = new FileChooser();\n chooser.setTitle(\"Upload your pic for this post\");\n file = chooser.showOpenDialog(null);\n if (file != null) {\n\n Image profilePicImage = new Image(file.toURI().toString());\n try {\n this.postPic = new FileInputStream(file).readAllBytes();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n postImage.setImage(profilePicImage);\n }\n }", "@Multipart\n @POST()\n Call<Result> uploadImage(@Part MultipartBody.Part file, @Url String medialUploadUrl, @PartMap() Map<String, RequestBody> partMap);", "private void uploadImageFile(final String token, final GMImage image) {\n // create RequestBody instance from file\n File imgFile = storeHelper.getImageFile(image);\n final RequestBody requestFile = RequestBody.create(MediaType.parse(\"multipart/form-data\"), imgFile);\n\n // MultipartBody.Part is used to send also the actual file name\n MultipartBody.Part body = MultipartBody.Part.createFormData(\"file\", imgFile.getName(), requestFile);\n\n // Add file name within the multipart request\n RequestBody requestFileName = RequestBody.create(MediaType.parse(\"multipart/form-data\"), imgFile.getName());\n\n httpRequest.upload(token, requestFileName, body).enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> res) {\n if (res.code() == 200) {\n try {\n // upload image information\n image.addTag(TAG_RETRY, 0);\n createNewImage(token, image);\n\n } catch (JSONException e) {\n e.printStackTrace();\n notifyUploadFail();\n }\n } else {\n notifyUploadFail();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n t.printStackTrace();\n\n // notify fail after retry reach limit\n if (((Integer) image.getTag(TAG_RETRY)) >= GMGlobal.RETRY_LIMIT) {\n notifyUploadFail();\n }\n\n // retry upload image\n new Retry() {\n @Override\n protected void handle(Object... params) {\n uploadImageFile((String) params[0], (GMImage) params[1]);\n }\n }.execute(token, image);\n }\n });\n }", "Path fileToUpload();", "public void uploadFile() {\n \n InputStream input = null;\n try {\n input = file.getInputStream();\n System.out.println(\"chay qua inpustream\");\n String itemName = file.getSubmittedFileName();\n String filename = itemName.substring(\n itemName.lastIndexOf(\"\\\\\") + 1);\n String dirPath = FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/upload/images\");\n fileNamed = \"/upload/images/\"+filename;\n File f = new File(dirPath + \"\\\\\" + filename);\n if (!f.exists()) {\n f.createNewFile();\n }\n FileOutputStream output = new FileOutputStream(f);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = input.read(buffer)) > 0) {\n output.write(buffer, 0, length);\n }\n // resize(dirPath + \"\\\\\" + filename, dirPath + \"\\\\\" + filename, 200, 200);\n input.close();\n output.close();\n } catch (IOException ex) {\n System.out.println(\"loi io\");\n Logger.getLogger(ArtistsManagedBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void upload() {\n try {\n BufferedImage bufferedProfile = ImageIO.read(profilePicture.getInputStream());\n FaceImage face = new FaceImage(bufferedProfile);\n\n if (face.foundFace()) {\n\n face.setNoCropMultiplier(1);\n face.setAdditionPadding(20);\n face.setDimension(128, 128);\n BufferedImage profilePicture = face.getScaledProfileFace();\n\n File outfile = new File(Settings.NEW_PROFILE_IMAGE_PATH.replace(\"~~username~~\", student.getUserName()));\n ImageIO.write(profilePicture, \"png\", outfile);\n\n success = true;\n\n student.setProfilePicturePath(\"profile/\" + student.getUserName() + \".png\");\n save();\n\n } else {\n FacesContext.getCurrentInstance().addMessage(\"imageContainer:file\", new FacesMessage(\"Kein Gesicht gefunden!\"));\n\n }\n\n } catch (IOException e) {\n System.err.println(\"something went wrong \" + e.getMessage());\n }\n\n }", "public Long createFileUpload(FileUpload fileUpload, InputStream fileInputStream) throws AppException;", "@FormUrlEncoded\n @POST(\"upload.php\")\n Call<ImageClass> uploadImage(@Field(\"title\") String title, @Field(\"image\") String image);", "@RequestMapping(value = \"/uploadicon\", method = RequestMethod.POST, consumes = \"multipart/form-data\")\r\n\tpublic String handleFormUpload(@RequestPart(\"file\") MultipartFile f, RedirectAttributes redirectAttributes) throws IOException {\n\t\tUser u = (User) session.getAttribute(\"user\");\r\n\t\t\r\n\t\tInputStream is = new BufferedInputStream(f.getInputStream());\r\n\t\tBufferedImage image = ImageIO.read(is);\r\n\t\tis.close();\r\n\t\t\r\n\t\t//if(image == null) {\r\n\t\t\t//response.put(\"success\", \"false\");\r\n\t\t\t//response.put(\"reason\", \"notimage\");\r\n\t\t//}\t\t\r\n\t\t//else {\r\n\t\tif(image != null) {\r\n\t\t\tImage scaled = image.getScaledInstance(512, 512, Image.SCALE_SMOOTH);\r\n\t\t\tBufferedImage bufferedScale = new BufferedImage(512, 512, BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics2D g2d = bufferedScale.createGraphics();\r\n\t\t g2d.drawImage(scaled, 0, 0, null);\r\n\t\t g2d.dispose();\r\n\r\n\t\t\tstorageService.store(bufferedScale,Integer.toString(u.getUserID())+\".png\");\r\n\t\t\t//response.put(\"success\", \"true\");\r\n\t\t}\r\n\t\treturn \"redirect:/users/\"+u.getUserID();\r\n\t\t//return ResponseEntity.ok(response);\r\n }", "private void postImageToFacebook() {\n Session session = Session.getActiveSession();\n final String extraText = postTextView.getText().toString();\n if (session.isPermissionGranted(\"publish_actions\")){\n Bundle param = new Bundle();\n\n // Add the image\n try {\n Drawable myDrawable = getResources().getDrawable(extrasIntent.getInt(\"image\"));\n Bitmap bitmap = ((BitmapDrawable) myDrawable).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] byteArrayData = stream.toByteArray();\n param.putByteArray(\"picture\", byteArrayData);\n } catch (Exception ioe) {\n // The image that was send through is now not there?\n Assert.assertTrue(false);\n }\n\n // Add the caption\n param.putString(\"message\", extraText);\n Request request = new Request(session,\"me/photos\", param, HttpMethod.POST, new Request.Callback() {\n @Override\n public void onCompleted(Response response) {\n addNotification(getString(R.string.photo_post), response.getGraphObject(), response.getError());\n\n }\n }, null);\n RequestAsyncTask asyncTask = new RequestAsyncTask(request);\n asyncTask.execute();\n finish();\n }\n }", "@RequestMapping(value = \"/upload\", method = RequestMethod.POST)\n // defining the upload\n public String uploadFile(@RequestParam(\"title\") String title,\n @RequestParam(\"description\") String description,\n @RequestParam(\"file\") MultipartFile file,\n @RequestParam(\"tags\") String tags,\n HttpSession session) throws IOException {\n\n User currUser = (User) session.getAttribute(\"currUser\");\n\n if(currUser == null ){\n return \"redirect:/\";\n }\n\n else {\n List<Tag> imageTags = findOrCreateTags(tags);\n // creating an id of the image\n Long imageId = createId();\n // uploading the image and converting it to a base64 encoded version of the image\n String uploadedImageData = convertUploadedFileToBase64(file);\n Image newImage = new Image(imageId, title, description, uploadedImageData, currUser, imageTags);\n // storing the new image\n imageService.save(newImage);\n // after upload is successful, redirect the user to the home page\n return \"redirect:/home\";\n }\n }", "private void uploadProductImage() {\n Activity activity = getActivity();\n if (activity == null) {\n return;\n }\n final String imagePath = PhotoUtil.getPhotoPathCache(gtin, activity);\n Runnable uploadProductImage = new Runnable() {\n @Override\n public void run() {\n // TODO limit file size\n ImageService.uploadProductImage(sequentialClient, gtin, imagePath, new\n PLYCompletion<ProductImage>() {\n @Override\n public void onSuccess(ProductImage result) {\n Log.d(\"UploadPImageCallback\", \"New image for product with GTIN \" + gtin + \" \" +\n \"uploaded\");\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded_more_info,\n Snackbar.LENGTH_LONG).show();\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded, Snackbar\n .LENGTH_LONG).show();\n }\n DataChangeListener.imageCreate(result);\n }\n\n @Override\n public void onPostSuccess(ProductImage result) {\n loadProductImage(imagePath, productImage);\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"UploadPImageCallback\", error.getMessage());\n LoadingIndicator.hide();\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar\n .LENGTH_LONG).show();\n }\n });\n }\n };\n if (dbProduct == null) {\n createEmptyOrGetProduct(gtin, language, true, true, uploadProductImage);\n } else {\n uploadProductImage.run();\n }\n }", "public static void upload_Image(String filePath) {\n\t\tboolean bstatus;\n\n\t\tbstatus = uploadFile1(btn_LiteratureImage, filePath);\n\t\tReporter.log(bstatus, \"Image Slected\", \"Image Not Slected\");\n\n\t}", "public void upload() {\r\n if (file != null) {\r\n try {\r\n String filepath = super.getUploadFolder() + \"/\" + file.getFileName();\r\n filepath = FileUtil.alternativeFilepathIfExists(filepath);\r\n FileUtil.createFile(filepath);\r\n\r\n file.write(filepath);\r\n super.info(\"Succesful\", file.getFileName() + \" is uploaded.\");\r\n\r\n Upload upload = new Upload();\r\n upload.setDescription(description);\r\n upload.setFilepath(filepath);\r\n upload.setTag(Md5Util.getMd5Sum(filepath));\r\n this.description = null;\r\n uploads.add(upload);\r\n // update ui and ready for save in db\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n }\r\n }", "private void uploadImage(){\n final ProgressDialog loading = ProgressDialog.show(this,\"Uploading...\",\"Please wait...\",false,false);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, \"http://192.168.0.52/temps/salvar_img/setAvaliacao.php\",\n new Response.Listener<String>() {\n @Override\n public void onResponse(String s) {\n //Disimissing the progress dialog\n loading.dismiss();\n //Showing toast message of the response\n Toast.makeText(MainActivity.this, s , Toast.LENGTH_LONG).show();\n }\n\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n //Dismissing the progress dialog\n loading.dismiss();\n\n //Showing toast\n Toast.makeText(MainActivity.this, volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n //Converting Bitmap to String\n String image = getStringImage(bmpChange);\n\n\n //Creating parameters\n Map<String,String> params = new Hashtable<String, String>();\n\n //Adding parameters\n params.put(\"image\", image);\n\n //returning parameters\n return params;\n }\n };\n\n //Creating a Request Queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n\n //Adding request to the queue\n requestQueue.add(stringRequest);\n }", "@ApiMethod(name = \"imageUpload\")\n public SerializedProto imageUpload(User user, EncodedImageRef ref)\n throws InvalidProtocolBufferException {\n ImageRef imageRef = ImageRef.newBuilder()\n .mergeFrom(BaseEncoding.base64().decode(ref.getRefEncoded()))\n .build();\n return SerializedProto.fromProto(ImageUploadRef.newBuilder()\n .setImage(imageRef)\n .setUrl(ImageStore.getUploadUrl(imageRef))\n .build());\n }", "void uploadingFile(String path);", "public void upload_file(FileUploadEvent event) throws IOException {\n \t\n \tUploadedFile uploaded_file=event.getFile();\n \tFacesContext context = FacesContext.getCurrentInstance();\n \t\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\n \t\t\t\t.getExternalContext().getSession(true);\n \t\tString pictures_folder=session.getAttribute(\"pictures_folder\").toString();\n \t\t\n \t\tPath folder = Paths.get(pictures_folder);\n\t\t\n\t\tString filename = FilenameUtils.getBaseName(uploaded_file.getFileName()); \n\t\tString extension = FilenameUtils.getExtension(uploaded_file.getFileName());\n\t\t//tou dinei rando onoma\n\t\tPath file = Files.createTempFile( folder,filename+\"-\" , \".\" + extension);\n\t\tSystem.out.println(\"folder: \"+folder.toString()+\"\\n\"+\"filename: \"+filename+\"\\n\"\n\t\t \t+ \"file: \"+file.toString());\n\t\t\n\t\tString profile_url;\n\t\ttry (InputStream input =uploaded_file.getInputstream()) {\n\t\t Files.copy(input, file, StandardCopyOption.REPLACE_EXISTING);\n\t\t profile_url=file.toString().split(\"/\")[file.toString().split(\"/\").length-1];\n\t\t}\n\n\t\tSystem.out.println(\"Uploaded picture successfully saved in \" + profile_url);\n\t\tString message=\"Pictures were uploaded Successfully\";\n\t\tFacesMessage facesMessage_11 = new FacesMessage(message);\n context.addMessage(files_upload_UI.getClientId(context), facesMessage_11);\n\t\t\n\t\t\n\t\t\n }", "public interface ImageService {\n\n void saveImageFile(Long recipeId, MultipartFile imageFile);\n}", "boolean uploadImage() {\r\n\t\tJFileChooser inImg = new JFileChooser();\r\n\t\tint approved = inImg.showOpenDialog(mainFrame);\r\n\t\tif (approved == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFile imf = inImg.getSelectedFile();\r\n\t\t\ttry {\r\n\t\t\t\talbum.put(album.size(), new Image(imf.getPath()));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Invalid File Path\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tmodel.addElement(album.get(album.size() - 1));\r\n\t\t\talbumList.setModel(model);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void addImage(Bitmap bm) {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] bytes = stream.toByteArray();\n try {\n File file = new File(this.getCacheDir(), \"image.jpg\");\n file.createNewFile();\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(bytes);\n fos.flush();\n fos.close();\n RequestBody rb = RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n MultipartBody.Part body = MultipartBody.Part.createFormData(\"files\", file.getName(), rb);\n Url url = new Url();\n Call<ImageFile> imgCall = url.createInstanceofRetrofit().uploadImage(body);\n imgCall.enqueue(new Callback<ImageFile>() {\n\n @Override\n public void onResponse(Call<ImageFile> call, Response<ImageFile> response) {\n venueimage.setText(response.body().getFilename());\n }\n\n @Override\n public void onFailure(Call<ImageFile> call, Throwable t) {\n Toast.makeText(VenueAdd.this, t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n } catch (Exception e) {\n Toast.makeText(VenueAdd.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "@Test (enabled = true , retryAnalyzer = Retry.class, testName=\"Sanity Tests\", description = \"Test the Upload utility with Android\" ,\n\t\t\tgroups= {\"Sanity Android\"})\t\n\tpublic void uploadImage() throws ParserConfigurationException, SAXException, IOException, InterruptedException{\n\t\tgenMeth.clickId( genMeth, droidData.BTNlsm_ID);\n\t\tgenMeth.clickName( genMeth, \"upload from existing test\");\n\t\tboolean isEmpty = genMeth.checkIsElementVisible(By.name(droidData.NoFilesFound_Name));\n\t\tif ( isEmpty != true){\n\t\t\t\n\t\t\tgenMeth.longPressElement(driver, genMeth, By.id(droidData.ListSecondaryText_ID));\n\t\t\tgenMeth.clickName( genMeth, droidData.BTNdelete_name);\n\t\t\tgenMeth.clickId( genMeth, droidData.BTNdeleteConfirm_id);\n\t\t\tgenMeth.clickName(genMeth, droidData.BTNmoreOptions_Name);\n\t\t\tgenMeth.clickName(genMeth, droidData.BTNrefresh_name);\n\t\t\tisEmpty = genMeth.checkIsElementVisible(By.name(droidData.NoFilesFound_Name));\n\t\t}\n\t\t\n\t\t\n\t\t//Make sure that the folder is empty\n\t\t\n\t// Capture an image\n\t\tgenMeth.clickName( genMeth, droidData.BTNupload_name);\n\t\tgenMeth.clickName( genMeth, droidData.OPTIONcaptureNewPhoto_name);\n\t\tThread.sleep(2000);\n\t\t\n//\t\tgenMeth.clickId( genMeth, droidData.BTNcapturePhoto_LG_id);\n\t\tgenMeth.clickName(genMeth, droidData.BTNcapturePhoto_GooglePhone_Name);\n\t\tgenMeth.clickName(genMeth, droidData.IconReviewDoneForImageGooglePhone_Name);\n\n//\t\tgenMeth.clickName( genMeth, droidData.BTNok_Name);\n\t\tThread.sleep(2000);\n\t\tgenMeth.clickClassName(driver, genMeth, droidData.BTNmoreOptions_ClassName);\n\t\tgenMeth.clickName( genMeth, droidData.BTNrefresh_name);\n\t\t\n\t// Check if the image display in the list\n\t\tWebElement uploadedImage = genMeth.returnId(driver, genMeth, \"com.pogoplug.android:id/text_secondary\");\n\t\tString lastUpload = uploadedImage.getText();\n\t\tString currentUpload= \"None\";\n\t\tThread.sleep(1000);\n\t\t\n\t// Add an if that will verify that the Upload has finished (compare the KB - once not changing it probably has finished or stuck)\t\n\t\tif (lastUpload != currentUpload ){\n\t\t\tgenMeth.clickClassName(driver, genMeth, droidData.BTNmoreOptions_ClassName);\n\t\t\tgenMeth.clickName( genMeth, droidData.BTNrefresh_name);\n\t\t\tlastUpload = uploadedImage.getText();\n\t\t\tThread.sleep(5000);\n\t\t\tgenMeth.clickClassName(driver, genMeth, droidData.BTNmoreOptions_ClassName);\n\t\t\tgenMeth.clickName( genMeth, droidData.BTNrefresh_name);\n\t\t\tcurrentUpload = uploadedImage.getText();\n\t\t\t\n\t\t}\n\t\t\n\t// Open the image & make sure that it displays \n\t\tgenMeth.clickName( genMeth, currentUpload);\n\t// Make sure that the \"Image not available\" text doesn't displayed\n\t\tThread.sleep(3000);\n\t\tgenMeth.isElementInvisibleText( By.name(droidData.ImageNotAvailable_Name), droidData.ImageNotAvailable_Name);\n\t\tgenMeth.takeScreenShotPositive( genMeth, \"testUploadImage\");\n\t\tThread.sleep(1000);\t\n\t//\tgenMeth.clickXpth(driver, genMeth, \"//android.view.View[1]\");\n\t\tgenMeth.clickId( genMeth, droidData.FullScreen_ID);\n\t\tgenMeth.clickId( genMeth, droidData.BTNhome_ID);\n\t// Delete the image\n\t\tgenMeth.longPressElement(driver, genMeth, By.id(droidData.ListSecondaryText_ID));\n//\t\tThread.sleep(5000);\n\t\tgenMeth.clickName( genMeth, droidData.BTNdelete_name);\n\t\tgenMeth.clickId( genMeth, droidData.BTNdeleteConfirm_id);\n\t// Check that the image was deleted\n\t\tgenMeth.isElementInvisible( By.id(droidData.FullScreen_ID));\n\t\tgenMeth.clickClassName(driver, genMeth, droidData.BTNmoreOptions_ClassName);\n\t\tgenMeth.clickName( genMeth, droidData.BTNrefresh_name);\n\t\tgenMeth.isElementVisible(By.name(droidData.NoFilesFound_Name));\n\t\t//Back to start page\n\t\tgenMeth.pressBackButton();\n\t\tgenMeth.clickId(genMeth, droidData.BTNlsm_ID);\n\t\tgenMeth.isTextPresentAndroid(driver, By.name(droidData.CATEGORIES), droidData.CATEGORIES);\n\n\t\t\n\t\t}", "public static String uploadPhoto(BufferedImage image) throws IOException {\n if (image == null) {\n throw new IOException(\"image was null\", new NullPointerException());\n }\n String publicLinkToPhoto = null;\n synchronized (singleton) {\n if (singleton.photoService == null) {\n throw new IOException(\"Could not authenticate with Picassa\");\n }\n\n singleton.baos.reset();\n ImageIO.write(image, \"png\", singleton.baos);\n MediaByteArraySource myMedia = new MediaByteArraySource(singleton.baos.toByteArray(), \"image/png\");\n\n PhotoEntry returnedPhoto;\n try {\n returnedPhoto = singleton.photoService.insert(singleton.pdfAlbumUrl, PhotoEntry.class, myMedia);\n } catch (ServiceException e) {\n e.printStackTrace();\n throw new IOException(\"Problem uploading photo\", e);\n }\n\n publicLinkToPhoto = returnedPhoto.getMediaThumbnails().get(0).getUrl();\n\n // scale it up to 800 px, which is the largest we can hotlink to\n publicLinkToPhoto = publicLinkToPhoto.replace(\"/s72/\", \"/s800/\").replace(\"/s144/\", \"/s800/\").replace(\"/s288/\", \"/s800/\");\n }\n return publicLinkToPhoto;\n }", "public void upload(UploadedFile file) {\n FacesContext faces = FacesContext.getCurrentInstance();\n\n getSelected().setUrlImage(file.getFileName());\n String fileExtension = file.getFileName().split(\"\\\\.\")[file.getFileName().split(\"\\\\.\").length - 1];\n\n //String generatedFileName = \"file\" + System.currentTimeMillis();\n File directory = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE));\n\n if (!directory.exists()) {\n directory.mkdir();\n }\n\n File newFile = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE) + File.separator + file.getFileName());\n try {\n if (!newFile.createNewFile()) {\n String nameGenerated = \"file_generated\" + System.currentTimeMillis();\n newFile = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE) + File.separator + nameGenerated + \".\" + fileExtension);\n getSelected().setUrlImage(nameGenerated);\n }\n\n FileOutputStream output = new FileOutputStream(newFile);\n\n byte[] buffer = new byte[BUFFER];\n\n int bulk;\n\n InputStream input = file.getInputstream();\n\n while (true) {\n bulk = input.read(buffer);\n\n if (bulk < 0) {\n break;\n }\n\n output.write(buffer, 0, bulk);\n output.flush();\n }\n\n output.close();\n input.close();\n\n } catch (Exception ex) {\n ex.printStackTrace();\n FacesContext.getCurrentInstance().addMessage(\"\", new FacesMessage(bundle.getString(\"Error_file_created\")));\n }\n\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t\r\n\t\tif(resultCode!=RESULT_OK){\r\n\t\t\tSystem.out.println(\"error\");\r\n\t\t}if(requestCode==SLE_PH){\r\n\t\t\tif(imageuri!=null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tis= getContentResolver().openInputStream(imageuri);\r\n\t\t\t\t\tBitmap bm=BitmapFactory.decodeStream(is);\r\n\t\t\t\t\tBitmap bm2= toRoundBitmap(bm);\r\n\t\t\t\t\tself_headimg.setImageBitmap(bm2);\r\n\t\t\t\t\tsaveMyBitmap(bm2);\r\n\t\t\t\t\tpath=Environment.getExternalStorageDirectory()+\"/head.png\";\r\n\t\t\t\t\tmyApplication my=(myApplication) Main_Activity.this.getApplication();\r\n//\t\t\t\t\tToast.makeText(Main_Activity.this, \"\"+my.getUser_name(), Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tNetUtil.uploadDataByHttpClientFile(Main_Activity.this,f);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (FileNotFoundException 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\t}\r\n\t\t}}", "public void upload(String username, String password, String photo) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\n \"https://epitech-tiekeo.c9.io/photos/add-photo-mobile\");\n\n try {\n // Add your data\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n nameValuePairs.add(new BasicNameValuePair(\"username\",\n username));\n nameValuePairs.add(new BasicNameValuePair(\"password\",\n password));\n nameValuePairs.add(new BasicNameValuePair(\"photo\",\n photo));\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n }\n }", "private void sendImage(byte[] arr){\n MediaManager.get().upload(arr).option(\"tags\", ConnectionUtils.IMAGE_TAG).callback(new UploadCallback() {\n @Override\n public void onStart(String requestId) {\n MessageUtils.toast(ImageActivity.this, \"Uploading Image!\", 0);\n }\n\n @Override\n public void onProgress(String requestId, long bytes, long totalBytes) {\n }\n\n @Override\n public void onSuccess(String requestId, Map resultData) {\n MessageUtils.toast(ImageActivity.this, \"Image Uploaded!\", 0);\n mImageView.setImageURI(null);\n mParent.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onError(String requestId, ErrorInfo error) {\n MessageUtils.toast(ImageActivity.this, error.getDescription(), 1);\n mParent.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onReschedule(String requestId, ErrorInfo error) {\n }\n }).dispatch();\n }", "@SuppressWarnings(\"unused\")\n \t\tfinal public void uploadImage(final Map<String,String> options) {\n \t\t\tif(null != cachedImage) {\n\t\t\t\t\tString apiUrl = \"/xp/users/\"+ OpenFeintInternal.getInstance().getCurrentUser().resourceID() +\"/profile_picture\";\n\t\t\t ByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\t\t cachedImage.compress(Bitmap.CompressFormat.PNG, 100, out);\n\t\t\t\t\tupload(apiUrl, out);\n \t\t\t}\n \t\t}", "private void saveAndUpload(String name, String email, Uri photoUri){\n\n // TODO implement save to local DB\n // TODO implement safe upload to Server\n }", "@PostMapping\n @PreAuthorize(KekRoles.USER_ADMIN)\n public ResponseEntity<String> addData(@RequestBody String image) {\n logger.info(\"Accepted requested to upload data to Cloud Storage for user\");\n\n byte[] encodedByte = Base64.decodeBase64(image.getBytes());\n\n ICloudStorageObject cloudStorageObject = cloudStorageService.uploadBinaryData(encodedByte);\n\n String url = cloudStorageObject.getUrlString();\n\n logger.info(\"Sending the url to uploaded data in Cloud Storage:\\n{}\", url);\n return ResponseEntity\n .status(HttpStatus.CREATED)\n .body(url);\n }", "@Test\n public void _01UploadFile() throws ApiException {\n api.getApiClient().setAccessToken(ACCESS_TOKEN);\n File stream = new File(IMAGE_URL.getFile());\n OCRJobResponse response = api.uploadFile(stream);\n Assert.assertNotNull(response);\n Assert.assertNotNull(response.getJobId());\n Assert.assertNotNull(response.getJob());\n Assert.assertEquals(OCRJobResponse.StatusEnum.INPUTS_UPLOADED, response.getStatus());\n ocrJob = response.getJob();\n }", "void uploadPicture(Uri uri, ProgressDialog progressDialog);", "public void saveImage(){\n fixMediaDir(); // fixes bug in Android 4.4\n\n // name file eSketch + timestamp\n final String filename = \"eSketch\" + System.currentTimeMillis() + \".jpg\";\n\n // insert image on the device\n String location = MediaStore.Images.Media.insertImage(\n getContext().getContentResolver(), mBitmap, filename, \"eSketch Drawing\"\n );\n\n if( location != null ){\n // notify user image was saved successfully\n Toast msg = Toast.makeText( getContext(), R.string.message_saved, Toast.LENGTH_SHORT);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n } else {\n // notify user image was NOT saved successfully\n Toast msg = Toast.makeText( getContext(), R.string.message_error_saving, Toast.LENGTH_SHORT);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n }\n }", "public interface PictureService {\n\n String uploadPicture(byte[] fileBuffer, String fileName) throws Exception;\n\n String uploadFile(String local_filename, String file_ext_name) throws Exception;\n\n}", "public interface FileUploadService {\n\n /**\n *\n * @param form\n * @param path\n * @param fileName\n * @throws Exception\n */\n void uploadBase64Image(Base64ImageForm form, String path, String fileName) throws Exception;\n}", "@PostMapping\n public ResponseEntity<BlobImage> saveImage(@RequestBody BlobStoreRequest request) {\n logger.info(\"Got a request to save an image: {}\", request.getMd5());\n BlobImage blob = BlobImage.builder()\n .build();\n blob = repository.save(blob);\n\n String storageLocation = properties.getStorageLocation();\n String uploadDir = storageLocation + \"/\" + blob.getId();\n\n blob.setImageUri(ServletUriComponentsBuilder.fromCurrentContextPath().path(\"/api/v1/blob/{id}\")\n .buildAndExpand(blob.getId()).toUriString());\n\n blob.setFileNameWithAbsolutePath(uploadDir);\n\n repository.save(blob);\n return ResponseEntity.ok(blob);\n }", "public static void uploadJumpImageToFB(Jump jump, Context context)\n\t{\n\t\ttry\n\t\t{\n\t\t\tString xml = JumpDataMessage.compose(new JumpData(PATH + NAME, jump.mAir, jump.mDistance, jump.mHeight, jump.mDrop));\n\t\t\t\n\t\t\t// Broadcast Intent Message\n\t\t\tBTCommon.broadcastMessage(context, xml);\n\t\t}\n\t\tcatch(Exception e){ e.printStackTrace(); }\n\t}", "public void uploadTemp(FileUploadEvent event) {\n setFileImage(event.getFile());\n getSelected().setUrlImage(event.getFile().getFileName());\n RequestContext.getCurrentInstance().update(\"image\");\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data)\n {\n //\"/storage/emulated/0/IRON-HID/captures\" <== can open~!!\n //\"file:///mnt/sdcard/Download/20141025_170314.jpg\"\n if (requestCode == CHOOSE_FILE_TO_UPLOAD)\n {\n if (resultCode == RESULT_OK)\n {\n Uri uri = data.getData();\n if (uri != null)\n {\n // Send file\n String filePath = uri.getPath();\n filePath = filePath.replace(\"file://\", \"\");\n mPutCommand += \" \" + filePath;\n mCommandManager.SendCommand(mPutCommand);\n }\n }\n }\n\n super.onActivityResult(requestCode, resultCode, data);\n }", "public boolean uploadImage(String path2repository, String path2image) {\n\t\tbyte[] bin = Img2Bin(path2image);\n\t\t\n\t\tValueCollection payload = new ValueCollection();\n\t\tpayload.put(\"content\", new ImagePrimitive(bin));\n\t\tpayload.put(\"path\", new StringPrimitive(path2repository));\n\t\t\n\t\ttry {\n\t\t\tclient.invokeService(ThingworxEntityTypes.Things, \"SmartDoorRepository\", \"SaveImage\", payload, 5000);\n\t\t\tLOG.info(\"Image {} was uploaded to {}.\",path2image, path2repository);\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Image couldn't be uploaded. Error: {}\",e);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private void createNewImage(final String token, final GMImage image) throws JSONException {\n httpRequest.createImage(token, image.getJson().toString()).enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> res) {\n if (res.code() == 200) /* OK */ {\n // change sync state to modified\n image.setSyncState(GMTable.GMSyncState.SYNC);\n dbHelper.update(image);\n\n // notify\n notifyUploadSuccess();\n\n } else {\n notifyUploadFail();\n }\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n t.printStackTrace();\n\n // notify fail after retry reach limit\n if (((Integer) image.getTag(TAG_RETRY)) >= GMGlobal.RETRY_LIMIT) {\n notifyUploadFail();\n }\n\n // retry upload image information\n new Retry() {\n @Override\n protected void handle(Object... params) {\n try {\n createNewImage((String) params[0], (GMImage) params[1]);\n } catch (JSONException e) {\n e.printStackTrace();\n notifyUploadFail();\n }\n }\n }.execute(token, image);\n }\n });\n }", "public interface ImageUpload {\n void imageUploadToServer(int selectedImageResourceId);\n}", "public void saveImage(MultipartFile imageFile) throws IOException {\n\t\tlogger.info(\"ComicDetail ID is \"+imageFile.getOriginalFilename());\r\n\t\tString folder=\"/images/comiccover\";\r\n\t\tbyte[] bytes = imageFile.getBytes();\r\n\t\tlogger.info(\"ComicDetail ID is \"+imageFile.getOriginalFilename());\r\n\t\t//Path path = Paths.get(folder+imageFile.getOriginalFilename());\r\n\t\r\n\t\t//Files.write(path, bytes);\r\n\t}", "private void uploadRequest(String msg){\n String path = \"\";\r\n try {\r\n path = getPath(imageUri);\r\n }\r\n catch (URISyntaxException e){\r\n showMsg(\"wrong uri\");\r\n }\r\n String number = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getString(\"number\",\"12345\");\r\n\r\n AndroidNetworking.upload(Endpoints.upload_request)\r\n .addMultipartFile(\"file\",new File(path))\r\n .addQueryParameter(\"message\",msg)\r\n .addQueryParameter(\"number\",number)\r\n .setPriority(Priority.HIGH)\r\n .build()\r\n .setUploadProgressListener(new UploadProgressListener() {\r\n @Override\r\n public void onProgress(long bytesUploaded, long totalBytes) {\r\n // do anything with progress\r\n long progress = (bytesUploaded/totalBytes*100);\r\n chooseImageText.setText(String.valueOf(progress));\r\n chooseImageText.setOnClickListener(null);\r\n }\r\n })\r\n .getAsJSONObject(new JSONObjectRequestListener() {\r\n @Override\r\n public void onResponse(JSONObject response) {\r\n try {\r\n if(response.getBoolean(\"success\")){\r\n showMsg(\"Succes\");\r\n MakeRequestActivity.this.finish();\r\n }\r\n else {\r\n showMsg(response.getString(\"message\"));\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n @Override\r\n public void onError(ANError anError) {\r\n\r\n }\r\n });\r\n\r\n }", "public void onActivityResult(int requestCode,int resultCode,Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == Activity.RESULT_OK)\n switch (requestCode) {\n case 1:\n //data.getData returns the content URI for the selected Image\n Uri photo = data.getData();\n\n //Create a file object using file path\n File file = new File(getPathFromURI(photo));\n RequestBody filePart = RequestBody.create(MediaType.parse(getContentResolver().getType(photo)),\n file);\n MultipartBody.Part mfile = MultipartBody.Part.createFormData(\"profile_image\", file.getName(), filePart);\n\n uploadRestPhoto(mfile);\n\n\n\n break;\n }\n }", "@Test\n public void uploadTest() throws ApiException {\n String path = null;\n Integer devid = null;\n File file = null;\n api.upload(path, devid, file);\n\n // TODO: test validations\n }", "@RequestMapping(value = \"view/{menuId}\", method = RequestMethod.POST)\n public String imageupload(Model model, @PathVariable int menuId, @RequestParam(\"uploadFile\") MultipartFile uploadFile,\n RedirectAttributes redirectAttributes) {\n\n\n\n Menu menu = menuDao.findOne(menuId);\n model.addAttribute(\"title\", menu.getName());\n model.addAttribute(\"cheeses\", menu.getCheeses());\n model.addAttribute(\"menuId\", menu.getId());\n //add photo upload coding here.\n\n //need to get the file into the input stream.\n //String filename = uploadFile.toString();\n //uploadFile.getOriginalFilename();\n //File filename = new FileInputStream(uploadFile1);\n //String uploadFilename = uploadFile.getOriginalFilename();\n //Session session = sessionFactory.getSessionFactory().getCurrentSession();\n //File uploadfile = new File(uploadfile);\n //Blob fileblob = Hibernate.getLobCreator(session).createBlob(filename.getBytes()); //new FileInputStream(uploadfile), file1.length()\n\n //model.addAttribute(\"imagefile\",uploadFile.getOriginalFilename());\n //System.out.println(\"File is:\" + uploadfile.getOriginalFilename());\n\n return \"\";\n }", "public void createRecipeImage(FileUploadEvent event) {\r\n Image newImage = new Image();\r\n String destination = FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/\");\r\n String getParam = qm.get(\"recipeId\");\r\n Integer recipeID = Integer.parseInt(getParam);\r\n this.recipe = recipesEJB.findRecipe(recipeID);\r\n File file = new File(destination+\"uploads\"+File.separator+\"recipe\"+File.separator+recipeID);\r\n String abspath = file.getAbsolutePath()+ File.separator;\r\n if(!file.exists()){\r\n if(file.mkdirs());\r\n }\r\n //new name of the image\r\n List <Image> recipeImages = this.recipe.getImageGallery();\r\n Integer count = recipeImages.size();\r\n\r\n if(this.recipe.getImageGallery().get(0).getImagePath().equalsIgnoreCase(\"/resources/images/recipe_placeholder.png\") && count == 1){\r\n imageEJB.removeImage(this.recipe.getImageGallery().get(0));\r\n this.recipe.getImageGallery().remove(0);\r\n }else {\r\n count++;\r\n }\r\n String newImageName;\r\n if (event.getFile().getContentType().equalsIgnoreCase(\"image/jpeg\")) {\r\n newImageName = count + \".jpeg\";\r\n } else if (event.getFile().getContentType().equalsIgnoreCase(\"image/gif\")) {\r\n newImageName = count + \".gif\";\r\n } else {\r\n newImageName = count + \".png\";\r\n }\r\n // Do what you want with the file \r\n String newImagePath = \"/uploads/recipe/\"+recipeID+\"/\"+newImageName;\r\n try {\r\n copyFile(abspath,newImageName, event.getFile().getInputstream()); \r\n newImage = this.imageEJB.createImage(newImage);\r\n newImage.setCaption(\"This is the \"+this.recipe.getRecipeName()+\"'s recipe picture.\");\r\n newImage.setDescription(newImageName);\r\n newImage.setRecipe(this.recipe);\r\n newImage.setImagePath(newImagePath);\r\n newImage.setImageName(newImageName);\r\n newImage = this.imageEJB.editImage(newImage);\r\n this.recipe.getImageGallery().add(newImage);\r\n this.recipe = recipesEJB.editRecipe(recipe);\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Success!\", \"Your image was uploaded successfully.\"));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void uploader(WebDriver driver, String image, By browse, By upload) throws InterruptedException {\n\t\t String imageDir = Common.localImageDir;\n\t\t String imagePath = imageDir + File.separator + image;\n\t\t try{\n \t driver.findElement(browse).sendKeys(imagePath);\n \t Thread.sleep(1000);\n \t driver.findElement(upload).click();\n \t waitUntilElementInvisibility(driver, 10, Common.ajaxThrobber, \"Throbber\", new Exception().getStackTrace()[0]);\n }catch(Throwable e) { e.printStackTrace(); }\n }", "public void crearRutaImgPublicacion(){\n \n servletContext=(ServletContext) contexto.getExternalContext().getContext();\n String ruta=\"\";\n //Ruta real hasta la carpeta uploads\n ruta=servletContext.getRealPath(\"/upload/\");\n //Obtener el codigo del usuario de la sesion actual\n //este es utilizado para ubicar la carpeta que le eprtenece\n String codUsuario=String.valueOf(new SessionLogica().obtenerUsuarioSession().getCodUsuario());\n //Concatenamiento de directorios internos\n ruta+=File.separatorChar+\"img\"+File.separatorChar+\"post\"+File.separatorChar+codUsuario+File.separatorChar+\"all\"+File.separatorChar;\n //Asignacion de la ruta creada\n this.rutaImgPublicacion=ruta;\n }", "public void uploadImage(int pos) throws InterruptedException {\n\t}", "public void store_image(Images image) {\n\t\tir.save(image);\n\t}", "private void postImage(String fid, final String fileName) {\n\t\tJSONObject jsObject = new JSONObject();\n\t\tSharedPreferences myPrefs = getActivity().getSharedPreferences(\"myPrefs\",getActivity().MODE_PRIVATE);\n\t\ttry {\n\n\t\t\tjsObject.put(\"field_image\", new JSONObject().put(\"und\", new JSONArray().put(0, new JSONObject().put(\"fid\", fid))));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcd = new ConnectionDetector(getActivity());\n\n\t\t// Check if Internet present\n\t\tif (!cd.isConnectingToInternet()) {\n\t\t\t// Internet Connection is not present\n\t\t\talert.showAlertDialog(getActivity(),\n\t\t\t\t\t\"Internet Connection Error\",\n\t\t\t\t\t\"Please connect to working Internet connection\", false);\n\t\t\t// stop executing code by return\n\t\t\treturn;\n\t\t}else{\n\t\t\tnew UpdateLike(jsObject,myPrefs){\n\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\tAppUtil.initializeProgressDialog(getActivity(), \"Finalizing post...\", progressDialog);\n\t\t\t\t};\n\t\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\t\tAppUtil.cancelProgressDialog();\n\t\t\t\t\tinfalteImageOnCoverPhoto(fileName);\n\t\t\t\t};\n\t\t\t}.execute(\"http://www1.kitchengardens.in/svc/node/\"+garden_node_id);\n\t\t}\n\t}", "public String uploadPhoto(String path) {\n return uploadPhoto(path, null);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n int geekid = Integer.parseInt(request.getParameter(\"geekid\"));\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n\n for (FileItem item : multiparts) {\n\n if (!item.isFormField()) {\n item.write(new File(UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\"));\n\n }\n \n String fileName = UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\";\n\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n } catch (Exception ex) {\n\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n\n }\n\n } else {\n\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }", "@Override\r\n\tpublic String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n\r\n\t\tLOGGER.info(\"Upload action\");\r\n\t\tString description = request.getParameter(\"description\"); // Retrieves <input type=\"text\" name=\"description\">\r\n\t\tPart filePart = request.getPart(\"file\"); // Retrieves <input type=\"file\" name=\"file\">\r\n\t\tString fileName = Paths.get(filePart.getSubmittedFileName()).getFileName().toString(); // MSIE fix.\r\n\r\n\t\tHttpSession session = request.getSession();\r\n\t\tServletContext context = session.getServletContext();\r\n\t\tDAOFactory dao = (DAOFactory) context.getAttribute(\"DAOManager\");\r\n\t\tfinal String path = context.getRealPath(\"/images\");\r\n\t\tif (!description.equals(\"\")) {\r\n\t\t\tfileName = description;\r\n\t\t}\r\n\t\tString url = \"images/\" + fileName;\r\n\t\ttry (OutputStream outStream = new FileOutputStream(new File(path + File.separator + fileName));\r\n\t\t\t\tInputStream filecontent = filePart.getInputStream()) {\r\n\t\t\tint read = 0;\r\n\t\t\tfinal byte[] bytes = new byte[1024];\r\n\r\n\t\t\twhile ((read = filecontent.read(bytes)) != -1) {\r\n\t\t\t\toutStream.write(bytes, 0, read);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t\tsession.setAttribute(\"updateCarError\", \"Attempt to upload image failed.\");\r\n\t\t\treturn \"/frontController/cars\";\r\n\t\t}\r\n\t\tLOGGER.info(\"File uploaded successfully\");\r\n\r\n\t\tString id = request.getParameter(\"id\");\r\n\r\n\t\tCarService carService = new CarService(dao);\r\n\t\tCar car = carService.getCarById(Integer.parseInt(id));\r\n\t\tcar.setPhoto(url);\r\n\t\tInteger row = carService.updateCarPhoto(car);\r\n\t\tif (row == 1) {\r\n\t\t\tsession.setAttribute(\"UpdateCar\", \"You have successfully uploaded image.\");\r\n\t\t} else {\r\n\t\t\tsession.setAttribute(\"updateCarError\", \"Attempt to upload image failed.\");\r\n\t\t}\r\n\t\treturn \"/frontController/cars\";\r\n\t}", "private void uploadFile(String fileUri, String filename) {\n progressDialog.show();\n FileUploadService service = MyConfig.getRetrofit(MyConfig.JSON_BASE_URL).create(FileUploadService.class);\n\n // https://github.com/iPaulPro/aFileChooser/blob/master/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java\n // use the FileUtils to get the actual file by uri\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n MultipartBody.Part body = null;\n if (!profile_image_path.equalsIgnoreCase(\"\")) {\n\n File file = new File(fileUri);\n\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n\n // create RequestBody instance from file\n RequestBody requestFile = RequestBody.create(MediaType.parse(\"image/*\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n\n body = MultipartBody.Part.createFormData(\"profile_image\", filename, requestFile);\n }\n\n\n RequestBody user_id = RequestBody.create(MediaType.parse(\"text/plain\"), Shared_Preferences.getPrefs(ProfileActivity.this, IConstant.USER_ID));\n RequestBody full_name = RequestBody.create(MediaType.parse(\"text/plain\"), etName.getText().toString());\n RequestBody height = RequestBody.create(MediaType.parse(\"text/plain\"), etHeight.getText().toString());\n RequestBody email = RequestBody.create(MediaType.parse(\"text/plain\"), etEmail.getText().toString());\n RequestBody weight = RequestBody.create(MediaType.parse(\"text/plain\"), etWeight.getText().toString());\n RequestBody is_blood_pressure = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_diabetes = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_asthama = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_heart_patient = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n\n\n Call<ResponseBody> call;\n\n\n RequestBody file_name = RequestBody.create(MediaType.parse(\"text/plain\"), \"\" + filename);\n call = service.upload(\n user_id,\n full_name,\n height,\n email,\n weight,\n is_blood_pressure,\n is_diabetes,\n is_asthama,\n is_heart_patient,\n body\n );\n\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n String output = \"\";\n try {\n output = response.body().string();\n\n Log.d(\"Response\", \"response=> \" + output);\n JSONObject i = new JSONObject(output);\n boolean res = Boolean.parseBoolean(i.getString(\"result\"));\n String reason = i.getString(\"reason\");\n\n if (res) {\n user_profile_path = i.getString(\"user_profile_path\");\n\n JSONArray jsonArray = i.getJSONArray(\"user_data\");\n\n JSONObject jsonObjectData = jsonArray.getJSONObject(0);\n\n String id = jsonObjectData.getString(\"user_id\");\n String full_name = jsonObjectData.getString(\"full_name\");\n String email = jsonObjectData.getString(\"email\");\n String mobile_no = jsonObjectData.getString(\"mobile_no\");\n String image = jsonObjectData.getString(\"image\");\n String role = jsonObjectData.getString(\"role\");\n String height = jsonObjectData.getString(\"height\");\n String weight = jsonObjectData.getString(\"weight\");\n String is_blood_pressure = jsonObjectData.getString(\"is_blood_pressure\");\n String is_diabetes = jsonObjectData.getString(\"is_diabetes\");\n String is_asthama = jsonObjectData.getString(\"is_asthama\");\n String is_heart_patient = jsonObjectData.getString(\"is_heart_patient\");\n// String member_id = jsonObjectData.getString(\"member_id\");\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ID, id);\n Shared_Preferences.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n Shared_Preferences.setPrefs(_act, IConstant.USER_EMAIL, email);\n Shared_Preferences.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IMAGE, image);\n Shared_Preferences.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n Shared_Preferences.setPrefs(_act, IConstant.USER_HEIGHT, height);\n Shared_Preferences.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n\n\n\n sharedPref.setPrefs(_act, IConstant.USER_ID, id);\n sharedPref.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n sharedPref.setPrefs(_act, IConstant.USER_EMAIL, email);\n sharedPref.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n sharedPref.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n sharedPref.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n sharedPref.setPrefs(_act, IConstant.USER_HEIGHT, height);\n sharedPref.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n sharedPref.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n sharedPref.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n sharedPref.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n sharedPref.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n sharedPref.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n Toast.makeText(ProfileActivity.this, reason, Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(ProfileActivity.this, UserDashboardActivity.class);\n startActivity(intent);\n finish();\n } else\n Toast.makeText(ProfileActivity.this, \"\" + reason, Toast.LENGTH_SHORT).show();\n // Log.v(\"Upload\", \"\" + response.body().string());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n progressDialog.dismiss();\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.d(\"Upload error:\", \"\");\n progressDialog.dismiss();\n }\n });\n }", "public void uploadPictureToParkById(int id, MultipartFile multipartFile, boolean enablePublicReadAccess) {\n Optional<DogPark> dogPark = dogParkRepository.findById(id);\n\n if (dogPark.isPresent()) {\n\n //Create a new image to store the URL of the file that is being created\n Image image = new Image();\n\n //Creating the file\n String fileName = multipartFile.getOriginalFilename();\n\n try {\n //creating the file in the server (temporarily)\n File file = new File(fileName);\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(multipartFile.getBytes());\n fos.close();\n\n for (int i = -1; i < dogPark.get().getImages().size(); i++) {\n\n if (i == dogPark.get().getImages().size() - 1) {\n fileName = dogPark.get().getName() + \"/\" + dogPark.get().getName() + (i + 1) + \".\" + FilenameUtils.getExtension(fileName);\n }\n }\n\n //Set the URL to the new image and connect with the correct dog park and save it to the repository\n image.setUrl(\"https://dogparks.s3.amazonaws.com/\" + fileName);\n image.setDogpark(dogPark.get());\n imageRepository.save(image);\n\n //Add the image to the dog park\n dogPark.get().getImages().add(image);\n\n PutObjectRequest putObjectReqeust = new PutObjectRequest(this.awsS3AudioBucket, fileName, file);\n\n if (enablePublicReadAccess) {\n putObjectReqeust.withCannedAcl(CannedAccessControlList.PublicRead);\n }\n\n this.amazonS3.putObject(putObjectReqeust);\n\n } catch (IOException | AmazonServiceException ex) {\n logger.error(\"error [\" + ex.getMessage() + \"] occurred while uploading [\" + fileName + \"] \");\n }\n }\n else {\n throw new DogParkNotFoundException();\n }\n }", "private void uploadBitmap(final Bitmap bitmap, final String idKop, final String id_bidangusaha, final String alamat, final String status, final String omzet, final String Loc, final String simpananpokok, final String jmlsimpananpokok, final String simpananwajib, final String jmlsimpananwajib, final String shutahunan, final String user) {\n pDialog.setMessage(\"Loading ...\");\n showDialog();\n VolleyMultipartRequest volleyMultipartRequest = new VolleyMultipartRequest(Request.Method.POST, AppConfig.URL_INPUT_KEUANGAN,\n new Response.Listener<NetworkResponse>() {\n @Override\n public void onResponse(NetworkResponse response) {\n hideDialog();\n\n Intent intent = new Intent(Form1Kelurahan4.this,\n SlidePageF1.class);\n startActivity(intent);\n finish();\n\n Toast.makeText(getApplicationContext(), \"Succes Insert\", Toast.LENGTH_SHORT).show();\n\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Data Error: \" + error.getMessage());\n //cek error timeout, noconnection dan network error\n if ( error instanceof TimeoutError || error instanceof NoConnectionError ||error instanceof NetworkError) {\n Toast.makeText(getApplicationContext(),\n \"Please Check Your Connection\",\n Toast.LENGTH_SHORT).show();}\n hideDialog();\n }\n }) {\n\n\n\n /*\n * If you want to add more parameters with the image\n * you can do it here\n * here we have only one parameter with the image\n * which is tags\n * */\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"id_koperasi\", idKop);\n params.put(\"bidang_usaha\", id_bidangusaha);\n params.put(\"alamat_usaha\", alamat);\n params.put(\"status_usaha\", status);\n params.put(\"omzet\", omzet);\n params.put(\"location\", Loc);\n params.put(\"simp_pokok\", simpananpokok);\n params.put(\"jml_simp_pokok\", jmlsimpananpokok);\n params.put(\"simp_wajib\", simpananwajib);\n params.put(\"jml_simp_wajib\", jmlsimpananwajib);\n params.put(\"shu_tahunan\", shutahunan);\n params.put(\"user_id\", user);\n return params;\n }\n\n /*\n * Here we are passing image by renaming it with a unique name\n * */\n @Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(\"pic\", new DataPart(imagename + \".jpg\", getFileDataFromDrawable(bitmap)));\n return params;\n }\n };\n\n //adding the request to volley\n Volley.newRequestQueue(this).add(volleyMultipartRequest);\n }", "@PreAuthorize(\"hasAnyRole('ROLE_ADMIN','ROLE_CONTRIBUTOR')\")\r\n\t@CrossOrigin(origins=\"http://localhost:4200\")\r\n\t@RequestMapping(value=\"/image/upload/{idMangas:[0-9]+}\", method=RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)\r\n\t@ResponseBody\r\n\tpublic Manga upload(@RequestParam(\"file\") MultipartFile file, @PathVariable(\"idMangas\") int idMangas){\n\t\tlog.info(\"File name: \" + file.getOriginalFilename());\r\n\t\tlog.info(\"File name: \" + file.getContentType());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tImage img = new Image(0, file.getOriginalFilename(), file.getSize(), file.getContentType(), \"\", \"\");\r\n\t\t\timageDao.saveImageFile(img, file.getInputStream());\r\n\t\t\t// on save ensuite en bdd l image\r\n\t\t\timageDao.save(img);\r\n\t\t\t// puis on lie limage a mongas recup ds lurl\r\n\t\t\tManga m = mangasDao.findOne(idMangas);\r\n\t\t\tm.setImg(img);\r\n\t\t\treturn mangasDao.save(m);\r\n\t\t\t// return m;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new HttpClientErrorException(HttpStatus.INTERNAL_SERVER_ERROR, \"erreur lors de la sauvegarde\");\r\n\t\t}\r\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n // if the result is capturing Image\n if (requestCode == CAMERA_CAPTURE_IMAGE_REQUEST_CODE) {\n //If the activity was successfully completed\n if (resultCode == Activity.RESULT_OK) {\n\n // successfully captured the image\n // launching upload activity\n// Bitmap thumb = ThumbnailUtils.extractThumbnail(BitmapFactory.decodeFile(fileUri.getPath()),\n// THUMBSIZE, THUMBSIZE);\n// addImageView(bitmapToThumbnail(thumb));\n new UploadFileToServer().execute();\n //If the Activity was cancelled\n } else if (resultCode == Activity.RESULT_CANCELED) {\n\n // user cancelled Image capture\n //A Toast message is a short notification towards the bottom of your device\n Toast.makeText(getActivity().getApplicationContext(),\n \"User cancelled image capture\", Toast.LENGTH_SHORT)\n .show();\n\n } else {\n // failed to capture image\n Toast.makeText(getActivity().getApplicationContext(),\n \"Sorry! Failed to capture image\", Toast.LENGTH_SHORT)\n .show();\n }\n\n }\n }", "@Override\n\tvoid postarFoto() {\n\n\t}", "@Override\n protected void onPostExecute(String msg) {\n params.add(new BasicNameValuePair(\"image\", encodedString));\n // Trigger Image upload\n new upload_image().execute();\n }", "private Integer uploadURL(URL url) {\n \t\ttry {\n \t\t\tString contentType = url.openConnection().getContentType();\n \t\t\tif (contentType == null || !contentType.startsWith(\"image/\")) {\n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\tString name = url.getPath().substring(1);\n \t\t\tif (contentType.contains(\"png\")) {\n \t\t\t\tname += \".png\";\n \t\t\t} else if (contentType.contains(\"jpg\")\n \t\t\t\t\t|| contentType.contains(\"jpeg\")) {\n \t\t\t\tname += \".jpg\";\n \t\t\t} else if (contentType.contains(\"gif\")) {\n \t\t\t\tname += \".gif\";\n \t\t\t}\n \n\t\t\treturn apiFactory.getFileAPI().uploadImage(url, name);\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \n \t\t\treturn null;\n \t\t}\n \t}", "@POST(\"save_image.php\")\n Call<ResponseBody> saveImage(@Body RequestBody body);", "@Multipart\n @POST(\"v1/user/avatar/uploadKid\")\n Call<UpdateKidRepEntity> uploadKidAvatar(\n @PartMap() Map<String, RequestBody> pramPart,\n @Part MultipartBody.Part filePart);", "public void uploader(WebDriver driver, String image, By browse, By upload, Robot robot, String name) throws NumberFormatException, IOException {\n\t\t String parentWindowHandle = driver.getWindowHandle();\n\t\t int i = 0;\n\t\t String xpath = \"//a[contains(@type,'image/jpeg;')][text()='\" + image + \"']\";\n\t\t By element = By.xpath(xpath);\n\t\t int size = driver.findElements(element).size();\t\t \n\t\t while (size == 0) {\n\t\t try {\n\t\t \t String previousURL = driver.getCurrentUrl();\n\t\t if (i > 0) { fileWriterPrinter(\"Not a successful \\\"\" + image + \"\\\" \" + name + \" upload...will try again...\"); }\n\t\t\t \n\t\t robot.keyPress(KeyEvent.VK_CANCEL); // close previous in the beginning\n\t\t robot.keyRelease(KeyEvent.VK_CANCEL);\n\t\t driver.findElement(browse).click();\n\t\t\t \n\t\t waitUntilUrl(driver, previousURL); \n\t\t chooseImageRobot(driver, image, robot);\n\t\t alertHandler(driver);\n\t\t closeAllOtherWindows(driver, parentWindowHandle);// driver.switchTo().window(parentWindowHandle);\n\t\t \n\t\t\t driver.findElement(upload).click();\n\t\t\t waitUntilElementInvisibility(driver, 10, Common.ajaxThrobber, \"Throbber\", new Exception().getStackTrace()[0]);\n\t\t } catch(Exception e) {}\n\t\t i++;\n\t\t size = driver.findElements(element).size(); \n\t }\n\t\t if (size == 1) { fileWriterPrinter(\"Successful \\\"\" + image + \"\\\" \" + name + \" upload!\"); }\n\t }", "public void uploadPhoto(View view) {\n Intent i = new Intent(\n Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, GET_FROM_GALLERY);\n\n }", "public abstract void saveUserImage(Call serviceCall, Response serviceResponse, CallContext messageContext);", "private void upload(ByteBuffer image) {\n bind();\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, image);\n }", "@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\tString filePath = doFileUpload(params[1]);\r\n\t\t\tif(filePath!=null){\r\n\t\t\t\tString abd = imService.updateImage(params[0], filePath);\r\n\t\t\t\tLog.e(\"IMAGE TAG\",\" \"+abd);\r\n\t\t\t}\r\n\t\t\t//String abd = imService.updateImage(params[0], params[1]);\r\n\t\t\t//Log.e(\"IMAGE TAG\",\" \"+abd);\r\n\t\t\treturn params[1];\r\n\t\t}", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(AddingPlace.this,\"image uploaded successfully\",Toast.LENGTH_LONG).show();\n }", "private void takePicture() {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // check if there is a camera app installed\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n // build the photo file\n mPhotoFile = new File(getExternalFilesDir(null), code + \".jpg\");\n // get URI using a file provider\n Uri photoURI = FileProvider.getUriForFile(this,\n \"com.martindisch.fileprovider\",\n mPhotoFile);\n // put URI into Intent\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n // send Intent\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\n } else {\n Toast.makeText(this, R.string.no_camera, Toast.LENGTH_SHORT).show();\n }\n }", "private void uploadPathPhotoButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_uploadPathPhotoButtonActionPerformed\n\n clearInformation();\n JFileChooser dialogue = new JFileChooser();\n // Show the dialog to choose the image file\n int Retour = dialogue.showDialog(dialogue, OPEN);\n File photoToUpload = null;\n\n // Choose the image file\n if (Retour == JFileChooser.APPROVE_OPTION) {\n photoToUpload = dialogue.getSelectedFile();\n String pathUploadPhoto = photoToUpload.getAbsolutePath();\n String extension = pathUploadPhoto.substring(pathUploadPhoto.lastIndexOf(POINT));\n // verify the extension of the input file\n if (!extension.equals(JPEG_EXTENSION) && !extension.equals(BITMAP_EXTENSION) && !extension.equals(PNG_EXTENSION)) {\n displayInformation(ERROR_EXTENSION);\n } else {\n pathPhotoUploadTextField.setText(photoToUpload.getAbsolutePath());\n }\n }\n }" ]
[ "0.72821915", "0.6971019", "0.696938", "0.6964478", "0.6932355", "0.6891965", "0.68811274", "0.67888814", "0.6723737", "0.6710441", "0.6657388", "0.66553855", "0.6619993", "0.6590168", "0.6587495", "0.6581945", "0.65797466", "0.6576634", "0.656716", "0.6540945", "0.6504841", "0.64912343", "0.6478325", "0.64593554", "0.64528364", "0.6445031", "0.6402967", "0.6373918", "0.6355795", "0.633856", "0.6317451", "0.6312644", "0.6304412", "0.6282678", "0.6247415", "0.61895573", "0.61861664", "0.6178472", "0.6127319", "0.61231637", "0.61193335", "0.6102266", "0.6092837", "0.60870886", "0.6076412", "0.6068086", "0.60650146", "0.60547864", "0.6053271", "0.6046412", "0.60356355", "0.60314626", "0.6029605", "0.6012555", "0.6009429", "0.60082763", "0.6006882", "0.6004253", "0.6000641", "0.5999292", "0.5996028", "0.5992563", "0.5981944", "0.59622", "0.59544307", "0.59434605", "0.5937739", "0.5930859", "0.5925066", "0.5915547", "0.5913581", "0.5901206", "0.59011114", "0.59004396", "0.5897978", "0.5892452", "0.58908993", "0.5887468", "0.58861464", "0.5858023", "0.5854247", "0.584862", "0.5845188", "0.5840657", "0.58269596", "0.58269364", "0.5826025", "0.582225", "0.5821071", "0.5812586", "0.58111143", "0.5810223", "0.57910025", "0.57898706", "0.57883793", "0.57864475", "0.5786108", "0.5784008", "0.5780374", "0.5780129" ]
0.7730903
0
thread for writing to network
@Override public void run() { try { socket = new Socket("192.168.0.165", 2000); out = new PrintWriter(socket.getOutputStream()); in = new BufferedReader(new InputStreamReader(socket.getInputStream())); ReadThread readThread = new ReadThread(); readThread.start(); } catch (Exception e) { e.printStackTrace(); } boolean done = false; while (!done) { if (message != null) { try { out.print(message); out.flush(); message = null; } catch (Exception e) { e.printStackTrace(); try { socket.close(); in.close(); out.close(); done = true; } catch (IOException d) { e.printStackTrace(); } } } } disconnect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }", "public void run(){\n\t\t/*\n\t\ttry {\t\n\t\t\tclient_ip=parentIp;\n\t\t\tpingskt = new Socket(parentIp,TCP_Port);\n\t\t\tin = new BufferedReader(new InputStreamReader(pingskt.getInputStream()));\n\t\t\tout = new PrintWriter(pingskt.getOutputStream(),true);\n\t\t}catch(Exception e){ \n\t\t\tSystem.out.println(\"Error in Catch TCPSender.java line no 96 \");\t\n\t\t}\n\t\t(bufferReaderThread=new Thread(){\n \tpublic void run(){\n\t\t\t\tsynchronized(in){\n \twhile(!tcpsend_Flag){\n try{\n\t\t\t\t String str=\"\";\n if((str=in.readLine())!=null) {\n\t\t\t\t\t\t\t\tif((str!=null) && (!str.equals(\"\"))) {\n\t\t\t\t\t\t\t\t\tif(str.startsWith(\"BackupTreeCource_id\")){\n\t\t\t\t\t\t\t\t\t\tstr=str.replaceAll(\"BackupTreeCource_id\",\"\");\t\t\n\t\t\t\t\t\t\t\t\t\tString str1[]=str.split(\"@\");\n\t\t\t\t\t\t\t\t\t\tlog.setString(\"str1[1] TCPClient \"+str1[1]);\n\t\t\t\t\t\t\t\t\t\tTCPUtil.getController().getString(str1[0],str1[1]);\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else if(str.startsWith(\"SetUserList=\")){\n\t\t\t\t\t\t\t\t\t\tString courseid=str.replaceAll(\"SetUserList=\",\"\");\n\t\t\t\t\t\t\t\t\t}else if(str.startsWith(\"UserList=\")){\n\t\t\t\t\t\t\t\t\t\tString courseid_data=str.replaceAll(\"UserList=\",\"\");\n\t\t\t\t\t\t\t\t\t\tString data[]=courseid_data.split(\"#\");\n\t\t\t\t\t\t\t\t\t\tUserListUtil.getContriller().addDataForVector(data[0],data[1]);\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\tint temp=str.indexOf(\",\",0);\n\t\t\t\t\t\t\t\t\tString courseid=str.substring(0,temp);\n\t\t\t\t\t\t\t\t\ttemp=temp+1;\n \t\t\tstr=str.substring(temp,str.length());\n\t\t\t\t\t\t\t\t\tMyHashTable temp_ht=RuntimeDataObject.getController().getMyHashTable();\n\t\t\t\t\t\t\t\t\tif(temp_ht.getStatus(courseid)) {\n BufferMgt te=temp_ht.getValues(courseid);\n //te.putByte(str,client_ip,\"ch_wb\");\n } else if(!temp_ht.getStatus(courseid)) {\n BufferMgt bm= new BufferMgt();\n temp_ht.setValues(courseid,bm);\n //bm.putByte(str,client_ip,\"ch_wb\");\n }\n\t\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\tbufferReaderThread.yield();\n \tbufferReaderThread.sleep(100);\n }catch(Exception e){\n\t\t\t\t\t\t\tcleancourseID();\n\t\t\t\t\t\t\tfor (int l=0;l<course_id.size();l++) {\n\t\t\t\t\t\t\t\tString courseid=course_id.get(l).toString();\n\t\t\t\t\t\t\t\tTCPClient.getController().setcourseID(courseid);\n\t\t\t\t\t\t\t\tMyHashTable tempht=RuntimeDataObject.getController().getUserListMyHashTable();\n\t\t\t\t\t\t\t\tVectorClass vectorclass=tempht.getCourseIdUserListVector(courseid);\n\t\t\t\t\t\t\t\tVector v=vectorclass.getBackupTreeValue();\n \t\t\tlog.setString(\"Backup Tree value-------------\"+v.toString())\n; \t\t\tif((v.get(0).toString()).equals(\"#GParent\")){\n \t\t\tString str=v.get(0).toString();\n str=str.replaceAll(\"#GParent\",\"\");\n\t\t\t\t\t\t\t\t\tsetparentIp(str);\n }\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.gc();\t\t\t\n TCPClient.getController().start();\n\t\t\t\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\tlog.setString(\" inputStream \"+e.getMessage());\n\t\t\t\t\t\t\tlog.setString(\" TCPClient in inputStream \"+e.getMessage());\n\t\t\t\t\t\t\ttcpsend_Flag=true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tprintWriterThread.interrupt();\n \t printWriterThread.stop();\n\t\t\t\t\t\t\tbufferReaderThread.interrupt();\n bufferReaderThread.stop();\n\t \t \ttry { \n\t\t\t\t\t\t\t\tpingskt.close();\n\t\t\t\t\t\t\t\tpingskt=null;\n\t \t\t\t\t\t}catch(Exception ex ){\n\t\t\t\t\t\t\t\tlog.setString(\"Error in to catch in TCPClient!! \"+ex.getMessage());\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tSystem.gc(); \t \n\t\t\t\t\t\t\tprintWriterThread=null;\n\t\t\t\t\t\t\tbufferReaderThread=null;\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}).start();\n\t\t\n\t\t(printWriterThread =new Thread(){\n \tpublic void run(){\n\t\t\t\tsynchronized(out){\n\t \twhile(!tcpsend_Flag){\n \t \ttry{\n\t\t\t\t\t\t\tif(ipnumber != course_id.size()){\n\t\t\t\t\t\t\t\tipnumber=course_id.size();\n\t\t\t\t\t\t\t\tout.println(\"Cource_id\"+course_id.get(ipnumber-1));\t\n\t\t\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tMyHashTable temp_ht=RuntimeDataObject.getController().getMyHashTable();\n\t\t\t\t\t\t\t\tfor(int i=0;i<course_id.size();i++) {\n\t\t\t\t\t\t\t\t\tTCPUtil.getController().getString(course_id.get(i).toString(),\"#Parent\"+client_ip);\n\t\t\t\t\t\t\t\t\tif(temp_ht.getStatus(course_id.get(i).toString())) {\n \t\tBufferMgt buffer_mgt=temp_ht.getValues(course_id.get(i).toString());\n \t \t\t\t\t\tString str=(buffer_mgt.sendData(client_ip,\"ch_wb\")).toString();\n \t \t\tif(str !=null ){\n\t\t\t\t\t\t\t\t\t\t\tstr=course_id.get(i)+\",\"+str;\n\t\t\t\t \t\tout.println(str);\n \t \t\t\tout.flush();\n \t \t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcountint++;\n \t\tout.flush();\t\n\t\t\t\t\t\t\tSystem.gc();\n\t\t\t\t\t\t\tprintWriterThread.yield();\n \t printWriterThread.sleep(100);\n\t\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\t\tSystem.gc();\t\n\t\t\t\t\t\t\tlog.setString(\"Error in TCPClient class in outputStream \");\n\t\t\t\t\t\t}\n \t\t}\n\t\t\t\t}\n \t}\n\t\t}).start();*/\n\t}", "public void run() {\n\t\twhile(running){\n\t\t\t\n\t\t\tif (!thingsToWrite.isEmpty()){\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tString s = (String) thingsToWrite.get(0);\n\t\t\t\t\tif(s.equals(\"file\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\t//write \"files\"\n\t\t\t\t\t\toos.writeObject(thingsToWrite.getNRemoveFirst());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//need to wait for synchro //HARDCODED, ideal : 1 command\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//write the dataObject\n\t\t\t\t\t\toos.writeObject(thingsToWrite.getNRemoveFirst());\n\n\t\t\t\t\t\t//need to wait for synchro //HARDCODED, ideal : 1 command\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//write the file\n\t\t\t\t\t\tbyte[] content = ( byte[] )thingsToWrite.getNRemoveFirst();\n\t\t\t\t\t\toos.writeObject(content);\n\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"file Sent\");\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(s.startsWith(\"addRepo\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\toos.writeObject(s);\n\t\t\t\t\t\tthingsToWrite.remove(0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\t\toos.writeObject(s);\n\t\t\t\t\t\tthingsToWrite.remove(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (IOException | InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n xmitsInProgress++;\n try {\n Socket s = new Socket();\n s.connect(curTarget, READ_TIMEOUT);\n s.setSoTimeout(READ_TIMEOUT);\n DataOutputStream out = new DataOutputStream(new BufferedOutputStream(s.getOutputStream()));\n try {\n long filelen = data.getLength(b);\n DataInputStream in = new DataInputStream(new BufferedInputStream(data.getBlockData(b)));\n try {\n //\n // Header info\n //\n out.write(OP_WRITE_BLOCK);\n out.writeBoolean(true);\n b.write(out);\n out.writeInt(targets.length);\n for (int i = 0; i < targets.length; i++) {\n targets[i].write(out);\n }\n out.write(RUNLENGTH_ENCODING);\n out.writeLong(filelen);\n\n //\n // Write the data\n //\n while (filelen > 0) {\n int bytesRead = in.read(buf, 0, (int) Math.min(filelen, buf.length));\n out.write(buf, 0, bytesRead);\n filelen -= bytesRead;\n }\n } finally {\n in.close();\n }\n } finally {\n out.close();\n }\n LOG.info(\"Transmitted block \" + b + \" to \" + curTarget);\n } catch (IOException ie) {\n LOG.warn(\"Failed to transfer \"+b+\" to \"+curTarget, ie);\n } finally {\n xmitsInProgress--;\n }\n }", "public abstract void write(NetOutput out) throws IOException;", "public void run() {\n\n try{\n\n // random block number\n int blockNo = new Random().nextInt(100);\n\n while (true){\n\n Thread.sleep(500);\n writer.reset();\n\n // upload image blocks in a round robin fashion\n if (blockNo < 99)\n blockNo++;\n else\n blockNo = 0;\n\n writer.writeObject(new Message(\"\", \"\", \"SEND_IMG_BLOCK\", blockNo, labels[blockNo].getIcon(), null));\n System.out.println(\"Send to IP: \" + s.getLocalAddress().getHostAddress() + \" Port: \" + s.getPort() + \" Block: \" + (blockNo));\n writer.flush();\n\n }\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\ttry{\n\t\tServerEncoderDecoder encodeco = new ServerEncoderDecoder();\n\t\t\n\t\t\tbyte[] datatoWrite = new byte[2000];\n\t\t\t\tdatatoWrite = encodeco.encodeData(packet);\n\t\t\tserverConnection.getOutput().println(new String(datatoWrite));\n\t\t\tString ack = serverConnection.getInput().readLine();\n\t\t\tif(ack.equals(\"ACK\")){\n\t\t\t\t//System.out.println(\"ACK for request obtained\");\n\t\t\t\tCoordinator.incrementCounter();\n\t\t\t}\n\t\t\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void run(){\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length, ip, port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void run() {\n try {\n //first send the file name to the receiver\n out.flush();\n out.writeUTF(fileName);\n out.flush();\n //sends the destination folder name\n out.writeUTF(destFolder);\n out.flush(); //flushes the buffer\n //array of bytes that holds the file bytes\n byte[] file = readFile(srcFilePath +\"/\"+fileName);\n System.out.println(\"Sending file: \"+fileName+\" to folder: \"+destFolder);\n //sends the file\n out.write(file,0,file.length);\n out.flush();\n if(notifDownloader) {\n NodeInterface nodeStub = (NodeInterface) Naming.lookup(\"/\"+clientSocket.getInetAddress().toString()+\"/Node\");\n nodeStub.fileDownloaded(fileName);\n }\n } catch (IOException e) {\n System.out.println(\"readline: \" + e.getMessage());\n } catch (NotBoundException e) {\n //e.printStackTrace();\n System.err.println(\"There was an error notifying the downloader \"+e.getMessage());\n } finally{\n try{\n //closes the socket\n clientSocket.close();\n }catch(IOException e){\n System.out.println(\"problem closing the socket: \"+e.getMessage());\n }\n }\n }", "public void run() {\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length,ip,port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void write(byte[] out) {\n // Create temporary object\n ConnectedThread r;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (mState != STATE_CONNECTED) return;\n r = mConnectedThread;\n }\n // Perform the write unsynchronized\n r.write(out);\n }", "public WriteThread (String data, OutputStream out)\n {\n this.data = data;\n this.out = out;\n this.start();\n }", "@Override\n public void run() {\n if (socket != null) {\n byte b0 = get_sendbyte0();\n byte b1 = get_sendbyte1();\n Log.e(\"handler\", String.valueOf(b0) + String.valueOf(b1));\n if (outputStream == null) {\n try {\n outputStream = socket.getOutputStream();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n outputStream.write(new byte[]{(byte) 1, b0, b1, (byte) 1}); /*1, b0, b1, 1*/\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "public void startDBWrite() {\r\n this.setStatus(false);\r\n this.isDBOutStarted = true;\r\n if (!this.is_alg_started || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.startALG(true);\r\n } else {\r\n // setStatus(true);\r\n\r\n Thread t = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Controller.this.isDBWriteInUse = true;\r\n Controller.this.writeIntoDBProgress.setVisible(true);\r\n Controller.this.cw.setWritesOnlyFiles(true);\r\n Controller.this.cw.writeFile(false, false, false);\r\n String pw = \"\";\r\n for (int i = 0; i < Controller.this.rpasswdfield.getPassword().length; i++)\r\n pw += Controller.this.rpasswdfield.getPassword()[i];\r\n\r\n Controller.this.dbc_in = new DBConnect(Controller.this.rhostfield.getText(),\r\n Controller.this.rdatabasefield.getText(), Controller.this.ruserfield.getText(), pw,\r\n Integer.parseInt(Controller.this.rportfield.getText()),\r\n Controller.this.otablenamefield.getText(), COLUMN_NAMES_FOR_DB_OUT);\r\n\r\n // File: Controller.CLASSES_TMP_FILENAME\r\n // Columns: Controller.COLUMN_NAMES_FOR_DB_OUT\r\n try {\r\n Controller.this.dbc_in.stillWorks = true;\r\n Controller.this.dbc_in.maxProgerss = Controller.this.cw.countNodesWithClasses;\r\n Controller.this.dbc_in.writeFromFileIntoDB();\r\n } catch (IOWrapperException iow_e) {\r\n System.err.println(\"Error while writing into DB!\\nConnection failed!\");\r\n JOptionPane.showMessageDialog(null, \"Error while writing into DB!\\nConnection failed!\", \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n Controller.this.dBInError = true;\r\n Controller.this.dbc_in.stillWorks = false;\r\n return;\r\n } catch (IOIteratorException ioi_e) {\r\n System.err.println(\"Error while writing into DB!\\nCould not iterate over results!\");\r\n JOptionPane.showMessageDialog(null,\r\n \"Error while writing into DB!\\nCould not iterate over results!\", \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n Controller.this.dBInError = true;\r\n Controller.this.dbc_in.stillWorks = false;\r\n return;\r\n }\r\n }// run()\r\n });// Thread\r\n\r\n t.start();\r\n Timer timer = new Timer();\r\n timer.schedule(new ObserveProgress(timer, t), 200, 2000);\r\n this.isDBOutStarted = false;\r\n }\r\n }", "void notifyWrite();", "public void run() {\n\t\ttry {\r\n\t\t\tInetAddress localHost = InetAddress.getLocalHost();\r\n\t\t\tString ip_address = localHost.getHostAddress().trim();\r\n\t\t\tSocket socket = new Socket(this.ip_address_server, this.port_server);\r\n\t\t\twhile (socket.isClosed() == true) {\r\n\t\t\t\tsocket = new Socket(this.ip_address_server, this.port_server);\r\n\t\t\t}\r\n\t\t\tString request = \"HELLO \" + ip_address + \" \" + socket \r\n\t\t\t\t\t+ \" \" + this.client_id;\r\n\t\t\tOutputStream output = socket.getOutputStream();\r\n\t\t\tPrintWriter writer = new PrintWriter(output, true);\t\r\n\t\t\t// while <300 send request\r\n\t\t\tint requests = 0;\r\n\t\t\tlong sum=0;\r\n\t\t\twhile (requests < 300) {\r\n\t\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\t\twriter.println(request);\r\n\t\t\t\tDataInputStream reader = new DataInputStream(new BufferedInputStream(socket.getInputStream()));\r\n\t\t\t\treader.readUTF();\r\n\t\t\t\tint length = reader.readInt();\r\n\t\t\t\tif(length>0){\r\n\t\t\t\t\tbyte[] payload = new byte[length];\r\n\t\t\t\t reader.readFully(payload, 0, payload.length); // read the message\r\n\t\t\t\t}\r\n\t\t\t\trequests++;\r\n\t\t\t\tlong endTime = System.currentTimeMillis();\r\n\t\t\t\tlong time = endTime - startTime;\r\n\t\t\t\tsum+=time;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Client \" + this.client_id + \" has finished after \"\r\n\t\t\t\t\t+ requests + \" requests\");\r\n\t\t\tdouble averTime = sum / 300;\r\n\t\t\tString text = \"Average Communication Latency (\" + this.client_id + \"): \" + averTime + \"\\n\";\r\n\t\t\tFiles.write(Paths.get(this.latencyTimes.getName()), text.getBytes(), StandardOpenOption.APPEND);\r\n\t\t\tsocket.close();\t\r\n\t\t} catch (UnknownHostException ex) {\r\n\t\t\tSystem.out.println(\"Server not found: \" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(\"I/O error: \" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void run() {\n\t\twhile (flag) {\n\t\t\ttry {\n\t\t\t\tnewdata = false;\n\t\t\t\tFile folder = new File(storagePath);\n\t\t\t\tif (!folder.exists())\n\t\t\t\t\tfolder.mkdirs();\n\t\t\t\t// System.out.println(\"SERVER IS:\" + server);\n\t\t\t\t// System.out.println(\"PORT IS:\" + port);\n\t\t\t\tconnection = new Socket(server, port);\n\t\t\t\tconnection.setSoTimeout(180000);\n\t\t\t\tois = new ObjectInputStream(connection.getInputStream());\n\t\t\t\toos = new ObjectOutputStream(connection.getOutputStream());\n\t\t\t\tboolean result = namespace();\n\t\t\t\t// System.out.println(\"NAMESPACE RESULT : \" + result);\n\t\t\t\tif (result)\n\t\t\t\t\tresult = update();\n\t\t\t\t// System.out.println(\"UPDATE RESULT : \" + result);\n\t\t\t\tif (result)\n\t\t\t\t\tresult = pull();\n\t\t\t\t// System.out.println(\"PULL RESULT : \" + result);\n\t\t\t\tif (result) {\n\t\t\t\t\tif (!newdata)\n\t\t\t\t\t\tdh.changeLockStatus(\"PENDING\", \"LOCKED\");\n\t\t\t\t\tresult = push();\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"PUSH RESULT : \" + result);\n\t\t\t\tif (result) {\n\t\t\t\t\tend();\n\t\t\t\t}\n\t\t\t\tconnection.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tint x = 0;\n\t\t\t\twhile (x < 5) {\n\t\t\t\t\t// System.out.println(\"THREAD IS SLEEPING NOW!!! \"\n\t\t\t\t\t// + System.currentTimeMillis() + \" \" + x);\n\t\t\t\t\tsleep(60000);\n\t\t\t\t\tx++;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"EXITING THREAD NOW!!!\");\n\t}", "public void write(byte[] out, int offset, int count) {\n // Create temporary object\n MultiplexUsbTransport.WriterThread r;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (mState != STATE_CONNECTED) return;\n r = writerThread;\n //r.write(out,offset,count);\n }\n // Perform the write unsynchronized\n r.write(out,offset,count);\n }", "private void setUpNetworking() throws Exception {\r\n @SuppressWarnings(\"resource\")\r\n Socket socket = new Socket(host, 4242);\r\n System.out.println(\"Connecting to ... \" + socket);\r\n fromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n toServer = new PrintWriter(socket.getOutputStream());\r\n\r\n Thread readerThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n String input;\r\n try {\r\n while ((input = fromServer.readLine()) != null) {\r\n System.out.println(\"From server: \" + input);\r\n processRequest(input);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n });\r\n\r\n \r\n \r\n \r\n Thread writerThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n while (true) {\r\n //String input = consoleInput.nextLine();\r\n //String[] variables = input.split(\",\");\r\n \r\n \r\n //Message request = new Message(variables[0], variables[1], Integer.valueOf(variables[2]));\r\n \r\n GsonBuilder builder = new GsonBuilder();\r\n Gson gson = builder.create();\r\n //sendToServer(gson.toJson(request));\r\n }\r\n }\r\n });\r\n\r\n readerThread.start();\r\n writerThread.start();\r\n }", "@Override\n public void run() {\n HttpsURLConnection connPut = null;\n try {\n URL webServerUrl = new URL(DB_URL);\n\n connPut = (HttpsURLConnection) webServerUrl.openConnection();\n\n connPut.setReadTimeout(10000 /* milliseconds */);\n connPut.setConnectTimeout(15000 /* milliseconds */);\n connPut.setDoOutput(true);\n\n connPut.setRequestMethod(\"POST\");\n connPut.setRequestProperty(\"Content-type\", \"application/json\");\n AuthenticationValidator authenticationValidator = new AuthenticationValidator(context);\n String token = authenticationValidator.getAuthenticationToken();\n connPut.addRequestProperty(\"Authorization\", \"Bearer \" + token);\n connPut.connect();\n OutputStreamWriter out = new OutputStreamWriter(connPut.getOutputStream());\n\n\n\n\n for(RestRecord rr : toBePushed)\n {\n out.write(rr.getJSON().toString());\n out.flush();\n }\n out.close();\n\n if(connPut.getResponseCode() == 200)\n System.out.println(\"Successfully posted new route(s).\");\n else\n System.out.println(connPut.getResponseMessage());\n\n connPut.disconnect();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(connPut!=null)\n connPut.disconnect();\n }\n }", "void write();", "@Override\r\n\tpublic void run() {\n\t\t\ttry {\r\n\t\t\t\tObjectInputStream inputStream = new ObjectInputStream(socket.getInputStream());\r\n\t\t\t\tObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\r\n\t\t\t\t\r\n\t\t\twhile(true) {\r\n\t\t\t\t//get command(request) from client\r\n\t\t\t\tString command = (String) inputStream.readObject();\r\n\t\t\r\n\t\t\t\tString[] commandAndValue = command.split(\" \");\r\n\t\t\t\tif(commandAndValue[0].equals(\"quit\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t outputStream.writeObject(\"quit\");\r\n\t\t\t\t\t inputStream.close();\r\n\t\t\t\t\t outputStream.close();\r\n\t\t\t\t\t socket.close();\r\n\t\t\t\t\t break;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"command recieved - > at client no ->\"+clientNo + \" - > \" + command);\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\tworkingDirectory.concat(\"/\");\r\n\t\t\t\tswitch(commandAndValue[0]) {\r\n\t\t\t\t\r\n\t\t\t\tcase \"get\" : //Server send file to client\r\n boolean terminated = false;\r\n int commandId = processTable.size() + 100 + 1;\r\n\t\t\t\t\tprocessTable.put(commandId, \"Running \" + command); //1 is running\r\n\t\t\t\t\toutputStream.writeObject(String.valueOf(commandId));\r\n \r\n\t\t\t\t\tFile myfile = new File(commandAndValue[1]);\r\n\t\t\t\t\tint length=(int) myfile.length();\r\n\t\t\t\t\tint counter=0;\r\n\t\t\t\t\tbyte[] a = new byte[length];\r\n\t\t\t\t\tint rem=length%1000;\r\n\t\t\t\t\tint limit=length-rem;\r\n\t\t\t\t\tBufferedInputStream br = new BufferedInputStream(new FileInputStream(myfile));\r\n\t\t\t\r\n \t\r\n br.read(a,0,a.length); \r\n \tbr.close();\r\n sleep(1);\r\n \r\n /*********Lock ends*****************************************************/\r\n \r\n\t\t\t\t\toutputStream.writeInt(length);\r\n\t\t\t\t\tif(length>=1000)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twhile(counter<limit)\r\n\t\t\t\t\t\t{\r\n String state = processTable.get(Integer.parseInt( String.valueOf(commandId)));\r\n if(state.contains(\"terminate\"))\r\n terminated = true;\r\n \r\n \r\n\t\t\t\t\t\t\tif(terminated)\r\n outputStream.writeObject(\"terminated\"); \r\n else\r\n outputStream.writeObject(\"Still Runnuing\");\r\n \r\n \r\n outputStream.write(a,counter,1000);\r\n\t\t\t\t\t\t\tcounter+=1000;\r\n\t\t\t\t\t\t\toutputStream.flush();\r\n\t\t\t\t\t\t}\r\n if(terminated){\r\n \t System.out.println(\"Process with coomand Id \" + commandId + \" terminated by user\");\r\n }\r\n else if(rem!=0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toutputStream.write(a,counter,rem);\r\n\t\t\t\t\t\t}\r\n \r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\toutputStream.write(a,counter,length);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\toutputStream.flush();\r\n\t\t\t\t\r\n System.out.println(\"End\");\r\n processTable.put(commandId, \"Finished \" + command); //1 is running\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"put\" ://Server recieves file from client\r\n /*********Write Lock when file is write from server to array********/\r\n while(true){\r\n \r\n List<String> processes = new ArrayList<>();\r\n processes.addAll(Server.processTable.values());\r\n boolean parrallelProcessRunning = false;\r\n for(String process : processes)\r\n {\r\n \r\n \r\n if(process.equals(\"Running \" + command))\r\n parrallelProcessRunning = true;\r\n \r\n }\r\n if(!parrallelProcessRunning){\r\n \r\n System.out.println(\"Now full-filling new request of client : \"+clientNo);\r\n break;\r\n }\r\n \r\n Thread.sleep(10000);\r\n System.out.println(\"put request on same file. Client \"+clientNo+\" need to wait till other request is full-filled\");\r\n /*\r\n 1) Reterive values from hashmap\r\n 2) check if there is matching command with the current command\r\n 3) If there is a matching command, then find it is Running or Finished\r\n 4) If running, then wait else continue\r\n \r\n */\r\n \r\n }\r\n \r\n /*********Write Lock when file is write from server to array********/\r\n \r\n terminated = false;\r\n commandId = processTable.size() + 100 + 1;\r\n processTable.put(commandId, \"Running \" + command); //1 is running\r\n\t\t\t\toutputStream.writeObject(String.valueOf(commandId));\r\n System.out.println(\"lengthbefore\");\r\n int l=inputStream.readInt();\r\n System.out.println(l);\r\n\t\t\t\t\ta = new byte[l];\r\n\t\t\t\t\tcounter=0;\r\n\t\t\t\t\trem=l%1000;\r\n\t\t\t\t\tlimit=l-rem;\r\n \r\n \r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(commandAndValue[1]);\r\n\t\t\t\t\tBufferedOutputStream bos = new BufferedOutputStream(fos);\r\n outputStream.flush();\r\n\t\t\t\t\tif(l>=1000)\r\n\t\t\t\t\t{\r\n System.out.println(\"in first if\");\r\n\t\t\t\t\t\twhile(counter<limit)\r\n\t\t\t\t\t\t{\r\n String state = processTable.get(Integer.parseInt( String.valueOf(commandId)));\r\n if(state.contains(\"terminate\"))\r\n terminated = true;\r\n \r\n \r\n\t\t\t\t\t\t\tif(terminated){\r\n outputStream.writeObject(\"terminated\");\r\n break;\r\n }\r\n \r\n else\r\n outputStream.writeObject(\"Still Runnuing\");\r\n \r\n\t\t\t\t\t\t\tinputStream.read(a,counter,1000);\r\n\t\t\t\t\t\t\tcounter+=1000;\r\n\t\t\t\t\t\t}\r\n if(terminated){\r\n System.out.println(\"Process with command Id \" + commandId + \" terminated by user! Deleting the garbage file creadted during the process..\");\r\n \t File file = new File(commandAndValue[1]);\r\n file.delete();\r\n \r\n }\r\n\t\t\t\t\t\telse if(rem!=0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"in if\");\r\n\t\t\t\t\t\t\t//counter-=1000;\r\n\t\t\t\t\t\t\tSystem.out.println(\"The value of counter in IF is \"+counter);\r\n\t\t\t\t\t\t\tinputStream.read(a,counter,rem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n System.out.println(\"in else if\");\r\n\t\t\t\t\t\tinputStream.read(a,counter,l);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbos.write(a,0,a.length);\r\n\t\t\t\t\tbos.close();\r\n\t\t\t\t\tfos.close();\r\n \r\n \r\n \r\n /*********Write Lock Ends********/\r\n System.out.println(\"End\");\r\n processTable.put(commandId, \"Finished \" + command); //1 is running\r\n System.out.println(\"Now State of the command \"+processTable.get(commandId));\r\n\t\t\t\t\tbreak;\r\n \r\n \r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\tcase \"delete\":\r\n\t\t\t\t\t File file = new File(commandAndValue[1]);\r\n\t\t\t\t if(file.delete()){\r\n\t\t\t\t \toutputStream.writeObject(commandAndValue[1]+ \" File deleted\");\r\n\t\t\t\t }else \r\n\t\t\t\t \toutputStream.writeObject(\"File\" + commandAndValue[1] + \"doesn't exists in project root directory\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"ls\":\r\n\t\t\t\t\t\r\n\t\t\t\t\tFile folder = new File(workingDirectory);\r\n\t\t\t\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\t\t\tString list = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < listOfFiles.length; i++) {\r\n\t\t\t\t\t \r\n\t\t\t\t\t list = list + listOfFiles[i].getName() + \"\\n\";\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\toutputStream.writeObject(list);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase \"cd\":\r\n\t\t\t\t\t\tif(commandAndValue[1].equals(\"..\"))\r\n\t\t\t\t\t\t{\r\n System.out.println(\"Inside cd..\");\r\n\t\t\t\t\t\t\tint index = workingDirectory.lastIndexOf('/');\r\n\t\t\t\t\t\t workingDirectory = workingDirectory.substring(0,index);\r\n\t\t\t\t\t\t outputStream.writeObject(\"changing working directory\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tworkingDirectory = workingDirectory + \"/\" + commandAndValue[1];\r\n\t\t\t\t\t\t\toutputStream.writeObject(\"changing working directory\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"mkdir\":\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean fileCreated = new File(workingDirectory + \"/\" + commandAndValue[1]).mkdirs();\r\n\t\t\t\t\tif(fileCreated)\r\n\t\t\t\t\t\toutputStream.writeObject(\"Directory \"+ commandAndValue[1] +\" created successfully\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\toutputStream.writeObject(\"Opps! Directory cannot be created. May be directory name already exists\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase \"quit\":\r\n\t\t\t\t\t break;\r\n\t\t\t\t\t \r\n\t\t\t\tcase \"pwd\":\r\n\t\t\t\t\toutputStream.writeObject(workingDirectory);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\toutputStream.writeObject(\"-bash: \"+ command +\" : command not found\");\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t \r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Override\n public void run() {\n syncToServer();\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\tInputStream in = mySocket.getInputStream();\n DataInputStream clientData = new DataInputStream(in);\n\n String nameFile = clientData.readUTF();\n long size = clientData.readLong();\n \n OutputStream output = new FileOutputStream(nameFile);\n \n int bytesRead;\n byte[] buffer = new byte[1024];\n while (size > 0 && (bytesRead = clientData.read(buffer, 0, (int) Math.min(buffer.length, size))) != -1) {\n output.write(buffer, 0, bytesRead);\n size -= bytesRead;\n }\t\n\t\t\t}catch(IOException e){\n\t\t\t\t\n\t\t\t}\t\t\t\t\t\n\t\t}", "public void write(byte[] out) {\n if (mSendProcessThread != null)\n mSendProcessThread.write(out);\n else\n Toast.makeText(this, \"send process thread null\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void run() {\n try {\n BufferedReader R = new BufferedReader(new InputStreamReader(S.getInputStream()));\n PrintWriter W = new PrintWriter(S.getOutputStream(), true);\n if(n==1)\n {\n W.write(1);\n n++;\n }else {\n W.write(2);\n }\n }\n catch (IOException ex) {\n Logger.getLogger(Server_1.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void write_file(String filename)\n {\n out.println(\"WRITE\");\n out.println(filename);\n int timestamp = 0;\n synchronized(cnode.r_list)\n {\n timestamp = cnode.r_list.get(filename).cword.our_sn;\n }\n // content = client <ID>, <ts>\n out.println(\"Client \"+my_c_id+\", \"+timestamp);\n // check if write operation finished on server and then exit method\n try\n {\n String em = null;\n em = in.readLine();\n Matcher m_eom = eom.matcher(em);\n if (m_eom.find())\n {\n System.out.println(\"WRITE operation finished on server : \"+remote_c_id);\n }\n else\n {\n System.out.println(\"WRITE operation ERROR on server : \"+remote_c_id);\n }\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }", "void waitToWrite();", "@WorkerThread\n public abstract void saveToDb(NetworkModel fetchedModel);", "public WriteTaskS7()\n {\n comS7 = new S7Client();\n plcS7 = new AutomateS7();\n writeThread = new Thread(plcS7);\n }", "@Override\n public void run()\n {\n try\n {\n InputStream fis = new FileInputStream(transferFile);\n OutputStream sos = socket.getOutputStream();\n\n logWriter.println(\"Sending the file...\");\n\n byte [] buffer = new byte[1024];\n int readBytes;\n while((readBytes = fis.read(buffer)) > -1) {\n sos.write(buffer, 0, readBytes);\n sos.flush();\n }\n\n fis.close();\n sos.close();\n socket.close();\n\n logWriter.println(\"File: \" + transferFile.getName());\n logWriter.println(transferFile.length() + \" bytes sent.\");\n logWriter.println(\"Data Connection Closed.\");\n\n } catch (IOException e)\n {\n e.printStackTrace(logWriter);\n }\n }", "public static void update() {\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\n\t\t\t\ttry {\n\t\t\t\t\tserverSocket2 = new ServerSocket(50000);\n\t\t\t\t\twhile (yes) {\n\t\t\t\t\t\tSocket connection = serverSocket2.accept();\n\n\t\t\t\t\t\tString out = \"\";\n\t\t\t\t\t\tDataOutputStream output = new DataOutputStream(\n\t\t\t\t\t\t\t\tconnection.getOutputStream());\n\t\t\t\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\t\t\t\tout += j + \"::\" + b[j].getText() + \" /:\"; // (index,username)\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.writeBytes(out + \"\\n\");\n\t\t\t\t\t\tconnection.close();\n\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "public void run() {\n\t\tOutputStream os = null;\r\n\t\t//ObjectOutputStream oos = null;\r\n\t\tInputStream is = null;\r\n\t\t//ObjectInputStream ois = null;\r\n\t\t//BufferedReader in = null;\r\n\t\t//BufferedWriter out = null;\r\n\r\n\t\ttry {\r\n\t\t\tserversocket=new ServerSocket(5001);\r\n\t\t\t//in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t//out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));\r\n\t\t\t//os = socket.getOutputStream();\r\n\t\t\t//oos = new ObjectOutputStream(os);\r\n\t\t\t//is = socket.getInputStream();\r\n\t\t\t//ois = new ObjectInputStream(is);\r\n\r\n\t\t\tArrayList<Menu> m = null;\r\n\t\t\tArrayList<Reserve> re = null;\r\n\t\t\tArrayList<Recipe> r = null;\r\n\t\t\tArrayList<Schedule> s = null;\r\n\t\t\tArrayList<MenuList> ml = null;\r\n\r\n\t\t\twhile (true) {\r\n\t\t\t\tsocket=serversocket.accept();\r\n\t\t\t\tos = socket.getOutputStream();\r\n\t\t\t\toos = new ObjectOutputStream(os);\r\n\t\t\t\tis = socket.getInputStream();\r\n\t\t\t\tois = new ObjectInputStream(is);\r\n\t\t\t\tString id = (String) ois.readObject(); // 숫자 받아옴\r\n\t\t\t\tSystem.out.println(id);\r\n\t\t\t\tDatabase b = new Database();\r\n\t\t\t\tswitch (id) {\r\n\t\t\t\tcase \"R\":\r\n\t\t\t\t\tre = b.getReserve();\r\n\t\t\t\t\t\r\n\t\t\t\t\toos.writeObject(re);\r\n\t\t\t\t\toos.flush();\t\t\t\t\t\r\n\r\n\t\t\t\t\tml = b.getMenuList();\r\n\t\t\t\t\toos.writeObject(ml);\r\n\t\t\t\t\toos.flush();\r\n\r\n\t\t\t\t\tr = b.getRecipe();\r\n\t\t\t\t\toos.writeObject(r);\r\n\t\t\t\t\toos.flush();\r\n\r\n\t\t\t\t\tid = (String) ois.readObject();\r\n\t\t\t\t\tif (id.equals(\"insert\")) {\r\n\t\t\t\t\t\t// 레시피, 식단, 식재료 받아옴\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tid = (String) ois.readObject();\r\n\t\t\t\t\t\t\tif(id.equals(\"ml\")) {\r\n\t\t\t\t\t\t\t\tml = (ArrayList<MenuList>) ois.readObject();\r\n\t\t\t\t\t\t\t\tb.addMenuList(ml);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(id.equals(\"rs\")) {\r\n\t\t\t\t\t\t\t\tre = (ArrayList<Reserve>) ois.readObject();\r\n\t\t\t\t\t\t\t\tb.addReserve(re);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(id.equals(\"r\")) {\r\n\t\t\t\t\t\t\t\tr = (ArrayList<Recipe>) ois.readObject();\r\n\t\t\t\t\t\t\t\tb.addRecipe(r);\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} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else if (id.equals(\"modify\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tr = (ArrayList<Recipe>) ois.readObject();\r\n\t\t\t\t\t\t\tb.updateRecipe(r);\r\n\t\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 레시피 받아옴\r\n\t\t\t\t\t} else if (id.equals(\"delete\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tr = (ArrayList<Recipe>) ois.readObject();\r\n\t\t\t\t\t\t\tb.removeRecipe(r);\r\n\t\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tcase \"S\":\r\n\t\t\t\t\ts = b.getSchedule();\r\n\t\t\t\t\toos.writeObject(s);\r\n\t\t\t\t\toos.flush();\r\n\r\n\t\t\t\t\tid = (String) ois.readObject();\r\n\t\t\t\t\tif (id.equals(\"insert\")) { ///////////////////////////////////////////////\r\n\t\t\t\t\t\t// 레시피, 식단, 식재료 받아옴\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ts = (ArrayList<Schedule>) ois.readObject();\r\n\t\t\t\t\t\t\tb.addSchedule(s);\r\n\t\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else if (id.equals(\"modify\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ts = (ArrayList<Schedule>) ois.readObject();\r\n\t\t\t\t\t\t\tb.updateSchedule(s);\r\n\t\t\t\t\t\t\t// b.up\r\n\t\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 레시피 받아옴\r\n\t\t\t\t\t} else if (id.equals(\"delete\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ts = (ArrayList<Schedule>) ois.readObject();\r\n\t\t\t\t\t\t\tb.removeSchedule(s);\r\n\t\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tcase \"l\":\r\n\t\t\t\t\tm = b.getMenu();\r\n\t\t\t\t\toos.writeObject(m);\r\n\t\t\t\t\toos.flush();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tm = (ArrayList<Menu>) ois.readObject();\r\n\t\t\t\t\t\tb.addMenu(m);\r\n\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 메뉴 받아옴\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\toos.close(); ois.close(); os.close(); is.close();\r\n\t\t\t\tsocket.close();\r\n\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tif (socket != null)\r\n\t\t\t\t\tsocket.close(); // 통신용 소켓 닫기\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"클라이언트와 채팅 중 오류가 발생했습니다.\");\r\n\t\t\t}*/\r\n\t\t\ttry { serversocket.close(); }\r\n\t\t\tcatch (IOException e) { System.err.println(e); }\r\n\t\t}\r\n\t}", "public void run() {\n\t\tbyte[] out;\n\t\tshort[] in = new short[0];\n\t\tint read;\n\t\tint consumed;\n\t\t\n\t\ttry {\n\t\t\tconnect();\n\t\t\tin = new short[sock.getReceiveBufferSize()];\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: Fire event to the model, so we can display something that lets the user know what happened.\n\t\t\tex.printStackTrace();\n\t\t\tdisconnect();\n\t\t}\n\t\t\n \t\twhile (sock != null && !sock.isClosed()) {\n\t\t\ttry {\n\t\t\t\tconsumed = 0;\n\t\t\t\t\n\t\t\t\t// Read up to in.length before we're invalid...\n\t\t\t\tinStream.mark(in.length);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tread = inStream.read(in);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tread = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Truncate the read buffer, and process it.\n\t\t\t\tif (read > 0) {\n\t\t\t\t\tshort[] truncIn = new short[read];\n\t\t\t\t\tSystem.arraycopy(in, 0, truncIn, 0, read);\n\t\t\t\t\t\n\t\t\t\t\tconsumed = consumeIncoming(truncIn);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// reset the mark, and then consume the bytes we've \n\t\t\t\t// processed.\n\t\t\t\tinStream.reset();\n\t\t\t\tif (consumed > 0) {\n\t\t\t\t\tinStream.skip(consumed);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Do I have data to write?\n\t\t\t\tout = outgoingBytes();\n\t\t\t\tif (out.length > 0) {\n\t\t\t\t\tsock.getOutputStream().write(out);\n\t\t\t\t\tsock.getOutputStream().flush();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tSystem.err.println(ex.toString());\n\t\t\t}\n\t\t\t// Play nice with thread schedulers.\n\t\t\tThread.yield();\n\t\t}\n\t}", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tcancelsent=0;\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"About to get out\",\"before sending kickmeout\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(dos!=null)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(ispeak==1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ispeak=0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(\"kick_me_out_speaking\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"Kick me\",\"KICKED SPEAKING\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(\"kick_me_out_waiting\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"Kick me\",\"KICKED WAITING\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcancelsent=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\trecSocket.close();\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"closing\", \"socket closed\");\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\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\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\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\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}", "private void run() throws IOException, InterruptedException {\n \t\t// InetSocketAddress endpoint = SocketAddresses.fromIp(\"10.95.162.221\",\r\n \t\t// 1234);\r\n \t\tInetSocketAddress endpoint = SocketAddresses.fromIp(\"127.0.0.1\", 1234);\r\n \r\n \t\tbyte[] buf = new byte[8 * 1024];\r\n \t\tnew Random().nextBytes(buf);\r\n \t\tByteBuffer seedBuffer = ByteBuffer.wrap(buf);\r\n \t\tNetContext context = new SimpleNetContext();\r\n \t\tEchoSession session = new EchoSession();\r\n \t\tconnection = TcpNetFactory.INSTANCE.openClient(context, endpoint, session);\r\n \r\n \t\tRuntime.getRuntime().addShutdownHook(new Thread() {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\ttry {\r\n \t\t\t\t\tconnection.close();\r\n \t\t\t\t} catch (IOException e) {\r\n \t\t\t\t\t// TODO Auto-generated catch block\r\n \t\t\t\t\te.printStackTrace();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tfinal int loopTimeSec = 10;\r\n \t\tlong lastT = System.currentTimeMillis();\r\n \t\tconnection.sendBlocking(seedBuffer);\r\n \t\tlong seeded = seedBuffer.capacity();\r\n \t\tint loop = 1;\r\n \t\tlong lastRx = 0, lastTx = 0;\r\n \t\tfinal long start = System.currentTimeMillis();\r\n \r\n \t\twhile (connection.isConnected()) {\r\n \t\t\tlong sleepUntil = start + (loop * loopTimeSec * 1000L);\r\n \t\t\tThreadUtil.sleepUntilMs(sleepUntil);\r\n \r\n \t\t\tlong rx = session.getRx();\r\n \t\t\tlong tx = session.getTx();\r\n \t\t\tlong rxDiff = rx - lastRx;\r\n \t\t\tlong txDiff = tx - lastTx;\r\n \t\t\tlong diff = rxDiff + txDiff;\r\n \t\t\tlong now = System.currentTimeMillis();\r\n \t\t\tlong tDiff = now - lastT;\r\n\t\t\tdouble mbit = (diff * 8) / 10e6 / (tDiff / 1000f);\r\n\t\t\tdouble rxMb = (rxDiff / (2e20));\r\n\t\t\tdouble txMb = (txDiff / (2e20));\r\n \t\t\tSystem.out.printf(\"seed=%d, last %dsec rx=%.3fM, tx=%.3fM bytes => %.5f mbit/sec%n\", //\r\n \t\t\t\t\tseeded, loopTimeSec, rxMb, txMb, mbit);\r\n \t\t\tif (seeded < 512 * 1024) {\r\n \t\t\t\tSystem.out.println(\"seeding an additional \" + seedBuffer.capacity() + \" bytes into the echo chain\");\r\n \t\t\t\tseedBuffer.rewind();\r\n \t\t\t\tconnection.sendBlocking(seedBuffer);\r\n \t\t\t\tseeded += seedBuffer.capacity();\r\n \t\t\t}\r\n \t\t\t// if (rxDiff == 0 || txDiff == 0) {\r\n \t\t\t// session.forceWrite();\r\n \t\t\t// }\r\n \t\t\tloop++;\r\n \t\t\tlastRx = rx;\r\n \t\t\tlastTx = tx;\r\n \t\t\tlastT = now;\r\n \t\t}\r\n \t\t// TODO: save shutdown of clients\r\n \t\tSystem.exit(0);\r\n \t}", "private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }", "public void run(){\r\n TaggedData d;\r\n try{\r\n dos = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream()));\r\n while(true){\r\n synchronized(sendLock){\r\n if(queue.size() <= 0) sendLock.wait();\r\n try{ d = queue.removeLast(); }\r\n catch(NoSuchElementException e){ d = null; }\r\n }\r\n if(quit){\r\n cleanup();\r\n break;\r\n }\r\n if(d != null) send(d);\r\n }\r\n }\r\n catch(InterruptedException ie){ ie.printStackTrace(); cleanup(false); } // for now\r\n catch(IOException ioe){ ioe.printStackTrace(); cleanup(false); }\r\n finally{ cleanup(false); }\r\n \r\n if(dos != null){\r\n try{ dos.close(); } catch(IOException ioe){ ioe.printStackTrace(); }\r\n dos = null;\r\n }\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tint retry = 0;\n\n\t\t\tfor (retry = 0; retry < 5; retry++) {\n\t\t\t\tDEBUG(\"retry:\" + retry);\n\t\t\t\tif (tcpConnect()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (retry == 10) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tDEBUG(\"UdpToTcp srcPort:\" + iSrcPort);\n\t\t\t\tudpSocket = new DatagramSocket(iSrcPort, InetAddress.getByName(\"127.0.0.1\"));\n\n\t\t\t} catch (SocketException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tDEBUG(\"UdpToTcp udpSocket:\" + udpSocket);\n\t\t\tif (udpSocket == null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tbyte[] recvBuf = new byte[1500];\n\t\t\tDatagramPacket packet = new DatagramPacket(recvBuf, recvBuf.length);\n\t\t\tDEBUG(\"start udp recv to tcp send...\");\n\t\t\twhile (!interrupted()) {\n\t\t\t\ttry {\n\t\t\t\t\t// --接收到的数据发送出去\n\t\t\t\t\tudpSocket.receive(packet);\n\n\t\t\t\t\tif (packet.getLength() > 0 && outputStream != null) {\n\t\t\t\t\t\t// DEBUG(iSrcPort+\" send \"+iDstPort+\"\n\t\t\t\t\t\t// len:\"+packet.getLength());\n\t\t\t\t\t\toutputStream.write(packet.getData(), 0, packet.getLength());\n\t\t\t\t\t}\n\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}\n\n\t\t}", "private void sendWriteBegin() {\n\t\ttry {\n\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t} catch (IOException e) {\n\t\t\t// Print a stack trace, close all sockets and exit.\n\t\t\te.printStackTrace();\n\t\t\tsendReceiveSocket.close();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\ttry\n\t\t{\n\t\t\tPath path = Paths.get(\"C:\\\\Users\\\\SKANDA GURUANAND\\\\workspace\\\\Accel\\\\logdata.txt\");\n\t\t\tFile file = new File(path.toString());\n\t\t\tfile.delete();\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\t//Server is running always. This is done using this while(true) loop\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(csocket.getInputStream()));\n\t\t\tString str;\n\n\t\t\twhile((str = rd.readLine())!=null) \n\t\t\t{\t\n\t\t\t//\tSystem.out.println(str);\n\t\t\t\tfw.write(str);\n\t\t\t\tfw.flush();\n\t\t\t\tfw.write(\"\\n\");\n\t\t\t}\n\t\t\trd.close();\n\t\t\tfw.close();\n\t\t\tcsocket.close();\n\t\t//\tdoProcessing();\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"开始上传\");\n\t\t\t\t\tsocket=new Socket(ip,port);\n\t\t\t\t\tInputStream in=socket.getInputStream();\n\t\t\t\t\tOutputStream out=socket.getOutputStream();\n\t\t\t\t\tBufferedInputStream input=new BufferedInputStream(in);\n\t\t\t\t\twhile(true)\n\t\t\t\t\t{\n\t\t\t\t\t\tFileInputStream fis=new FileInputStream(file);\n\t\t\t\t\t\tDataInputStream dis=new DataInputStream(new BufferedInputStream(fis));\n\t\t\t\t\t\tbyte[] buf=new byte[8192];\n\t\t\t\t\t\tDataOutputStream ps=new DataOutputStream(out);\n\t\t\t\t\t\twhile(true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\tint read=0;\n\t\t\t\t\t\t\tif(dis!=null){\n\t\t\t\t\t\t\t\tread=fis.read(buf);\n\t\t\t\t\t\t\t\tdownLoadFileSize+=read;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(read==-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttimer.cancel();\n\t\t\t\t\t\t\t\tMessage msg=new Message();\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putInt(\"percent\",100 );\n\t\t\t\t\t\t\t\tmsg.setData(bundle);\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tps.write(buf,0,read);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tps.flush();\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t\tdis.close();\n\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\tSystem.out.println(\"上传完成\");\n\t\t\t\t\t\t \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void write(byte[] buffer) { //이건 보내주는거\n try {\n mmOutStream.write(buffer);\n\n // Disabled: Share the sent message back to the main thread\n mHandler.obtainMessage(MESSAGE_WRITE, -1, -1, buffer).sendToTarget(); //MH주석풀엇음 //what arg1, arg2 obj\n\n } catch (IOException e) {\n Log.e(TAG, \"Exception during write\");\n }\n }", "@Override\n public void run() {\n Send enoughPeers = new Send(Send.ENOUGH_NODES, replicationDegree);\n Send ret = enoughPeers.writeAndRead(enoughPeers, p, Peer.PROTOCOL, p.centralizedChordManagerAddress,\n p.centralizedChordManagerPort);\n // CHECK IF THERE ARE ENOUGH NODES\n if (ret.enough) {\n MessageDigest md3 = null;\n try {\n md3 = MessageDigest.getInstance(\"SHA1\");\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n md3.reset();\n md3.update(path.getBytes());\n byte[] hashBytes3 = md3.digest();\n BigInteger hashNum3 = new BigInteger(1, hashBytes3);\n int key3 = Math.abs(hashNum3.intValue()) % Peer.numDHT;\n System.out.println(\"Generated key \" + key3 + \" for file: \" + path);\n FileModel file = new FileModel(path, replicationDegree, p.me);\n file.loadFileContent();\n p.initiatorPeerFiles.add(file);\n if (file.fileData.length != 0) {\n Peer destination = null;\n try {\n destination = ChordManager.find_successor(key3);\n // if dest is myself then i increase the retries by 1 because I'm sending the\n // file to myself first\n if (destination.getSslEnginePort() == p.getSslEnginePort()) {\n file.retries += 1;\n }\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n SendFileThread thread = new SendFileThread(p.initiatorPeerFiles.get(p.initiatorPeerFiles.indexOf(file)),\n p, destination);\n thread.start();\n\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n if (!file.replicationDegreeAchieved())\n System.out.println(\"File \" + path + \" was backed up with lower repDegree: \"\n + file.perceivedReplicationDegree + \" of: \" + file.perceivedReplicationDegree);\n else {\n System.out.println(\"File \" + path + \" was backed up with repDegree wanted\");\n }\n } else {\n System.err.println(\"File \" + path + \" was not backed up\");\n }\n } else {\n System.err.println(\"File \" + path + \" was not backed up replication degree of : \" + replicationDegree\n + \" could not be achived due to less number of peers available\");\n }\n }", "public synchronized boolean write_to_sock(StringBuilder msg){\n\t\t/**\n\t\t * TRY SEND TO SERVER\n\t\t */\n\t\ttry {\n\t\t\tout.print(msg.toString());\n\t\t\tmysock.getOutputStream().flush();\n\t\t\tout.flush();\n\t\t\tSystem.out.println(TAG +\": Tuple injected.\");\n\t\t} catch (IOException ioException) {\n\t\t\tSystem.out.println(TAG + \": I could not connect\");\n\t\t\tsrvDisconnect();\n\t\t\treturn false;\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(TAG + \": Null Pointer Exception\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic void run() {\n\t\tString request;\n\t\ttry {\n\t\t\tSocketBuilder socketBuilder = new SocketBuilder(this.IP);\n\n\t\t\tSocket clientSocketStrings = socketBuilder.createStringSocket();\n\t\t\tSocket clientSocketBytes = socketBuilder.createByteSocket();\n\n\t\t\tDataOutputStream outToServer = new DataOutputStream(clientSocketStrings.getOutputStream());\n\n\t\t\tDataInputStream bytesStream = new DataInputStream(clientSocketBytes.getInputStream());\n\n\t\t\tBufferedReader inFromServer = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(clientSocketStrings.getInputStream(), StandardCharsets.UTF_8));\n\t\t\t\n\t\t\tMessage requestMessage = new Message();\n\t\t\trequestMessage.createDownloadMessage(path);\n\n\t\t\trequest = JsonParser.messageToJson(requestMessage);\n\n\t\t\toutToServer.write(request.getBytes(\"UTF-8\"));\n\t\t\toutToServer.writeByte('\\n');\n\n\t\t\tMessage responseMessage = JsonParser.jsonToMessage(inFromServer.readLine());\n\n\t\t\t// check if operation is possible\n\t\t\tif (responseMessage.isERRORMessage()) {\n\t\t\t\t/*\n\t\t\t\t * Handle Error Here\n\t\t\t\t */\n\t\t\t} else {\n\n\t\t\t\tFileTransfer fileTransfer = new FileTransfer();\n\n\t\t\t\tlong size = Long.parseLong(inFromServer.readLine());\n\n\t\t\t\tEstimationViewManagementThread manage = new EstimationViewManagementThread(size, \n\t\t\t\t\t\tfileTransfer, clientSocketStrings, clientSocketBytes);\n\t\t\t\tmanage.start();\n\t\t\t\tfileTransfer.receiveFiles(bytesStream, inFromServer, locationToSave);\n\t\t\t}\n\t\t\t\n\t\t\toutToServer.close();\n\t\t\tbytesStream.close();\n\t\t\tinFromServer.close();\n\t\t\tclientSocketBytes.close();\n\t\t\tclientSocketStrings.close();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tif(socket!=null&&!socket.isClosed()){\r\n\t\t\t\t\t\tbOutputStream.write(sbyte, 0, sbyte.length);\r\n\t\t\t\t\t\tbOutputStream.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}", "@Override\r\n public void run() {\r\n\r\n // Thread: writes files\r\n if (Controller.this.isFileWriteInUse) {\r\n // System.out.println(\"isFileWriteInUse\");\r\n\r\n if (Controller.this.cw.getWritesOnlyFiles()) {// as long as\r\n // thread is\r\n // running\r\n int i = Controller.this.cw.writeFileProgress / 2;\r\n Controller.this.writeIntoFiles.setValue(i);\r\n Controller.this.writeIntoFiles.repaint();\r\n } else {\r\n this.tImer.cancel();\r\n System.out.println(\"*\\tWriting into files finished.\");\r\n Controller.this.isFileWriteInUse = false;\r\n Controller.this.writeIntoFiles.setVisible(false);\r\n if (!Controller.this.isDBWriteInUse)\r\n Controller.this.setStatus(true);\r\n }\r\n } // fi isFileWriteInUse\r\n else\r\n // Thread: writes from file in DB\r\n if (Controller.this.isDBWriteInUse) {// as long write process in DB\r\n // runs\r\n // System.out.println(\"isDBWriteInUse\");\r\n\r\n // critical, because dbc_in is not available as object in the\r\n // beginning\r\n boolean dbc_inStillWork;\r\n try {\r\n dbc_inStillWork = Controller.this.dbc_in.stillWorks;\r\n } catch (Exception e) {\r\n dbc_inStillWork = false;\r\n }\r\n\r\n if (Controller.this.cw.getWritesOnlyFiles() || dbc_inStillWork) {// as\r\n // long\r\n // as\r\n // the\r\n // thread\r\n // is\r\n // running\r\n int i;\r\n if (dbc_inStillWork) {\r\n i = (Controller.this.cw.writeFileProgress / 2)\r\n + ((Controller.this.dbc_in.singleProgress * 50) / Controller.this.dbc_in.maxProgerss);\r\n } else {\r\n i = Controller.this.cw.writeFileProgress / 2;\r\n }\r\n Controller.this.writeIntoDBProgress.setValue(i);\r\n Controller.this.writeIntoDBProgress.repaint();\r\n } else {\r\n this.tImer.cancel();\r\n System.out.println(\"*\\tWriting into DB finished.\");\r\n Controller.this.isDBWriteInUse = false;\r\n Controller.this.writeIntoDBProgress.setVisible(false);\r\n if (!Controller.this.isFileWriteInUse)\r\n Controller.this.setStatus(true);\r\n\r\n if (Controller.this.dBInError) {\r\n this.tImer.cancel();\r\n System.err.print(\"\\t FAILED!\\n\");\r\n Controller.this.setStatus(true);\r\n Controller.this.dBInError = false;\r\n\r\n // dBOutError=false;\r\n }\r\n\r\n } // esle\r\n } else\r\n // Thread: lloads from DB and writes in nodelist.tmp and\r\n // edgelist.tmp\r\n if (Controller.this.isDBReadInUse) {// as lng as read process is\r\n // active\r\n // System.out.println(\"isDBReadInUse\");\r\n\r\n Controller.this.loadFromDBProgress.setVisible(true);\r\n if (Controller.this.dbc_out.stillWorks) {\r\n // System.out.println(\"Loading from DB active ...\");\r\n int i = (Controller.this.dbc_out.singleProgress * 100) / Controller.this.dbc_out.maxProgerss;\r\n if (i < 1)\r\n i = 1;\r\n Controller.this.loadFromDBProgress.setValue(i);\r\n Controller.this.loadFromDBProgress.repaint();\r\n } else {\r\n // tImer.cancel();\r\n System.out.println(\"*\\tLoading from DB finished.\");\r\n Controller.this.isDBReadInUse = false;\r\n Controller.this.loadFromDBProgress.setVisible(false);\r\n\r\n if (Controller.this.dBOutError) {\r\n this.tImer.cancel();\r\n System.err.print(\"\\t FAILED!\\n\");\r\n\r\n Controller.this.setStatus(true);\r\n\r\n Controller.this.isGraphStarted = false;\r\n Controller.this.isDiagStarted = false;\r\n Controller.this.isFileWriteInUse = false;\r\n Controller.this.dBOutError = false;\r\n\r\n // dBInError=true;\r\n\r\n }\r\n }\r\n }\r\n // Thread: runs Chinese Whispers\r\n else if (!Controller.this.dBOutError && !Controller.this.dBInError) {\r\n // System.out.println(\"!dBOutError&&!dBInError\");\r\n\r\n Controller.this.calculateCWProgress.setVisible(true);\r\n Controller.this.CalculateCWLabel.setVisible(true);\r\n\r\n if (Controller.this.cw.isActive) {\r\n if (Controller.this.cw.getIteration() > 0)\r\n Controller.this.calculateCWProgress.setValue(\r\n (Controller.this.cw.getCurrentIteration() * 100) / Controller.this.cw.getIteration());\r\n Controller.this.calculateCWProgress.repaint();\r\n } else { // cw not active\r\n this.tImer.cancel();\r\n System.out.println(\"*\\tCalculating algorithm finished.\");\r\n Controller.this.calculateCWProgress.setVisible(false);\r\n Controller.this.CalculateCWLabel.setVisible(false);\r\n\r\n if (Controller.this.isGraphStarted) {\r\n // System.out.println(\"isGraphStarted\");\r\n Controller.this.setStatus(true);\r\n Controller.this.isAlgStartedForGraph = true;\r\n Controller.this.isGraphStarted = false;\r\n try {\r\n Thread t1 = new Thread(new MyGraphGUI(Controller.this.display_sub_current,\r\n (ChineseWhispers) Controller.this.cw.clone(), Controller.this.display_edges_temp,\r\n Controller.this.scale_temp, 30, Controller.this.display_degree_temp));\r\n t1.start();\r\n } catch (CloneNotSupportedException e) {\r\n e.printStackTrace();\r\n }\r\n } // fi isGraphStarted\r\n\r\n if (Controller.this.isDiagStarted) {\r\n // System.out.println(\"isDiagStarted\");\r\n Controller.this.setStatus(true);\r\n Controller.this.isAlgStartedForGraph = false;\r\n Controller.this.isDiagStarted = false;\r\n try {\r\n Thread t2 = new Thread(new Diagram((ChineseWhispers) Controller.this.cw.clone()));\r\n t2.start();\r\n } catch (CloneNotSupportedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n } // fi isDiagStarted\r\n if (Controller.this.isFileOutStarted) {\r\n // System.out.println(\"isFileOutStarted\");\r\n Thread t = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Controller.this.isFileWriteInUse = true;\r\n Controller.this.writeIntoFiles.setVisible(true);\r\n Controller.this.isAlgStartedForGraph = false;\r\n Controller.this.cw.setWritesOnlyFiles(true);\r\n Controller.this.cw.writeFile(true, true, false);\r\n // isFileWriteInUse=false;\r\n }// run()\r\n });// Thread\r\n\r\n t.start();\r\n Timer timer = new Timer();\r\n timer.schedule(new ObserveProgress(timer, t), 200, 2000);\r\n Controller.this.isFileOutStarted = false;\r\n } // fi isFileOutStarted\r\n if (Controller.this.isDBOutStarted) {\r\n // System.out.println(\"isDBOutStarted\");\r\n Thread t = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n Controller.this.isDBWriteInUse = true;\r\n Controller.this.writeIntoDBProgress.setVisible(true);\r\n Controller.this.isAlgStartedForGraph = false;\r\n Controller.this.cw.setWritesOnlyFiles(true);\r\n Controller.this.cw.writeFile(false, false, false);\r\n String pw = \"\";\r\n for (int i = 0; i < Controller.this.rpasswdfield.getPassword().length; i++)\r\n pw += Controller.this.rpasswdfield.getPassword()[i];\r\n\r\n Controller.this.dbc_in = new DBConnect(Controller.this.rhostfield.getText(),\r\n Controller.this.rdatabasefield.getText(), Controller.this.ruserfield.getText(),\r\n pw, Integer.parseInt(Controller.this.rportfield.getText()),\r\n Controller.this.otablenamefield.getText(), COLUMN_NAMES_FOR_DB_OUT);\r\n\r\n // File: Controller.CLASSES_TMP_FILENAME\r\n // Columns: Controller.COLUMN_NAMES_FOR_DB_OUT\r\n try {\r\n Controller.this.dbc_in.stillWorks = true;\r\n Controller.this.dbc_in.maxProgerss = Controller.this.cw.countNodesWithClasses;\r\n Controller.this.dbc_in.writeFromFileIntoDB();\r\n } catch (IOWrapperException iow_e) {\r\n System.err.println(\"Error while writing into DB!\\nConnection failed!\");\r\n JOptionPane.showMessageDialog(null,\r\n \"Error while writing into DB!\\nConnection failed!\", \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n Controller.this.dBInError = true;\r\n Controller.this.dbc_in.stillWorks = false;\r\n return;\r\n } // end catch WrapperException\r\n catch (IOIteratorException ioi_e) {\r\n System.err.println(\"Error while writing into DB!\\nCould not iterate over results!\");\r\n JOptionPane.showMessageDialog(null,\r\n \"Error while writing into DB!\\nCould not iterate over results!\", \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n Controller.this.dBInError = true;\r\n Controller.this.dbc_in.stillWorks = false;\r\n return;\r\n }\r\n Controller.this.isDBOutStarted = false;\r\n }// run()\r\n });// Thread\r\n\r\n t.start();\r\n Timer timer = new Timer();\r\n timer.schedule(new ObserveProgress(timer, t), 200, 2000);\r\n Controller.this.isDBOutStarted = false;\r\n } // end isDBOutStarted\r\n\r\n } // esle CW not active\r\n\r\n } // fi (!dBOutError && !dBInError)\r\n\r\n }", "public synchronized void run() {\n try {\n String data = in.readUTF();\n String response = FileRequestService.handleRequest(data, sharedWriteQueueService);\n out.writeUTF(response);\n System.out.println(\"server wrote:\" + response);\n } catch(EOFException e) {\n System.out.println(\"EOF:\" + e.getLocalizedMessage() + \" \" + e);\n } catch(IOException e) {\n System.out.println(\"IO:\" + e.getLocalizedMessage() + \" \" + e);\n } finally { \n try {\n clientSocket.close();\n } catch (IOException e){\n System.out.println(\"close:\" + e.getMessage());\n }\n }\n }", "public void run() {\n byte[] buffer = new byte[1024];\n int bytes;\n while (true) {\n try {\n bytes = mmInStream.read(buffer);\n if (bytes > 0) {\n Log.i(tag, \" ConnectedThread got value: \" + buffer[0]);\n Buffer.write(buffer[0]);\n }\n\n } catch (IOException e) {\n Log.e(tag, \"IOException in ConnectedThread\");\n break;\n }\n }\n }", "public void write(InetAddress addr, String filePath, String mode) {\r\n\t\ttry {\r\n\t\t// Make request packet and send\r\n\t\tif (verbose) System.out.println(\"Sending WRITE request\\n\");\r\n\t\tRequest r = new Request(Request.Type.WRITE, filePath, mode);\r\n\t\tDatagramPacket requestPacket = TFTP.formRQPacket(addr, sendPort, r);\r\n\t\t\r\n\t\tsendReceiveSocket.send(requestPacket);\r\n\r\n\t\tboolean packetInOrder = false;\r\n\t\t\t\r\n\t\t// Wait for ACK0\r\n\t\tdo{\r\n\t\t\ttry {\r\n\t\t\t\t// Get a packet from server\r\n\t\t\t\tDatagramPacket receivePacket = TFTP.formPacket();\r\n\t\t\t\tif (verbose) System.out.println(\"Waiting for ACK 0...\");\r\n\r\n\t\t\t\tfor(int i = 0; i<RESEND_LIMIT; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tsendReceiveSocket.receive(receivePacket);\r\n\t\t\t\t\t\ti = RESEND_LIMIT+1;\t\t//packet successfully received, leave loop\r\n\t\t\t\t\t} catch(SocketTimeoutException e) {\r\n\t\t\t\t\t\t//if re-send attempt limit reached, 'give up' and cancel transfer\r\n\t\t\t\t\t\tif(i == RESEND_LIMIT-1) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"No response from server after \" + RESEND_LIMIT + \" attempts. Try again later.\");\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//otherwise re-send\r\n\t\t\t\t\t\tif(verbose) System.out.println(\"\\nServer timed out. WRQ resent.\\n\");\r\n\t\t\t\t\t\tsendReceiveSocket.send(requestPacket);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tTFTP.shrinkData(receivePacket);\r\n\t\t\t\tthis.replyAddr = receivePacket.getAddress();\r\n\t\t\t\tthis.TID = receivePacket.getPort();\r\n\r\n\t\t\t\t// This block is entered if the packet received is not a valid ACK packet\r\n\t\t\t\tString[] errorMessage = new String[1];\r\n\t\t\t\tif (!TFTP.verifyAckPacket(receivePacket, 0, errorMessage)) {\r\n\t\t\t\t\tString[] errorMessage2 = new String[1];\r\n\t\t\t\t\t// If an ERROR packet is received instead of the expected ACK packet, abort the transfer\r\n\t\t\t\t\tif (TFTP.verifyErrorPacket(receivePacket, errorMessage2)) {\r\n\t\t\t\t\t\tif(verbose) System.out.println(\"Received ERROR packet with ERROR code \" + TFTP.getErrorCode(receivePacket) + \": \" + TFTP.getErrorMessage(receivePacket) + \". Aborting transfer...\\n\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the received packet is not an ACK or an ERROR packet, then send an illegal TFTP\r\n\t\t\t\t\t// operation ERROR packet and abort the transfer\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// Creates an \"illegal TFTP operation\" error packet\r\n\t\t\t\t\t\tDatagramPacket errorPacket = TFTP.formERRORPacket(\r\n\t\t\t\t\t\t\t\treplyAddr,\r\n\t\t\t\t\t\t\t\tTID,\r\n\t\t\t\t\t\t\t\tTFTP.ERROR_CODE_ILLEGAL_TFTP_OPERATION,\r\n\t\t\t\t\t\t\t\tr.getFileName() + \" could not be transferred because of the following error: \" + errorMessage[0] + \" (client expected a ACK packet with block#: 0)\");\r\n\r\n\t\t\t\t\t\t// Sends error packet\r\n\t\t\t\t\t\t//TFTP.printPacket(errorPacket);\r\n\t\t\t\t\t\tsendReceiveSocket.send(errorPacket);\r\n\r\n\t\t\t\t\t\t// Echo error message\r\n\t\t\t\t\t\tif(verbose) System.out.println(\"Sent ERROR packet with ERROR code \" + TFTP.getErrorCode(errorPacket) + \": Illegal TFTP Operation. Aborting transfer...\\n\");\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpacketInOrder = TFTP.checkPacketInOrder(receivePacket, 0);\r\n\r\n\t\t\t\tif (verbose && packetInOrder) System.out.println(\"ACK0 received.\");\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t} while(!packetInOrder);\r\n\t\t\t\r\n\t\t// Covert file into queue of datagram packets\r\n\t\tif (verbose) System.out.println(\"Forming packet queue from file...\");\r\n\t\tQueue<DatagramPacket> dataPacketQueue = null;\r\n\t\tint currentBlockNumber = 1;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdataPacketQueue = TFTP.formDATAPackets(replyAddr, TID, filePath);\r\n\t\t} catch (FileNotFoundException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tif (verbose)System.out.println(\"Packets formed. Ready to send \" + dataPacketQueue.size() + \" blocks.\");\r\n\r\n\t\tDatagramPacket nextPacket = dataPacketQueue.remove();\r\n\t\tboolean doneTransfer = false;\r\n\t\t\r\n\t\t// Send each packet and wait for an ACK until queue is empty\r\n\t\twhile (!doneTransfer) {\r\n\t\t\t\r\n\t\t\tDatagramPacket currentPacket = nextPacket;\r\n\t\t\t\r\n\t\t\t//Only update current block number and send data block if the previous packet was the correct sequential packet (not duplicated/delayed)\r\n\t\t\tif(packetInOrder){\r\n\t\t\t\t// Send a packet\r\n\t\t\t\tcurrentBlockNumber = TFTP.getBlockNumber(currentPacket);\r\n\t\t\t\tif (verbose) System.out.println(\"DATA \" + currentBlockNumber + \" sent.\");\r\n\t\t\t\t//if (verbose) System.out.println(\"Block size is\" + TFTP.getData(currentPacket).length + \".\");\r\n\t\t\t\tsendReceiveSocket.send(currentPacket);\r\n\t\t\t}\r\n\r\n\t\t\t// Wait for ACK\r\n\t\t\ttry {\r\n\t\t\t\t// Get a packet from server\r\n\t\t\t\tDatagramPacket receivePacket;\r\n\t\t\t\tif (verbose) System.out.println(\"Waiting for ACK from server...\");\r\n\r\n\t\t\t\t// Flag set to true if an unexpected packet is received\r\n\t\t\t\tboolean unexpectedPacket;\r\n\r\n\t\t\t\tdo {\r\n\t\t\t\t\tunexpectedPacket = false;\r\n\t\t\t\t\t\r\n\t\t\t\t\treceivePacket = TFTP.formPacket();\r\n\r\n\t\t\t\t\tfor(int i = 0; i<RESEND_LIMIT+1; i++) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tsendReceiveSocket.receive(receivePacket);\r\n\t\t\t\t\t\t\t\ti = RESEND_LIMIT+1;\t\t//packet successfully received, exit loop\r\n\t\t\t\t\t\t} catch(SocketTimeoutException e) {\r\n\t\t\t\t\t\t\t//if re-send attempt limit reached, 'give up' and cancel transfer\r\n\t\t\t\t\t\t\tif(i == RESEND_LIMIT) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"No response from server after \" + RESEND_LIMIT + \" attempts. Try again later.\");\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//otherwise re-send\r\n\t\t\t\t\t\t\tif(verbose) System.out.println(\"\\nServer tiemd out. DATA \" + TFTP.getBlockNumber(currentPacket) + \" resent.\");\r\n\t\t\t\t\t\t\tsendReceiveSocket.send(currentPacket);\r\n\t\t\t\t\t\t\t//TFTP.printPacket(currentPacket);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tTFTP.shrinkData(receivePacket);\r\n\r\n\t\t\t\t\tInetAddress packetAddress = receivePacket.getAddress();\r\n\t\t\t\t\tint packetPort = receivePacket.getPort();\r\n\t\t\t\t\tif (!(packetAddress.equals(replyAddr) && (packetPort == TID))) {\r\n\t\t\t\t\t\t// Creates an \"unknown TID\" error packet\r\n\t\t\t\t\t\tDatagramPacket errorPacket = TFTP.formERRORPacket(\r\n\t\t\t\t\t\t\t\tpacketAddress,\r\n\t\t\t\t\t\t\t\tpacketPort,\r\n\t\t\t\t\t\t\t\tTFTP.ERROR_CODE_UNKNOWN_TID,\r\n\t\t\t\t\t\t\t\t\"The address and port of the packet does not match the TID of the ongoing transfer.\");\r\n\r\n\t\t\t\t\t\t// Sends error packet\r\n\t\t\t\t\t\tsendReceiveSocket.send(errorPacket);\r\n\r\n\t\t\t\t\t\t// Echo error message\r\n\t\t\t\t\t\tif (verbose) System.out.println(\"Sent ERROR packet with ERROR code \" + TFTP.getErrorCode(errorPacket) + \": Received packet from an unknown host. Discarding packet and continuing transfer...\\n\");\r\n\r\n\t\t\t\t\t\tunexpectedPacket = true;\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t} while (unexpectedPacket);\r\n\r\n\t\t\t\t// This block is entered if the packet received is not a valid ACK packet\r\n\t\t\t\tString[] errorMessage = new String[1];\r\n\t\t\t\tif (!TFTP.verifyAckPacket(receivePacket, currentBlockNumber, errorMessage))\r\n\t\t\t\t{\r\n\t\t\t\t\tString[] errorMessage2 = new String[1];\r\n\t\t\t\t\t// If an ERROR packet is received instead of the expected ACK packet, abort the transfer\r\n\t\t\t\t\tif (TFTP.verifyErrorPacket(receivePacket, errorMessage2))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Received ERROR packet with ERROR code \" + TFTP.getErrorCode(receivePacket) + \": \" + TFTP.getErrorMessage(receivePacket) + \". Aborting transfer...\\n\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the received packet is not an ACK or an ERROR packet, then send an illegal TFTP\r\n\t\t\t\t\t// operation ERROR packet and abort the transfer\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Creates an \"illegal TFTP operation\" error packet\r\n\t\t\t\t\t\tDatagramPacket errorPacket = TFTP.formERRORPacket(\r\n\t\t\t\t\t\t\t\treplyAddr,\r\n\t\t\t\t\t\t\t\tTID,\r\n\t\t\t\t\t\t\t\tTFTP.ERROR_CODE_ILLEGAL_TFTP_OPERATION,\r\n\t\t\t\t\t\t\t\tr.getFileName() + \" could not be transferred because of the following error: \" + errorMessage[0] + \" (client expected a ACK packet with block#: \" + currentBlockNumber + \")\");\r\n\r\n\t\t\t\t\t\t// Sends error packet\r\n\t\t\t\t\t\t//TFTP.printPacket(errorPacket);\r\n\t\t\t\t\t\tsendReceiveSocket.send(errorPacket);\r\n\r\n\t\t\t\t\t\t// Echo error message\r\n\t\t\t\t\t\tif (verbose) System.out.println(\"Sent ERROR packet with ERROR code \" + TFTP.getErrorCode(errorPacket) + \": Illegal TFTP Operation. Aborting transfer...\\n\");\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpacketInOrder = TFTP.checkPacketInOrder(receivePacket, currentBlockNumber);\r\n\t\t\t\t\r\n\t\t\t\tdoneTransfer = dataPacketQueue.isEmpty();\r\n\t\t\t\t\r\n\t\t\t\tif(packetInOrder && !doneTransfer){\r\n\t\t\t\t\tnextPacket = dataPacketQueue.remove();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (verbose) System.out.println(\"ACK \" + TFTP.getBlockNumber(receivePacket) + \" received.\"); //addr = \" + receivePacket.getAddress().toString() + \", port = \" + receivePacket.getPort());\r\n\t\t\t\t// Newline\r\n\t\t\t\tif (verbose) System.out.println();\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"End of file transfer.\\n\");\r\n\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public void writeToServer() throws IOException {\n\t\tserverBuffer.writeTo(serverChannel);\n\t\tif (serverBuffer.isReadyToWrite()) {\n\t\t\tregister();\n\t\t}\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(runFlg){\n\t\t\t\ttry{\n\t\t\t\t\t\n\t\t\t\t\twhile(mQueue.getSize() >0 ){\n\t\t\t\t\t\tbyte[] data = getData();\n\t\t\t\t\t\tmOut.write(data);\n\t\t\t\t\t}\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\tLog.e(TAG,e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void run() {\n try {\n\n // Create character streams for the socket.\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n out = new PrintWriter(socket.getOutputStream(), true);\n System.out.println(\"...\"+socket.getInetAddress());\n\n // Request a name from this client. Keep requesting until\n // a name is submitted that is not already used. Note that\n // checking for the existence of a name and adding the name\n // must be done while locking the set of names.\n while (true) {\n out.println(\"SUBMIT NAME\");\n name = in.readLine();\n \tString[] arr= name.split(\":\", 2);\n \tname= arr[1];\n if (name == null) {\n return;\n }\n if (!ip.contains(socket.getInetAddress())) {\n ip.add(socket.getInetAddress());\n }\n else\n {\n \tout.println(\"already opened once.\");\n \tcontinue;\n }\n synchronized (clientOut) {\n if (clientOut.get(name) == null) {\n client.put(count, name);\n id= count;\n break;\n }\n }\n }\n\n // Now that a successful name has been chosen, add the\n // socket's print writer to the set of all writers so\n // this client can receive broadcast messages.\n clientOut.put(name, out);\n out.println(\"NAMEACCEPTED\"+name);\n //adding online users to the new user.\n for (int i= 0;i < count;i++) {\n \tString str;\n\t\t\t\t\tif((str= (String)client.get(i)) != null)\n \t\tout.println(\"TAB\"+i+str);\n }\n \n //adding new user to all the users who are online.\n for (int i= 0;i < count;i++) {\n \tPrintWriter wrt;\n \tif((wrt= clientOut.get(client.get(i))) != null)\n \t\twrt.println(\"TAB\"+count+name);\n }\n count++;\n\n // Accept messages from this client and broadcast them.\n // Ignore other clients that cannot be broadcasted to.\n while (true) {\n \tString input= in.readLine();\n \tchar c1;\n \tint c2;\n \tString[] arr= input.split(\":\", 2);\n \tif(arr[0].equals(\"FILE\"))\n \t{\n \t\tString[] arr1= input.split(\":\", 3);\n \t\tPrintWriter p= clientOut.get(client.get(Integer.valueOf(arr1[1])));\n \t\tp.println(\"FILE:\"+id+\":\"+arr1[2]);\n \t\twhile((input= in.readLine()) != \"stop\")\n \t\t{\n \t\t\tp.println(input);\n \t\t\tp.flush();\n \t\t}\n \t\tp.println(\"stop\");\n \t\tp.flush();\n \t\tSystem.out.println(\"sent.........\");\n/* \t\twhile((c2= in.read()) != -1)\n \t\t{\n \t\t\tc1= (char) c2;\n \t\t\tp.print(c1);\n \t\t\tp.flush();\n \t\t\tSystem.out.print(c2);\n \t\t}\n \t\tSystem.out.println(c2+\".......\");\n \t\tp.print((char)-1);*/\n \t}\n \telse\n \t\tclientOut.get(client.get(Integer.valueOf(arr[0]))).println(\"MESSAGE:\"+id+\":\"+name+\":\"+arr[1]);\n }\n } catch (IOException e) {\n System.out.println(e);\n } finally {\n // This client is going down! Remove its name and its print\n // writer from the sets, and close its socket.\n \t//remove this client from every other client.(TAB)\n \tfor (int i= 0;i < count;i++) {\n \t\tPrintWriter wrt;\n\t\t\t\t\tif(i != id && (wrt= clientOut.get(client.get(i))) != null)\n \t\t\twrt.println(\"REMOVE\"+id);\n }\n\n if (name != null) {\n \tclient.remove(id);\n \tclientOut.remove(name);\n \tip.remove(socket.getInetAddress());\n }\n try {\n socket.close();\n } catch (IOException e) {\n }\n }\n }", "public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\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\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\tBufferedReader is = null;\r\n\t\t\tPrintWriter os = null;\r\n\t\t\ttry{\r\n\t\t\t\tis = new BufferedReader(new InputStreamReader(clientScoket.getInputStream()));\r\n\t\t\t\tos = new PrintWriter(clientScoket.getOutputStream(), true);\r\n\t\t\t\t//从InputStream当中读取客户端发送的数据\r\n\t\t\t\tString inputLine = null;\r\n\t\t\t\tlong b = System.currentTimeMillis();\r\n\t\t\t\twhile((inputLine = is.readLine())!=null){\r\n\t\t\t\t\tos.println(inputLine);\r\n\t\t\t\t}\r\n\t\t\t\tlong g = System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"spend:\"+(b-g)+\"ms\");\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally{\r\n\t\t\t\ttry{\r\n\t\t\t\t\tif(is!=null)is.close();\r\n\t\t\t\t\tif(os!=null)os.close();\r\n\t\t\t\t\tclientScoket.close();\r\n\t\t\t\t}catch (IOException e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "private void send(final byte[] data, final InetAddress address, final int port) {\n send = new Thread(\"Send\") {\n public void run() {\n DatagramPacket packet = new DatagramPacket(data, data.length, address, port);\n try {\n socket.send(packet);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n };\n send.start();\n }", "public void run() {\n Socket socket = null;\n boolean got_it = false;\n // accept a connection\n try {\n socket = server.accept();\n //System.out.println(\"Accept, port: \" + socket.getPort());\n // create a new thread to accept the next connection\n newListener();\n } catch (IOException e) {\n // WVM.out.println(\"Class Server died: \" + e.getMessage());\n // e.printStackTrace();\n return;\n }\n \n try {\n DataOutputStream out = new DataOutputStream(socket.getOutputStream());\n try {\n // get path to class file from header\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n //String path = getPath(in);\n\t//get class name and worklet id\n\tStringPair sp = getPath(in);\n byte[] bytecodes = null;\n\tif(sp.string2 != null){\n\t if(WVM.wkltRepository.containsKey(sp.string2,sp.string1)){\n\t\tbytecodes = WVM.wkltRepository.get(sp.string2,sp.string1);\n\t\tif(bytecodes!=null){\n\t\t got_it = true;\n\t\t}\n\t }\n\t}\n if (!got_it && containsKey(sp.string1)) {\n bytecodes = get(sp.string1);\n\t // WVM.out.println(\" + + + Serving cached bytecode for class: \" + sp.string1);\n } else {\n // retrieve bytecodes from the file system\n bytecodes = getBytes(sp.string1); \n\t if(bytecodes != null){\n\t // cache the bytecodes to be sent out\n\t if(sp.string2!=null){\n\t\t WorkletClassLoader wcl;\n\t\t if(!WVM.wkltRepository.containsKey(sp.string2)){\n\t\t URL [] urls = new URL[1];\n\t\t urls[0] = new URL(\"http://localhost:\"+this.port);\n\t\t wcl = new WorkletClassLoader(urls,_sf,sp.string2);\n\t\t WVM.wkltRepository.put(sp.string2,wcl);\n\t\t } else {\n\t\t wcl = WVM.wkltRepository.get(sp.string2);\n\t\t }\n\t\t wcl.putByteCode(sp.string1,bytecodes);\n\t\t try{\n\t\t if(!sentByteCodes.containsKey(new String(sp.string2+sp.string1))){\n\t\t\t String u = new String(\"http://\"+java.net.InetAddress.getLocalHost().getHostAddress()+\":\"+this.port+\"/\");\n\t\t\t URL x = new URL(u);\n\t\t\t WVM.transporter.sendByteCode(sp.string2,sp.string1,bytecodes,u);\n\t\t\t sentByteCodes.put(new String(sp.string2+sp.string1),\"\");\n\t\t }\n\t\t } catch (Exception e){\n\t\t WVM.out.println(\"Failed to pre-send bytecode for \" + sp.string2);\n\t\t }\n\t } else {\n\t\t put(sp.string1, bytecodes);\n\t }\n\t } else {\n\t out.writeBytes(\"HTTP/1.0 400 \" + \"\\r\\n\");\n\t out.writeBytes(\"Content-Type: text/html\\r\\n\\r\\n\");\n\t out.flush();\n\t return;\n\t }\n }\n\n // WVM.out.println(\"Retrieved bytecodes: \" + bytecodes.length);\n\n // NOT RELEVANT ANY MORE: okay, the bytecode is definitely available locally\n // NOT RELEVANT ANY MORE: TODO: update the BAG-MULTISET for the http client\n // InetAddress ip = socket.getInetAddress();\n // int port = socket.getPort();\n // WVM.out.println(\"ip: \" + ip);\n // WVM.out.println(\"port: \" + port);\n // this will pose a problem: how do we figure out which process\n // on the remote site made this request ... ie which BAG-MULTISET\n // do we update for this http request?\n\n\n // send bytecodes in response (assumes HTTP/1.0 or later)\n try {\n // TODO: do an http put on the remote site's webserver\n // the remote site's webserver's port is specified in this http request header\n out.writeBytes(\"HTTP/1.0 200 OK\\r\\n\");\n out.writeBytes(\"Content-Length: \" + bytecodes.length + \"\\r\\n\");\n out.writeBytes(\"Content-Type: application/java\\r\\n\\r\\n\");\n out.write(bytecodes);\n out.flush();\n // WVM.out.println(WVM.time() + \" Wrote: \" + path + \" out to http client: \" + bytecodes.length);\n } catch (IOException ie) {\n return;\n }\n } catch (Exception e) {\n // write out error response\n\t // e.printStackTrace();\n out.writeBytes(\"HTTP/1.0 400 \" + e.getMessage() + \"\\r\\n\");\n out.writeBytes(\"Content-Type: text/html\\r\\n\\r\\n\");\n out.flush();\n }\n } catch (IOException ex) {\n\tex.printStackTrace();\n // eat exception (could log error to log file, but\n // write out to stdout for now).\n // dp2041: I commented out next two lines. possible errors are:\n // 1) wrong protol (file/https) from class loading\n // WVM.out.println(\"error writing response: \" + ex.getMessage());\n // ex.printStackTrace();\n } finally {\n try { socket.close(); } catch (IOException e) { e.printStackTrace(); }\n }\n }", "void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }", "private void sendNetMessage(Connect4MoveMessage message) {\n\t\tSystem.out.println(\"sending move over network\");\n\t\tSystem.out.println(\"sending row: \"+message.getRow());\n\t\tSystem.out.println(\"sending col: \"+message.getColumn());\n\t\tSystem.out.println(\"sending player: \"+message.getColor());\n\t\ttry {\n\t\t\toutput.writeObject(message);\n\t\t\toutput.flush();\n\t\t} catch (Exception x) {\n\t\t\tx.printStackTrace();\n\t\t}\n\t}", "private void sendSocket()\n {\n InputStreamReader reader = null;\n BufferedReader bufferreader = null;\n Socket socket = null;\n try{\n socket = new Socket(address, port);\n OutputStream outputstream = socket.getOutputStream();\n DataOutputStream dataOutputStream = new DataOutputStream(outputstream);\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(dataOutputStream);\n String tem_msg = \"\";\n if(SEND_FILE==0)\n {\n tem_msg = original_name;\n }\n tem_msg = tem_msg+msg;\n// outputstream.write(msg.getBytes());\n// outputstream.flush();\n //dataOutputStream.writeUTF(msg);\n //dataOutputStream.flush();\n outputStreamWriter.write(tem_msg);\n outputStreamWriter.flush();\n //DataInputStream dataInputStream = new DataInputStream(socket.getInputStream());\n //InputStreamReader inputStreamReader = new InputStreamReader(dataInputStream);\n //dataOutputStream.close();\n socket.shutdownOutput();\n\n InputStream inputstream = socket.getInputStream();\n reader = new InputStreamReader(inputstream);\n bufferreader = new BufferedReader(reader);\n String tem = null;\n final StringBuffer stringb = new StringBuffer();\n while((tem=bufferreader.readLine())!=null){\n stringb.append(tem);\n }\n sendMsg(msg_what, stringb.toString());\n dataOutputStream.flush();\n dataOutputStream.close();\n socket.close();\n inputstream.close();\n }catch(UnknownHostException e){\n e.printStackTrace();\n }catch(IOException e){\n e.printStackTrace();\n }finally {\n try{\n if(bufferreader!=null)\n bufferreader.close();\n }catch(IOException ex){\n ex.printStackTrace();\n }\n }\n }", "public ConsumerClientInputThread(Socket socket, ConsumerClientListenThread consumerClientListenThread)\r\n {\r\n // Initialize variables\r\n this.socket = socket;\r\n this.consumerClientListenThread = consumerClientListenThread;\r\n \r\n try\r\n {\r\n networkOutput =\r\n new PrintWriter(\r\n socket.getOutputStream(),true);\r\n }\r\n catch(IOException ioEx)\r\n {\r\n ioEx.printStackTrace();\r\n }\r\n }", "private void send(Message outgoing, ByteBuffer buffer, SocketChannel channel, boolean debug) throws IOException {\n\t\tif (debug)\n\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" sending new message: \" + outgoing.toString());\n\t\tbuffer = ByteBuffer.wrap(Serializer.serialize(outgoing));\n\t\tchannel.write(buffer);\n\t\tif (debug)\n\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \"sent message\");\n\t}", "NetThread(){}", "void write(PacketConnection connection);", "@Override\n\tpublic void transferFile() throws Exception {\n\t\tnew Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"开始上传\");\n\t\t\t\t\tsocket=new Socket(ip,port);\n\t\t\t\t\tInputStream in=socket.getInputStream();\n\t\t\t\t\tOutputStream out=socket.getOutputStream();\n\t\t\t\t\tBufferedInputStream input=new BufferedInputStream(in);\n\t\t\t\t\twhile(true)\n\t\t\t\t\t{\n\t\t\t\t\t\tFileInputStream fis=new FileInputStream(file);\n\t\t\t\t\t\tDataInputStream dis=new DataInputStream(new BufferedInputStream(fis));\n\t\t\t\t\t\tbyte[] buf=new byte[8192];\n\t\t\t\t\t\tDataOutputStream ps=new DataOutputStream(out);\n\t\t\t\t\t\twhile(true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\tint read=0;\n\t\t\t\t\t\t\tif(dis!=null){\n\t\t\t\t\t\t\t\tread=fis.read(buf);\n\t\t\t\t\t\t\t\tdownLoadFileSize+=read;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(read==-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttimer.cancel();\n\t\t\t\t\t\t\t\tMessage msg=new Message();\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putInt(\"percent\",100 );\n\t\t\t\t\t\t\t\tmsg.setData(bundle);\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tps.write(buf,0,read);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tps.flush();\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t\tdis.close();\n\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\tSystem.out.println(\"上传完成\");\n\t\t\t\t\t\t \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}).start();\n\t}", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "@Override\n public void write() {\n\n }", "@Override\n public void run() {\n transmit_set();\n }", "@Override\n public void run() {\n try {\n List<String> list = Lists.newArrayList();\n for (; ; ) {\n String url = Engine.routeQueue.poll();\n if (url == null && list.size() > 0) {\n File file = new File(\"./half-moil.db\");\n if (!file.exists()) file.createNewFile();\n FileWriter writer = new FileWriter(file, true);\n\n writer.write(Joiner.on(\"\\r\\n\").join(list) + \"\\r\\n\");\n writer.flush();\n writer.close();\n writer = null;\n logger.info(\"文件已保存,新增{}条\", list.size());\n list.clear();\n } else if (url != null) {\n list.add(url);\n } else {\n Thread.sleep(5000L);\n }\n }\n } catch (Exception e) {\n logger.error(e);\n }\n }", "public void write(byte[] buffer) {\n try {\n String bufferstring=\"a5550100a2\";\n // byte [] buffer03=new byte[]{(byte) 0xa5, Byte.parseByte(\"ffaa\"),0x01,0x00, (byte) 0xa2};\n byte buffer01[]=bufferstring.getBytes();\n byte [] buffer02=new byte[]{(byte) 0xa5,0x55,0x01,0x00, (byte) 0xa2};\n\n\n //for(int i=0;i<100000;i++) {\n mmOutStream.write(buffer);\n // Thread.sleep(1000);\n //}\n //\n //Share the sent message back to the UI Activity\n// mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer)\n// .sendToTarget();\n } catch (Exception e) {\n Log.e(TAG, \"Exception during write\", e);\n }\n }", "public interface NetObjectWriter {\n\n boolean put(Object o);\n\n void put(final Object data, final long delay);\n\n}", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "public void run()\r\n {\r\n try\r\n {\r\n //Create a ObjectInputStream for communication; the client\r\n // is using a ObjectOutputStream to write to us\r\n ObjectInputStream objectIn = new ObjectInputStream(socket.getInputStream());\r\n //Over and over forever\r\n while (true)\r\n {\r\n //Adds new Gson instance\r\n Gson gson = new Gson();\r\n \r\n //Read all traffic entries \r\n TrafficEntry entry = gson.fromJson(objectIn.readObject().toString(), TrafficEntry.class);\r\n // if the entry exists then log it and send it on.\r\n if (entry != null)\r\n {\r\n System.out.println(\"Received Traffic Entry from \" + entry.stationLocationID);\r\n server.sendObjectToAll(entry);\r\n System.out.println(entry.convertToString());\r\n }\r\n }\r\n } catch (Exception ie)\r\n {\r\n System.out.println(ie.getMessage());\r\n }\r\n finally{\r\n //The connection is closed for one reason or another,\r\n // so have the server dealing with it\r\n server.removeConnection( socket ); \r\n }\r\n }", "@Override\n public void run() {\n FILEPREFIX = \".//files\"+serverID + \"//\";\n ClientMessage = (Message) socketRead();\n ServerMessage = getReturnMessage(ClientMessage);\n //System.out.println(\"client\"+ClientMessage.getFrom()+\"message : \"+ClientMessage.getContent());\n File file = new File(FILEPREFIX + ClientMessage.getFileName());\n switch (ClientMessage.getType()){\n case \"enquiry\"://return the list of file\n ServerMessage.setContent(ListAllFile());\n break;\n case \"read\"://read the last line\n System.out.println(ClientMessage.getFrom() + \": Reading...\");\n ServerMessage.setContent(\"Reading: \"+ReadLastLine(file));\n System.out.println(\"Reading \"+ClientMessage.getContent());\n break;\n case \"write\"://write to the end of file\n System.out.println(ClientMessage.getFrom() + \": writing...\");\n try{\n WriteLastLine(file,ClientMessage.getContent());\n }catch (IOException e) {\n System.out.println(\"write error\");\n }\n\n ServerMessage.setContent(\"writing: \"+ReadLastLine(file));\n System.out.println(\"Writing \"+ClientMessage.getContent());\n break;\n default://unknown command\n System.out.println(ClientMessage.getType());\n ServerMessage.setContent(\"Error\");\n System.out.println(ClientMessage.getFrom() + \": Wrong type\");\n break;\n }\n socketWrite(ServerMessage);\n\n try {//close the socket connection\n client.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n\n while (true/* && Game.connection.setting == false*/) {\n try {\n this.sleep(Game.ENEMY_DELAY);\n connect();\n createPosition();\n sendData = sendString.getBytes();\n\n for (Entry<Integer, InetAddress> entry : portMap.entrySet()) {\n\n clientPort = entry.getKey();\n clientIP = entry.getValue();\n\n DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length, clientIP, clientPort);\n udpServerSocket.send(sendPacket);\n }\n\n } catch (InterruptedException e) {\n System.out.println(\"Server Error sleep()\");\n } catch (IOException e) {\n System.out.println(\"Server Error sending new enemy position\");\n }\n }\n }", "public void run() {\n Socket socket;\n try {\n socket = new Socket(servers.getServerAddress(),Integer.parseInt(servers.getServerPort()));\n } catch (IOException e) {\n // e.printStackTrace();\n System.err.println(\"Cannot connect to the server: \" + servers.getServerAddress()\n + \" at port:\" + servers.getServerPort());\n return;\n }\n\n ObjectOutputStream toServer = null;\n try {\n toServer = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n BufferedReader toClient = null;\n try {\n toClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n\n toServer.writeObject(argsToServer);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //get and print query results\n String line;\n int count = 0;\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n PrintStream pr = new PrintStream(out);\n try {\n while((line = toClient.readLine()) != null) {\n System.out.println(\"<\" + servers.getServerAddress() + \"> :\" + line);\n count++;\n pr.println(line);\n }\n pr.flush();\n System.out.println(servers.getServerAddress()+ \" query count: \" + count);\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //saveLocalFile(out);\n }", "public void write(long l) {\n while (isFull()) {\n }\n Timing.waitSyncLocal();\n writeEnable.setNow(1);\n writeData.setNow(l);\n Timing.waitClockLocal();\n }", "@Override public void run()\n {\n while (wrt)\n {\n System.out.print(\"\");\n }\n\n // Locking Writer and Reader wrt = true;\n mutex = true;\n // Critical section\n BufferedWriter out = null; \n try \n {\n\t\t\t\tout = new BufferedWriter(new FileWriter(\"shared.txt\", false)); \n\t\t\t\tvalue = value + 1;\n\t\t\t\tSystem.out.println(\"Writing: \" + (value)); \n\t\t\t\tout.write(String.valueOf(value)); \n\t\t\t\tout.close();\n } \n catch (IOException e){}\n\n // Leaving Critical section\n wrt = false;\n\tmutex = false;\n\t\t}", "@Override\n\tpublic void run() \n\t{\n\t\ttry\n\t\t{\t\t\t\n\t\t\tint [] blockSizes = {1,1024,65505};\n\t\t\tfor(int blk = 0; blk < blockSizes.length; blk++)\n\t\t\t{\n\t\t\t\tDataInputStream inpStream = new DataInputStream(clientSock.getInputStream());\n\t\t\t\tDataOutputStream opStream = new DataOutputStream(clientSock.getOutputStream());\n\n\t\t\t\tFile file = new File(\"ClientA.txt\");\n\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\t\tbufLen = blockSizes[blk];\n\t\t\t\t\n\t\t\t\tbyte[] buffContent = new byte[bufLen];\n\t\t\t\tint numRead = 0, totalBytes=0;\n\n\t\t\t\twhile ((numRead = inpStream.read(buffContent))!=-1) \n\t\t\t\t{\n\t\t\t\t\tfos.write(buffContent, 0, numRead);\n\t\t\t\t\ttotalBytes+=numRead;\n\t\t\t\t\tif (totalBytes == bufLen)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tnumRead = 0;\n\t\t\t\ttotalBytes = 0;\n\t\t\t\n\t\t\t\twhile((numRead = fis.read(buffContent))!=-1)\n\t\t\t\t{\t\t\n\t\t\t\t\topStream.write(buffContent,0,numRead);\n\t\t\t\t\ttotalBytes+=numRead;\n\t\t\t\t\tif (totalBytes == bufLen)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void run(){\n try{\n String line = null;\n String [] line_seg; \n\t\t int num ;\n while((line = br.readLine())!=null) {\n\t\t\t line_seg = line.split(\",\");\n\t\t num = line_seg.length;\n\t\t\tif (num == 4) {\n\t\t\t\tif (line_seg[0].equals(\"FPUT\")) {\n\t\t\t\t\tfile_name = line_seg[1];\n\t\t\t\t\tport_num_ = Integer.parseInt(line_seg[3]);\n\t\t\t\t\tnew Thread(){\n\t\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tReceiverThread.fileServer();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}.start();\n\t\t\t\t} else if (line_seg[0].equals(\"FGET\")) {\n\t\t\t\t\t\tSocket sk = null;\n\t\t\t\t\t\ttry { \n\t\t\t\t\t\t\tsk = new Socket(line_seg[2], Integer.parseInt(line_seg[3]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tFile output = new File(line_seg[1]);\n\t\t\t\t\t\tFileOutputStream fos = new FileOutputStream(output);\n\t\t\t\t\t\tBufferedInputStream bis =new BufferedInputStream(sk.getInputStream());\n\t\t\t\t\t\tBufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\t\t\t\t\tbyte buffer[] = new byte[1024];\n\t\t\t\t\t\tint read;\n\t\t\t\t\t\twhile((read = bis.read(buffer))!=-1) {\n\t\t\t\t\t\t\tbos.write(buffer, 0, read);\n\t\t\t\t\t\t\tbos.flush();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t sk.close();\n\t\t\t\t\t\tSystem.out.println(\"File downloaded\");\n\t\t\t\t }\n\t\t } // end of if (num == 4) \n\t\t else { \n\t\t\t System.out.println(line);\n\t\t }\n } // end of while\t\n } catch(Exception e) {\n \t//e.printStackTrace();\n\t } finally {\n\t\t try{\n\t\t\t if(br!=null) {\n\t\t\t\t br.close();\n\t\t\t }\n\t\t }catch(Exception ex) {}\n\t\t try {\n\t\t\t if(sock!=null){\n\t\t\t\t sock.close();\n\t\t\t }\n\t\t }catch(Exception ex){}\n }\n }", "public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }", "public void writeDHTKeyVal(String key, String val){\n\t\tDHTNode node = dynamoRing.getResponsibleNode(key);\n\t\tArrayList<DHTNode> successorList = dynamoRing.getNSuccessors(node, REPLICATION_COUNT-1);\n\t\tArrayList<DHTNode> responsibleNodeList = successorList;\n\t\tresponsibleNodeList.add(node);\n\t\tfor(int i=0;i<responsibleNodeList.size();i++){\n\t\t\ttry{\t\t// try block inside the for loop so as to continue writing data to other\n\t\t\t\t\t\t// responsible nodes even if one node fails\n\t\t\t\tDHTNode nextNode = responsibleNodeList.get(i);\n\t\t\t\tSocket socket = new Socket(InetAddress.getByAddress(new byte[]{10, 0, 2, 2}),\n\t\t\t\t\t\tnextNode.getAddress());\n\t\t\t\tLog.v(TAG, \"Connected with \"+nextNode.getAddress());\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.setType(Message.WRITE);\n\t\t\t\tmsg.setKey(key);\n\t\t\t\tmsg.setValue(val);\n\t\t\t\tString msgStr = msg.toJson();\n\t\t\t\tbw.write(msgStr+\"\\n\");\n\t\t\t\tbw.flush();\n\t\t\t\tString responseStr = br.readLine();\n\t\t\t\tMessage response = Message.fromJson(responseStr);\n\t\t\t\tif(response == null)\t\t// null returned, remote node must have failed\n\t\t\t\t\t\t\t\t\t\t\t// continue writing to next responsible node\n\t\t\t\t\tcontinue;\n\t\t\t\tbw.close();\n\t\t\t\tbr.close();\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run()\n {\n while (true)\n {\n\n // create output stream attached to the socket\n\n // read message from client.\n try\n {\n Message message = (Message) inFromClient.readObject();\n System.out.println(\"Message from Client: \" + message);\n\n // Send reply to client.\n Message replyMessage = new Message(message.getId(), message.getBody().toUpperCase());\n\n for (int i = 0; i < mb.numberofclients(); i++)\n {\n mb.getConnection(i).returnMessage().writeObject(message);\n\n }\n list.add(message);\n db2.Write(list);\n\n }\n catch (Exception ex)\n {\n \n }\n }\n\n }", "private void logToServer(PrintWriter out, BufferedReader in) throws InterruptedException, IOException {\n\t\tif (System.currentTimeMillis() - lastLog > 10_000) { // only log every 5 sec\n\t\t\tlogToServerNow(out, in);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n } \n\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }", "@Override\n public void run() {\n try {\n int PORT = 10002; //서버에서 설정한 PORT 번호\n String ip=\"192.168.0.46\"; //서버 단말기의 IP주소..\n //본 예제는 Genymotion 에뮬레이터 2대로 테스한 예제입니다.\n //Genymotion을 실행하면 각 에뮬레이터의 IP를 확인할 수 있습니다.\n\n Socket socket; //클라이언트의 소켓\n DataInputStream is;\n DataOutputStream os;\n\n //서버와 연결하는 소켓 생성..\n socket = new Socket(InetAddress.getByName(ip), PORT);\n\n //여기까지 왔다는 것을 예외가 발생하지 않았다는 것이므로 소켓 연결 성공..\n //서버와 메세지를 주고받을 통로 구축\n is = new DataInputStream(socket.getInputStream());\n os = new DataOutputStream(socket.getOutputStream());\n\n Gson gson = new Gson();\n ArrayList<SendCommunication> communications = new ArrayList<SendCommunication>();\n communications.add(new SendCommunication(insertOrderMenu, insertOrderGoods));\n\n String json = gson.toJson(communications);\n\n os.writeUTF(json); //서버로 메세지 보내기.UTF 방식으로(한글 전송가능...)\n os.flush(); //다음 메세지 전송을 위해 연결통로의 버퍼를 지워주는 메소드..\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n try {\n int PORT = 10002; //서버에서 설정한 PORT 번호\n String ip=\"192.168.0.45\"; //서버 단말기의 IP주소..\n //본 예제는 Genymotion 에뮬레이터 2대로 테스한 예제입니다.\n //Genymotion을 실행하면 각 에뮬레이터의 IP를 확인할 수 있습니다.\n\n Socket socket; //클라이언트의 소켓\n DataInputStream is;\n DataOutputStream os;\n\n //서버와 연결하는 소켓 생성..\n socket = new Socket(InetAddress.getByName(ip), PORT);\n\n //여기까지 왔다는 것을 예외가 발생하지 않았다는 것이므로 소켓 연결 성공..\n //서버와 메세지를 주고받을 통로 구축\n is = new DataInputStream(socket.getInputStream());\n os = new DataOutputStream(socket.getOutputStream());\n\n Gson gson = new Gson();\n ArrayList<SendCommunication> communications = new ArrayList<SendCommunication>();\n communications.add(new SendCommunication(insertOrderMenu, insertOrderGoods));\n\n String json = gson.toJson(communications);\n\n os.writeUTF(json); //서버로 메세지 보내기.UTF 방식으로(한글 전송가능...)\n os.flush(); //다음 메세지 전송을 위해 연결통로의 버퍼를 지워주는 메소드..\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void run () {\r\n\t\ttry {\r\n\t\t\tsendData = new DatagramSocket();\r\n\t\t\tString controlString= new String(control.getData(), 0, control.getLength()) ;\r\n\t\t\tString[] msgParts = controlString.split(\";;\") ;\r\n\t\t\t\r\n\t\t\t// Get operation code and determine operation to be performed\r\n\t\t\tint operationCode = Integer.parseInt(msgParts[0]) ;\r\n\t\t\t\r\n\t\t\t// reserveInterLibrary book\r\n\t\t\tif ( operationCode == 0 ) {\r\n\t\t\t\treserveBook ( msgParts[1], msgParts[2] ) ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// get non returners\r\n\t\t\telse if ( operationCode == 1 ) {\r\n\t\t\t\tint days = Integer.parseInt(msgParts[1]) ;\r\n\t\t\t\tgetNonReturners ( days ) ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch ( SocketException e ) {\r\n\t\t\tString message = \"A socket exception happened \" + e.getMessage() ;\r\n\t\t\tlib.writeLog(message);\r\n\t\t} catch ( IOException e ) {\r\n\t\t\tString message = \"An IOException happened \" + e.getMessage() ;\r\n\t\t\tlib.writeLog(message);\r\n\t\t}finally {\r\n\t\t\r\n\t\t\tif ( sendData != null ) {\r\n\t\t\t\tsendData.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run() {\n\t\tPrintWriter out = null;\r\n\t\ttry {\r\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\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\tBufferedReader in = null;\r\n\t\ttry {\r\n\t\t\tin = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tString inputLine, outputLine;\r\n\t\tProtocol kkp = new Protocol();\r\n\r\n\t\toutputLine = kkp.processInput(null);\r\n\t\tout.println(outputLine);\r\n\t\t// Leo continuamente e interactuo\r\n\t\ttry {\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n//\t\t\t\toutputLine = kkp.processInput(inputLine);\r\n\t\t\t\toutputLine = inputLine;\r\n\t\t\t\tout.println(outputLine);\r\n\t\t\t\tif (outputLine.equals(\"Bye.\")){\r\n\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t// Cierro la entrada y salida\r\n\t\t\tout.close();\r\n\t\t\tin.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} finally{\r\n\t\t\tlog.info(\"Clientes activos: \"+ (taskExecutor.getThreadPoolExecutor().getActiveCount()-1));\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run( ) {\n\t\tConnect();\n\t\tSendFile( filePath );\n\t\tDisconnect();\n\t}", "public boolean postThread(IThread thread) throws IllegalWriteException, BBException;", "public void write_to_NN(Msg m) throws IOException, ClassNotFoundException {\n\toos.writeObject(m);\n\toos.flush();\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tLog.v(TAG,\"connect to server...\");\n\t\t\t\tsocket=new Socket(\"140.116.246.200\",4000+id);\n\t\t\t\tout=socket.getOutputStream();\n\t\t\t\tin=socket.getInputStream();\n\t\t\t\tLog.v(TAG,\"connect!!\");\n\t\t\t\n\t\t\t\tsendData(\"ask#\");\n\t\t\t\tUIHr.post(refreshUI); \t\n\t\t\t\tresult=new Integer(readData());\n\t\t\t\tUIHr.post(refreshUI); \t\t\n\t\t\t\tsendData(\"over#\");\n\t\t\t\tsocket.close();\n\t\t\t} catch (UnknownHostException e) {e.printStackTrace();} \n\t\t\tcatch (IOException e) {e.printStackTrace();}\n\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConnectedThread.write(\"send\");\n\t\t\t\t\tmConnectedThread.writeFile();\n\t\t\t\t}", "public void run() {\n try {\n // Create character streams for the socket.\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n out = new PrintWriter(socket.getOutputStream(), true);\n // Request a name from this client. Keep requesting until\n // a name is submitted that is not already used. \n while (true) {\n out.println(\"SUBMITNAME\");\n name = in.readLine();\n if (name == null) {\n return;\n }\n synchronized (names) {\n if (!names.contains(name)) {\n names.add(name);\n break;\n }\n else {\n \tout.println(\"duplicate\");\n }\n }\n }\n // Now that a successful name has been chosen, add the\n // socket's print writer to the set of all writers so\n // this client can receive broadcast messages.\n out.println(\"NAMEACCEPTED,\"+name);\n System.out.println(out);\n for(PrintWriter writer : clients) {\n \twriter.println(\"\\n\"+name + \" is connected\\n\");\n \tSystem.out.println(\"broadcast\");\n }\n clients.add(out);\n System.out.println(\"client \"+name+\" is connected\"); \n serverMessageArea.append(name + \" is connected\\n\");\n writeFile( name + \" is connected\\n\");\n \n //String url = \"http://localhost:9000\";\n // Accept messages from this client and broadcast them.\n while (true) {\n String s = in.readLine();\n writeFile(\"Content:\"+s+\"\\n\");\n serverMessageArea.append(\"Content:\"+s+\"\\n\");\n System.out.println(s);\n String input=s.split(\",\")[0];\n System.out.println(input);\n if (input == null) {\n return;\n }\n for (PrintWriter writer : clients) { \t\t\n writer.println(\"MESSAGE,\" + name + \",\" + input);\n }\n writeFile(\"From: \"+name + \":\" + input+\"\\n\");\n serverMessageArea.append( \"From: \"+name + \":\" + input+\"\\n\");\n }\n } catch (IOException e) {\n System.out.println(e);\n } finally {\n // This client is going down! Remove its name and its print\n // writer from the sets, and close its socket.\n if (name != null) {\n names.remove(name); \n System.out.println(\"nr\");\n }\n if (out != null) {\n clients.remove(out); \n for(PrintWriter writer : clients) {\n \twriter.println(name + \" is disconnected\\n\");\n \tSystem.out.println(\"broadcast\");\n }\n \tserverMessageArea.append(name + \" is disconnected\\n\");\n \twriteFile(\"\\n\"+name + \" is disconnected\\n\");\n System.out.println(\"cr\");\n \n }\n try {\n socket.close();\n writeFile( \" Server is disconnected\\n\");\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }", "private WebSocketConnection() {\n this.pendingMessages = false;\n this.isClosed = false;\n this.outBuffer = new LinkedList<Payload>();\n this.internalLock = new Object();\n\n this.writerThread = new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (internalLock) {\n while (true) {\n if (!pendingMessages) {\n try {\n internalLock.wait();\n } catch (InterruptedException e) {\n // This should never happen\n }\n }\n\n pendingMessages = false;\n\n if (socket.isClosed()) {\n return;\n } else {\n while (outBuffer.size() > 0) {\n Payload payload = outBuffer.removeFirst();\n int opcode = payload.getOpcode();\n byte[] data = payload.getData();\n\n try {\n send(opcode, data);\n } catch (IOException e) {\n // Reader thread will notify this\n // exception\n // This thread just need to stop\n return;\n }\n }\n }\n }\n }\n }\n });\n }", "public void run() {\n\t\tSystem.out.println(\"in run\");\n\t\ttry {\n\t\t\tinputsocket = connectclient.accept();\n\t\t\tflag=1;\n\t\t\tcl = new Client();\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\ttry{\n\t\t\t\n\t\t\tDataInputStream inputdata = new DataInputStream(inputsocket.getInputStream());\n\t\t\toutputdata = new DataOutputStream(inputsocket.getOutputStream());\n\t\t\tBufferedReader inFromClient = new BufferedReader(new InputStreamReader(inputsocket.getInputStream()));\n\t\t\t//DataOutputStream  outToClient = new DataOutputStream(inputsocket.getOutputStream());\n\t\t\t//s.list.add(outputdata);\n\t\t\t//System.out.println(s.list.size());\n\t\t\twhile(true){\n\t\t\t\t\n\t\t\t\tString input = inFromClient.readLine();\n\t\t\t\tif(input!=\"\")\n\t\t\t\t\tSystem.out.println(\"input to server : \" + input);\n\t\t\t\tif(flag==1)\n\t\t\t\t\tcl.printMessage(input);\n\t\t\t\toutputdata.writeBytes(input+\"\\n\");\n\t\t\t\t//out.writeBytes\n//\t\t\t\tif(input!=\"\"){\n//\t\t\t\t\tfor(DataOutputStream out : s.list){\n//\t\t\t\t\t\t//System.out.println(\"one\");\n//\t\t\t\t\t\tout.writeBytes(input+\"\\n\");\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\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch(Exception E){\n//\t\t\tint i=0;\n//\t\t\tfor(DataOutputStream out : s.list){\n//\t\t\t\tif(out == outputdata){\n//\t\t\t\t\ts.list.remove(i);\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n//\t\t\t\ti++;\n//\t\t\t}\n\t\t\tSystem.out.println(\"Connection close\");\n\t\t}\n\t}", "private void sendStatus() throws IOException {\n\t\tWriteStatus status = new WriteStatus.Builder().build();\n\t\tstatus.writeTo(out);\n\t\tout.flush();\n\t}", "public synchronized void run() {\n\n try {\n\n while(true) {\n\n Thread.sleep(10000);\n\n Socket s = new Socket(server, 8999); // Request list in port 8999\n ObjectInputStream r = new ObjectInputStream(s.getInputStream());\n Message m = (Message) r.readObject();\n peerList = (PeerList) m.peerList; // Store new peer list\n\n for (int i = peerList.getSize() - 1; i >= 0; i--)\n new Thread(new download(peerList.getIP(i), peerList.getPort(i))).start(); // start thread to download image blocks from other peers\n\n }\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }" ]
[ "0.6825758", "0.63578415", "0.6314981", "0.61591184", "0.6113992", "0.6112352", "0.60832626", "0.60542625", "0.60278106", "0.6022507", "0.5996097", "0.5983723", "0.59769326", "0.59756124", "0.5874729", "0.5871394", "0.5870339", "0.582745", "0.58125824", "0.5790155", "0.57723874", "0.5759537", "0.5757468", "0.57557416", "0.5747628", "0.5720491", "0.5715644", "0.57141834", "0.56999105", "0.56977284", "0.5691207", "0.5686246", "0.5665106", "0.56501555", "0.5641969", "0.56244797", "0.5611785", "0.56078845", "0.56018376", "0.5601028", "0.55927473", "0.55866015", "0.5585031", "0.5584938", "0.55836976", "0.5574049", "0.5567865", "0.55652755", "0.5562843", "0.5560173", "0.5557343", "0.5556343", "0.55536574", "0.5548339", "0.5539275", "0.5530843", "0.5530204", "0.55169743", "0.5506552", "0.55063087", "0.55043375", "0.54970866", "0.5496745", "0.5493187", "0.5481457", "0.5472345", "0.5471616", "0.5469545", "0.5467645", "0.5462396", "0.54597104", "0.5457469", "0.54549193", "0.5451599", "0.54393715", "0.5438522", "0.5438518", "0.54381484", "0.5430587", "0.5425525", "0.5424442", "0.5421067", "0.54200256", "0.5417713", "0.5416959", "0.54161626", "0.5414266", "0.54112196", "0.54082525", "0.5407793", "0.5407451", "0.54029787", "0.5399764", "0.5398354", "0.53961706", "0.539369", "0.53923666", "0.5391221", "0.53898764", "0.53866863" ]
0.582831
17
set message to send to pi
void write(String message) { this.message = message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }", "public final void send(MidiMessage msg) {\n device.send(msg);\n }", "private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void sendPublicMessage(SensorMessage message) {\n \tpublicSender.send(message);\n }", "public void transmit()\n { \n try\n {\n JSch jsch=new JSch(); //object that allows for making ssh connections\n //Log into the pi\n Session session=jsch.getSession(USERNAME, HOSTNAME, 22); //pi defaults to using port 22 \n session.setPassword(PASSWORD);\n session.setConfig(\"StrictHostKeyChecking\", \"no\"); //necessary to access the command line easily\n \n session.connect(1000);//connect to the pi\n \n Channel channel = session.openChannel(\"exec\");//set session to be a command line \n ((ChannelExec)channel).setCommand(this.command); //send command to the pi\n \n channel.setInputStream(System.in); \n channel.setOutputStream(System.out);\n //connect to the pi so the command can go through\n channel.connect(1000);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(frame, \"Error connecting to infrared light\", \"Error Message\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void sendCommand(String command){\n sendCommand(command, true);\n fromPlugin = false;\n\n }", "public static void sendMessage(String message) {\r\n\t\tbtService.write(message.getBytes());\r\n\t}", "protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }", "void sendMessage() {\n\n\t}", "void setMessage(String message);", "void setMessage(String message);", "public void sendMessage(int value, String uname, String msg) {\n\t\t\tif (value == 1) {\n\t\t\t\toutput.println(uname + \" : \" + msg);\n\t\t\t} else if (value == 3) {\n\t\t\t\toutput.println(\"Server: The User \" + msg + \" does not Exis!!\");\n\t\t\t} else if (value == 5) {\n\t\t\t\toutput.println(\"Server: Private Message to yourself!\");\n\t\t\t} else {\n\t\t\t\toutput.println(uname + \"(Private)\" + \" : \" + msg);\n\t\t\t}\n\t\t}", "public void sendChat(String message) {\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch \"+message);\n\t}", "public void sendSignal (String signal, String message ){\r\n if (btSocket != null)\r\n {\r\n try{\r\n btSocket.getOutputStream().write(signal.getBytes());\r\n msg(message,0);\r\n } catch (IOException e) {\r\n msg(\"Error\", 0);\r\n }\r\n }\r\n\r\n }", "public void sendPacket(String message) {\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException ie) {\r\n }\r\n\r\n if (ipAddress == null) {\r\n MessageEvent e = new MessageEvent(MessageType.SendWarning);\r\n e.description = \"cannot send message to unreported device\";\r\n e.HWid = HWid;\r\n RGPIO.message(e);\r\n } else if (status == PDeviceStatus.ACTIVE) {\r\n UDPSender.send(message, ipAddress, this, RGPIO.devicePort);\r\n }\r\n }", "private void send(final String data) {\n\t\tif (null != PinPadController) {\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPinPadController.PINPad_sendToPinPad(data);\n\t\t\t\t};\n\t\t\t}.start();\n\t\t\tToast.makeText(this, \"send\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "private void sendAIUIMessage(String message) {\n AIUIMessage msg = new AIUIMessage(AIUIConstant.CMD_WRITE, 0, 0, \"data_type=text\", message.getBytes());\n mAiuiAgent.sendMessage(msg);\n }", "@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }", "public void sendToActivity(String message){\n //In questo metodo \"avviso\" l'app che è arrivato un nuovo dato dal raspberry.\n\n Intent intent = new Intent(\"NOTIFY_ACTIVITY\");\n\n if(message != null){\n intent.putExtra(\"CURRENT_ACTIVITY\",message);\n }\n\n //invio messaggio tramite broadcaster\n broadcast.sendBroadcast(intent);\n\n }", "public void sendOtp(String medium) {\n\r\n }", "private void sendMessage(CommandSender p, String msg) {\n\t\tif (p instanceof Player) {\n\t\t\tif (!((Player) p).isOnline()) return;\n\t\t}\n\t\t_.msg(p, GameMode.Sonic, msg);\n\t}", "public void sendMessage(String str) {\n\t\ttry {\n\t\t\tsession.getRemote().sendString(str);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendMessage(String message) {}", "public void sendMessage ( String message ) {\n\t\texecute ( handle -> handle.sendMessage ( message ) );\n\t}", "public void send() {\n\t}", "public void sendCommFromPlugin(String command){\n\n sendCommand(command, true);\n this.fromPlugin = true;\n }", "@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}", "@Override\n public void sendMessage(Token token) throws JSimSecurityException, JSimInvalidParametersException {\n double random_number = uniform(0.5, 2.5);\n switch((int) Math.round(random_number)){\n //Notificar\n case 1:{\n //this.PE9.receiveMessage(token);\n System.out.println(\"** Enviando mensaje desde PE7 hacia PE9\");\n token.setSender(this.getName());\n token.setPosting(\"PE9\");\n JSimLink link = new JSimLink(token);\n link.into(this.getProcessor().getQueue());\n break;\n }\n //Llamar a emergencias\n case 2:{\n //this.PE8.receiveMessage(token);\n System.out.println(\"** Enviando mensaje desde PE7 hacia PE8\");\n token.setSender(this.getName());\n token.setPosting(\"PE8\");\n JSimLink link = new JSimLink(token);\n link.into(this.getProcessor().getQueue());\n break;\n }\n \n }\n \n }", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\tmediator.send(message, this);\r\n\t}", "public void sendMessage(String message) {\n printWriter.append(message);\n printWriter.flush();\n }", "@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }", "public static void sendMessage(String s) {\r\n sendRaw(\"PRIVMSG \" + channel + \" :\" + s + \"\\n\");\r\n Console.writeLine(nick + \": \" + s);\r\n }", "public void sendMessagePacket(String to, String message, Message.Type type) {\n Message msg = new Message(to, type);\n msg.setBody(message);\n xmppConnection.sendPacket(msg);\n// receiveMessage(connection);\n }", "@Override\n\tpublic void SendMessage() {\n\t\tSystem.out.println( phoneName+\"'s SendMessage.\" );\n\t}", "public void setMsg(boolean status){\r\n\t\tthis.send = status;\r\n\t}", "void send(String message);", "private void sendMessage(String message) {\n\t\tMainstarter.meClient.sendMessage(new MessageSend(message, Mainstarter.meClient));\n\t\ttextInputMessage.clear();\n\t}", "public void sendMessage(String message){\n\t if (mOut != null && !mOut.checkError()) {\n\t mOut.println(message+\"\\n\");\n\t mOut.flush();\n\t }\n\t }", "@Override\n\tpublic void send(String msg) {\n\t}", "public void setMessage(Message msg){\n message = msg;\n setChanged();\n notifyObservers();\n }", "public static void sendMessage(int command) {\n\t\tfindWindow();\n\t\t\n\t\tuser32.SendMessageA(handle, IUser32.WM_COMMAND, command, 0x00000000);\n\t}", "public void setRemoteRingbackTone(String ring);", "public void send(String message) {\r\n String command;\r\n if ( !message.startsWith(\"/\") || message.length() == 1 || message.startsWith(\"/ \")) {\r\n command = \"MESG\" + \" \" + message;\r\n } else {\r\n StringTokenizer tokens = new StringTokenizer(message);\r\n command = tokens.nextToken(\"/\").toUpperCase();\r\n if (command.equals(\"MESG\") && tokens.hasMoreTokens()) {\r\n command = command + \" \" + tokens.nextToken(\"\\n\").trim();\r\n } else {\r\n while (tokens.hasMoreTokens()) {\r\n command = command + \" \" + tokens.nextToken(\" \\n\");\r\n }\r\n }\r\n }\r\n if (out != null) {\r\n out.println(command);\r\n } else {\r\n keepGoing = false;\r\n finalize();\r\n }\r\n }", "public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}", "void sendMessage(String msg);", "public void sendCommand(Command cmd);", "private void moveMotor(String num){\n Log.d(\"moveMotor\", \"TO\" + num);\n if (btSocket!=null) {\n try {\n btSocket.getOutputStream().write((\"TO\" + num).getBytes());\n }\n catch (IOException ex) {\n msg(\"Error\");\n }\n }\n }", "public void setMessage(String message);", "public void setMessage(String message);", "public void setMessage(String message);", "public void sendMessage(String message) {\r\n sendMessageAsByte(message.getBytes());\r\n }", "public void sendMessage(String message);", "public void sendCommands(String command) {\n try {\n printStream.print(command);\n }\n catch (Exception e){\n\n }\n\n\n }", "private void bluetoothSendMsg(String s) {\n byte [] msgOnBuf;\n msgOnBuf = s.getBytes();\n try {\n outStream.write(msgOnBuf);\n } catch (IOException e) {\n Log.d(TAG,\"send message fail!\");\n }\n }", "private void setMessage(final String message) {\n }", "public void sendNewConfiguration() {\n this.mWmService.mH.obtainMessage(18, this).sendToTarget();\n }", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void sendMsg(String msg) {\n\n\t}", "public void setMessage(String message){\r\n this.message = message;\r\n key = randNumber.nextInt(50) + 1; \r\n\r\n encode();\r\n }", "public void sendMessage(String message) {\n\n setChanged();\n notifyObservers(message);\n }", "public void sendPlayer(Player p) {\n\t\tp.sendMessage(ChatColor.GREEN + \"Welcome to the \" + ChatColor.GOLD + \"Tregmine Network\" + ChatColor.GREEN + \" Lobby!\");\n\t\tByteArrayDataOutput out = ByteStreams.newDataOutput();\n\t\tout.writeUTF(\"Connect\");\n\t\tout.writeUTF(\"Hub\");\n\t\tp.sendPluginMessage(this, \"BungeeCord\", out.toByteArray());\n\t}", "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 }", "void sendMessage(String pid,String cmd,MintReply mr,int flags)\n{\n sendMessage(pid,cmd,null,mr,flags);\n}", "private void sendMessage(String message) {\n if (mBtService.getState() != BluetoothService.STATE_CONNECTED) {\n Toast.makeText(this, R.string.not_connected, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Check that there's actually something to send\n if (message.length() > 0) {\n // Get the message bytes and tell the BluetoothChatService to write\n byte[] send = message.getBytes();\n mBtService.write(send);\n\n // Reset out string buffer to zero and clear the edit text field\n mOutStringBuffer.setLength(0);\n }\n }", "private void sendCustomMessage(String message, String alli) {\n String frontA = \"V\" + alli;\n String gobbleDeGuck = \"<ID 0><CLR><WIN 0 0 287 31><POS 0 0><SL><S S><BL N><CS 3><GRN><T>\";\n String mid = message;\n String ender = \"</T>\";\n String sendableMsgString = frontA + gobbleDeGuck + mid + ender;\n //\n sendRawMessage(sendableMsgString);\n }", "private void sendMessage(String message) {\n\t\t// Check that we're actually connected before trying anything\n\t\tif (mChatService.getState() != BluetoothCommService.STATE_CONNECTED) {\n\t\t\tToast.makeText(this, R.string.not_connected, Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\treturn;\n\t\t}\n\n\t\t// Check that there's actually something to send\n\t\tif (message.length() > 0) {\n\t\t\t// Get the message bytes and tell the BluetoothCommService to write\n\t\t\tbyte[] send = message.getBytes();\n\t\t\tmChatService.write(send);\n\n\t\t\t// Reset out string buffer to zero and clear the edit text field\n\t\t\tmOutStringBuffer.setLength(0);\n\t\t\t// mOutEditText.setText(mOutStringBuffer);\n\t\t}\n\t}", "public static void sendMessage(String message) {\n getBwapi().sendText(message);\n }", "public void sendHelloMessage() {\n getSocketController().send(getMessageController().createHelloMessage(\"Сервер\", getUser().getName()));\n }", "private synchronized void sendToClient(PrintWriter pw, String message)\n {\n pw.write(message + \"\\n\");\n pw.flush();\n }", "void send();", "@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "public void sendMessage(String message) {\n\t\tsocketTextOut.println(message);\n\t\tsocketTextOut.flush();\n\t}", "public void send(String command)\n {\n if (connected) { \n writer.println(command + \";\");\n }\n }", "@Override\n\tpublic void Send(String message) {\n\t\tgetReceiveArea().append(\"我:\"+message + \"\\n\");\n\t\tgetMediator().sendMessage(getName(), message);\n\t}", "private void sendNotification() {\n }", "public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }", "public void send(){ \n\t\tserverAddress=tfTxtIpServer.getText();\n\t\tserverPort=\"3232\";\n\t\ttext=tfTxtMsg.getText();\n try{\n\t\t\t// get the \"registry\"\n registry=LocateRegistry.getRegistry(\n serverAddress,\n (new Integer(serverPort)).intValue()\n );\n\t\t // look up the remote object\n rmiServer=(ReceiveMessageInterface)(registry.lookup(\"rmiServer\"));\n\t\t\t// call the remote method\n rmiServer.receiveMessage(text);\n }\n catch(RemoteException e){\n e.printStackTrace();\n }\n catch(NotBoundException e){\n e.printStackTrace();\n } \n }", "public void send(Message msg);", "public void setMessage(Message message) {\n this.message = message;\n setChanged();\n notifyObservers(); // This calls the update() in Processor.java\n }", "protected void sendMidiNote(int m, int n, int v)\n {\n byte[] msg = new byte[3];\n msg[0] = (byte)m;\n msg[1] = (byte)n;\n msg[2] = (byte)v;\n midiDriver.write(msg);\n }", "private void sendSignal(){\n\t\tSystem.out.println(inputLine + \"test\");\n\t\tMessageContent messageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM);\n\t\tif(inputLine.equals(Constants.BUTTON_1_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_BEDROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_1_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_BEDROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_2_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_KITCHEN, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_2_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_KITCHEN, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_3_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_LIVINGROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_3_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_LIVINGROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_4_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_4_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM, \"0\");\n\t\t\tSystem.out.println(\"oh yeah\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_5_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.SHUTTER, Constants.PLACE_LIVINGROOM);\n\t\t}else if(inputLine.equals(Constants.BUTTON_5_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.SHUTTER, Constants.PLACE_LIVINGROOM);\n\t\t}\n\t\t\t\t\n\t\tString json = messageContent.toJSON();\n\t\tDFAgentDescription template = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n if (inputLine.equals(Constants.BUTTON_5_ON) || inputLine.equals(Constants.BUTTON_5_OFF)) {\n\t\tsd.setType(Constants.SHUTTER);\n\t\tsd.setName(Constants.PLACE_LIVINGROOM);\n } else {\n\t\tsd.setType(Constants.AUTO_SWITCH);\n\t\tsd.setName(Constants.AUTO_SWITCH_AGENT);\n }\n template.addServices(sd);\n try {\n DFAgentDescription[] result = DFService.search(myAgent, template);\n if (result.length > 0) {\n ACLMessage request = new ACLMessage(ACLMessage.REQUEST);\n if (inputLine.equals(Constants.BUTTON_5_ON) || inputLine.equals(Constants.BUTTON_5_OFF)) {\n\t\t\t\trequest.setPerformative(ACLMessage.INFORM);\n }\n for (DFAgentDescription receiver : result) {\n if (!receiver.getName().equals(myAgent.getAID())) {\n request.addReceiver(receiver.getName());\n \n }\n }\n request.setContent(json);\n myAgent.send(request);\n }\n } catch(FIPAException fe) {\n fe.printStackTrace();\n }\n\n\n\t}", "public void sendMessage(String message) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage bctMessage = Message.makeBroadcastMessage(userName, message);\n\t\tsocketConnection.print(bctMessage);\n\t}", "public void mo1611c() {\r\n Message.obtain(this.f4603a.f4598n, 6, null).sendToTarget();\r\n }", "void sendStartMessage();", "void sendStartMessage();", "protected byte[] sendToBrickPi(byte[] toSend) {\n \t\n \tbyte resultBytes[] = new byte[] {};\n \t \t\n \tif (DEBUG_LEVEL > 0) {\n StringBuffer output = new StringBuffer();\n output.append(\"Sending\");\n for (byte toAdd : toSend) {\n output.append(\" \");\n output.append(Integer.toHexString(toAdd & 0xFF));\n }\n System.out.println(output.toString());\n }\n \t\n \ttry {\n \tresultBytes = spi.write(toSend);\n \t\n \tif (DEBUG_LEVEL > 0) {\n StringBuffer input = new StringBuffer();\n input.append(\"Received \");\n\n for (byte received : resultBytes) {\n input.append(\" \");\n input.append(Integer.toHexString(received & 0xFF));\n }\n System.out.println(input.toString());\n }\n \t\n }\n catch(IOException ex) {\n \t\tLOGGER.error(ex.getMessage(), ex); \t\n }\n \t\n \treturn resultBytes;\n }", "public void sendMessage(final int note) {\n final ShortMessage myMsg = new ShortMessage();\n final long timeStamp = -1;\n\n // hard-coded a moderate velocity of 93 because there is no way of tracking speed of finger movement\n try {\n myMsg.setMessage(ShortMessage.NOTE_ON, 0, note, 93);\n } catch (final InvalidMidiDataException e) {\n System.err.println(\"Could not send midi message! \");\n System.err.println(e.getMessage());\n }\n this.midiReceiver.send(myMsg, timeStamp);\n\n// turn the note off after one second of playing\n final ExecutorService service = Executors.newFixedThreadPool(1);\n service.submit(() -> {\n try {\n Thread.sleep(1000);\n //stop old note from playing\n myMsg.setMessage(ShortMessage.NOTE_OFF, 0, note, 0);\n this.midiReceiver.send(myMsg, timeStamp);\n } catch (final InterruptedException | InvalidMidiDataException e) {\n e.printStackTrace();\n }\n });\n }", "private void sendMessage(String text)\n {\n Message msg = mHandler.obtainMessage();\n Bundle bundle = new Bundle();\n bundle.putString(\"text\",text);\n msg.setData(bundle);\n msg.what = 1;\n mHandler.sendMessage(msg);\n }", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "protected void sendViaUnderlyingTransport(final String message){\n log.debug(\"Message to send {}\", message);\n\n Message.creator(phoneReceiver, phoneSender, message)\n .create();\n }", "public void setMessage(String word){\r\n message.setText(word);\r\n }", "private void sendMessage() {\n\n // Get the right Prefix\n String prefix = null;\n\n if ( !messageGroup.getPrefix().equalsIgnoreCase(\"\") ) {\n prefix = messageGroup.getPrefix();\n } else {\n prefix = Announcer.getInstance().getConfig().getString(\"Settings.Prefix\");\n }\n\n Announcer.getInstance().getCaller().sendAnnouncment( messageGroup, prefix, counter);\n\n counter();\n\n }", "@Override\n\tpublic void send(MidiMessage message, long timeStamp) {\n\t\tif (startPressed && !jam) {\n\t\t\tif (message instanceof ShortMessage) {\n\t\t\t\tShortMessage sm = (ShortMessage) message;\n\t\t\t\tint command = sm.getCommand();\n\n\t\t\t\tif (command == ShortMessage.NOTE_ON) {\n\t\t\t\t\t// System.out.println(\"GOT NOTE ON CHANNEL \" +\n\t\t\t\t\t// part.getChannel());\n\t\t\t\t\tint noteNum = sm.getData1();\n\t\t\t\t\tif (part.isNext(noteNum)) {\n\t\t\t\t\t\tsendData(\n\t\t\t\t\t\t\t\tnew MyMessage(part.getChannel(), Type.TIME_UPDATE, part.getTime(), part.getNextTime()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tDouble time = part.isPossible(noteNum);\n\n\t\t\t\t\t\tif (time != null) {\n\t\t\t\t\t\t\t// sendData(new MyMessage(part.getChannel(),\n\t\t\t\t\t\t\t// Type.TIME_UPDATE, time, false));\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"working on new part, not sending message from channel: \" + part.getChannel());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// check if done\n\t\t\t\tif (part.isDone()) {\n\t\t\t\t\tsendData(new MyMessage(part.getChannel(), Type.PART_DONE));\n\t\t\t\t\tSystem.out.println(\"SONG DONE: RECIEVER \" + part.getChannel());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void sendMessage(String text)\n\t{\n\t\ttry\n\t\t{\n\t\t\tout.println(text);\n\t\t\tout.flush();\n\t\t}\n\t\tcatch(NullPointerException e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}", "private void sendMessageToPrompt(String txt){\n\t\tMessage msg = new Message();\n\t\tmsg.obj = \"UDPReceiver: \" + txt;\n\t\tthis.msgPromptHandler.sendMessage(msg);\n\t}", "@Override\r\n public void update(String message) {\r\n send(message);\r\n }", "public synchronized void sendPrompt(String message) {\n session.sendMessage(gameChannel,message,null);\n lastMessage = message;\n }", "public void sendMessage(String message) {\n try {\n bos.write(message);\n bos.newLine();\n bos.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.66784495", "0.6514763", "0.62643117", "0.6254364", "0.62357765", "0.6222397", "0.6178669", "0.61354876", "0.61334616", "0.6126038", "0.61219007", "0.61219007", "0.608335", "0.6076794", "0.60552394", "0.60530543", "0.6028377", "0.60208815", "0.60204357", "0.5992051", "0.5939805", "0.5929134", "0.5917247", "0.59169626", "0.59153223", "0.5904719", "0.5895434", "0.5883998", "0.58818066", "0.58793885", "0.58532274", "0.58526844", "0.5832217", "0.58226603", "0.5820818", "0.5820746", "0.58122563", "0.57970995", "0.57828134", "0.57726264", "0.5772091", "0.5766308", "0.5766096", "0.57649237", "0.5756804", "0.57551205", "0.57380706", "0.5736431", "0.57339865", "0.57339346", "0.5720782", "0.5720782", "0.5720782", "0.5719357", "0.5713524", "0.5712072", "0.5699735", "0.569451", "0.56866276", "0.5685724", "0.5678496", "0.56766737", "0.56757754", "0.56722105", "0.5671711", "0.56716204", "0.56711215", "0.56700563", "0.56642705", "0.5658669", "0.56556094", "0.5639612", "0.56367517", "0.56354415", "0.56277335", "0.5624856", "0.56139445", "0.5606409", "0.5604951", "0.560383", "0.55985326", "0.5596571", "0.55961466", "0.5594555", "0.55931044", "0.5590344", "0.55862606", "0.55862606", "0.5582928", "0.557119", "0.5570523", "0.5569734", "0.55652326", "0.55626744", "0.5555265", "0.5553614", "0.55521387", "0.55504715", "0.55482495", "0.5547712", "0.55422586" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { dispose(); }
{ "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
checks the multiplier at the points x,y and returns the score receved at that point
private int checkMultiplier(String word, int index, int x, int y, boolean TotalisZero) { ScrabbleWord multiplyScrabbleWord = new ScrabbleWord(word); if((x < 0 )|| (y < 0)) { return -1000; } if(TotalisZero){ return multiplyScrabbleWord.getscore(); } switch(board[y][x]) { case 1: //2 times the letter score return 2*multiplyScrabbleWord.getscoreat(index); case 2: //3 times the letter score return 3*multiplyScrabbleWord.getscoreat(index); case 3: //2 times the word score return 2*multiplyScrabbleWord.getscore(); case 4: //3 times the word score return 3*multiplyScrabbleWord.getscore(); case 0: return 0; } return -1000; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ScoreMultiplier(float x, float y, float multiplier){\r\n\t\tposition.x = x;\r\n\t\tposition.y = y;\r\n\t\tthis.multiplier = multiplier;\r\n\t}", "public int returnPoints()\n {\n return score ;\n }", "Float getScore();", "public abstract double evaluate(Point p);", "public long getScore(int x)\n {\n return score[x];\n }", "float getScore();", "float getScore();", "public double getScore() {\n return score - penalty;\n }", "Point mult (double s, Point result);", "private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }", "@Override\r\n\tpublic int calculax2p(int score, boolean zerou) {\r\n\t\tif(score > getMaiorScore()) {\r\n\t\t\treturn score / 1000;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "public double getYmultiplier()\n {\n return ymultiplier; \n }", "public int getScore()\n {\n return points + extras;\n }", "public abstract float getScore();", "int getNeedPoints();", "void addPointsToScore(int points) {\n score += points;\n }", "@Override\n public double evaluate(GameState state, int id) {\n ArrayList<Double> scores = new ArrayList<>();\n for (int i = 0; i < 2; i++) {\n List<Double> bullets = new BulletDistanceFeature().extract(state, i);\n double angle = new OrientationFeature().extract(state, i);\n double positionScore = new PositionScoreFeature().extract(state, i);\n\n // take log of bullet distance to magnify the importance of ones closer to you\n double bulletScore = bullets.stream().mapToDouble(Math::log).sum();\n\n scores.add((bulletScore * this.bulletDist) + (angle * this.orientation) + positionScore * this.position);\n }\n return this.courage * scores.get(id) - scores.get(1 - id);\n }", "int score();", "int score();", "public void score() {\n\t\tif (Integer.parseInt(px.getPosition()) != Integer.parseInt(getCurrentPositionX()))\n\t\t{\n\t\t\tpx.addObserver(Obsx);\n\t\t\tpx.setPosition(getCurrentPositionX());\n\t\t}\n\t\tif (Integer.parseInt(py.getPosition()) != Integer.parseInt(getCurrentPositionY()))\n\t\t{\n\t\t\tpy.addObserver(Obsy);\n\t\t\tpy.setPosition(getCurrentPositionY());\n\t\t}\n\t}", "public int differencePoints(){\n return player1Score - player2Score;\n }", "boolean isNearMatch(double score);", "private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}", "public double getBestScore();", "static int multiply(int x, int y) {\n\n /* 0 multiplied with anything gives 0 */\n if (y == 0)\n return 0;\n\n /* Add x one by one */\n if (y > 0)\n return (x + multiply(x, y - 1));\n\n /* the case where y is negative */\n if (y < 0)\n return -multiply(x, -y);\n\n return -1;\n }", "double getDeltaScore();", "public double getXmultiplier()\n {\n return xmultiplier; \n }", "@Override\n\tprotected int calculateScore() {\n\t\treturn Math.abs(playerScore[0] - playerScore[1]);\n\t}", "public void addPoints(int earnedPoints) {score = score + earnedPoints;}", "protected abstract List<Double> calcScores();", "public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}", "int getScore();", "Double getMultiplier();", "private int getScoreForPiecePosition(int row, int column) {\r\n\t\tbyte[][] positionWeight =\r\n\t\t{ {1,1,1,1,1,1,1,1}\r\n\t\t ,{2,2,2,2,2,2,2,2}\r\n\t\t ,{2,2,3,3,3,3,2,2}\r\n\t\t ,{2,2,3,4,4,3,2,2}\r\n\t\t ,{2,2,3,4,4,3,2,2}\r\n\t\t ,{2,2,3,3,3,3,2,2}\r\n\t\t ,{2,2,2,2,2,2,2,2}\r\n\t\t ,{1,1,1,1,1,1,1,1}\r\n\t\t };\r\n\t\treturn positionWeight[row][column];\r\n\t}", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "public void awardPoints(int points)\n {\n score += points ;\n }", "public int getScorePoints() {\n/* 75 */ return this.scorePoints;\n/* */ }", "static int multiply(int x, int y) {\n\t\tif (y > 0)\n\t\t\treturn (x + multiply(x, y - 1));\n\n\t\t/* the case where y is negative */\n\t\tif (y < 0)\n\t\t\treturn -multiply(x, -y);\n\t\t/* 0 multiplied with anything gives 0 */\n\t\treturn 0;\n\t}", "public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}", "public double getValue(double x, double y){\n\n\tint i,j;\n\tdouble fracX,fracY;\n\tdouble Wxm, Wx0, Wxp, Wym, Wy0, Wyp;\n\tdouble Vm, V0, Vp;\n\n\n\tif(x < x_min || y < y_min || x > x_max || y > y_max){\n\t return z_min;\n\t}\n\n i = (int) ((x-x_min)/x_step + 0.5);\n j = (int) ((y-y_min)/y_step + 0.5);\n\n if( i < 1) i = 1;\n if( i > (nX-2)) i = nX-2;\n if( j < 1) j = 1;\n if( j > (nY-2)) j = nY-2;\t \n\n fracX = (x - x_min - i*x_step)/x_step;\n fracY = (y - y_min - j*y_step)/y_step;\n\n\tWxm = 0.5*(0.5 - fracX)*(0.5 - fracX);\n\tWxp = 0.5*(0.5 + fracX)*(0.5 + fracX);\n\tWx0 = 0.75 - fracX*fracX;\n\n\tWym = 0.5*(0.5 - fracY)*(0.5 - fracY);\n\tWyp = 0.5*(0.5 + fracY)*(0.5 + fracY);\n\tWy0 = 0.75 - fracY*fracY;\n\n\tVm = Wxm*gridData[i-1][j-1]+Wx0*gridData[i][j-1]+Wxp*gridData[i+1][j-1];\n\tV0 = Wxm*gridData[i-1][j] +Wx0*gridData[i][j] +Wxp*gridData[i+1][j];\n\tVp = Wxm*gridData[i-1][j+1]+Wx0*gridData[i][j+1]+Wxp*gridData[i+1][j+1];\n\n return Wym*Vm + Wy0*V0 + Wyp*Vp;\n }", "protected abstract void calcScores();", "public double pointsEarned();", "public double get(int y, int x);", "int getScoreValue();", "private double eval(final GameStateModule game) {\n int player = game.getActivePlayer();\n int ourScore = 6*(threeInCol(game, player) + threeInRow(game, player) + threeInPos(game, player) + threeInNeg(game, player))\n + 3*(twoInCol(game, player) + twoInRow(game, player) + twoInPos(game, player) + twoInNeg(game, player));\n int theirScore = 7*(threeInCol(game, 2/player) + threeInRow(game, 2/player) + threeInPos(game, 2/player) + threeInNeg(game, 2/player))\n + 4*(twoInCol(game, 2/player) + twoInRow(game, 2/player) + twoInPos(game, 2/player) + twoInNeg(game, 2/player));\n return ourScore - theirScore;\n }", "private void calculateStPointScore() {\n\t\tint total = 0;\n\t\tint maxAnswerSize = 0;\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\ttotal += oneQ.getFrequency() * oneQ.getGapCount();\n\t\t\tint tempSize = oneQ.getSupport() * oneQ.getGapCount();\n\t\t\tif (tempSize > maxAnswerSize)\n\t\t\t\tmaxAnswerSize = tempSize;\n\t\t}\n\t\ttotal += maxAnswerSize;\n\t\tthis.stPointScore = total;\n\t}", "double distanceSq (double px, double py);", "public void multiply(double multiplier) {\n x *= multiplier;\n y *= multiplier;\n }", "private double getScaledEvaluatorScore(long channelId) {\n double score = mEvaluator.evaluateChannel(channelId);\n if (score < 0.0) {\n if (score != Evaluator.NOT_RECOMMENDED) {\n Log.w(TAG, \"Unexpected score (\" + score + \") from the recommender\"\n + mEvaluator);\n }\n // If the recommender gives up to calculate the score, return 0.0\n return Evaluator.NOT_RECOMMENDED;\n } else if (score > 1.0) {\n Log.w(TAG, \"Unexpected score (\" + score + \") from the recommender\"\n + mEvaluator);\n score = 1.0;\n }\n return mBaseScore + score * mWeight;\n }", "public void calculateFinalPoints() {\n int finalPoints = 0;\n for (final Entry<Question, ExamResultAnswers> entry : submittedAnswers.entrySet()) {\n final Question question = entry.getKey();\n double partialPoint = 0;\n final double pointStep = (double) question.getPoints() / question.getAnswers().size();\n final Iterator<Answer> correctAnswers = question.getAnswers().iterator();\n final Iterator<Answer> studentAnswers = entry.getValue().getAnswers().iterator();\n while (correctAnswers.hasNext() && studentAnswers.hasNext()) {\n final Answer studentAnswer = studentAnswers.next();\n final Answer correctAnswer = correctAnswers.next();\n if (question.getType() == QuestionType.FILL_IN_THE_BLANK) {\n if (studentAnswer.getText().trim().equalsIgnoreCase(correctAnswer.getText().trim())) {\n partialPoint += pointStep;\n } else {\n if (exam.getEvaluationMethod() == WrongAnswerEvaluationMethod.SUBTRACTION) {\n partialPoint -= pointStep;\n }\n }\n } else if (question.getType() == QuestionType.SINGLE_CHOICE) {\n // A single choice brings only points if the ONE correct one is chosen, otherwise always zero points\n if (studentAnswer.isRightAnswer() == correctAnswer.isRightAnswer()\n && correctAnswer.isRightAnswer()) {\n partialPoint += question.getPoints();\n break;\n } else if (studentAnswer.isRightAnswer() && !correctAnswer.isRightAnswer()) {\n partialPoint = 0;\n break;\n }\n } else if (question.getType() == QuestionType.MULTIPLE_CHOICE) {\n if (studentAnswer.isRightAnswer() == correctAnswer.isRightAnswer()) {\n partialPoint += pointStep;\n } else {\n if (exam.getEvaluationMethod() == WrongAnswerEvaluationMethod.SUBTRACTION) {\n partialPoint -= pointStep;\n }\n }\n }\n }\n if (partialPoint < 0) {\n partialPoint = 0;\n }\n finalPoints += (int) Math.round(partialPoint);\n }\n points = finalPoints;\n final int maxPoints = exam.getMaxPoints();\n passed = (finalPoints / (double) maxPoints) * 100 >= exam.getMinPoints();\n }", "double scoreAnswer(Question question, Answer answer);", "protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }", "Sum getMultiplier();", "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "private int calculatePoints() {\n //Variable que tiene la vista\n CheckBox checkbox1 = findViewById(R.id.checkbox_1);\n CheckBox checkbox2 = findViewById(R.id.checkbox_2);\n CheckBox checkbox3 = findViewById(R.id.checkbox_3);\n\n //Variable de puntos ganados\n int questionPoints = 0;\n\n //Condicion para calcular puntaje\n if(checkbox1.isChecked() && checkbox3.isChecked() && !checkbox2.isChecked()){\n questionPoints = 2;\n }\n else{\n questionPoints = 0;\n }\n\n //Devolver puntaje obtenido\n return questionPoints;\n\n }", "public int multiply(int x , int y ) {\n\t\tif( x==0 || y == 0)\n\t\t\treturn 0;\n\t\treturn exp[ log[x] + log[y]];\n\t}", "void awardPoints(){\n if (currentPoints <= 100 - POINTSGIVEN) {\n currentPoints += POINTSGIVEN;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }\n }", "@Override\n\t\t\t\tpublic int compare(Integer o1, Integer o2) {\n\t\t\t\t\treturn points[o2][0]*points[o2][0]+points[o2][1]*points[o2][1]-points[o1][0]*points[o1][0]-points[o1][1]*points[o1][1];\n\t\t\t\t}", "@Override\r\n\tpublic int multi(int x, int y) {\n\t\treturn x * y;\r\n\t}", "protected double evaluate(IChromosome chromosome) {\n\t double score = 0;\n\t \t \n\t List dups = new ArrayList();\n\t int badSolution = 1;\n\n\t for (int i = 0; i < chromosome.size(); i++) {\n\n\t //IntegerGene agene = (IntegerGene) chromosome.getGene(i);\n\t //System.out.println(agene);\n\t int index = (Integer) chromosome.getGene(i).getAllele();\n\t \n\t if (dups.contains(index)) {\n\t badSolution = 0;\n\t } else {\n\t dups.add(index);\n\t }\n\n\t Equipo equipo = (Equipo) equipos.get(index);\n\t double genreScore = getGenreScore(equipo);\n\t if (genreScore == 0) {\n\t badSolution = 0;\n\t }\n\t score = (score+genreScore);\n\n\t }\n\t \n\t return (score * badSolution);\n\t }", "Float getAutoScore();", "public int multiply(int x, int y) {\n int n1 = x; //n1 = c_n * 2^n + c_n-1 * 2^n-1 + ... + c_1 * 2 + c_0 * 1 where c_i = {0, 1} \n int n2 = y; //n2 = c_m * 2^m + c_m-1 * 2^m-1 + ... + c_1 * 2 + c_0 * 1 where c_i ] {0, 1}\n int sum = 0; //named sum b/c represent the product of n1 and n2 as the sum of their constituent parts\n /*\n let n1 be rep as in its binary form (***...***) a bit string\n n1*n2 = (***...***)(c_m * 2^m + ... + c_0 * 1)\n = (***...***)(c_0 * 1) + (***...***)(c_1 * 2) + ... + (***...***)(c_m * 2^m)\n since << has the effect of multiplying a number by 2, can rep as\n = (***...***)(c_0 * 1) + (***...***)(c_1 * 1) << 1 + (***...***)(c_2 * 1) << 2 + ... + (***...***)(c_m * 1) << m\n so for each loop through a loop left shift n1 by one to simulate multiplying the next term by 2\n also right shift n2 to find c_i, the value of the bit in the bit string n2\n */\n while (n2 != 0) { // if n2 == 0 run through the length of n2 and nothing left to do\n if ((n2 & 1) == 0) { //find the last bit of n2; if it is 0 then do nothing because the n1 term will be multiplied by 0\n } else {//else it is 1 so add n1 to the sum\n sum = add(sum, n1); //bitwise addition has already been defined (implemented)\n }\n n1 = n1 << 1; //leftshift n1 to mult by 2; see above comments\n n2 = n2 >>> 1; //rightshift n2 to find value of next bit in bit string\n }\n return sum;\n }", "private static int getResult(int x, int y) {\n\t\tint startx=0;\r\n\t\tint starty=0;\r\n\t\tint num=1;\r\n\t\tif(startx==x&&starty==y){\r\n\t\t\treturn num;\r\n\t\t}\r\n\t\tfor(int z=1;z<105;z++){\r\n\t\t\tfor(int i=1;i<=2*z-1;i++){\r\n\t\t\t\tstartx=startx+1;\r\n\t\t\t\tnum++;\r\n//\t\t\t\tSystem.out.println(num);\r\n\t\t\t\tif(startx==x&&starty==y){\r\n\t\t\t\t\treturn num;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor(int i=1;i<=2*z-1;i++){\r\n\t\t\t\tstarty=starty+1;\r\n\t\t\t\tnum++;\r\n//\t\t\t\tSystem.out.println(num);\r\n\t\t\t\tif(startx==x&&starty==y){\r\n\t\t\t\t\treturn num;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor(int i=1;i<=2*z;i++){\r\n\t\t\t\tstartx=startx-1;\r\n\t\t\t\tnum++;\r\n//\t\t\t\tSystem.out.println(num);\r\n\t\t\t\tif(startx==x&&starty==y){\r\n\t\t\t\t\treturn num;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor(int i=1;i<=2*z;i++){\r\n\t\t\t\tstarty=starty-1;\r\n\t\t\t\tnum++;\r\n//\t\t\t\tSystem.out.println(num);\r\n\t\t\t\tif(startx==x&&starty==y){\r\n\t\t\t\t\treturn num;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn num;\r\n\t}", "public void calculateScore() {\n\n turnScore();\n\n if (turn == 1) {\n p1.setScore(p1.getScore() - turnScore);\n\n } else if (turn == 2) {\n p2.setScore(p2.getScore() - turnScore);\n\n }\n\n\n }", "@Nonnull\n @Override\n public Double getScore(MiniBoard miniBoard) {\n final ImmutableList<Integer> mrXLocationList = ImmutableList.of(miniBoard.getMrXLocation());\n final List<Integer> distanceToSource =\n distanceMeasurer.getDistances(mrXLocationList, miniBoard.getDetectiveLocations()).get(0);\n Collections.sort(distanceToSource);\n List<Double> weightsList = distanceToSource.stream()\n .map(value -> pow(locationScoreExp, -value)/(1 - pow(locationScoreExp, -1)))\n .collect(Collectors.toList());\n final Double weightsListSum = weightsList.stream().reduce(0.0,Double::sum);\n weightsList = weightsList.stream().map(value -> value/weightsListSum).collect(Collectors.toList());\n\n\n double totalScore = 0.0;\n for(int i = 0; i < distanceToSource.size(); i++) {\n final Double unweightedScore = 1 - pow(locationScoreExp, 1 - distanceToSource.get(i));\n totalScore += weightsList.get(i)*unweightedScore;\n }\n return totalScore;\n }", "float getMatch();", "public void calcMatch() {\n if (leftResult == null || rightResult == null) {\n match_score = 0.0f;\n } else {\n match_score = FaceLockHelper.Similarity(leftResult.getFeature(), rightResult.getFeature(), rightResult.getFeature().length);\n match_score *= 100.0f;\n tvFaceMatchScore1.setText(Float.toString(match_score));\n llFaceMatchScore.setVisibility(View.VISIBLE);\n\n }\n }", "int getPoints();", "public double berechneFlaeche()\n {\n return (2 * p1.getX()) * (2 * p1.getX());\n }", "private static double FindR2(double[] _y, double[] _x)\n {\n double avg = FindMeanY(_y);\n double sum = 0;\n double yQuad = 0;\n\n // a = SolutionMatrix.get(1, 0);\n // b = SolutionMatrix.get(2, 0);\n // find average\n for(int i = 0; i < _y.length; i ++)\n {\n yQuad += Math.pow((_y[i] - avg), 2);\n }\n\n double Usefulnum1 = 0;\n double Usefulnum2 = 0;\n double Usefulnum3 = 0;\n\n double[] Equation = new double[d+1];\n\n // find equation\n for(int i = 0; i < SolutionMatrix.getColumnDimension(); i++)\n {\n //Usefulnum1 = SolutionMatrix.get((SolutionMatrix.getColumnDimension() - 1 - i), 0) * _x[i]; // a...z value\n for (int jj = d; jj > 0; jj--)\n {\n Usefulnum2 = SolutionMatrix.get(SolutionMatrix.getColumnDimension() - jj, 0) * _x[i];\n Usefulnum3 += Math.pow(_y[i] - Usefulnum2, 2);\n }\n }\n System.out.print(Usefulnum3);\n for(int i = 0; i < _y.length; i ++)\n {\n\n }\n\n return sum;\n }", "public static int potencia(int x, int y){\r\n int potencia = x;\r\n if (y!=0){\r\n for (int i = 1; i<y; i++){\r\n potencia = potencia * x;\r\n }\r\n }else {\r\n potencia = 1;\r\n }\r\n return potencia;\r\n}", "@Test\r\n public void calculateScore() {\r\n board3.swapTiles(0,0,1,1);\r\n board3.getSlidingScoreBoard().setTime(2);\r\n board3.getSlidingScoreBoard().calculateScore();\r\n assertEquals(496, board3.getSlidingScoreBoard().getScore());\r\n }", "public Point evaluate(double x, double y, double z) {\n\t\t// x=(-(yn(y-y0)+zn(z-z0))+xn*x0)/xn\n\t\tif (x != x) {\n\t\t\tx = (-(normal.y * (y - origin.y) + normal.z * (z - origin.z)) + normal.x\n\t\t\t\t\t* origin.x)\n\t\t\t\t\t/ normal.x;\n\t\t\treturn new Point(x, y, z);\n\t\t} else if (y != y) {\n\t\t\ty = (-(normal.x * (x - origin.x) + normal.z * (z - origin.z)) + normal.y\n\t\t\t\t\t* origin.y)\n\t\t\t\t\t/ normal.y;\n\t\t\treturn new Point(x, y, z);\n\t\t} else if (z != z) {\n\t\t\tz = (-(normal.y * (y - origin.y) + normal.x * (x - origin.x)) + normal.z\n\t\t\t\t\t* origin.z)\n\t\t\t\t\t/ normal.z;\n\t\t\treturn new Point(x, y, z);\n\t\t}\n\t\treturn null;\n\t}", "public int resta(){\r\n return x-y;\r\n }", "public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }", "Point mult (double s);", "public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n for (int score: dice) {\n switch (score){\n case 1 -> count[0]++;\n case 2 -> count[1]++;\n case 3 -> count[2]++;\n case 4 -> count[3]++;\n case 5 -> count[4]++;\n case 6 -> count[5]++;\n }\n } \n\n // > CHECKING IF THERE'S A COUNT OF 3 AND ASSIGNING POINTS\n // A variable to hold the points is needed\n int points = 0;\n //check if there is a count of 3 in the count array, using a fori loop to keep track of the score value being iterated\n for (int i = 0, score = i+1 ; i < count.length; i++) {\n //if found\n if(count[i] > 2){\n // assign points\n // * points system for 3 occurrences\n // Three 1's => 1000 points\n // Three 6's => 600 points\n // Three 5's => 500 points\n // Three 4's => 400 points\n // Three 3's => 300 points\n // - score 1's point is a special case\n // - for the rest, points awarded = score*100\n if(score == 1){\n points += 1000;\n count[i] -= 3;\n }else{\n points += (score *100);\n count[i] -= 3;\n }\n }\n }\n\n // > CHECKING IF THE SCORE 1 AND 5 HAVE OCCURRENCES > 0 AND ASSIGNING POINTS IF TRUE\n //if true\n if(count[0] > 0)\n points += (100* count[0]);\n if(count[4] > 0)\n points += (50 * count[4]);\n return points;\n }", "private double evaluate() {\n // check for draws first, most lickely\n if (board.gameState() == MNKGameState.DRAW) return 0;\n else if (board.gameState() == MY_WIN) return 2 * M * N; // 2 times max depth\n else if (board.gameState() == ENEMY_WIN) return -2 * M * N;\n else {\n evaluated++;\n // keep the heuristic evaluation between 1 and -1\n return board.value();\n }\n }", "public int getPoints();", "boolean checkCandidate(DoubleMatrix1D y){\n if(checkValidPt(y)){\n if(adaptiveScale){\n double qforward = Q(x,y,samplingScale);\n DoubleMatrix1D ySamplingScale = getScaleAdaptive(y);\n double qback = Q(y,x,ySamplingScale);\n if(qback/qforward > Math.random())//going to accept\n samplingScale = ySamplingScale;\n else\n return false;\n }\n x=y;\n return true;\n }\n else\n return false;\n }", "@Test\r\n\tpublic void calculLostPointsByOneRuleBelowMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(2f, 0.5f, 3f), new Integer(1)),\r\n\t\t\t\tnew Float(0));\r\n\t}", "public int producto(){\r\n return x*y;\r\n }", "private float getHitProbability(int x, int y) {\n\t\tfloat probability = 0;\n\t\t\n\t\tfor (int i = -TOWER_RANGE; i <= TOWER_RANGE; i++) {\n\t\t\tfor (int j = -TOWER_RANGE; j <= TOWER_RANGE; j++) {\n\t\t\t\tint curX = x + i;\n\t\t\t\tint curY = y + j;\n\t\t\t\tif (currentState.inBounds(curX, curY)\n\t\t\t\t\t\t&& distance(x, y, curX, curY) <= TOWER_RANGE) { // tower shoots in a circular range\n\t\t\t\t\tprobability = (probability + board.getTowerProbability(curX, curY)) - (probability * board.getTowerProbability(curX, curY));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn probability * TOWER_ACCURACY;\n\t}", "public double returnValue(double x, double y);", "@Override\n\tpublic int getScore(int target) {\n\t\tdouble d = toBound(target);\n\t\tif (d < 0 && d + height > 0){\n\t\t\treturn -50;\n\t\t} else {\n\t\t\treturn 5;\n\t\t}\n\t}", "float calculate (int x){\n\n float y ;\n y = a* (float) Math.pow(x,2) + b*x +c;\n return y;\n\n }", "static int SetScore(int p){\n\t\tif (p==1) {\n\t\t\tp1Score=p1Score+4;\n\t\t\tlblp1Score.setText(Integer.toString(p1Score));\n\t\t\t\n\t\t\t//check whether the score reaches to destination score or not..........\n\t\t\t\n\t\t\tif(p1Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p1Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==2){\n\t\t\tp2Score=p2Score+4;\n\t\t\tlblp2Score.setText(Integer.toString(p2Score));\n\t\t\t\n\t\t\tif(p2Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p2Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==3){\n\t\t\tp3Score=p3Score+4;\n\t\t\tlblp3Score.setText(Integer.toString(p3Score));\n\t\t\t\n\t\t\tif(p3Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p3Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tp4Score=p4Score+4;\n\t\t\tlblp4Score.setText(Integer.toString(p4Score));\n\t\t\t\n\t\t\tif(p4Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p4Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}", "public int getBonusPoints()\n\t{\n\t\tbonusPoints = 0;\n\t\t\n\t\t//Gets the bonus numbers\n\t\tint bonusNum1 = Integer.parseInt(bonus1Label.getText());\n\t\tint bonusNum2 = Integer.parseInt(bonus2Label.getText());\n\t\tint bonusNum3 = Integer.parseInt(bonus3Label.getText());\n\t\t\n\t\t//Gets the user's numbers\n\t\tint num1 = Integer.parseInt(num1Label.getText());\n\t\tint num2 = Integer.parseInt(num2Label.getText());\n\t\tint num3 = Integer.parseInt(num3Label.getText());\n\t\t\n\t\t//Compares to see if bonus and user numbers match\n\t\t//give bonus points if they do\n\t\tif(bonusNum1 == num1 || bonusNum1 == num2 || bonusNum1 == num3)\n\t\t{\n\t\t\tbonusPoints += 1;\n\t\t}//end if\n\t\t\n\t\tif(bonusNum2 == num1 || bonusNum2 == num2 || bonusNum2 == num3)\n\t\t{\n\t\t\tbonusPoints += 1;\n\t\t}// end if\n\t\t\n\t\tif(bonusNum3 == num1 || bonusNum3 == num2 || bonusNum3 == num3)\n\t\t{\n\t\t\tbonusPoints += 1;\n\t\t}// end if\n\t\t\n\t\treturn bonusPoints;\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleBetweenMaxMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 4f), new Integer(3)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "@Test\n public void testScoreUpdate() {\n try {\n final BestEvalScore score = new BestEvalScore(\"thjtrfwaw\");\n double expected = 0;\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n final Evaluation eval = new Evaluation(2);\n eval.eval(0,1);\n eval.eval(1,1);\n\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(0,1);\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(1,1);\n eval.eval(1,1);\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to create instance!\", e);\n }\n\n\n }", "private double pointVal(double x0, double y0, double x1, double y1, double x, double dt) {\r\n double a;\r\n double poitY;\r\n if (Math.abs(x1 - x0) > eps) {\r\n a = (y1 - y0) / (x1 - x0);\r\n } else {\r\n a = (y1 - y0) / (x1 - x0 + dt / 2.0);\r\n }\r\n poitY = y0 + a * (x - x0);\r\n return poitY;\r\n }", "double function(double xVal){\n\t\tdouble yVal = xVal*xVal*xVal;\n\t\treturn yVal;\n\t}", "@Override\n\t\t\tpublic double reward(State s1, Action a, State s2) {\n\t\t\t\tif ((Double)s2.get(\"x\") >= 0.5) {\n\t\t\t\t\treturn 100;\n\t\t\t\t}\n\t\t\t\tif ((Double)s2.get(\"x\") == mcGen.physParams.xmin) {\n\t\t\t\t\treturn -100;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\r\n\tpublic double evaluate(int[][] board, int currentPlayer) {\n\t\r\n\tdouble score;\t\r\n\tfinal int RANDOM_WEIGHT=5; // weight factor\r\n\t\r\n\tMaximumDisksEvaluation ob = new MaximumDisksEvaluation();\r\n\tCornerEvaluation ob1 = new CornerEvaluation();\r\n\tCornerClosenessEvaluation ob2 = new CornerClosenessEvaluation();\r\n\tFrontierEvaluation ob3 = new FrontierEvaluation();\r\n\tStabilityEvaluation ob4 = new StabilityEvaluation();\r\n\tPositionalEvaluation ob5 = new PositionalEvaluation();\r\n\tMobilityEvaluation ob6 = new MobilityEvaluation();\r\n\t\r\n\tscore = ob.evaluate(board, currentPlayer) + ob1.evaluate(board, currentPlayer) + ob2.evaluate(board, currentPlayer) + ob6.evaluate(board, currentPlayer) + ob3.evaluate(board, currentPlayer) + ob5.evaluate(board, currentPlayer) ; \r\n\t\r\n\treturn score;\r\n\t\r\n\t}", "boolean isPerfect(double score);" ]
[ "0.6690238", "0.6049733", "0.59973687", "0.59956855", "0.5923077", "0.5922201", "0.5922201", "0.5892796", "0.5874103", "0.58725107", "0.58620995", "0.5859303", "0.58081025", "0.57732004", "0.57693565", "0.5768749", "0.5764765", "0.57502425", "0.57370955", "0.57370955", "0.5730261", "0.56909156", "0.56796575", "0.56786543", "0.5666655", "0.5654501", "0.56393754", "0.5639021", "0.56154186", "0.56013215", "0.5598627", "0.5595378", "0.55899435", "0.55842984", "0.55834216", "0.5577605", "0.5577605", "0.5577605", "0.5577605", "0.5575896", "0.55732805", "0.5570169", "0.55670476", "0.55639386", "0.5559189", "0.5549857", "0.554968", "0.5545471", "0.55417454", "0.5540564", "0.5519922", "0.55122876", "0.55026186", "0.5490838", "0.54906815", "0.5488682", "0.5480843", "0.54716396", "0.5470213", "0.5455438", "0.5455101", "0.5449963", "0.544996", "0.5421635", "0.5412188", "0.5402507", "0.5400507", "0.5399153", "0.5396949", "0.53939885", "0.53928965", "0.53925425", "0.539193", "0.5391908", "0.5389646", "0.5372894", "0.5370977", "0.5369956", "0.5363839", "0.5354178", "0.5346892", "0.5346307", "0.53454036", "0.534194", "0.53402334", "0.533661", "0.53291464", "0.5327608", "0.5323399", "0.53200424", "0.5318847", "0.53185683", "0.53178966", "0.5312742", "0.5310787", "0.5308729", "0.5307193", "0.53057957", "0.53035295", "0.53018004" ]
0.7008373
0
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\Users\\e3027405\\Downloads\\chromedriver.exe"); //Open Chrome Browser WebDriver Object=new ChromeDriver(); //Get URL Object.get("http://www.leafground.com/pages/checkbox.html"); //checkbox selection-multiselect WebElement checkbox1=Object.findElement(By.xpath("//*[@id=\'contentblock\']/section/div[1]/input[1]")); checkbox1.click(); WebElement checkbox2=Object.findElement(By.xpath("//*[@id=\'contentblock\']/section/div[1]/input[2]")); checkbox2.click(); //verify the checkbox is selected WebElement is_selected=Object.findElement(By.xpath("//*[@id=\'contentblock\']/section/div[2]/input")); boolean status=is_selected.isSelected(); System.out.println(status); //deselect if select or vice versa WebElement firstcheckbox=Object.findElement(By.xpath("//*[@id=\'contentblock\']/section/div[3]/input[1]")); if(firstcheckbox.isSelected()) { firstcheckbox.click(); }else { firstcheckbox.click(); } WebElement secondcheckbox=Object.findElement(By.xpath("//*[@id=\'contentblock\']/section/div[3]/input[2]")); if(secondcheckbox.isSelected()) { secondcheckbox.click(); } else { secondcheckbox.click(); } Object.close(); }
{ "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 Nea on 23/10/2016.
public interface IdeaService { public void addIdea(String ideaTitle, String ideaDescription, User user); public void addIdea(String title, String descrption, CategoryIdea category, User user); public void deleteIdea(Idea idea); public List<Idea> getAllIdeas(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\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\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "private void poetries() {\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\n public int describeContents() { return 0; }", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo4359a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n public void memoria() {\n \n }", "private void m50366E() {\n }", "@Override\r\n\tpublic void init() {}", "@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 init() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\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\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}", "public void gored() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private static void cajas() {\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}", "@Override\n\tpublic void einkaufen() {\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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() {\n \n }", "public void mo6081a() {\n }" ]
[ "0.6121877", "0.5899213", "0.5890134", "0.5846097", "0.58229446", "0.5770105", "0.5732554", "0.5732554", "0.5728477", "0.5722059", "0.5718022", "0.5705924", "0.5647929", "0.563447", "0.562901", "0.5600707", "0.55936307", "0.5586114", "0.55783546", "0.5572625", "0.55722344", "0.55722344", "0.55722344", "0.55722344", "0.55722344", "0.5571982", "0.5570923", "0.55701214", "0.55625063", "0.55614674", "0.5551839", "0.5551839", "0.5551839", "0.5551839", "0.5551839", "0.5551839", "0.55458933", "0.55450165", "0.55377334", "0.55319417", "0.5523903", "0.5514106", "0.5514106", "0.5505914", "0.5495426", "0.549504", "0.5492769", "0.5492182", "0.54847986", "0.546627", "0.5458059", "0.5458059", "0.5458059", "0.54516876", "0.5451263", "0.5450325", "0.5450325", "0.54439336", "0.54439336", "0.5438144", "0.5438144", "0.5438144", "0.543683", "0.5430039", "0.5423401", "0.5422837", "0.5418741", "0.5418741", "0.5418741", "0.54185134", "0.54093087", "0.54093087", "0.54093087", "0.54093087", "0.54093087", "0.54093087", "0.54093087", "0.53992546", "0.53911513", "0.53907627", "0.5390243", "0.5385699", "0.5382934", "0.53805786", "0.5380369", "0.5372162", "0.5369984", "0.53697133", "0.534413", "0.5336947", "0.53321916", "0.53290325", "0.532874", "0.532874", "0.5320537", "0.5320537", "0.5320537", "0.5316341", "0.53124136", "0.53082", "0.53048944" ]
0.0
-1
/empleado empleado1 = new empleado("paco gomez",8500,1990,12,17); empleado empleado2 = new empleado("Johana",28500,1998,12,17); empleado empleado3 = new empleado("sebastian",98500,1898,12,17); empleado1.aumentoSueldo(10); empleado2.aumentoSueldo(20); empleado3.aumentoSueldo(30); System.out.println("nombre :" + empleado1.dameNombre() + " sueldo" + empleado1.dameSueldo()+ " fecha de alta " + empleado1.dameContrato()); System.out.println("nombre :" + empleado2.dameNombre() + " sueldo" + empleado2.dameSueldo()+ " fecha de alta " + empleado2.dameContrato()); System.out.println("nombre :" + empleado3.dameNombre() + " sueldo" + empleado3.dameSueldo()+ " fecha de alta " + empleado3.dameContrato());
public static void main(String[] args) { empleado[] misEmpleados=new empleado[3]; //String miArray[]=new String[3]; misEmpleados[0]=new empleado("paco gomez",123321,1998,12,12); misEmpleados[1]=new empleado("Johana",28500,1998,12,17); misEmpleados[2]=new empleado("sebastian",98500,1898,12,17); /*for (int i = 0; i < misEmpleados.length; i++) { misEmpleados[i].aumentoSueldo(10); } for (int i = 0; i < misEmpleados.length; i++) { System.out.println("nombre :" + misEmpleados[i].dameNombre() + " sueldo " + misEmpleados[i].dameSueldo()+ " fecha de alta " + misEmpleados[i].dameContrato()); }*/ for (empleado e:misEmpleados) { e.aumentoSueldo(10); } for (empleado e:misEmpleados) { System.out.println("nombre :" + e.dameNombre() + " sueldo " + e.dameSueldo()+ " fecha de alta " + e.dameContrato()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tEmpleados empleado1 = new Empleados(\"Carlos Arquero\",16000,2016,6,03);\r\n\t\tEmpleados empleado2 = new Empleados(\"Luisa Lopez\",25000,2010,12,19);\r\n\t\tEmpleados empleado3 = new Empleados(\"Juaquin Moreno\",12000,2017,11,27);\t\r\n\t\r\n\t\templeado1.subeSueldo(4);\r\n\t\templeado2.subeSueldo(6);\r\n\t\templeado3.subeSueldo(3);\r\n\t\tSystem.out.println(\"nombre :\"+empleado1.dameNombre()+\" sueldo :\"+empleado1.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado1.damealtaContrato());\r\n\t\tSystem.out.println(\"nombre :\"+empleado2.dameNombre()+\" sueldo :\"+empleado2.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado2.damealtaContrato());\r\n\t\tSystem.out.println(\"nombre :\"+empleado3.dameNombre()+\" sueldo :\"+empleado3.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado3.damealtaContrato());\r\n\t}", "public static void main(String[] args) {\n \n Empleado empleado1 =new Empleado();\n empleado1.nombre = \"Hector Rafael\";\n empleado1.apellidos = \"Castillo Molinares\";\n empleado1.genero = \"Masculino\";\n empleado1.fecha_nacimiento = \"24/03/2002\";\n empleado1.nacionalidad = \"Colombiana\";\n empleado1.identificación = \"1129526720\";\n empleado1.telefono = \"123456789\";\n empleado1.profesion = \"ingeniero\";\n empleado1.dirección = \"carrera.25#26-03\";\n empleado1.correo_electronico = \"[email protected]\";\n empleado1.Calcular_Edad();\n \n System.out.println(\"Nombre:\"+ empleado1.nombre + empleado1.apellidos);\n System.out.println(\"Genero:\"+ empleado1.genero);\n System.out.println(\"Fecha de nacimiento:\"+ empleado1.fecha_nacimiento);\n System.out.println(\"Nacionalidad:\"+ empleado1.nacionalidad);\n System.out.println(\"Su documeto de identificacion es:\"+ empleado1.identificación);\n System.out.println(\"Telefono:\"+ empleado1.telefono);\n System.out.println(\"Direccion\"+ empleado1.dirección);\n System.out.println(\"Correo electronico:\"+ empleado1.correo_electronico);\n System.out.println(\"Fecha de nacimiento\"+ empleado1.fecha_nacimiento);\n System.out.println(\"Su edad actual es:\"+ empleado1.Calcular_Edad());\n \n Estudiante estudiante1 =new Estudiante();\n estudiante1.nombre = \"Hector Rafael\";\n estudiante1.apellidos = \"Castillo Molinares\";\n System.out.println(\"El estudiante se llama:\"+ estudiante1.nombre + estudiante1.apellidos);\n \n Scanner lectura =new Scanner (System.in);\n int edad, año_nacimiento, año_actual;\n System.out.println(\"ingrese el año de nacimiento\");\n año_nacimiento =lectura.nextInt();\n System.out.println(\"ingrese el año actual\");\n año_actual =lectura.nextInt();\n edad=año_actual-año_nacimiento;\n System.out.println(\"la edad es:\"+edad);\n \n \n \n }", "public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }", "public static void main(String[] args) {\n\n\t\tDepartamento dep40= new Departamento ( 40, \"Formacion\", null );\n\t\t\n\t\t\n\t\tEmpleado emp1 =new Empleado(1,\"paco\",\"perez\",\"h\", 5000, 28, 5, dep40) ;\n\t\t\n\t\t// para introducir el departaementp \n\t\t\n\t\t//primer metodo\n\t\t\n\t\t\n\t\t\t\t\n\t\tEmpleado emp2 =new Empleado(2,\"luis\",\"sanchez\",\"h\", 4000, 45, 2, dep40) ;\t\n\t\tEmpleado emp3 =new Empleado(4, \"javi\", \"perez\", \"h\", 8000, 54, 0.2, dep40);\n\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\n\t\tSystem.out.println(emp1);\n\t\tSystem.out.println(emp2);\t\n\t\tSystem.out.println(emp3);\n\t\t\n\t\tdep40.setJefe(emp1); // adjudico el Jefe al departamento 40\n\t\t\n\t\t\n\t\t// creo un departaemnto nuevo adjudicado a un empleado ade un departamento inicial ( no tienen por que ser el departamento del que ahora le reclama) usando el constructoe directamente ne vez de la variable que alude a la clase\n\t\t//departamento= new Departamento(120, \"formacion\", jefe)\n\t\tDepartamento dep120 = new Departamento (120, \"formacion\", new Empleado(5, \"luisa\", \"sanchez\", \"M\", 14000, 35, 2, dep40)); //he creado un empleado del depto 30 y luego le hago jefe del 120\n\t\t dep120.getJefe().setDepartamento(dep120); /* actuando con dos variables. como ese new empleado no tiene variable adjudicada \n\t\t *y tengo que hacer alusion a Úl para cambiaer en el empleado su departaemento , me valgo del un metodo dep120.getJefe()que averigua qcual es la direccion de ese empleado en la tabla departamento y con un set le ingerso el departaento nuievo\n\t\t \n\t\t \n\t\t */\n\t\t System.out.println (\"departaqmento 120\" + dep120.getJefe().getNombre());\n\t\t\n\t/* SALIDA POR CONSOLA :\n\t * el niombre del emp2, su salario y el nombre del departamento al que pertenence.\t// \n\t\t* como el nombre departamento no es un atributo normal sino que es NDE una clase relacionada .SE INVOCA AL GET DE LL ATRIBUTO INCLUIDO CONN LA CLASE Y TRAS EL LOS METODOS GET DE LA CLASE DEPARTAMENTO EN ESTE CLASO EL DEL CAMPO NOMBRE DEL DEPARTAMENTO\n\t*/\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre().toUpperCase());\n\t\t/*\n\t\t * el empleado \n\t\t * \n\t\t * */\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre());\n\tSystem.out.println(dep120);\n\t// OJO SE BUCLA POR QUE LOS TO STRING DE DEPARTAEMNTO Y CLIENTE SE CRIUZARIAN DEBORDANDO LA MEMORIA. PUEDO HACER VARIAS COSAS\n\t/* PUEDO QUITAR DEUNO DE LOS TO STRING DE UNA CLASE O DE LA OTRA SEGUN ME INTERESE EL CAMPO QUE LAS LIGA ( PEJ DEPARTAMENTO EN EMPLEADO)\n\t * PUEDO CREAR UN METODO QUE SALVE LA CONDICION DE NULL SI ALGUNA VARIABLE ESTA VACICA.\n\t * \n\t * \n\t */\n\t//SALIDA DEL NOMBRE DEL JEFE DEL DEAPARTAEMENTO QUE SEA POR EJEMPLO DE UN EMPLEADO ()\n\t\n\tSystem.out.println ( dep120.getJefe().getNombre()); //get jefe me dedevuelve el monbre de jefe dela tabala departaemnto. get Nombre me devuelve de la tabla empleados el nombre que estaba como jefe en departamento.\n\tSystem.out.println (\"el jefe de emp2 luis: \"+ emp2.getDepartamento().getJefe().getNombre());\n\tSystem.out.println(dep120);\n\t\n\t\n\t\n\t\n\t}", "public static void main(String[] args) {\n\t\tEmpleado E1 = new Empleado (\"Jessica\");\n\t\tDirectivo D1 = new Directivo (\"Samanta\");\n\t\tOperario OP1 = new Operario (\"Edson\");\n\t\tOficial OF1 = new Oficial (\"Emilio\");\n\t\tTecnico T1 = new Tecnico (\"Daniela\");\n\t\t\n\t\t// polimorfismo la clase padre puede acceder a elementos de las clases hijas sin tenerlas declaradas\n\t\tEmpleado E2 = new Tecnico (\"Jessica\");\n\t\t\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(E1.toString());\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(D1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(OP1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(OF1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(T1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(E2);\n\t\tSystem.out.println(\" \");\n\t\n\t}", "public static void main(String[] args) {\n\n aluno exemplo1 = new aluno();//objeto do tipo aluno\n aluno exemplo2 = new aluno();\n exemplo1.nome = \"EPAMINONDAS\";\n exemplo1.matricula = \"MAT-1\";\n exemplo1.nota = 5;\n exemplo1.anoNacimento = 2005;\n\n\n exemplo2.nome = \"MARIA\";\n exemplo2.matricula = \"MAT-2\";\n exemplo2.nota = 10;\n exemplo2.anoNacimento = 2000;\n\n\n System.out.println(\"Nome: \"+exemplo1.nome + \" matricula: \" + exemplo1.matricula + \" nota: \" + exemplo1.nota);\n System.out.println(\"Nome: \"+exemplo2.nome + \" matricula: \" + exemplo2.matricula + \" nota: \" + exemplo2.nota);\n\n exemplo1.mostraIdade(2030);//metodos\n exemplo2.mostraIdade(2021);\n exemplo2.mostraIdade(2003, 2021);\n }", "public static void main(String[] args) {\n\t\tScanner tec = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Primer empleado: \");\r\n\t\tSystem.out.println(\"Nombre: \");\r\n\t\tString nombre1 = tec.nextLine();\r\n\t\tSystem.out.println(\"Dni: \");\r\n\t\tString dni1 = tec.nextLine();\r\n\t\tSystem.out.println(\"Aņo ingreso: \");\r\n\t\tint anyo1 = tec.nextInt();\r\n\t\tSystem.out.println(\"Sueldo: \");\r\n\t\tdouble sueldo1 = tec.nextDouble();tec.nextLine();\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Segundo empleado: \");\r\n\t\tSystem.out.println(\"Nombre: \");\r\n\t\tString nombre2 = tec.nextLine();\r\n\t\tSystem.out.println(\"Dni: \");\r\n\t\tString dni2 = tec.nextLine();\r\n\t\tSystem.out.println(\"Aņo ingreso: \");\r\n\t\tint anyo2 = tec.nextInt();\r\n\t\tSystem.out.println(\"Sueldo: \");\r\n\t\tdouble sueldo2 = tec.nextDouble();\r\n\t\t\r\n\t\t//Creamos dos empleados\r\n\t\tEmpleado e1 = new Empleado(nombre1,dni1,anyo1,sueldo1);\r\n\t\tEmpleado e2 = new Empleado(nombre2,dni2,anyo2,sueldo2);\r\n\t\t\r\n\t\tSystem.out.println(e1.toString());\r\n\t\tSystem.out.println(e2.toString());\r\n\t\t\r\n\t\t//Incrementar 20 al que menos cobra\r\n\t\tif(e1.getSueldoBruto() < e2.getSueldoBruto()) {\r\n\t\t\te1.incrementarSueldo(20);\r\n\t\t} else if(e1.getSueldoBruto() > e2.getSueldoBruto()) {\r\n\t\t\te2.incrementarSueldo(20);\r\n\t\t}\r\n\t\t\r\n\t\t//Incremenar 10 al mas antiguo\r\n\t\tif(e1.antiguedad()>e2.antiguedad()){\r\n\t\t\te1.incrementarSueldo(10);\r\n\t\t} else if(e1.antiguedad()<e2.antiguedad()){\r\n\t\t\te2.incrementarSueldo(10);\r\n\t\t}\r\n\t\tSystem.out.println(e1.toString());\r\n\t\tSystem.out.println(e2.toString());\r\n\t\t\r\n\t\tSystem.out.println(Empleado.calcularIRPF((e1.getSueldoBruto())));\r\n\t\tSystem.out.println(Empleado.calcularIRPF((e2.getSueldoBruto())));\r\n\t}", "public static void main(String[] args) {\n\r\n clsAlumno alumno1 = new clsAlumno();\r\n\r\n alumno1.setNombre(\"Eneko\");\r\n\r\n alumno1.setApellido(\"Galdos\");\r\n\r\n alumno1.setDNI(\"72826873H\");\r\n\r\n alumno1.setCreditos(60);\r\n\r\n alumno1.mostrarPersona();\r\n\r\n alumno1.mostrarCreditos();\r\n\r\n System.out.println();\r\n\r\n clsProfesor profesor1 = new clsProfesor();\r\n\r\n profesor1.setNombre(\"Javier\");\r\n\r\n profesor1.setApellido(\"Cerro\");\r\n\r\n profesor1.setDNI(\"11111111A\");\r\n\r\n profesor1.setDepartamento(\"Informática\");\r\n\r\n profesor1.mostrarPersona();\r\n\r\n profesor1.mostrarDepartamento();\r\n\r\n }", "public static void main (String [] args){\r\n Jefatura jefe_RR=new Jefatura(\"Jeanpool\",55000,2006,9,25);\r\n jefe_RR.estableceIncentivo(2570);\r\n Empleado [] misEmpleados=new Empleado[6];\r\n misEmpleados[0]=new Empleado(\"Paco Gomez\",85000,1990,12,17);\r\n misEmpleados[1]=new Empleado(\"Ana Lopez\",95000,1995,06,02);\r\n misEmpleados[2]=new Empleado(\"Maria Martin\",105000,2002,03,15);\r\n misEmpleados[3]=new Empleado(\"Jeanpool Guerrero\");\r\n misEmpleados[4]=jefe_RR;/**--Polimorfismo: Prinicipio de sustitucion*/\r\n misEmpleados[5]=new Jefatura(\"Maria\",95000,1999,5,26);\r\n Jefatura jefa_Finanzas=(Jefatura)misEmpleados[5];/** CASTING CONVERTIR UN OBJETO A otro */\r\n jefa_Finanzas.estableceIncentivo(55000);\r\n \r\n \r\n \r\n /** for(int i=0;i<3; i++){\r\n misEmpleados[i].subeSueldo(5);\r\n \r\n }\r\n \r\n for(int i=0;i<3;i++){\r\n System.out.println(\"Nombre \"+misEmpleados[i].dimeNombre() + \"Sueldo: \"+misEmpleados[i].dimeSueldo()+ \"Fecha Alta: \"+misEmpleados[i].dameFechaContrato());\r\n }\r\n */\r\n\r\n for(Empleado elementos:misEmpleados){\r\n \r\n elementos.subeSueldo(5);\r\n \r\n }\r\n \r\n for(Empleado elementos:misEmpleados){\r\n System.out.println(\"Nombre: \"+elementos.dimeNombre()+ \" Sueldo: \"+elementos.dimeSueldo()+ \" Alta Contrato: \"+elementos.dameFechaContrato());\r\n }\r\n \r\n }", "public static void main(String[] args) {\n\t\tEmpleados emple1 = new Empleados(\"Paco\");\n\t\tEmpleados emple2 = new Empleados(\"Pablo\");\n\t\tEmpleados emple3 = new Empleados(\"Patron\");\n\t\tEmpleados emple4 = new Empleados(\"JUJUS\");\n\n\t\temple1.CambioSeccions(\"Ventas\");\n\n\t\tSystem.out.println(emple1.DevuelveDatos());\n\n\t\tSystem.out.println(emple2.DevuelveDatos());\n\n\t\tSystem.out.println(emple3.DevuelveDatos());\n\t\t\n\t\tSystem.out.println(emple4.DevuelveDatos());\n\t\t\n\t\tSystem.out.println(Empleados.dameIdSiguiente());\n\t\t\n\t\n\t}", "public static void main(String[] args) {\n Aviso aviso1 = new Aviso();\n \n aviso1.id=1;\n \n aviso1.tipoAviso=\"General\";\n aviso1.titulo=\"Insumos y bienes muebles de laboratorio disponibles\";\n aviso1.texto=\"La Coordinación de Control Técnico de Insumos (COCTI) de la Dirección de Prestaciones Médicas, pone a disposición del personal que realiza investigación el inventario adjunto.\";\n aviso1.resumen=\"Insumos y bienes muebles de laboratorio disponibles por la Coordinación de Control Técnico de Insumos (COCTI)\";\n aviso1.nombre=\"Eduardo Flores Díaz\";\n aviso1.estatusF=\"Vigente\";\n \n aviso1.diaP=02;\n aviso1.mesP=02;\n aviso1.yearP=2020;\n \n aviso1.diaA=02;\n aviso1.mesA=02;\n aviso1.yearA=2020;\n \n aviso1.diaB=02;\n aviso1.mesB=02;\n aviso1.yearB=2021;\n \n System.out.println(aviso1);\n \n Aviso aviso2 = new Aviso();\n \n aviso2.id=2;\n \n aviso2.tipoAviso=\"Conferencia\";\n aviso2.titulo=\"CONFERENCIA DR. COSSARIZZA\";\n aviso2.texto=\"El Dr. Andrea Cossarizza, ofreció a la comunidad IMSS su conferencia “Clinical Applications of Advanced Cytometry” y aprovechó la presencia de investigadores y estudiantes del IMSS para compartir sus últimos resultados de investigación, aún no publicados, sobre VIH y el uso de citometría de flujo.\\n\" +\n\"\\n\" +\n\"Además, invitó a nuestra comunidad a agregarse a la sociedad internacional sobre citometría: ISAC(International Society for the Advancement of Cytometry) y aprovechar los recursos que tienen como:\\n\" +\n\"\\n\" +\n\"Programa de Liderazgo MARYLOU INGRAM SCHOLARS PROGRAM, de 5 años para formación de citomteristas\\n\" +\n\"Iniciativa de innovación CYTO-Innovation apoya a las propuestas innovadoras que contemplan la conversión de ideas en productos comerciales de alto impacto para ayudar a nuevos empresarios a aprovechar la tecnología de citometría\\n\" +\n\"\\n\" +\n\"Además en la ISAC tienen disponibles una serie de manuales e información de punta sobre la citometría para uso libre. El Dr. Cossarizza reiteró la invitación al personal IMSS a vincularse con la Universidad de Módena y su laboratorio aprovechando el prestigio que tiene el Laboratorio de Citometría de Flujo del Centro de Instrumentos del Centro Médico Nacional Siglo XXI.\";\n \n aviso2.resumen=\"Conferencia de Dr. Andrea Cossarizza del tema “Clinical Applications of Advanced Cytometry\\\"\";\n aviso2.nombre=\"Kevin Meza Gonzalez\";\n aviso2.estatusF=\"No Vigente\";\n \n aviso2.diaP=02;\n aviso2.mesP=03;\n aviso2.yearP=2020;\n \n aviso2.diaA=15;\n aviso2.mesA=02;\n aviso2.yearA=2020;\n \n aviso2.diaB=31;\n aviso2.mesB=03;\n aviso2.yearB=2020;\n \n System.out.println(aviso2);\n \n }", "public static void main(String[] args) {\n Empleado arquitecto1 = new Arquitecto(\"Arq 1\", \"1\", 1, 1 ,\"1\" , 1 );\n Empleado arquitecto2 = new Arquitecto(\"Arq 2\", \"2\", 2, 2 ,\"2\" , 2 );\n Empleado arquitecto3 = new Arquitecto(\"Arq 3\", \"3\", 3, 3 ,\"3\" , 3 );\n Empleado maestro1 = new Maestro(\"Mae 1\", \"1\", 1, 1, \"1\", 1);\n Empleado maestro2 = new Maestro(\"Mae 2\", \"2\", 2, 2, \"2\", 2);\n Empleado maestro3 = new Maestro(\"Mae 3\", \"3\", 3, 3, \"3\", 3);\n Empleado obrero1 = new Obrero(\"Obr 1\", \"1\", 1, 1, \"1\", 1);\n Empleado obrero2 = new Obrero(\"Obr 2\", \"2\", 2, 2, \"2\", 2);\n Empleado obrero3 = new Obrero(\"Obr 3\", \"3\", 3, 3, \"3\", 3);\n//Empresa\n //Lista de Empelado en donde van a estar los empleados de toda la empresa\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(arquitecto1);\n totalEmployeesOnSite.add(maestro1);\n totalEmployeesOnSite.add(obrero1);\n //Lista de obreros en la obra\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n //Lista ed Obras realizadas\n ArrayList<Obra> doneWorks = new ArrayList<>();\n Obra obra1 = new Obra();\n doneWorks.add(obra1);\n Empresa empresa1 = new Empresa(\"Empresa 1\", totalEmployeesOnSite, doneWorks);\n\n System.out.println(empresa1.toString());\n\n//Arquitecto\n\t /* Empleado arquitecto1 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n Empleado arquitecto2 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n//Maestro\n\t Empleado maestro1 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n Empleado maestro2 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n//Obrero\n\t Empleado obrero1 = new Obrero(\"Matilda\", \"12549632\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n Empleado obrero2 = new Obrero(\"Matilda2\", \"125496322\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n//Array Empleado que va a ir a\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(empleado4);\n\n System.out.println(empleado1.getWork());\n System.out.println(empleado2.getWork());\n System.out.println(empleado3.getWork());\n\n ArrayList<Empleado> totalEmployees = new ArrayList<>();\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n Obra obra1 = new Obra(\"Lo De Jaz\", 2, 54, 7, totalEmployeesOnSite );\n\n activeWorks.add(obra1);\n\n totalEmployees.add(empleado1);\n totalEmployees.add(empleado2);\n\n Empresa empresa = new Empresa(\"Lo de Jaz\", totalEmployees, activeWorks);\n\n System.out.println(empresa.toString());\n */\n\n }", "public static void main(String[] args) {\n \n PersonaIMC persona1 = new PersonaIMC();\n \n \n /* PersonaIMC persona2 = new PersonaIMC(nombre, edad, sexo);\n PersonaIMC persona3 = new PersonaIMC(nombre, edad, sexo, peso, altura);\n \n persona1.setNombre(\"Luisa\");\n persona1.setEdad(28);\n persona1.setSexo('F');\n persona1.setPeso(60);\n persona1.setAltura(1.8);\n \n persona2.setPeso(80.5);\n persona2.setAltura(1.75);\n \n System.out.println(\"Persona 1\");\n muestraMensajePeso(persona1);\n muestraMayorDeEdad(persona1);\n System.out.println(persona1.toString());\n \n System.out.println(\"Persona 2\");\n muestraMensajePeso(persona2);\n muestraMayorDeEdad(persona2);\n System.out.println(persona2.toString());\n \n System.out.println(\"Persona 3\");\n muestraMensajePeso(persona3);\n muestraMayorDeEdad(persona3);\n System.out.println(persona3.toString());*/\n }", "@Override\n public String toString() {\n return \"Empleado{\" + \"nombre=\" + nombre + \", edad=\" + edad + \", salario=\" + salario + '}';\n }", "public static void main (String[] args){\n Empleado[] listaEmpleados = new Empleado[10];\n \n //Asignamos objetos a cada posición\n listaEmpleados[0] = new Empleado(\"Manuel\", \"30965835V\");\n listaEmpleados[1] = new Empleado(\"Miguel\", \"30965835V\");\n listaEmpleados[2] = new Empleado(\"Pedro\", \"30965835V\");\n listaEmpleados[3] = new Empleado(\"Samuel\", \"30965835V\");\n listaEmpleados[4] = new Empleado(\"Vanesa\", \"30965835V\");\n listaEmpleados[5] = new Empleado(\"Alberto\", \"30965835V\");\n listaEmpleados[6] = new Empleado(\"Roberto\", \"30965835V\");\n listaEmpleados[7] = new Empleado(\"Carlos\", \"30965835V\");\n listaEmpleados[8] = new Empleado(\"Ernesto\", \"30965835V\");\n listaEmpleados[9] = new Empleado(\"Javier\", \"30965835V\");\n\n /*Empleado[] empleados = {\n empleado1, empleado2, empleado3, null,null,null, null,\n null,null,null\n }*/\n \n //Imprimimos el array sin ordenar\n imprimeArrayPersona(listaEmpleados);\n \n //Creamos el objeto de la empresa\n Empresa empresa0 = new Empresa(\"Indra\", listaEmpleados);\n \n //Usamos la clase array para ordenar el array de mayor a menos\n Arrays.sort(listaEmpleados);\n\n //Imprimimos de nuevo el array\n imprimeArrayPersona(listaEmpleados);\n \n //Imprimimos la empresa\n System.out.println(empresa0);\n \n //Guardamos en un string la lista de nombres de un objeto empresa\n String listado = Empresa.listaEmpleado(empresa0.empleado).toString();\n \n System.out.println(listado);//Imprimimos el listado como un string\n \n //Imprimimos el array de los nombres de los empleados de la empresa\n System.out.println(Arrays.toString(Empresa.listaEmpleadoArray(listado)));\n \n //Método que imprime los empleados de una empresa separados por comas\n Empresa.listaEmpleado(listado);\n \n /*Empresa[] listaEmpresa = new Empresa[4];\n \n listaEmpresa[0] = new Empresa(\"Intel\", listaEmpleados);\n listaEmpresa[1] = new Empresa(\"AMD\", listaEmpleados);\n listaEmpresa[2] = new Empresa(\"Asus\", listaEmpleados);\n listaEmpresa[3] = new Empresa(\"Shaphire\", listaEmpleados);\n System.out.println(Arrays.toString(listaEmpresa));\n Arrays.sort(listaEmpresa);\n System.out.println(Arrays.toString(listaEmpresa));*/\n \n \n }", "public static void main(String[] args) {\n\r\n\t\templeado emple = new empleado(\"Jonnhy\", 25, 1800);\r\n\t\tSystem.out.println(emple.toString());\r\n\t\t\r\n\t\tcomercial com = new comercial(\"Joseph\", 23, 1200, 100);\r\n\t\tSystem.out.println(com.toString());\r\n\t\t\r\n\t\trepartidor rep = new repartidor(\"Jonathan\", 45, 43, \"zona2\");\r\n\t\tSystem.out.println(rep.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tProfesor profesor = new Alumno();\r\n\t\tSystem.out.println(\"Profesor: \"+profesor.devolverNombre());\r\n\t\tSystem.out.println(\"Edad: \"+profesor.devolverEdad());\r\n\t\tSystem.out.println();\r\n\t\tPersona persona = new Alumno();\r\n\t\tSystem.out.println(\"Edad: \"+persona.devolverEdad());\r\n\t\tSystem.out.println(\"Nombre: \"+persona.devolverNombre());\r\n\t\t\r\n\t\tPersona persona2 = new Profesor();\r\n\t\tSystem.out.println(\"Edad: \"+persona2.devolverEdad());\r\n\t\tSystem.out.println(\"Nombre: \"+persona2.devolverNombre());\r\n\t\t\r\n\t\tArrayList<Persona> personas = new ArrayList<Persona>();\r\n\t\tpersonas.add(persona);\r\n\t\tpersonas.add(persona2);\r\n\t\t\r\n\t\tfor (Persona persona3 : personas) {\r\n\t\t\tSystem.out.println(\"ENTRO AL FOR\");\r\n\t\t\tSystem.out.println(\"Edad: \"+persona3.devolverEdad());\r\n\t\t\tSystem.out.println(\"Nombre: \"+persona3.devolverNombre());\r\n\t\t}\r\n\t}", "public static void generarEmpleados() {\r\n\t\tEmpleado e1 = new Empleado(100,\"34600001\",\"Oscar Ugarte\",new Date(), 20000.00, 2);\r\n\t\tEmpleado e2 = new Empleado(101,\"34600002\",\"Maria Perez\",new Date(), 25000.00, 4);\r\n\t\tEmpleado e3 = new Empleado(102,\"34600003\",\"Marcos Torres\",new Date(), 30000.00, 2);\r\n\t\tEmpleado e4 = new Empleado(1000,\"34600004\",\"Maria Fernandez\",new Date(), 50000.00, 7);\r\n\t\tEmpleado e5 = new Empleado(1001,\"34600005\",\"Augusto Cruz\",new Date(), 28000.00, 3);\r\n\t\tEmpleado e6 = new Empleado(1002,\"34600006\",\"Maria Flores\",new Date(), 35000.00, 2);\r\n\t\tlistaDeEmpleados.add(e1);\r\n\t\tlistaDeEmpleados.add(e2);\r\n\t\tlistaDeEmpleados.add(e3);\r\n\t\tlistaDeEmpleados.add(e4);\r\n\t\tlistaDeEmpleados.add(e5);\r\n\t\tlistaDeEmpleados.add(e6);\r\n\t}", "public static Empleado leerDatos() {\n\tScanner entrada= new Scanner(System.in);\n\tEmpleado obj;\n\tString nombre;\n\tString apellido;\n\tint edad;\n\tString fechaNa;\n\tdouble sueldo;\n\tString telefono;\n\tString direccion;\n\tString email;\n\tString cargo;\n\t\n\t\n\t nombre = validarString(\"Ingrese sus nombres\");\n\t apellido = validarString(\"Ingrese sus apellidos\");\n\t System.out.println(\"ingrese su edad\");\n\t edad= entrada.nextInt();\n\t fechaNa = validarString(\"Ingrese su fecha de nacimiento\");\n\t System.out.println(\"ingrese su sueldo\");\n\t sueldo=entrada.nextDouble();\n\t telefono= validarString(\"Ingrese su telefono\");\n\t direccion= validarString(\"Ingrese su direccion\");\n\t email = validarString(\"Ingrese su email\");\n\t cargo = validarString(\"Ingrese su cargo\");\n\t\n\t \n\t \n\tobj= new Empleado(nombre,apellido,edad, fechaNa,sueldo, telefono, direccion, email,cargo);//se inicializa un empleado de tipo obj \n\t\n\t\n\treturn obj; // se retorna el objeto \n\t}", "public static void main(String[] args) {\n System.out.println(\"***************** bojouuur //////////////////\");\n EmloyeeFix p1 = new EmloyeeFix(\"ghali\",700);\n System.out.println(\"votre salaire fix c'est : \" + p1.salaireMensuelle );\n \n EmployeeComission p2 = new EmployeeComission(\"ghali\" , 700,10,100);\n System.out.println(\"le salair vc votre commision c'est :\" + p2.salaireMensuelle *(p2.vent * p2.commisionF*0.1));\n \n EmployeeHoraire p3 = new EmployeeHoraire(\"ghali\",200,56,700);\n System.out.println(\"votre salaire et votre taux horaire c'est :\" + p3.tauxHauraire * p3.heuresPrestés);\n \n\t}", "public static void main(String[] args) {\n\r\n\t\tPerson person = new Person(\"Kali\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\");\r\n\t\tSystem.out.println(person.toString());\r\n\t\tStudent student = new Student(\"Sofi\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", ClassStatus.FRESHMAN);\r\n\t\tSystem.out.println(student.toString());\r\n\t\tEmployee employee = new Employee(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\");\r\n\t\tSystem.out.println(employee.toString());\r\n\t\tFaculty faculty = new Faculty(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", 8, \"Professor\");\r\n\t\tSystem.out.println(faculty.toString());\r\n\t\tStaff staff = new Staff(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", \"Manager\");\r\n\t\tSystem.out.println(staff.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args)throws java.io.IOException {\n\t\tString idEmpleado, nomEmpleado, apellEmpleado, telefono, email;\r\n\t\t\r\n\t\tout.println(\"Digite el id del empleado\");\r\n\t\tidEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el nombre del empleado\");\r\n\t\tnomEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el apellido del empleado\");\r\n\t\tapellEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el telefono del empleado\");\r\n\t\ttelefono = in.readLine();\r\n\t\tout.println(\"Digite el email del empleado\");\r\n\t\temail = in.readLine();\r\n\t\t\r\n\t\t/*Los datos se deben mandar al gestor*/\r\n\t\t\r\n\t\tSupervisor empleado = new Supervisor(idEmpleado, nomEmpleado, apellEmpleado, telefono, email);\r\n\t\tSoporTecnico contratado = new SoporTecnico(empleado);\r\n\t\t\r\n\t\t//La variable contratado se almacenarķa en un arreglo\r\n\t\t\r\n\t\tout.println(\"Id: \" + contratado.getIdEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre: \" + contratado.getNomEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Apellido: \" + contratado.getApellEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Telefono: \" + contratado.getTelefono() + \"\\n\" +\r\n\t\t\t\t\t\"Email: \" + contratado.getEmail() + \"\\n\" +\r\n\t\t\t\t\t\"Codigo del puesto: \" + contratado.codPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del puesto: \" + contratado.nomPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del departamento: \" + contratado.departamento());\r\n\t\t\r\n\t\t/*Si se desea cambiar el puesto o el departamento del empleado, se extraen los datos \r\n\t\t * personales del empleado, se elimina el objeto y los datos personales se almacenan\r\n\t\t * en un nuevo objeto del puesto deseado y del departamento deseado*/\r\n\t}", "public static void main(String[] args) throws NullPointerException {\n\n\t\t// default constructor\n\t\tEmployeeInfo employeeInfo = new EmployeeInfo();\n\t\tEmployeeInfo employeeInfo1 = new EmployeeInfo(\" FORTUNE COMPANY \");\n\n\t\tEmployeeInfo emp1 = new EmployeeInfo(1, \"Abrah Lincoln\", \"Accounts\", \"Manager\", \"Hodgenville, KY\");\n\t\tEmployeeInfo emp2 = new EmployeeInfo(2, \"John F Kenedey\", \"Marketing\", \"Executive\", \"Brookline, MA\");\n\t\tEmployeeInfo emp3 = new EmployeeInfo(3, \"Franklin D Rossevelt\", \"Customer Realation\", \"Assistnt Manager\",\n\t\t\t\t\"Hyde Park, NY\");\n\n\n\t\t// Printing Employee information in this pattern\n\t\t// \"ID Name Number Department Position Years Worked Pension Bonus Total salary \"\n\n\t\tSystem.out.println(emp1.employeeId() + \"\\t\" + emp1.employeeName() + \"\\t\\t\" + emp1.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp1.getJobTitle() + \"\\t\\t\\t\" + emp1.getYearsWorked() + \"\\t\\t\" + emp1.calculateEmployeePension()\n\t\t\t\t+ \"\\t\" + emp1.calculateEmployeeBonus() + \"\\t\\t\" + emp1.calculateSalary());\n\n\t\tSystem.out.println(emp2.employeeId() + \"\\t\" + emp2.employeeName() + \"\\t\\t\" + emp2.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp2.getJobTitle() + \"\\t\\t\" + emp2.getYearsWorked() + \"\\t\\t\" + emp2.calculateEmployeePension() + \"\\t \"\n\t\t\t\t+ emp2.calculateEmployeeBonus() + \"\\t\\t\" + emp2.calculateSalary());\n\n\t\tSystem.out.println(emp3.employeeId() + \"\\t\" + emp3.employeeName() + \"\\t\" + emp3.getDepartment() + \"\\t\"\n\t\t\t\t+ emp3.getJobTitle() + \"\\t\" + emp3.getYearsWorked() + \"\\t\\t \" + emp3.calculateEmployeePension() + \"\\t\"\n\t\t\t\t+ emp3.calculateEmployeeBonus() + \" \\t\\t\" + emp3.calculateSalary());\n\n\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\tString nombre = leerTexto(\"Ingrese un nombre:\");\r\n\tint edad = leerNumero(\"Ingrese su edad:\");\r\n\tString rut = leerTexto(\"Ingresa el RUT:\");\r\n\tchar genero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tfloat peso = leerNumero(\"Ingrese peso:\");\r\n\tfloat altura = leerNumero(\"Ingrese la altura:\");\r\n\tPersona claudia = new Persona(nombre, rut, edad, genero, peso, altura);\r\n\t\r\n\tnombre = leerTexto(\"Ingrese un nombre:\");\r\n\tedad = leerNumero(\"Ingrese su edad:\");\r\n\trut = leerTexto(\"Ingresa el RUT:\");\r\n\tgenero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tPersona juliano = new Persona(nombre, rut, edad, genero);\r\n\t\r\n\tPersona noelia = new Persona();\r\n\tnoelia.setNombre(leerTexto(\"Ingresa un nombre\"));\r\n\tnoelia.setEdad(leerNumero(\"Ingresa la edad\"));\r\n\tnoelia.setRut(leerTexto(\"Ingresa el RUT\"));\r\n\tnoelia.setGenero(leerTexto(\"Ingresa el genero\").charAt(0));\r\n\tnoelia.setAltura(leerNumero(\"Ingresa la altura\"));\r\n\tnoelia.setPeso(leerNumero(\"Ingresa el peso\"));\r\n\t\r\n\tPersona[] perso = new Persona[3];\r\n\tperso[0] = claudia;\r\n\tperso[1] = juliano;\r\n\tperso[2] = noelia;\r\n\t\r\n\tfor (Persona persona : perso) {\r\n\t\tif (persona.calcularIMC()==Persona.PESO_BAJO) {\r\n\t\t\tescribir(\"Pongale sus buenas cazuelas\");\r\n\t\t}else {\r\n\t\t\tif (persona.calcularIMC()==Persona.PESO_IDEAL) {\r\n\t\t\t\tescribir(\"Estamos tiki taka\");\r\n\t\t\t}else {\r\n\t\t\t\tescribir(\"Menos coffe break!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Mayor de edad\r\n\t\tescribir(\"La persona \" + persona.getNombre() + \" es mayor de edad? \" + persona.esMayorDeEdad());\r\n\t\t//Mostrar el toString()\r\n\t\tescribir(persona.toString());\r\n\t }\r\n\t}", "public static void main(String[] args) {\n\t\tPerson_19 p = new Person_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\");\r\n\t\tStudent_19 s = new Student_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\",\"senior\"); //zaplata\r\n\t\tEmployee_19 e = new Employee_19(\"Jackson\", \"Trimage\", \"0123456789\", \"[email protected]\",\"office 7\", 1000, \"11:00-18:00\");\r\n\t\tFaculty_19 f = new Faculty_19(\"Jungkook\", \"Gangnam\", \"0123456789\", \"[email protected]\",\"office 7\", 666, null, \"11:00-18:00\", 1);\r\n\t\tStaff_19 st = new Staff_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\",\"office 23\", 1234, null, \"11:00-18:00\");\r\n\t\tSystem.out.println(p.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(s.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(f.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(st.toString());\r\n\t\tSystem.out.println(e.toString());\r\n\t}", "public static void main(String[] args) throws Exception { \n\t\t\n/*------------------------------------------------------------------------------------------------*/\n\t//managname,h_id,dept_count\n\t\n\t //obj.joinempdept() ; }}\n\t\t//System.out.println(obj.toString());; \n\t\t\n/*------------------------------------------------------------------------------------------------*/\n\t\t\n\t\t\n//emptab k= new emptab(eId,departmentId,employeeName,gender,birthDate,joiningDate, panCard,adharNum,drivingLicense_num,employeeMobnum);\n\t\t//obj.jdate();\n\t\t\n\t\t//System.out.println(k);\n\t\t//obj.deptcount(); }}\n\t//Scanner sc = new Scanner(System.in);\n\t//System.out.println(\"Enter the Dept id\");\n\t//int deptid=sc.nextInt();\n\t//obj.empdept(gender, e_id)\n\t//obj.empdet(deptid);\n\t//EmployeeDetail e = new EmployeeDetail();\n\t\t//e.seteId1(-1);\n\t\t//e.setEId(-1);\n\t\t\n\t\t//obj.Allemp();\n\t\t//System.out.println(obj.toString());\n\t\n\n Scanner scan = new Scanner(System.in);\n Scanner scan2 = new Scanner(System.in);\n \n SelectQuery sq = new SelectQuery();\n InsertQuery iq = new InsertQuery();\n UpdateQuery uq = new UpdateQuery();\n DeleteQuery dq = new DeleteQuery(); \n empdetailsDAOImpl obj1 = new empdetailsDAOImpl();\n //deptcount Dc= new deptcount(obj1);\n \n \n \n Connection connection = dbconnection.getConnection();\n \n String con = \"y\";\n\n while(con.equalsIgnoreCase(\"y\"))\n {\n System.out.println(\"Enter Choice:\\n1.ViewData\\n2.Insert Data\\n3.Update Data\\n4.Delete Data\\n5.Department Members\\n6.DeptEmpName\");\n int choice = scan.nextInt();\n \n switch(String.valueOf(choice))\n {\n \n case \"1\":{sq.sel();} break;\n case \"2\":{iq.insert();} break; \n case \"3\":{uq.upd();} break;\n case \"4\":{dq.delete();} break;\n case \"5\":{obj1.deptcount(); } break;\n case \"6\":{\n \t Scanner ec = new Scanner(System.in);\n \t\tSystem.out.println(\" Enter employeeID ->\");\n \t\tint dId= ec.nextInt();\n \t \n \t obj1.empdet(dId);} break;\n default :{System.out.println(\"Wrong Choice\");} break; \n \n }\n System.out.println(\"\\n\\nContinue? (Y/N): \");\n con = scan2.nextLine();\n }\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }", "public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tEmployee theEmployee = new Employee();\n\t\t\n//\t\twhat does it mean below setter? by this section we assign value to variables.\n\t\ttheEmployee.setId(1000);\n\t\ttheEmployee.setName(\"Ramesh\");\n\t\ttheEmployee.setPosition(\"Mangaer\");\n\t\ttheEmployee.setSalary(10000.88);\n//\t\tby thes getters we print the data.\n\t\tSystem.out.println(theEmployee.getId());\n\t\tSystem.out.println(theEmployee.getName());\n\t\tSystem.out.println(theEmployee.getPosition());\n\t\tSystem.out.println(theEmployee.getSalary());\n\t\tSystem.out.println(theEmployee.getClass());\n\t\n\t\tSystem.out.println(\"====================================\");\n\t\t\n\t\tEmployee theEmployee1 = new Employee();\n\t\t\n\t\ttheEmployee1.setId(2);\n\t\ttheEmployee1.setName(\"Rahim\");\n\t\ttheEmployee1.setPosition(\"Team leader\");\n\t\ttheEmployee1.setSalary(22.88);\n\t\t\n\t\tSystem.out.println(theEmployee1.getId());\n\t\tSystem.out.println(theEmployee1.getName());\n\t\tSystem.out.println(theEmployee1.getPosition());\n\t\tSystem.out.println(theEmployee1.getSalary());\n\t\tSystem.out.println(theEmployee1.getClass());\n\t\t\n\t\t\n\tSystem.out.println(\"============================\");\n\t\n\tEmployee theEmployee2 = new Employee();\n\t\n\ttheEmployee2.setId(9);\n\ttheEmployee2.setName(\"Ramin\");\n\ttheEmployee2.setPosition(\"Superwiser\");\n\ttheEmployee2.setSalary(15000.00);\n\t\n\tSystem.out.println(theEmployee2.getId());\n\tSystem.out.println(theEmployee2.getName());\n\tSystem.out.println(theEmployee2.getPosition());\n\tSystem.out.println(theEmployee2.getSalary());\n\tSystem.out.println(theEmployee2.getClass());\n\t\n\t\t\n\t}", "public Empleado(String nombre, String departamento, String posicion, int salario)\n {\n // initialise instance variables\n this.nombre=nombre;\n this.departamento=departamento;\n this.posicion=posicion;\n this.salario=salario;\n \n }", "public String toString(){\n return \"Name: \"+this.name+\" Salary: \"+this.salary; // returning emp name and salary\r\n }", "public static void main(String[] args) {\n Siswa objek1 = new Siswa(\"roby\", \"A2.1900158\",\"TI\");\n Siswa objek2 = new Siswa(\"otong\",\"A2.00001\",\"SI\");\n objek1.nama=\"fuad\";\n objek2.nama=\"mh ihsan\";\n System.out.println(objek1.nama);\n\n\n\n \n\n \n\n\n \n \n \n}", "public static void main(String[] args) {\n Animal a1 = new Animal();\n \n //objeto animal parametrizado\n Animal a2 = new Animal(LocalDate.of(2020, 6, 4), \"Saphi\", Animal.Tipo.GATO, 400, Animal.Estado.DURMIENDO);\n \n //imprimir a1 y a2\n System.out.println(\"Animal a1:\\n \" + a1.toString());\n System.out.println(\"Animal a2:\\n \" + a2.toString());\n \n \n //clonar a2 en a3\n Animal a3 = Animal.clonar(a2);\n System.out.println(\"Animal a3:\\n\" + a3.toString());\n \n //contador de instancias\n System.out.println(\"N de instancias: \" + Animal.getContadorInstancias());\n \n //creacion de dos personas\n Persona p1 = new Persona(\"Juan\", 33);\n Persona p2 = new Persona(\"Alba\", 21);\n \n //p1 despierta a los animales\n p1.llamar(a1);\n p1.llamar(a2);\n p1.llamar(a3);\n\n //p2 juega con a2 12m min\n p2.jugar(a2, 120);\n System.out.println(\"Peso de a2 despues de jugar con p2: \" + a2.getGramos());\n \n \n //p1 alimenta a a1 1000 gramos, nuevo peso\n p1.alimentar(a1, 1000);\n System.out.println(\"Peso de a1 despues de comer: \" + a1.getGramos());\n \n //FALTA CONTROLAR EXCEPCION\n \n //p1 juega con a1 200 min, nuevo peso\n// p1.jugar(a1, 200);\n// System.out.println(\"El animal a1 pesa \" + a1.getGramos() + \" después de jugar\");\n \n \n }", "public static void main(String[] args) {\n\t\t\n\t\tSistemaStock sistema=new SistemaStock();\n\t\t\n\t\tProducto producto1=new Producto(1,\"Producto 1\",20.5);\n Producto producto2=new Producto(2,\"Producto 2\",15.5);\n System.out.println(producto1+\"\\n\"+producto2); \n try {\n\t\t\tsistema.agregarProducto(producto1.getDescripcion(),producto1.getPrecioUnitario());\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n System.out.println(sistema.getProductos().toString());\n Sucursal sucursal1=new Sucursal(1,\"direccion 1\");\n Sucursal sucursal2=new Sucursal(2,\"direccion 2\");\n\t\ttry {\n\t\t\tsistema.agregarSucursal(sucursal1.getDireccion());\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\t\n\t\tEmpleado empleado1=new Empleado(\"Juan\",\"Gomez\",11111111,sucursal1);\n\t\tEmpleado empleado2=new Empleado(\"Julian\",\"Suarez\",22222222,sucursal2);\n\t\tSystem.out.println(empleado1+\"\\n\"+empleado2);\n\t\t\n\t\tLote lote1=new Lote(sucursal1, producto1,LocalDate.of(2019, 10, 1),100,100,true);\n\t Lote lote2=new Lote(sucursal1,producto2,LocalDate.of(2019,10,1),50,50,true);\n\t Lote lote3=new Lote(sucursal1,producto1,LocalDate.of(2019,10,3),40,40,true);\n\t Lote lote4=new Lote(sucursal2,producto1,LocalDate.of(2019, 10, 2),80,80,true);\n\t Lote lote5=new Lote(sucursal2, producto2,LocalDate.of(2019,10, 2),80,80,true);\n\t System.out.println(lote1+\"\\n\"+lote2+\"\\n\"+lote3+\"\\n\"+lote4+\"\\n\"+lote5);\n\t \n\t sucursal1.getLotes().add(lote1);\n\t sucursal1.getLotes().add(lote2);\n\t sucursal1.getLotes().add(lote3);\n\t sucursal2.getLotes().add(lote4);\n\t sucursal2.getLotes().add(lote5);\n\t \n\t \n\t System.out.println(\"Cantidad: \"+sucursal1.traerCantidad(producto1));\n\t System.out.println(\"Validar Stock: \"+sucursal1.validarConsumo(producto1, 80));\n\t \n\t \n\t \n\t \n\t sistema.getSucursales().add(sucursal1);\n\t sistema.getSucursales().add(sucursal2);\n\t \n\t Remito remito1=new Remito(LocalDate.of(2019,10,5),producto1,80,empleado1,\"Forma de pago 1\");\n\t Remito remito2=new Remito(LocalDate.of(2019,10,5).plusDays(1),producto1,80,empleado1,\"Forma de pago 1\");\n\t System.out.println(remito1);\n\t System.out.println(remito2);\n\t \n\t try {\n\t\t\tSystem.out.println(\"Remito Generado: \"+sistema.generarRemitoDeConsumo(LocalDate.of(2019,10,5),producto1,500,empleado1,\"Forma de pago 1\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n try {\n\t\tSystem.out.println(\"Remito Sucursal: \"+sistema.generarRemitoDeConsumo(sucursal1,LocalDate.of(2019,10,5),producto1,500,empleado1,\"Forma de pago 1\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t \n\t \n\t}", "public static void main(String[] args) {\n\t\temployee employee =new employee (\"hilal\",5000,20,2021);\n\t System.out.println(employee.toString());\n \n\t}", "public static void main(String[] args) {\n\t\tDepartment department1 = new Department ();\n\t\tdepartment1.id = 1;\n\t\tdepartment1.name = \" Marketing \";\n\t\t\n\t\tDepartment department2 = new Department ();\n\t\tdepartment2.id = 2;\n\t\tdepartment2.name = \" Sale \";\n\t\t\n\t\tDepartment department3 = new Department ();\n\t\tdepartment3.id = 3;\n\t\tdepartment3.name = \" Bảo Vệ \";\n\t\t\n\t\t// add data position\n\t\tPosition position1 = new Position ();\n\t\tposition1.id = 1;\n\t\tposition1.name = PositionName.DEVELOPER;\n\t\t\n\t\tPosition position2 = new Position ();\n\t\tposition2.id = 2;\n\t\tposition2.name = PositionName.TEST;\n\t\t\n\t\tPosition position3 = new Position ();\n\t\tposition3.id = 3;\n\t\tposition3.name = PositionName.SCRUM_MASTER;\n\t\t\n\t\tPosition position4 = new Position ();\n\t\tposition4.id = 4;\n\t\tposition4.name = PositionName.PM;\n\t\t\n\t\t\n\t\t// add data Account\n\t\tAccount account1 = new Account() ;\n\t\taccount1.id = 1;\n\t\taccount1.email = \" [email protected] \";\n\t\taccount1.userName = \" thuong \";\n\t\taccount1.fullName = \" Nguyễn Văn Thưởng \";\n\t\taccount1.department = department2;\n\t\taccount1.position = position3;\n\t\taccount1.createDate = LocalDate.now();\n\t\t\n\t\tAccount account2 = new Account() ;\n\t\taccount2.id = 2;\n\t\taccount2.email = \" [email protected] \";\n\t\taccount2.userName = \" Hien \";\n\t\taccount2.fullName = \" Phan Vĩnh Hiển \";\n\t\taccount2.department = department1;\n\t\taccount2.position = position4;\n\t\taccount2.createDate = LocalDate.now();\n\t\t\n\t\tAccount account3 = new Account() ;\n\t\taccount3.id = 3;\n\t\taccount3.email = \" [email protected] \";\n\t\taccount3.userName = \" Thien \";\n\t\taccount3.fullName = \"Lưu Quang Thiện \";\n\t\taccount3.department = department3;\n\t\taccount3.position = position2;\n\t\taccount3.createDate = LocalDate.now();\n\t\t\n\t\tSystem.out.println(account1.toString());\n\t\t\n\t\t// add data Group\n\t\t\n\t\tGroup group1 = new Group ();\n\t\tgroup1.id = 1;\n\t\tgroup1.name = \"Cái Bang\";\n\t\tgroup1.account = account1;\n\t\tgroup1.createDate = LocalDate.now();\n\t\t\t\t\n\t\tGroup group2 = new Group ();\n\t\tgroup2.id = 2;\n\t\tgroup2.name = \"Nga Mi\";\n\t\tgroup2.account = account2;\n\t\tgroup2.createDate = LocalDate.now();\n\t\t\t\t\n\t\tGroup group3 = new Group ();\n\t\tgroup3.id = 3;\n\t\tgroup3.name = \"Thiếu Lâm\";\n\t\tgroup3.account = account3;\n\t\tgroup3.createDate = LocalDate.now();\n\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t// add data GroupAccount\n\t\tGroupAccount grAcc1 = new GroupAccount();\n\t\tgrAcc1.group = group1;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\n\n\t\tString nombre[]={\"juan\",\"Rafa\",\"Raul\",\"Jesus\",\"Diegotriste\",\"Lucholose\",\"lolo\"};\n\t\tString estudio[]={\"mates\",\"fisica\",\"deportes\",\"lenguaje\",\"biologia\",\"filosofia\"};\n\t\tint numeroMaq=0;\n\t\tint numEmp=0;\n\t\tint numAdmin=0;\n\t\tint numMaq=0;\n\t\tRandom aleatorio = new Random();\n\t\tEmpleado[] empleados =null;\n\t\tMaquinista[] maquinistas =null;\n\t\tAdministrativo[] administrativos = null;\n\n\t\tnumEmp=Metodos.pedirentero(\"cuantos empleados queres introducir\");\n\n\t\templeados = new Empleado[numEmp];\n\t\tfor (int i = 0; i < empleados.length; i++) {\n\t\t\templeados[i]=new Empleado(nombre[aleatorio.nextInt(nombre.length)],aleatorio.nextInt(31)+20);\n\n\t\t}\n\n\t\tfor (int i = 0; i < empleados.length; i++) {\n\t\t\tSystem.out.println( \"Empleado numero \" + (i+1) +empleados[i]);\n\n\n\t\t}\n\n\t\tnumMaq=Metodos.pedirentero(\"cuantos maquinistas queres introducir\");\n\t\tmaquinistas= new Maquinista[numMaq];\n\t\tfor (int i = 0; i < maquinistas.length; i++) {\n\t\t\tmaquinistas[i]=new Maquinista( nombre[aleatorio.nextInt(nombre.length)], aleatorio.nextInt(31)+20,aleatorio.nextInt(31)+20,aleatorio.nextInt(31)+20);\n\n\n\t\t}\n\t\tfor (int i = 0; i < maquinistas.length; i++) {\n\t\t\tSystem.out.println(\"maquinista numero \" + (i+1) + maquinistas[i]);\n\n\t\t}\n\t\tnumAdmin=Metodos.pedirentero(\"cuantos administrativos hay en la empresa\");\n\t\tadministrativos=new Administrativo[numAdmin];\n\n\t\tfor (int i = 0; i < administrativos.length; i++) {\n\t\t\tadministrativos[i]=new Administrativo(nombre[aleatorio.nextInt(nombre.length)], aleatorio.nextInt(31)+20,estudio[aleatorio.nextInt(nombre.length)],aleatorio.nextInt(31)+20);\n\n\t\t}\n\n\t\tfor (int i = 0; i < administrativos.length; i++) {\n\t\t\tSystem.out.println(\"administrativo numero \" +(i+1)+administrativos[i] );\n\n\t\t}\n\t\tSystem.out.println(\"\\n\\n\");\n\n\t\tvisualizar(empleados, maquinistas, administrativos);\n\n\t\tvisualizarMediaEdad(empleados, maquinistas, administrativos);\n\t\n\t\t\n\t\t\n\t\t\n\n\t}", "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "public static void main(String[] args) {\r\n Examen examen = new Examen();\r\n\r\n /* creamos dos objetos Fecha y Hora respectivamente */\r\n Fecha fecha = new Fecha(14, 9, 2021);\r\n Hora hora = new Hora(8, 30);\r\n\r\n /* establecemos con los métodos set() los valores de asignatura y el Grupo */\r\n examen.setAsignatura(\"Programación de Computadores II: Relacion de Composicion en Java\");\r\n examen.setAula(\"02\");\r\n\r\n /* Actualizamos la información del objeto Examen */\r\n examen = new Examen((examen.getAsignatura()), (examen.getAula()),\r\n fecha, hora);\r\n\r\n /* devuelve la información del objeto Examen creado */\r\n System.out.println(examen.toString());\r\n }", "public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }", "public static void main(String[] args) {\n\t\tSecretario s1 = new Secretario(\"Mauro\", \"Pérez\", \"2168\", \"Calle Falsa\", 999, 500, true, \"Fax\");\n\t\tVendedor v1 = new Vendedor(\"Pepe\", \"Martinez\", \"2177\", \"Calle de atras\", 998, 750, 669, \"Alguna\", 0.10);\n\t\tVendedor v2 = new Vendedor(\"Antonio\", \"Martinez\", \"2144\", \"Calle de delante\", 996, 750, 669, \"Alguna\", 0.10);\n\t\tJefeZona j1 = new JefeZona(\"Manolo\", \"Ortega\", \"2155\", \"Una calle\", 997, 1000, true);\n\t\t\n\t\tClientes c1 = new Clientes(\"Cliente 1\");\n\t\tClientes c2 = new Clientes(\"Cliente 2\");\n\t\t\n\t\ts1.setSupervisor(v1);\n\t\t\n\t\tv1.agregarCliente(c1);\n\t\tv1.agregarCliente(c2);\n\t\tv1.eliminarCliente(c1);\n\t\t\n\t\tj1.agregarVendedor(v1);\n\t\tj1.agregarVendedor(v2);\n\t\t\n\t\tSystem.out.println(v1.toString());\n\t\tv1.incrementarSalario();\n\t\tSystem.out.println(v1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(s1.toString());\n\t\ts1.incrementarSalario();\n\t\tSystem.out.println(s1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(j1.toString());\n\t\tj1.incrementarSalario();\n\t\tSystem.out.println(j1.toString());\n\t}", "public static void main(String args[])\n {\n //instanciar (crear) el objeto empleados_comcel de la clase empleados\n //instanciar el objeto empleados_comcel de la clase empleados\n empleados empleados_comcel = new empleados();\n \n //acciones al objeto empleados_comcel asignando valores\n //empleados_comcel.cedula=5555;\n //empleados_comcel.nombre=\"felipe completo\";\n //empleados_comcel.sueldo=50000;\n //llamando las acciones\n /*int intTotalSueldo = empleados_comcel.calcularSueldo();\n System.out.println(\"total sueldo \"+intTotalSueldo);*/\n \n Scanner scanner = new Scanner(System.in);\n System.out.println(\"ingrese prestamos\");\n int prestamos = scanner.nextInt();\n\n \n int intTotalSueldo2 = empleados_comcel.calcularSueldo(prestamos, 5, 70000);\n System.out.println(\"total sueldo \"+intTotalSueldo2);\n\n \n //instanciar\n vehiculo transmilenio = new vehiculo();\n transmilenio.kmsActualmente=20000;\n transmilenio.modelo=2005;\n \n vehiculo sitp = new vehiculo();\n \n \n /*Scanner scanner = new Scanner(System.in);\n System.out.println(\"ingrese numero 1\");\n int numero_entero1 = scanner.nextInt();\n System.out.println(\"ingrese numero 2\");*/\n int numero_entero2 = scanner.nextInt();\n int suma = 0;\n \n System.out.println(\"resultado suma \"+suma);\n \n String nombre = \"\";\n System.out.println(\"Ingresar nombre \");\n nombre =scanner.next();\n System.out.println(\"Ingresó el nombre \"+nombre);\n \n float numero1float=233.44f;\n float numero2float=23.2f;\n float resultadofloat = numero1float + numero2float;\n System.out.println(\"resultado float \"+resultadofloat);\n \n }", "public static void main(String[] args) {\n Emp e=new Emp(\"tinku\",\"u\",\"hyd\",50000,(float)0.5);\n Emp m=new Emp(\"venu\",\"G\",\"hyd\",50000,(float)0.25);\n Emp k=new Emp(\"Srikanth\",\"v\",\"hyd\",75000,(float)0.15);\n Emp t=new Emp(\"sahith\",\"G\",\"hyd\",85000,(float)0.2);\n System.out.println(e);\n System.out.println(e.claculateNetSalary());\n System.out.println(m.claculateNetSalary());\n System.out.println(k.claculateNetSalary());\n System.out.println(t.claculateNetSalary());\n \t}", "public static void main(String[] args) {\n\t\tArrayList<Empleado>listaEmpleados = new ArrayList<Empleado>();\n\t\t//listaEmpleados.ensureCapacity(12); //USAMOS ESTE MÉTODO PARA NO CONSUMIR MÁS MEMORIA QUE 12 ELEMENTOS DEL ARRAYLIST\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\t//PARA ELEGIR LA POSICIÓN DONDE QUEREMOS INCLUIR ELEMENTO.\n\t\tlistaEmpleados.set(5,new Empleado(\"Androide18\", 10,2000));\n\t\t\n\t\t//CORTAMOS EL EXCESO DE MEMORIA QUE ESTÁ SIN USAR\n\t\t//listaEmpleados.trimToSize();\n\t\t\n\t\t//PARA IMPRIMIR UN ELEMENTO DE ARRAYLIST EN ESPECIAL\n\t\tSystem.out.println(listaEmpleados.get(4).dameEmpleados());\n\t\t\n\t\t//IMPRIMIMOS EL TAMAÑO DEL ARRAYLIST\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\t\n\t\t/*//BUCLE FOR-EACH\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\tfor(Empleado x : listaEmpleados) {\n\t\t\tSystem.out.println(x.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t/*//BUCLE FOR\n\t\tfor(int i=0;i<listaEmpleados.size();i++) {\n\t\t\t//ALAMCENAMOS EN \"e\" LOS ELEMENTOS DEL ARRAYLIST\n\t\t\tEmpleado e =listaEmpleados.get(i); \n\t\t\tSystem.out.println(e.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t//GUARDAMOS LA INFORMACIÓN DEL ARRAYLIST EN UN ARRAY CONVENSIONAL Y LO RECORREMOS\n\t\t//CREAMOS ARRAY Y LE DAMOS LA LONGITUD DEL ARRAYLIST:\n\t\tEmpleado arrayEmpleados[]= new Empleado[listaEmpleados.size()];\n\t\t//COPIAMOS LA INFORMACIÓN EN EL ARRAY CONVENSIONAL:\n\t\tlistaEmpleados.toArray(arrayEmpleados);\n\t\t//RECORREMOS\n\t\tfor(int i=0;i<arrayEmpleados.length;i++) {\n\t\t\tSystem.out.println(arrayEmpleados[i].dameEmpleados());\n\t\t}\n\t}", "public String toString() {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\"); //Mostraremos la fecha en formato DD/MM/AAAA\r\n\t\tString nacEdad=sdf.format(fechaNac)+ \"(\"+obtenerAnios()+\" años)\";\r\n\t\treturn \"Persona [nombre=\" + nombre + \", fechaNac=\" + nacEdad + \", DNI=\" + dni\r\n\t\t\t\t+ \", sexo=\" + sexo + \", peso=\" + peso + \", altura=\" + altura\r\n\t\t\t\t+ \"]\";\r\n\t}", "public static void main(String[] args) \n {\n Equipo Boca = new Equipo(2);\n \n //Crear objeto jugador, pasando por parametro sus atributos\n Jugador j1 = new Jugador(\"Andrada\", 1, 1, 20, 100);\n Jugador j2 = new Jugador(\"Salvio\", 4, 7, 20, 100);\n \n // cargar objeto Equipo\n Boca.agregarJugador(j1);\n Boca.agregarJugador(j2);\n \n //Mostrar objeto Equipo\n System.out.println(Boca.listarJugador());\n \n \n \n //Cantidad de jugadores con menos de 10 partidos jugados.\n System.out.print(\"Cantidad de Jugadores con menos de 10 partidos jugados: \");\n System.out.println(Boca.cantidadJugadores());\n \n \n //Nombre del jugador con mayor cantidad de partidos jugados.\n System.out.print(\"Nombre del jugador con mas partidos jugados: \");\n System.out.println(Boca.jugadorMasPartidos());\n \n \n\n //Promedio de estado físico de todo el equipo.\n \n System.out.print(\"Promedio de estado fisico del equipo:\");\n System.out.println(Boca.promedioEstadoFisicoEquipo() + \"%\");\n \n\n //Estado físico de un jugador particular identificado por número de camiseta. \n \n System.out.print(\"Estado fisico de un juegador dado su numero de camiseta: \");\n System.out.println(Boca.estadoFisicoJugador(7) +\"%\");\n \n //Promedio de partidos jugados de los jugadores de cada posición (4resultados).\n \n System.out.println(\"Promedio de partidos jugados de los jugadores de cada posición:\");\n System.out.println(Boca.promedioPartidosJugadosporPuesto());\n \n \n \n \n }", "public static void main(String[] args) {\n Personel personel = new Personel();\n personel.setPersoneladi(\"Kübra\");\n personel.setPersonelsoyadi(\"YILDIZ\");\n personel.setPersonelgiristarihi(new Date());\n \n Adres adres1= new Adres();\n adres1.setSehir(\"İSTANBUL\");\n adres1.setSemt(\"SARIYER\");\n adres1.setMahalle(\"BEBEK\");\n adres1.setPostakodu(\"56000\");\n \n personel.getAdresListesi().add(adres1);\n \n Adres adres2= new Adres();\n adres2.setSehir(\"İSTANBUL\");\n adres2.setSemt(\"BEŞİKTAŞ\");\n adres2.setMahalle(\"BEBEK\");\n adres2.setPostakodu(\"61600\");\n personel.getAdresListesi().add(adres2);\n \n SessionFactory sessionfactory = new Configuration().configure().buildSessionFactory();\n Session session = sessionfactory.openSession();\n session.beginTransaction();\n session.save(personel);\n session.getTransaction().commit();\n session.close();\n \n personel = null;\n session = sessionfactory.openSession();\n session.beginTransaction();\n personel = session.get(Personel.class, 1);\n session.close();\n\t}", "public static void main(String[] args) {\n /**\n * Construction par defaut\n */\n Personne p = new Personne();\n System.out.println(p.toString());\n /**\n * Construction avec comme parametre nom et prenom\n */\n Personne p1 = new Personne(\"Thiaw\",\"Serigne Cheikh Mbacke\");\n System.out.println(p1.toString());\n /**\n * Construction avec comme parametre nom, prenom et age\n */\n Personne p2 = new Personne(\"Thiaw\",\"Serigne Cheikh Mbacke\",22);\n System.out.println(p2.toString());\n /**\n * Construction tous les parametres\n */\n Personne p3= new Personne(\"Thiaw\",\"Serigne Cheikh Mbacke\",22,Sexe.Masculin);\n System.out.println(p3.toString());\n }", "public static void menuEmpleados() throws EmpleadoException, PersistenciaException, DniException, DireccionException, PersonaException {\n boolean salir = false;\n int opcion;\n Empleado empleado;\n String dni=null;\n\n while (!salir) {\n System.out.println(\"\\n1. Insertar empleado\");\n System.out.println(\"2. Modificar empleado\");\n System.out.println(\"3. Eliminar empleado\");\n System.out.println(\"4. Listado de empleados\");\n System.out.println(\"5. Obtener datos empleado\");\n System.out.println(\"6. Salir\\n\");\n empleado = null;\n\n try {\n\n System.out.print(\"Introduzca una de las opciones: \");\n opcion = teclado.nextInt();\n teclado.nextLine();\n System.out.println(\"\");\n\n switch (opcion) {\n case 1:\n empleado = generarDatosEmpleado(true);\n empleadoController.insertar(empleado);\n System.out.println(\"\\nEmpleado insertado\");\n break;\n case 2:\n System.out.println(\"Proceda a introducir los datos, el DNI debe mantenerse igual\");\n empleado = generarDatosEmpleado(false);\n empleadoController.modificar(empleado);\n System.out.println(\"\\nCliente modificado\");\n break;\n case 3:\n System.out.print(\"Introduzca el dni del empleado: \");\n dni = teclado.next();\n validarDni(dni);\n empleadoController.eliminar(empleadoController.buscar(dni));\n System.out.println(\"\\nEmpleado eliminado\");\n break;\n case 4:\n System.out.println(\"Lista de empleados: \");\n ArrayList<Empleado> empleados = empleadoController.listadoEmpleados();\n for (Empleado empleado2 : empleados) {\n System.out.println(empleado2.toString());\n }\n break;\n case 5:\n System.out.print(\"Introduzca el dni del empleado: \");\n dni = teclado.next();\n validarDni(dni);\n empleado = empleadoController.buscar(dni);\n System.out.println(empleado.toString());\n break;\n case 6:\n salir = true;\n break;\n default:\n System.out.println(\"Solo numeros entre 1 y 6\");\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Debe insertar una opcion correcta\");\n teclado.next();\n }\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.nombre + \" \" + this.apellidos + \" (ID empleado - \" + this.id + \")\";\n\t}", "public static void main(String[] args) throws Exception {\n\t\tPerro p1=new Perro();\r\n\t\tPerro p2 =new Perro(\"Chucho\", \"Pastor Aleman\", 3,true);\r\n\t\tPerroPresa pp1=new PerroPresa();\r\n\t\tPerroPresa pp2=new PerroPresa(\"Dientes\",\"pitbull\",5,true);\r\n\t\tpp1.setNombre(\"ŅamŅam\");\r\n\t\tp1.setEdad(-3);\r\n\t\tSystem.out.println(p1.toString());\r\n\t\tSystem.out.println(p2.toString());\r\n\t\tSystem.out.println(pp1.toString());\r\n\t\tpp1.atacar();\r\n\t\tSystem.out.println(pp2.toString());\r\n\t\tpp2.atacar();\r\n\t}", "public static void main(String[] args) {\n Mahasiswa Mahasiswa1 = new Mahasiswa();\r\n Mahasiswa1.nama = \"Lukman\";\r\n Mahasiswa1.nim = \"2015069001\";\r\n Mahasiswa1.jurusan = \"Teknik Mendengkur\";\r\n Mahasiswa1.Fakultas = \"Fakultas Tidur\";\r\n Mahasiswa1.angkatan = 2015;\r\n Mahasiswa1.univ = \"Universitas Rebahan\";\r\n Mahasiswa1.ipk = 3.69;\r\n Mahasiswa1.umur = 24;\r\n\r\n System.out.println(Mahasiswa1.nama);\r\n System.out.println(Mahasiswa1.nim);\r\n System.out.println(Mahasiswa1.jurusan);\r\n System.out.println(Mahasiswa1.Fakultas);\r\n System.out.println(Mahasiswa1.angkatan);\r\n System.out.println(Mahasiswa1.univ);\r\n System.out.println(Mahasiswa1.ipk);\r\n System.out.println(Mahasiswa1.umur);\r\n\r\n //bikin objek baru\r\n Mahasiswa Mahasiswa2 = new Mahasiswa();\r\n\r\n Mahasiswa2.nama = \"Budi\";\r\n Mahasiswa2.nim = \"2020069001\";\r\n Mahasiswa2.jurusan = \"Teknik Mendengkur\";\r\n Mahasiswa2.Fakultas = \"Fakultas Tidur\";\r\n Mahasiswa2.univ = \"Universitas Rebahan\";\r\n Mahasiswa2.ipk = 2.69;\r\n Mahasiswa2.umur = 17;\r\n\r\n System.out.println(Mahasiswa1.nama);\r\n System.out.println(Mahasiswa1.nim);\r\n System.out.println(Mahasiswa1.jurusan);\r\n System.out.println(Mahasiswa1.Fakultas);\r\n System.out.println(Mahasiswa1.angkatan);\r\n System.out.println(Mahasiswa1.univ);\r\n System.out.println(Mahasiswa1.ipk);\r\n System.out.println(Mahasiswa1.umur);\r\n\r\n }", "public static void main(String[] args) {\n Animal unAnimalRavioso = new Animal();\n System.out.println(unAnimalRavioso.informaEnergia());\n\n //Al objeto le digo que corra\n unAnimalRavioso.correr();\n\n //Imprimo la energia\n System.out.println(unAnimalRavioso.informaEnergia());\n\n Comida unPaty = new Comida();\n unPaty.setEnergia(120);\n System.out.println(unPaty.getEnergia());\n\n System.out.println(\"Energia antes de comer paty \" + unAnimalRavioso.informaEnergia());\n unAnimalRavioso.comer(unPaty);\n\n System.out.println(\"Energia despues de comer paty \" + unAnimalRavioso.informaEnergia());\n\n Perro perroCobarde = new Perro();\n perroCobarde.hacerRuido();\n\n Gato gatoCobarde = new Gato();\n ArrayList<Animal>animales = new ArrayList<>();\n\n animales.add(perroCobarde);\n animales.add(gatoCobarde);\n\n System.out.println(\"hacer ruido animales\");\n for (Animal unAnimal:animales) {\n unAnimal.hacerRuido();\n }\n\n\n\n }", "public static void main(String[] args) {\n\t\tEmployee emp1 = new Employee();// 객체생성\r\n\t\temp1.display();\r\n\t\t\r\n\t\tEmployee emp2 = new Employee();\r\n\t\temp2.setAge(01);\r\n\t\temp2.setName(\"홍길동\");\r\n\t\temp2.setDept(\"인사부\");\r\n\t\temp2.setSingle(true);\r\n\t\temp2.display();\r\n\r\n\t\tEmployee emp3 = new Employee();\r\n\t\temp3.setAge(02);\r\n\t\temp3.setName(\"고길동\");\r\n\t\temp3.setDept(\"영업부\");\r\n\t\temp2.setSingle(false);\r\n\t\temp3.display();\r\n\t}", "public static void main(String[] args) {\n mahasiswa mhs_erlinda = new mahasiswa ();\n mhs_erlinda.Alamat=\"Sukorejo\";//akses variabel biodata Alamat\n System.out.print (\"Alamat mahasiswa erlinda : \"+mhs_erlinda.Alamat);\n mhs_erlinda.NIM=\"2120180149\";//akses variabel biodata NIM\n System.out.print (\"NIM mahasiswa erlinda : \"+mhs_erlinda.NIM);\n \n mahasiswa mhs_diah = new mahasiswa ();\n mhs_diah.Alamat=\"Sumbang Timun\";//akses variabel biodata Alamat\n System.out.print (\"Alamat mahasiswa diah : \"+mhs_diah.Alamat);\n mhs_diah.NIM=\"2120180130\";//akses variabel biodata NIM\n System.out.print (\"NIM mahasiswa diah : \"+mhs_diah.NIM);\n \n mahasiswa mhs_arini = new mahasiswa ();\n mhs_arini.Alamat=\"Sukorejo\";//akses variabel biodata Alamat\n System.out.print (\"Alamat mahasiswa arini : \"+mhs_arini.Alamat);\n mhs_arini.NIM=\"2120180144\";//akses variabel biodata NIM\n System.out.print (\"NIM mahasiswa arini : \"+mhs_arini.NIM);\n \n mahasiswa mhs_erlin = new mahasiswa ();\n mhs_erlin.Alamat=\"Parengan Tuban\";//akses variabel biodata Alamat \n System.out.print (\"Alamat mahasiswa erlin : \"+mhs_erlin.Alamat);\n mhs_erlin.NIM=\"2120180140\";//akses variabel biodata NIM\n System.out.print (\"NIM mahasiswa erlin : \"+mhs_erlin.NIM);\n \n mahasiswa mhs_yani = new mahasiswa ();\n mhs_yani.Alamat=\"Sumengko Kalitidu\";//akses variabel biodata Alamat\n System.out.print (\"Alamat mahasiswa yani : \"+mhs_yani.Alamat);\n mhs_yani.NIM=\"2120180150\";//akses variabel biodata NIM\n System.out.print (\"NIM mahasiswa yani : \"+mhs_yani.NIM);\n }", "public void deskripsi() {\r\n System.out.println(this.nama + \" bekerja di Perusahaan \" + Employee.perusahaan + \" dengan usia \" + this.usia + \" tahun\");\r\n }", "@Override\npublic String toString()\n{\n Employee emp = new Employee();\n \n StringBuilder sb = new StringBuilder();\n sb.append(\"Employee{\");\n sb.append(\"Name=\");\n sb.append(emp.getName());\n sb.append(\",Salary complement=\");\n sb.append(emp.getSalary_complement());\n sb.append(\"}\");\n\n return sb.toString();\n}", "public void xxx() {\n System.out.println(\"Salary: \" + salary);\n printInfo();\n\n Employee e = new Employee(\"Andy\", \"123\", 26);\n// System.out.println(\"Name: \" + e.name + \"; Age: \" + e.age + \";ID: \" + e.id);\n\n Manager m = new Manager(\"Andylee\", \"124\", 27);\n// System.out.println(\"Name: \" + m.name + \"; Age: \" + m.age + \";ID: \" + m.id);\n\n }", "public static void main(String[] args) {\n\r\n System.out.println(\"* * * * * Welcome to the employee inform * * * * * \");\r\n\r\n Employee_Company Jane = new Employee_Company();\r\n Employee_Company Lucas = new Employee_Company();\r\n Employee_Company Intern_Sophia = new Employee_Company();\r\n Employee_Company Intern_Ava = new Employee_Company();\r\n Employee_Company Intern_James = new Employee_Company();\r\n Employee_Company Intern_Nicholas = new Employee_Company();\r\n\r\n\r\n Lucas.Set_name_employee(\"Lucas Smith\");\r\n Lucas.Set_Email_employee(\"[email protected]\");\r\n Lucas.Set_role_employee(\"Software Engineer\");\r\n Lucas.setSalary_employee(103438);\r\n\r\n\r\n Jane.Set_name_employee(\"Jane charlotte\");\r\n Jane.Set_Email_employee(\"[email protected]\");\r\n Jane.setSalary_employee(623100);\r\n Jane.Set_role_employee(\"CEO Tech Company\");\r\n\r\n\r\n Intern_Sophia.Set_name_employee(\"Sophia Wood\");\r\n Intern_Sophia.Set_Intern_application('A');\r\n Intern_Sophia.Set_role_employee(\"Intern Artificial Intelligence \");\r\n\r\n\r\n Intern_Ava.Set_name_employee(\"Ava Richardson\");\r\n Intern_Ava.Set_Intern_application('B');\r\n Intern_Ava.Set_role_employee(\"Intern Computer Science\");\r\n\r\n\r\n Intern_James.Set_name_employee(\"James Benjamin\");\r\n Intern_James.Set_Intern_application('B');\r\n Intern_James.Set_role_employee(\"Intern Business Analyst\");\r\n\r\n\r\n Intern_Nicholas.Set_name_employee(\"Nicholas Miller\");\r\n Intern_Nicholas.Set_Intern_application('C');\r\n Intern_Nicholas.Set_role_employee(\"Intern Systems Integration Engineering\");\r\n\r\n\r\n\r\n System.out.println(\"\\n\\t*** Tech Company employee information ***\");\r\n System.out.println(\"1. View Salary\");\r\n System.out.println(\"2. View Name of the Employee\");\r\n System.out.println(\"3. View Email Address\");\r\n System.out.println(\"4. View Employee Role\");\r\n System.out.println(\"5. View Intern Application grade\");\r\n\r\n\r\n\r\n Scanner input = new Scanner(System.in);\r\n System.out.println(\"Direction: Input the number is addressed in Tech Company employee information\");\r\n int input_user = input.nextInt();\r\n\r\n switch (input_user){\r\n case 1 -> {\r\n System.out.println(\"Here is the salary of the employee of Tech Company\");\r\n System.out.println(\"Salary of Software engineering: \"+Lucas.getSalary_employee());\r\n System.out.println(\"Salary of CEO: \"+Jane.getSalary_employee());\r\n }\r\n case 2 ->{\r\n System.out.println(\"Here is the name of the employee of Tech Company\");\r\n System.out.println(\"The software engineering of Tech Company name of the employee is: \"+Jane.Get_name_employee());\r\n System.out.println(\"The CEO Tech Company name of the employee is: \"+Lucas.Get_name_employee());\r\n }\r\n case 3 ->{\r\n System.out.println(\"Here is the Email Address of employee of Tech Company\");\r\n System.out.println(\"Jane Charlotte is CEO of Tech company Email Address its : \"+Jane.Get_Email_employee());\r\n System.out.println(\"Lucas Smith is Software Engineering of Tech Company Email Address its: \"+Lucas.Get_Email_employee());\r\n }\r\n case 4 ->{\r\n System.out.println(\"Here is the Employee Role of Tech Company\");\r\n System.out.println(Jane.Get_role_employee());\r\n System.out.println(Lucas.Get_role_employee());\r\n }\r\n case 5 ->{\r\n System.out.println(\"Here is all the Intern get accepted to Tech Company \");\r\n System.out.println(\"1.\"+Intern_Ava.Get_name_employee()+\" GPA college: \"+Intern_Ava.Get_Intern_application()+\"- \"+\" Application: Accepted \"+Intern_Ava.Get_role_employee());\r\n System.out.println(\"2.\"+Intern_Sophia.Get_name_employee()+\" GPA college: \"+Intern_Sophia.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Sophia.Get_role_employee());\r\n System.out.println(\"3.\"+Intern_James.Get_name_employee()+\" GPA college: \"+Intern_James.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_James.Get_role_employee());\r\n System.out.println(\"4.\"+Intern_Nicholas.Get_name_employee()+\"GPA college: \"+Intern_Nicholas.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Nicholas.Get_role_employee());\r\n }\r\n }\r\n\r\n\r\n\r\n }", "public static void main(String[] args) {\n\t\n\tConta conta = new Conta();\t\n\n\t//Colocando valores no conta\n\tconta.titular = \"Duke\";\n\tconta.saldo = 1000000.0;\n\tconta.numero = 12345;\n\tconta.agencia = 54321;\n\tconta.dataAniversario = \"1985/01/12\";\n\n\tconta.saca(100.0);\n\tconta.deposita(1000.0);\n\n\tSystem.out.println(\"Saldo atual: \" + conta.saldo);\n\tSystem.out.println(\"Rendimento atual: \" + conta.calculaRendimento());\n\tSystem.out.println(\"Saldo atual depois do rendimento: \" + conta.saldo);\n\tSystem.out.println(\"Cliente: \" + conta.recuperaDados());\n\n\n\tConta c1 = new Conta();\n\tConta c2 = new Conta();\t\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc1.titular = \"Flavio\";\n\tc1.saldo = 10000.0;\n\tc1.numero = 54321;\n\tc1.agencia = 12345;\n\tc1.dataAniversario = \"1900/01/12\";\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc2.titular = \"Flavio\";\n\tc2.saldo = 10000.0;\n\tc2.numero = 54321;\n\tc2.agencia = 12345;\n\tc2.dataAniversario = \"1900/01/12\";\n\n\n\tif (c1.titular == c2.titular) {\n\t\tSystem.out.println(\"Iguais\");\t\t\n\t} else {\n\t\tSystem.out.println(\"Diferentes\");\n\t}\t\n\n\tconta.transfere(100000,c1);\n\n\n\t}", "public static void main(String[] args) {\n\t\tSupervisor miSupervisor = new Supervisor(\"Raul\");\r\n\t\t\r\n\t\t//Array de Empleados\r\n\t\tEmpleadoStatic[] listaEmpleados = new EmpleadoStatic[7];\r\n\t\tScanner Entrada = new Scanner(System.in);\r\n\t\t\r\n\t\t//Pedido de Empleados\r\n\t\tfor(int i=0;i<5;i++){\t//for(int i=0;i<listaEmpleados.length;i++){\t\r\n\t\t\tSystem.out.print(\"Ingrese nombre: \");\r\n\t\t\tlistaEmpleados[i] = new EmpleadoStatic(Entrada.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t/*POLIMORFISMO: El programa espera un objeto de la clase padre (Empleado).\r\n\t\t * Pero yo estoy asignando objetos de la clase hija (Supervisor)*/\r\n\t\tlistaEmpleados[5] = miSupervisor;\r\n\t\tlistaEmpleados[6] = new Supervisor(\"Fabio\");\t//última ID\r\n\t\t\t\t\r\n\t\t/*Uso de Arrays.sort() para ordenar los empleados por id, ya que por \r\n\t\t * ejemplo, la primer posición del array tiene al empleado de id 2.\r\n\t\t * Require la interfaz Comparable, agregada en EmpleadoStatic*/\r\n\t\tArrays.sort(listaEmpleados);\r\n\t\t\r\n\t\t/*Recorrida, si en la clase hija se sobreescribe un método, al momento de\r\n\t\t * pasar por ese objeto, se llama al método de la clase hija. Comportamiento \r\n\t\t * según el contexto (Polimorfismo)*/\r\n\t\tfor(EmpleadoStatic e:listaEmpleados)\r\n\t\t\tSystem.out.println(\"id: \" + e.getId() + \"\\t nombre: \" + e.getNombre());\r\n\t\t\r\n\t\tSystem.out.println(\"Proximo ID a asignar: \" + EmpleadoStatic.getIdDisponible());\r\n\t\t\r\n\t\t/*Ejemplo para demostrar el acceso a un método de la interfaz JefesI\r\n\t\t * implementado por la clase Supervisor*/\r\n\t\tSupervisor s = new Supervisor(\"Macri\");\r\n\t\tSystem.out.println(s.tomarDecisiones(\"Un nuevo tarifazo. Vamos juntos!\"));\r\n\t\t\r\n\t\t\tEntrada.close();\r\n\t}", "public String toString(){\n StringBuilder builder = new StringBuilder();\n builder.append(\"Employee :[ Name : \" + name + \", dept : \" + dept + \", salary :\"\n + salary+\", subordinates = \\n\");\n for(Employee e : this.subordinates) {\n builder.append(\"\\t\" + e + \"\\n\");\n }\n builder.append(\" ]\");\n return builder.toString();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tEmployee_Demo ans= new Employee_Demo();\r\n\t\t\r\n\t\tans.setAge(25);\r\n\t\tans.setEmployeeName(\"sankar suresh\");\r\n\t\tans.setCity(\"pondicherry\");\r\n\t\tans.setemployeID(785303);\r\n\t\tans.setSalary(30000);\r\n\t\tans.setSex(\"male\");\r\n\t\tSystem.out.println(\"age of the emp :\"+ans.getAge());\r\n\t\tSystem.out.println(\"City of the emp :\"+ans.getCity());\r\n\t\tSystem.out.println(\" salary of the emp :\"+ans.getSalary());\r\n\t\tSystem.out.println(ans.getEmployeID());\r\n\t\tSystem.out.println(ans.getSex());\r\n\r\n\t\t\r\n\r\n\t}", "public String dameDescripcion(){\n return \"Este empleado tiene un id = \"+getId()+\" con un sueldo de \"+getSueldo();\n }", "private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }", "public static void main(String[] args) {\n \n Profesor a = new Profesor(\"Juan Hernández\",\"Garcia\",\"22-387-11\");\n System.out.println(a);\n \n }", "public static void main(String[] args) {\n \n //Joueur zidane=new Joueur(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,34,Sponsor.FLY_EMIRATES);\n // Attaquant messi=new Attaquant(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,10,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Milieu xavi=new Milieu(\"xavi\",\"xava\",\"go\", \"12/07/1990\",\"barcelone\",\"espagnol\",78.5f,1.85f, Sexe.HOMME,Pied.DROIT,Tenue.JOGGING,15,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Defenseur ramos=new Defenseur(\"xavi\",\"ramos\",\"ifjiej\", \"18/07/1990\",\"madrid\",\"espagnol\",78.5f,1.88f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES,PosteJoueur.MILIEU);\n //ramos.celebrer();\n //ramos.defendre();\n //Gardien neuer=new Gardien(\"neuer\",\"manuel\",\"ifjiej\", \"18/07/1991\",\"Bayern\",\"bayern\",88.5f,1.95f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES);\n //neuer.sortir();\n //Spectateur paul=new Spectateur(\"bollart\",12,false,false);\n //Arbitre guillaume=new Arbitre(\"ovigneur\",\"guillaume\",\"guigou\",\"12/07/1676\",\"Lille\", \"France\", 1.98f,1.67f,Sexe.HOMME,Pied.DROIT,Tenue.SHORT,48,Sponsor.MORELLE);\n Equipe marseille= new Equipe (NomEquipe.OM);\n Equipe paris= new Equipe (NomEquipe.PSG);\n Match match=new Match(TypeTerrain.GAZON,marseille,paris);\n match.simulerMatch();\n System.out.println(match.equipeGagnante);\n System.out.println(marseille.attaquants[2].getStatTir());\n \n Tournoi tournoi = new Tournoi(); \n tournoi.qualificaionsTournoi();\n tournoi.huitiemes();\n tournoi.quarts();\n tournoi.demi();\n tournoi.finale();\n \n System.out.println(tournoi.getEquipeEnLis());\n System.out.println(tournoi.getEquipeQualifie());\n System.out.println(tournoi.getEquipePerdanteHuit());\n System.out.println(tournoi.getEquipeGagnanteHuit());\n System.out.println(tournoi.getEquipePerdanteQuarts());\n System.out.println(tournoi.getEquipeGagnanteQuarts());\n System.out.println(tournoi.getEquipePerdanteDemi());\n System.out.println(tournoi.getEquipeGagnanteDemi());\n System.out.println(tournoi.getEquipeFinale());\n\n \n \n //Mise en place de \"l'interface\"\n Scanner sc = new Scanner(System.in);\n \n //Choix du mode de jeu\n System.out.println(\"\\n *** Choix du mode de jeu *** \\n\\t| tournoi : taper 1|\\n\\t| mode solo : taper 2|\");\n int modeDeJeu = sc.nextInt();\n sc.nextLine(); //On vide la ligne\n \n //AJOUTER UNE EXCEPTION POUR LE MODE DE JEU\n \n \n \n //Choix de l'equipe a l'aide d'un scanner\n// System.out.println(\"Choisissez votre équipe :\");\n// NomEquipe equipe;\n// Equipe equipeChoisit = new Equipe(nomEquipe);\n \n\n\n /*Scanner sc = new Scanner(System.in);\n System.out.println(\"Voulez vous disputer un match ? Oui=1 ou NON=2 \");\n int i = sc.nextInt();\n System.out.println(\"Saisissez le numéro de l'equipe avec laquelle vous voulez Jouez \"\n + \"PSG :1\"\n + \"MARSEILLE:2 \");\n //On vide la ligne avant d'en lire une autre\n sc.nextLine();\n int equipe = sc.nextInt(); \n System.out.println(\"FIN ! \");\n \n switch(equipe) {\n case 1:\n Equipe paris= new Equipe (NomEquipe.PSG);\n System.out.println(paris.stade);\n break;\n case 2 :\n Equipe marseille= new Equipe (NomEquipe.OM);\n System.out.println(marseille.stade);\n \n }*/\n }", "public static void main(String[] args) {\n\r\n\t\tAdressePostale a = new AdressePostale(5,\"des Maréchaux\",44100,\"Nantes\");\r\n\t\r\n\t\tAdressePostale b = new AdressePostale(85,\"d'Antrain\",35700,\"Rennes\");\r\n\t\t\r\n\t\t//a.nbDepartement =102;\r\n\t\t//System.out.println(a.nbDepartement);\r\n\t\t\r\n\t\tSystem.out.println(AdressePostale.nbDepartement);\r\n\t\t\r\n\t\tSystem.out.println(a.toString());\r\n\t\tSystem.out.println(b.toString());\r\n\t}", "public void empdetails() {\r\n\t\tSystem.out.println(\"name : \"+ name);\r\n\t}", "public String toString() {\r\n return nom + \" \" + dateEmbauche;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tEmpleado[] misEmpleados = new Empleado[3];\n\t\t\n\t\tmisEmpleados[0] = new Empleado(\"Laura Diaz\", 85000, 2020,2,30);\n\t\tmisEmpleados[2] = new Empleado(\"Jon Snow\", 43000, 2018,10,3);\n\t\tmisEmpleados[1] = new Empleado(\"Ana Lopez\", 68000, 2010,12,3);\n\t\t\n\t\t//PRINCIPIO DE SUSTITUCIÓN\n\t\tEmpleado director_comercial = new Jefatura(\"Lau\", 40000, 2018,6,14);\n\t\t\n\t\t//Una vez hecho esto se puede utilizar la instrucción INSTANCEOF (comprobar si una instancia pertenece\n\t\t//a una clase o no).\n\t\tif (director_comercial instanceof Empleado) {\n\t\t\t\n\t\t\tSystem.out.println(\"Es de tipo Jefatura\");\n\t\t}\n\t\t\n\t\t////Ahora vamos a llamar al método de la interfaz estableceBonus\n\t\tSystem.out.println(\"El empleado \" + misEmpleados[1].dameNombre() + \" tiene un bonus de \" +\n\t\tmisEmpleados[1].estableceBonus(250.60));\n\t\t\n\t\t\n\t\t\t\t\n\t\t//ORDENAR LA MATRIZ:\n\t\t\n\t\tint control = 0;\n\t\tdo {\n\t\t\tfor (int i = 1; i < misEmpleados.length; i++) {\n\t\t\t\tcontrol = 0;\n\t\t\t\tif (misEmpleados[i-1].dameSueldo() > misEmpleados[i].dameSueldo()) {\n\t\t\t\t\tEmpleado x = misEmpleados[i-1];\n\t\t\t\t\tmisEmpleados[i-1] = misEmpleados[i];\n\t\t\t\t\tmisEmpleados[i] = x;\n\t\t\t\t\tcontrol++;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (control != 0);\n\t\n\t\t //Ahora vamos a subirles el suelo a todos un 5%. FOR para recorrer el Array\n\n\t\tfor (int i = 0; i < misEmpleados.length; i++) {\n\n\t\t\tmisEmpleados[i].subeSueldo(5);\n\t\t}\n\n\t\t// Vamos a usar otro bucle FOR para que nos imprima el pantalla a cada uno de\n\t\t// los empleados\n\n\t\tfor (int i = 0; i < misEmpleados.length; i++) {\n\n\t\t\tSystem.out.println(\"Nombre: \" + misEmpleados[i].dameNombre() + \" Sueldo: \" + \n\t\t\tmisEmpleados[i].dameSueldo() + \" Fecha de alta : \" + misEmpleados[i].dameFechaContrato());\n\t\t}\n\t\t\n\t\t\n\t\tJefatura jefe_RRHH = new Jefatura(\"Laura\", 25000, 1992, 10, 04);\n\t\t\n\t\tjefe_RRHH.estableceIncentivo(200.50);\n\t\t\n\t\tSystem.out.println(jefe_RRHH.toString());\n\t\t\n\t\t//Ahora vamos a llamar al método de la interfaz jefes (tomar decisiones)\n\t\tSystem.out.println(jefe_RRHH.tomarDecisiones(\"Contratar personal\"));\n\t\t//Ahora vamos a llamar al método de la interfaz estableceBonus\n\t\tSystem.out.println(\"El jefe de RRHH: \" + jefe_RRHH.dameNombre() + \" tiene un bonus de \" \n\t\t+ jefe_RRHH.estableceBonus(432));\n\t\t\n\n\t}", "public static void main(String [] args){\n\t\t\r\n\t\tEstadoDAO dao = new EstadoDAO();\r\n\t//\tdao.salvar(estado);\r\n\t\tList<Estado> estados= dao.list();\r\n\t\t \r\n\t\t for(Estado est: estados){\r\n\t\t System.out.println(est.getEstado());\r\n\t\t \r\n\t\t\t\t\r\n\r\n\t\t \r\n\t\t // CidadeDAO dao = new CidadeDAO();\r\n\t\t // cidades = dao.buscartudo();\r\n\t\t // for(Cidade cid: cidades){\r\n\t\t // System.out.println(cid.getNome_cidade());\r\n\t\t }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tEmployee emp1 = new Employee();\r\n\t\tEmployee emp2 = new Employee();\r\n\t\t\r\n\t\temp1.empName = \"Rob\";\r\n\t\temp1.empid = 200;\r\n\t\temp1.empsalary = 12345;\r\n\t\t\r\n\t\temp1.displayEmployeebonus();\r\n\t\t\r\n\t\temp2.empName = \"Rob\";\r\n\t\temp2.empid = 300;\r\n\t\temp2.empsalary = 98765;\r\n\t\t\r\n\t\temp2.displayEmployeebonus();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "public static void main(String[] args) {\n Student sv;\n\n //cap phat bo nho cho bien doi tuong [sv] \n sv = new Student();\n\n //gan gia tri cho cac fields cua bien [sv]\n sv.id = \"student100\";\n sv.name = \"Luu Xuan Loc\";\n sv.yob = 2000;\n sv.mark = 69;\n sv.gender = true;\n\n //in thong tin doi tuong [sv]\n sv.output();\n\n //tao them 1 bien doi tuong [sv2] kieu [Student]\n Student sv2 = new Student();\n //gan gia tri cho cac fields cua doi tuong [sv2]\n sv2.id = \"student101\";\n sv2.name = \"Nguyen Ngoc Son\";\n sv2.yob = 2004;\n sv2.mark = 85;\n sv2.gender = false;\n\n //in thong tin doi tuong [sv2]\n sv2.output();\n\n //tao them 1 bien doi tuong [sv3] kieu [Student]\n Student sv3 = new Student();\n //in thong tin doi tuong [sv3]\n sv3.output();\n }", "public static void main(String[] args) {\n Employ obj1 = new Janani(1, \"Janani\", 757438);\n Employ obj2 = new Raghu(2, \"Raghu\", 73647);\n Employ[] arrEmploy = new Employ[]{obj1,obj2};\n for (Employ employ : arrEmploy) {\n System.out.println(employ);\n }\n }", "public static void main(String[] args) {\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"pu_essai\");\r\n\t\tEntityManager em = entityManagerFactory.createEntityManager();\r\n\t\t/*\r\n\t\t * Livre l = em.find(Livre.class, 1); if (l != null){\r\n\t\t * System.out.println(l.getId() + \" \" + l.getTitre() + \" \" +\r\n\t\t * l.getAuteur()); } TypedQuery<Livre> query2 =\r\n\t\t * em.createQuery(\"select l from Livre l where l.titre='Germinal'\",\r\n\t\t * Livre.class); Livre l2 = query2.getResultList().get(0);\r\n\t\t * System.out.println(l2.getId() + \" \" + l2.getTitre() + \" \" +\r\n\t\t * l2.getAuteur());\r\n\t\t */\r\n\t\tQuery query3 = em.createQuery(\"select e.livres from Emprunt e where e.id=1\");\r\n\t\tList<Livre> result = query3.getResultList();\r\n\t\tfor (Livre l : result) {\r\n\t\t\tSystem.out.println(l.getId() + \" \" + l.getTitre() + \" \" + l.getAuteur());\r\n\t\t}\r\n\t\tTypedQuery<Emprunt> query4 = em.createQuery(\"select e from Emprunt e where e.client=3\", Emprunt.class);\r\n\t\tquery4.getResultList().forEach(e -> System.out.println(e.getId() + \" \" + e.getDate_debut() + \" \" + e.getDate_fin()));\r\n\t\tem.close();\r\n\t\tentityManagerFactory.close();\r\n\t}", "public static void main(String[] args) {\n\t\tUsuario user = new Usuario(1, \"Joseph\", \"Climber\", \"Joseph Climber\", \"[email protected]\" \"222-3344\");\r\n\t\t\r\n\t\tpublic void mostrar() {\r\n\t\tSystem.out.println(\"\\n\\nUsuário:\\n\");\r\n\t\tSystem.out.println(\"Matrícula: \" + this.matricula);\r\n\t\tSystem.out.println(\"Login: \" + this.login);\r\n\t\tSystem.out.println(\"Senha: \" + this.senha);\r\n\t\tSystem.out.println(\"Nome: \" + this.nome);\r\n\t\tSystem.out.println(\"Email: \" + this.email);\r\n\t\tSystem.out.println(\"Telefone: \" + this.telefone);\r\n\t\t\r\n\t\tuser.mostrar();\r\n\t\t}\r\n\t\t\r\n\t\tItemDePedido Idp1 = new ItemDePedido();\r\n\t\tIdp1.setQtde(2);\r\n\t\tIdp1.setSubtotal(22.98);\r\n\r\n\r\n\t\tItemDePedido Idp2 = new ItemDePedido();\r\n\t\tIdp2.setQtde(1);\r\n\t\tIdp2.setSubtotal(98.75);\r\n\t\t\r\n\t\t\r\n\t\tEndereco end = new Endereco();\r\n\t\tend.setBairro(\"\");\r\n\t\tend.setCidade(\"\");\r\n\t\tend.setCep(\"\");\r\n\t\tend.setLogradouro(\"\");\r\n\t\tend.setComplemento(\"\");\r\n\t\tend.setEstado(\"\");\r\n\t\tend.setNumero(\"\");\r\n\t\t\r\n\t\tNotebook note = new Notebook();\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"Intel\");\r\n\t\tnote.setNumeroNote(2002-4);\r\n\t\tnote.setDataCadastro(\"0001-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(2.000);\r\n\t\t\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"CCE\");\r\n\t\tnote.setNumeroNote(2044-4);\r\n\t\tnote.setDataCadastro(\"0456-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(1500.00);\r\n\t\t\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"Positivo\");\r\n\t\tnote.setNumeroNote(2012-4);\r\n\t\tnote.setDataCadastro(\"00063-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(1.800);\r\n\t\t\r\n\t\t\r\n\t\tPedido pdd = new Pedido();\r\n\t\tpdd.setNumero(0001);\r\n\t\tpdd.setDataEmissao(\"23-11-2018\");\r\n\t\tpdd.setFormaDePagamento(\"\");\r\n\t\tpdd.setValorTotal(1.200);\r\n\t\tpdd.setSituacao(\"\");\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tContaDAO contaDAO = new ContaDAO();\n\n/*\n\t\tCartao cartao = new Cartao();\n\t\tcartao.setNumeroCartao(2);\n\t\tcartao.setNomeCartao(\"Saldanha\");\n\t\tcartao.setCpfCartao(\"12312312312\");\n\t\tcartao.setViaCartao(1);\n\t\tcartaoDAO.salvar(cartao);\n\t\tSystem.out.println(cartao.getIdCartao());\n\t\t\n\t\tConta conta = new Conta();\n\t\tconta.setConta(1234567898);\n\t\tconta.setCpf(\"12312312312\");\n\t\tconta.setNome(\"Saldanha\");\n\t\tconta.setSaldo(150.50f);\n\t\tcontaDAO.salvar(conta);\n\t\tSystem.out.println(conta.getSaldo());\n*/\t\tConta conta = new Conta();\n\t\tconta.setId(3);\n\t\tConta conta2 = contaDAO.obterPorId(conta.getId());\n\t\tSystem.out.println(\"Nome: \"+conta2.getNome() + \"\\nSaldo: R$\"+conta2.getSaldo());\n\t\t\n\t\t/*\t\tcartaoDAO.remover(cartao);\n\t\t\n\t\t\t\n\t\tList<Cliente> clientes = clienteDao.listarTodos();\n\t\t\t\t\n\t\tfor (Cliente cliente : clientes) {\n\t\t\tSystem.out.println(cliente.getNome());\n\t\t} */\n\t\n/*\t\tCliente cliente = clienteDao.obterPorId(2);\n\t\tcliente.setNome(\"Beltrano da Silva\");\n\t\t\n\t\tclienteDao.salvar(cliente);\n\t\tSystem.out.println(cliente.getNome());\n\t\t \n\t\t\n\t\tCartao cartao = cartaoDAO.obterPorId(2);\n\t\t\n\t\tcartaoDAO.remover(cartao);\n\t\t\n\t\tSystem.out.println(cartao.getNomeCartao());\n\t*/\n\t\n\t}", "public void mostrarDatos() {\r\n System.out.println(\"El nombre del cliente es: \" + this.getNombre());\r\n System.out.println(\"El primer apellido es: \" + this.getPrimerApellido());\r\n System.out.println(\"El segundo apellido es: \" + this.getSegundoApellido());\r\n System.out.println(\"La edad es: \" + this.getEdad());\r\n }", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "public static void main(String [ ] args){\n\t\t Fecha Hoy = new Fecha(12,12,2020);\r\n\t\t ArrayList<Cuenta> cuentas = new ArrayList<Cuenta>();\r\n\t\t \r\n\t\t Cuenta c0 = new CtaAhorros(10000,10);\r\n\t\t Cuenta c1 = new CtaCheques(256070,0);\r\n\t\t Cuenta c2 = new CtaCredito(13245,100);\r\n\t\t Cuenta c3 = new CtaCheques(765,20);\r\n\t\t Cuenta c4 = new CtaAhorros(9000,20);\r\n\t\t Cuenta c5 = new CtaAhorros(2300,10);\r\n\t\t Cuenta c6 = new CtaCredito(25000,12);\r\n\t\t \r\n\t\t cuentas.add(c0);\r\n\t\t cuentas.add(c1);\r\n\t\t cuentas.add(c2);\r\n\t\t cuentas.add(c3);\r\n\t\t cuentas.add(c4);\r\n\t\t cuentas.add(c5);\r\n\t\t \r\n\t\t Cliente C1=new Cliente(\"QUIJOTE\",cuentas,\"QX400\");\r\n\t\t Hoy.AvanzarTiempo(11,1,0);\r\n\t\t \r\n\t\t C1.depositar(1,1200, Hoy);\r\n\t\t C1.retirar(2,1100, Hoy);\r\n\t\t System.out.println(\"saldo cuenta 3:\"+C1.consultar(3,Hoy));\r\n\t\t C1.depositar(4,600, Hoy);\r\n\t\t \r\n\t\t //C1.reportarEdosCtas();\r\n\t\t \r\n\t\t }", "public static void main(String[] args) {\n\r\n\t\t Hasta A = new Hasta.Builder(12345688,\"Ali\",\"Acar\")\r\n\t .yas(25)\r\n\t .Cinsiyet(\"Erkek\")\r\n\t .Adres(\"Akasya Acıbadem Ofis Kuleleri\\n A Blok 24. Kat No:127\\n Acıbadem İstanbul Turkey\")\r\n\t .HastaId(1)\r\n\t .MedeniHal(\"Evli\")\r\n\t .build();\r\n\r\n\t Hasta B = new Hasta.Builder(123456789,\"Kevser\", \"Köse\")\r\n\t .yas(22)\r\n\t .MedeniHal(\"Bekar\")\r\n\t .build();\r\n\r\n\t Hasta C = new Hasta.Builder(145236987,\"Merve\", \"Topal\")\r\n\t .yas(29)\r\n\t .build();\r\n\r\n\t System.out.println(A);\r\n\t System.out.println(B);\r\n\t System.out.println(C);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tScanner lectorInt = new Scanner(System.in);\n\t\tScanner lectorString = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese información de pasajero\");\n\t\tSystem.out.println(\"Ingrese nombre: \");\n\t\tString nombre = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese apellido: \");\n\t\tString apellido = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese edad: \");\n\t\tint edad = lectorInt.nextInt();\n\t\tSystem.out.println(\"Que tipo de pasajero es: 1:Pasajero Vip 2:Pasajero Económico \");\n\t\tint opcion = lectorInt.nextInt();\n\t\tString membresia = \"\";\n\t\tString descuento = \"\";\n\t\tif (opcion == 1) {\n\t\t\tSystem.out.println(\"Ingrese Código de Membresía\");\n\t\t\tmembresia = lectorString.nextLine();\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Ingrese Código de Descuento\");\n\t\t\tdescuento = lectorString.nextLine();\n\t\t}\n\n\t\tPasajeroVip pasajero1 = new PasajeroVip();\n\t\tpasajero1.setNombre(nombre);\n\t\tpasajero1.setApellido(apellido);\n\t\tpasajero1.setCodigoMembresia(membresia);\n\t\tpasajero1.setEdad(edad);\n\n\t\tPasajeroVip pasajero2 = new PasajeroVip(\"Juan\", \"Tandre\", \"as2345\", 23);\n\n\t\tPasajeroEconomico pasajeroEconomico1 = new PasajeroEconomico();\n\t\tpasajeroEconomico1.setNombre(\"Helena\");\n\t\tpasajeroEconomico1.setApellido(\"Frias\");\n\t\tpasajeroEconomico1.setCodigoDescuento(\"1234df\");\n\t\tpasajeroEconomico1.setEdad(25);\n\n\t\tPasajero[][] asientos = new Pasajero[4][5];\n\t\tasientos[0][0] = pasajero1;\n\t\tasientos[0][1] = pasajero2;\n\t\tasientos[0][2] = pasajero1;\n\t\tasientos[0][3] = pasajeroEconomico1;\n\t\tasientos[1][0] = pasajero1;\n\t\tasientos[1][1] = pasajeroEconomico1;\n\n\t\tint opcionSalir = 0;\n\t\tdo {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Ingrese datos del asiento, 0:continuar, -1:SALIR\");\n\t\t\topcionSalir = lectorInt.nextInt();\n\t\t\tif (opcionSalir == 0) {\n\t\t\t\tSystem.out.print(\"Ingrese fila del asiento: \");\n\t\t\t\tint fila = lectorInt.nextInt();\n\t\t\t\tSystem.out.print(\"Ingrese columna del asiento: \");\n\t\t\t\tint columna = lectorInt.nextInt();\n\t\t\t\tSystem.out.println(\"Los datos del pasajero son: \");\n\t\t\t\tSystem.out.println(asientos[fila][columna]);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Va ha salir del sistema\");\n\t\t\t}\n\t\t} while (opcionSalir != -1);\n\n\t}", "public static void main(String[] args) {\n\t\tSawon s1=new Sawon();\r\n\t\ts1.name=\"홍길동\";\r\n\t\ts1.dept=\"영업부\";\r\n\t\ts1.print();\r\n\t\tSawon s2=s1;\r\n\t\ts2.name=\"심청이\";\r\n\t\ts2.dept=\"개발부\";\r\n\t\ts2.print();\r\n\t\ts1.print(); //이건 복제가 아니라 주소 참조\r\n\t\t\r\n\t\tStudent s3=new Student();\r\n\t\ts3.id=\"hong\";\r\n\t\tSystem.out.println(\"s3.id:\"+s3.id);\r\n\t\tStudent s4=s3.display();\r\n\t\ts4.id=\"shim\";\r\n\t\tSystem.out.println(\"s4.id:\"+s4.id);\r\n\t}", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }", "public static void main(String[] args)\r\n\t{\r\n\t\t\r\n\t\tInformacion info = new Informacion(new Alumno(\"Javier Eduardo\",\"Barrocal\",87158),new Alumno(\"Pablo Isaias\",\"Chacar\",67704));\r\n\t\tSystem.out.println(info.getHolaMundo());\r\n\t\tSystem.out.println(\"Alumno 1: \" + info.getAlumno1().getApellidosNombres() + \" \" + info.getAlumno1().getLU());\r\n\t\tSystem.out.println(\"Alumno 2: \" + info.getAlumno2().getApellidosNombres() + \" \" + info.getAlumno2().getLU());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n GeneracionDatos generacionDatos = new GeneracionDatos();\n generacionDatos.creacionBarcos();\n generacionDatos.creacionAlquileres();\n\n Calculos calculos = new Calculos();\n\n //Muestra de datos calculados\n System.out.println(\"Alquiler mayor: \" + calculos.mayorAlquiler(generacionDatos.getAlquileres()));\n System.out.println(\"\");\n System.out.println(\"Alquiler menor: \" + calculos.menorAlquiler(generacionDatos.getAlquileres()));\n System.out.println(\"\");\n System.out.println(\"Promedios mensuales: \"); calculos.promedioMensual(generacionDatos.getAlquileres());\n System.out.println(\"\");\n System.out.println(\"Promedio anual: \" + calculos.promedioAnual(generacionDatos.getAlquileres()));\n }", "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "public static void main(String[] args) \n {Employee nv1 = new Employee();\n// Employee nv2 = new Employee(2, \"Vo Le Khanh Duy\", 3600, \"[email protected]\", \"0123456789\");\n// \n// System.out.println(\"\\nNhap thong tin nhan vien 1:\");\n// nv1.nhapEmployee();\n// \n// nv1.xuatEmployee(nv1);\n// System.out.println(\" \\\"Tong Luong\\\": \" + nv1.Sum_of_sal(50)); \n// \n// nv1.xuatEmployee(nv2);\n// System.out.println(\" \\\"Tong Luong\\\": \" + nv2.Sum_of_sal(50));\n// \n EmployeeService employ = new EmployeeService();\n employ.nhapMangNhanVien();\n Employee kq = new Employee();\n kq = employ.timKiemNhanVien(employ.getArrEmployee(), 2);\n System.out.println(\"\\nThông tin nhân viên có id = 2\");\n kq.xuatEmployee(kq);\n System.out.println(\"\\nSắp xếp theo id tăng dần\");\n employ.sapXepMang(employ.getArrEmployee());\n employ.xuatMangNhanVien();\n }", "public Empleado(String nombre, double sueldo){\r\n this.nombre = nombre;\r\n this.sueldo = sueldo;\r\n }", "public static void main(String[] args) {\n\t\tFornitura forn= new Fornitura();\n\t\tArrayList<Dipendente> dip = new ArrayList<Dipendente>();\t\t\n\t\tfor(int j = 0;j<3;j++){\n\t\t\tDipendente d = new Dipendente();\n\t\t\td.setCodAziendaUfficiale(\"soc\"+j);\n\t\t\td.setCodDipendenteUfficiale(\"dip\"+j);\n\t\t\tArrayList<Voce> voc = new ArrayList<Voce>();\n\t\t\tArrayList<Movimento> mov = new ArrayList<Movimento>();\n\t\t\tfor(int i = 0;i<5;i++)\n\t\t\t{\n\t\t\t\tMovimento m = new Movimento();\n\t\t\t\tm.setIdCodDipZuc(d.getCodDipendenteUfficiale());\n\t\t\t\tm.setIdCodSocZuc(d.getCodAziendaUfficiale());\n\t\t\t\tVoce v = new Voce();\n\t\t\t\tv.setIdCodDipZuc(d.getCodDipendenteUfficiale());\n\t\t\t\tv.setIdCodSocZuc(d.getCodAziendaUfficiale());\n\t\t\t\ttry {\n\t\t\t\t\tm.setDatetime(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t\tv.setDatetimeFine(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t\tv.setDatetimeInit(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t} catch (DatatypeConfigurationException 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\tm.setGiornoChiusuraStraordinari(\"N\");\n\t\t\t\tm.setNumMinuti(480);\n\t\t\t\tm.setPippo(4.56);\n\t\t\t\tm.setGiustificativo(\"Giustificativo\");\n\t\t\t\tv.setNumMinuti(60);\n\t\t\t\tv.setPippo(100.45);\n\t\t\t\tv.setTopolino(\"Topo Lino\");\n\t\t\t\tmov.add(m);\n\t\t\t\tvoc.add(v);\n\t\t\t}\n\t\t\td.setMovimenti(mov);\n\t\t\td.setVociRetributive(voc);\n\t\t\tdip.add(d);\n\t\t}\n\t\tforn.setDipendente(dip);\n\t\tJAXBContext jc;\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(Fornitura.class);\n\t\t\tMarshaller marshaller = jc.createMarshaller();\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.marshal(forn, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(FileOutputStream fileOut = new FileOutputStream(\"workbook.xlsx\");Workbook wb = new XSSFWorkbook())\n\t\t{\n\t\t XSSFSheet sheetA = (XSSFSheet)wb.createSheet(\"Movimenti\");\n//\t\t XSSFSheet sheetB = (XSSFSheet)wb.createSheet(\"VociRetributive\");\n\n\t\t \n\t\t /*Impostazioni per i movimenti*/\t\t \n\t\t /* Create an object of type XSSFTable */\n\t\t \n\t\t XSSFTable my_table = sheetA.createTable();\n\t\t \n\t\t /* get CTTable object*/\n\t\t CTTable cttable = my_table.getCTTable();\n\t\t \n\t\t /* Let us define the required Style for the table */ \n\t\t CTTableStyleInfo table_style = cttable.addNewTableStyleInfo();\n\t\t table_style.setName(\"TableStyleMedium9\"); \n\t\t \n\t\t /* Set Table Style Options */\n\t\t table_style.setShowColumnStripes(false); //showColumnStripes=0\n\t\t table_style.setShowRowStripes(true); //showRowStripes=1\n\t\t \n\t\t /* Define the data range including headers */\n\t\t AreaReference my_data_range = new AreaReference(new CellReference(0, 0), new CellReference(Fornitura.getNumeroDiMovimenti(forn), 6));\n\t\t \n\t\t /* Set Range to the Table */\n\t\t cttable.setRef(my_data_range.formatAsString());\n\t\t cttable.setDisplayName(\"Movimenti\"); /* this is the display name of the table */\n\t\t cttable.setName(\"Movimenti\"); /* This maps to \"displayName\" attribute in <table>, OOXML */ \n\t\t cttable.setId(1L); //id attribute against table as long value\n\t\t \n\t\t CTTableColumns columns = cttable.addNewTableColumns();\n\t\t CTAutoFilter autoFilter = cttable.addNewAutoFilter();\n\t\t \n\t\t columns.setCount(7L); //define number of columns\n\t\n\t\t /* Define Header Information for the Table */\n\t\t for (int i = 0; i < 7; i++)\n\t\t {\n\t\t CTTableColumn column = columns.addNewTableColumn(); \n\t \t switch(i)\n\t \t {\n\t \t \tcase 0:\n\t \t \t\tcolumn.setName(\"idCodDipZuc\");\n\t \t \t\tbreak;\n\t \t \tcase 1:\n\t \t \t\tcolumn.setName(\"idCodSocZuc\");\n\t \t \t\tbreak;\n\t \t \tcase 2:\n\t \t \t\tcolumn.setName(\"giustificativo\");\n\t \t \t\tbreak;\n\t \t \tcase 3:\n\t \t \t\tcolumn.setName(\"NumMinuti\");\n\t \t \t\tbreak;\n\t \t \tcase 4:\n\t \t \t\tcolumn.setName(\"GiornChiusS\");\n\t \t \t\tbreak;\n\t \t \tcase 5:\n\t \t \t\tcolumn.setName(\"Pippo\");\n\t \t \t\tbreak;\n\t \t \tcase 6:\n\t \t \t\tcolumn.setName(\"Data\");\n\t \t \t\tbreak;\n\t\n\t \t }\n\t \t \n\t \t \n\t \t column.setId(i+1);\n\t \t CTFilterColumn filter = autoFilter.addNewFilterColumn();\n\t \t filter.setColId(i+1);\n\t \t filter.setShowButton(true);\n\t \t sheetA.autoSizeColumn(i);\n\t \t sheetA.setColumnWidth(i, sheetA.getColumnWidth(i) + 1024);\n\t \t \n\t\t }\n\t\t \n\t\t List<Dipendente> ld = forn.getDipendente();\n\t\t int numRowMov = -1;\n\t\t /*Inizializzazione HEADER*/\n\t\t XSSFRow rowAA = sheetA.createRow(++numRowMov);\n\t\t for(int j=0;j<7;j++){\n \t\t\tXSSFCell localXSSFCellFD = rowAA.createCell(j);\n \t\t\tcreaHeader(j, localXSSFCellFD);\t\t\n\t\t }\n\t\t \n//\t\t int numRowVoc = 0;\n\t\t ;\n\t\t for(Dipendente d:ld)\n\t\t {\n\t\t \tList<Movimento> lm = d.getMovimenti();\n\t\t \t//List<Voce> lv = d.getVociRetributive();\n\t\t \tfor(Movimento m:lm)\n\t\t \t{\t \t\t\n\t\t \t\tXSSFRow rowA = sheetA.createRow(++numRowMov);\n\t\t \t\tfor(int j = 0; j < 7; j++)\n\t\t \t\t{\n\t\t \t\t\tXSSFCell localXSSFCell = rowA.createCell(j);\n\t\t\t\t\t\tcreaMovimento(wb, d, m, j, localXSSFCell);\n\t\t \t\t}\n\t\t \t}\n//\t\t \tfor(Voce v:lv)\n//\t\t \t{\n//\t\t \t\t\n//\t\t \t}\n\t\t \t\n\t\t }\n\t\t wb.write(fileOut);\n\t fileOut.flush();\n\t\t fileOut.close();\n\t wb.close();\n\t \n\t System.out.println(\"**** LEGGO IL FILE SCRITTO ****\");\n\t /*Aprire un altro file, leggerlo e generare l'xml*/\n\n FileInputStream excelFile = new FileInputStream(new File(\"workbook.xlsx\"));\n XSSFWorkbook workbook = new XSSFWorkbook(excelFile);\n XSSFSheet foglioMov = workbook.getSheet(\"Movimenti\");\n List<XSSFTable> ltab = foglioMov.getTables();\n HashMap<String,Dipendente> hmsd = new HashMap<String,Dipendente>();\n for(XSSFTable xsfftab:ltab)\n {\n \tif(\"Movimenti\".equals(xsfftab.getName()))\n \t{\n \t\tint iIni =xsfftab.getStartCellReference().getRow();\n \t\tint jIni =xsfftab.getStartCellReference().getCol();\n \t\tint iFin =xsfftab.getEndCellReference().getRow();\n \t\tint jFin =xsfftab.getEndCellReference().getCol();\n \t\tCTTableColumns cttc = xsfftab.getCTTable().getTableColumns();\n \t\tfor(int i = iIni+1;i<=iFin;i++)\n \t\t{\n \t\t\tString codDipZuc = null;\n \t\t\tString codSocZuc = null;\n \t\t\tString giustificativo = null;\n \t\t\tInteger numMin = null;\n \t\t\tString gioChiu = null;\n \t\t\tDouble pippo = null;\n \t\t\tjava.util.Date laData = null;\n \t\t\tfor(int j=jIni;j<=jFin;j++)\n \t\t\t{\n \t\t\t\tSystem.out.println(jFin);\n \t\t\t\tswitch(cttc.getTableColumnArray(j).getName())\n \t\t\t\t{\n \t\t\t\t\tcase \"idCodDipZuc\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tcodDipZuc = foglioMov.getRow(i).getCell(j).getStringCellValue(); \t\t\t\t\t\t\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"idCodSocZuc\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tcodSocZuc = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"giustificativo\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tgiustificativo = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"NumMinuti\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getNumericCellValue());\n \t\t\t\t\t\tnumMin = (int)foglioMov.getRow(i).getCell(j).getNumericCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"GiornChiusS\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tgioChiu = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"Pippo\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getNumericCellValue());\n \t\t\t\t\t\tpippo = foglioMov.getRow(i).getCell(j).getNumericCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"Data\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getDateCellValue());\n \t\t\t\t\t\tlaData = foglioMov.getRow(i).getCell(j).getDateCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t}\n\n \t\t\t}\n \t \tif(!hmsd.containsKey(codSocZuc+\";\"+codDipZuc))\n \t \t{\n \t \t\tDipendente dip0 = new Dipendente();\n \t \t\tdip0.setCodAziendaUfficiale(codSocZuc);\n \t \t\tdip0.setCodDipendenteUfficiale(codDipZuc);\n \t \t\tdip0.setMovimenti(new ArrayList<Movimento>());\n \t \t\thmsd.put(codSocZuc+\";\"+codDipZuc,dip0);\n \t \t}\t \t\n \t \tMovimento e = new Movimento();\n \t \tGregorianCalendar gc = GregorianCalendar.from(ZonedDateTime.now());\n \t \te.setIdCodDipZuc(codDipZuc);\n \t \te.setIdCodSocZuc(codSocZuc);\n \t \te.setGiornoChiusuraStraordinari(gioChiu);\n \t \te.setGiustificativo(giustificativo);\n \t \te.setNumMinuti(numMin);\n \t \te.setPippo(pippo);\n \t \tgc.setTime(laData);\n \t \ttry {\n\t\t\t\t\t\t\te.setDatetime(DatatypeFactory.newInstance().newXMLGregorianCalendar(gc));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (DatatypeConfigurationException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n \t \thmsd.get(codSocZuc+\";\"+codDipZuc).getMovimenti().add(e);\t \t\t\t\n \t\t}\n \t\t\t\n \t}\n }\n System.out.println(\"**** SCRIVO IL NUOVO XML ****\");\n Fornitura forni = new Fornitura();\n forni.setDipendente(new ArrayList<Dipendente>(hmsd.values()));\n \t\tJAXBContext jc12;\n \t\ttry {\n \t\t\tjc12 = JAXBContext.newInstance(Fornitura.class);\n \t\t\tMarshaller marshaller = jc12.createMarshaller();\n \t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n \t\t\tmarshaller.marshal(forni, System.out);\n \t\t} catch (JAXBException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n \n//\t for(/*TUTTE LE RIGHE DI VOCI RETRIBUTIVA*/)\n//\t {\n//\t \tif(!hmIDDip.containsKey(\"idSoc;idDip\"))\n//\t \t{\n//\t \t\tDipendente dip = new Dipendente();\n//\t \t\tdip.setCodAziendaUfficiale(\"idSoc\");\n//\t \t\tdip.setCodDipendenteUfficiale(\"idDip\");\n//\t \t\tdip.setVociRetributive(new ArrayList<Voce>());\n//\t \t\t\n//\t \t}else if(hmIDDip.get(\"idSoc;idDip\").getVociRetributive()==null)\n//\t \t\thmIDDip.get(\"idSoc;idDip\").setVociRetributive(new ArrayList<Voce>());\n//\t \thmIDDip.get(\"idSoc;idDip\").getVociRetributive().add(e);\n//\t }\n\t \n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t \n \n\t\t\n\t}", "public DatoGeneralEmpleadoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess = new DatoGeneralEmpleadoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleados= new ArrayList<DatoGeneralEmpleado>();\r\n\t\t\tthis.datogeneralempleado= new DatoGeneralEmpleado();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoObject=new Object();\r\n\t\t\tthis.datogeneralempleadosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.datogeneralempleadoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public List<Empleado> getEmpleados(Empleado emp) {\n List<Empleado> empleados = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n\n String carnet = emp.getCarnetEmpleado();\n\n \n try{\n\n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\n // String miSql = \"select * from departamento d inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado = '\"+carnet+\"'\";\n String miSql = \"select * from empleado e WHERE e.carnetempleado = '\"+carnet+\"'\"; \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n String codCarnet = miResultset.getString(\"CARNETEMPLEADO\");\n \n Empleado temporal = new Empleado(codCarnet);\n \n empleados.add(temporal);\n }\n\n }catch(Exception e){\n e.printStackTrace();\n }\n \n return empleados;\n }", "public static void main(String[] args) {\n\n\t\tCar myCar = new Car(\"그렌져\");\n\t\tCar yourCar = new Car(\"그렌져\");\n\t\tString bigyo ;\n\t\tDate date = new Date();\n\t\t\n\t\tif(myCar.equals(yourCar.getName()) == true) {\n\t\t\tbigyo = \"같다\";\n\t\t}\n\t\telse{\n\t\t\tbigyo = \"다르다\";\n\t\t}\n\t\t\n\t\tSimpleDateFormat sdf1 = new SimpleDateFormat(\"MM-dd-YYYY\");\n\t\tString s = MessageFormat.format(\"내 차 [{0}], 니 차 [{1}] 로 {2}\", myCar.getName(), yourCar.getName(), bigyo);\n\t\tString s1 = MessageFormat.format(\"날짜: {0}, 자동차 모델 = {1}, 운전자(홍길동)\", sdf1.format(date), myCar.getName());\n\t\tSystem.out.println(s);\n\t\tSystem.out.println(s1);\n\n\t\tStringTokenizer token = new StringTokenizer(s1,\" =,()\");\n\t\t//문장에 있는 문자들을 문자단위로 구분하여 추출하려할때 쓰는 클래스 StringTokenizer.\n\t\t//StringTokenizer(구분할 문자열 변수명, \"조건들\");\n\t\t//조건들에는 공백문자도 포함하므로 조건과 조건 사이에 공백을 안써도 된다.\n\t\t//즉, 이 문장에서 구분 추출의 조건은 공백문자 / = / , / ( / ) 이다.\n\t\tSystem.out.println(token.countTokens());\n\t\t\n\t\twhile(token.hasMoreTokens()) {\n\t\t\tSystem.out.println(token.nextToken());\n\t\t}\n\t}", "void printEmployeeDetail(){\n\t\tSystem.out.println(\"First name: \" + firstName);\n\t\tSystem.out.println(\"Last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t\tSystem.out.println(\"Salary: \" + salary);\n\t\tSystem.out.println(firstName + \" has \" + car.color + \" \" + car.model + \" it's VIN is \" + car.VIN + \" and it is make year is \" + car.year );\n\t\t\n\t}", "@SuppressWarnings(\"resource\")\r\n\tpublic static void main(String[] args) throws ObjectIsexistException {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"EmployeeAd.xml\");\r\n\t\t\r\n\t\tEmployeeAdDao employeeAdDao=context.getBean(EmployeeAdDao.class);\r\n\t\t\r\n\t\tAddress adress=new Address(14,\"678 Flower Dr\", \"Boomingto\", \"KH\", \"89709\");\r\n\t\t\r\n\t\tEmployee emp=new Employee(14,\"Keven-1\",\"Oliver-1\",88880,adress);\r\n\t\t\r\n\t\t\r\n\t\t//employeeAdDao.save(emp);\r\n\t\t//employeeAdDao.saveEmpAddress(emp);\r\n\t\t//employeeAdDao.saveEmp(emp);\r\n\t\t\r\n\t List<Object[]> elist=\temployeeAdDao.getAlls();\r\n\t \r\n\t \r\n\t int i=0;\r\n\t for(Object[] e : elist) {\r\n\t\t //System.out.println(\"---\"+e.equals(\"Address\"));\r\n\t\t System.out.println(e[0].toString()+\" \"+e[1].toString()+\" \"+e[2].toString()+\" \"+e[3].toString());\r\n\t }\r\n\t System.out.println(\"-------\\n\");\r\n\t \r\n\t for(Object[] row : elist){\r\n\t\t\tEmployee empd = new Employee();\r\n\t\t\t//i++;\r\n\t\t\tempd.setId(Integer.parseInt(row[0].toString()));\r\n\t\t\tempd.setFname(row[1].toString());\r\n\t\t\tempd.setLname(row[2].toString());\r\n\t\t\tempd.setSalary(Integer.parseInt(row[3].toString()));\r\n\t\t\tSystem.out.println(empd.getLname().toString());\r\n\t\t}\r\n\t \r\n\t}", "public Persona(String nombre, String sexo, int edad) {\n this.nombre = nombre;\n this.sexo = sexo;\n this.edad = edad;\n System.out.println(\"La persona \"+ this.nombre + \" ha sido creada con exito\");\n }" ]
[ "0.83144754", "0.76812476", "0.7509302", "0.7467238", "0.73404473", "0.73319256", "0.7177642", "0.7174875", "0.71629924", "0.7114813", "0.69332975", "0.6874628", "0.68514717", "0.6825974", "0.6770643", "0.6754264", "0.6737527", "0.6709935", "0.6709211", "0.6708694", "0.66922814", "0.6686115", "0.66037196", "0.65925735", "0.65741915", "0.65469986", "0.65383214", "0.6519984", "0.6492325", "0.64477324", "0.64399695", "0.64330405", "0.64323086", "0.64201766", "0.6417145", "0.63924736", "0.6386922", "0.6386677", "0.6376022", "0.6355666", "0.634779", "0.63402236", "0.6323587", "0.6276583", "0.6271459", "0.6232202", "0.6222198", "0.62145686", "0.6191519", "0.6175978", "0.6172317", "0.6171233", "0.6157197", "0.6148865", "0.6146392", "0.6141805", "0.61369944", "0.61348665", "0.61260337", "0.6124481", "0.61200094", "0.61071527", "0.60975665", "0.6094848", "0.60899895", "0.6081781", "0.6079189", "0.6078015", "0.6076547", "0.60686684", "0.606715", "0.6063337", "0.6061925", "0.6060864", "0.60564524", "0.6055483", "0.60488796", "0.6042152", "0.6039729", "0.60391134", "0.60385114", "0.6037697", "0.60302323", "0.6024836", "0.6023186", "0.6020975", "0.6016689", "0.60166335", "0.60122997", "0.6002968", "0.60008514", "0.5999269", "0.5998928", "0.59850055", "0.5979069", "0.5978659", "0.5973414", "0.59692824", "0.5959279", "0.5958433" ]
0.7525601
2
declares the catgeroies for the province of Manitoba
public static Map<Integer, TaxCategory> manitoba() { HashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>(); try { TaxCategory cat1 = new TaxCategory(10.8, 0, 33723); categories.put( 1, cat1 ); TaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885); categories.put( 2, cat2 ); TaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000); categories.put( 3, cat3 ); } catch( Exception e ) {} return categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Canada() {\n\n //Initialize the array \n provinces = new String[NUM_PROVINCES][NUM_NAMES];\n\n // Set the elements in the array \n provinces[BC][NAME_OF_PROVINCE] = \"British Columbia\";\n provinces[BC][NAME_OF_CAPITAL_CITY] = \"Victoria\";\n provinces[BC][NAME_OF_BIGGEST_CITY] = \"Vancouver\";\n provinces[PE][NAME_OF_PROVINCE] = \"Prince Edward Island\";\n provinces[PE][NAME_OF_CAPITAL_CITY] = \"Charlottetown\";\n provinces[PE][NAME_OF_BIGGEST_CITY] = \"Charlottetown\";\n provinces[SK][NAME_OF_PROVINCE] = \"Saskatchewan\";\n provinces[SK][NAME_OF_CAPITAL_CITY] = \"Regina\";\n provinces[SK][NAME_OF_BIGGEST_CITY] = \"Saskatoon\";\n provinces[AB][NAME_OF_PROVINCE] = \"Alberta\";\n provinces[AB][NAME_OF_CAPITAL_CITY] = \"Edmonton\";\n provinces[AB][NAME_OF_BIGGEST_CITY] = \"Calgary\";\n provinces[NL][NAME_OF_PROVINCE] = \"Newfoundland and Labrador\";\n provinces[NL][NAME_OF_CAPITAL_CITY] = \"St. John's\";\n provinces[NL][NAME_OF_BIGGEST_CITY] = \"St. John's\";\n provinces[YK][NAME_OF_PROVINCE] = \"Yukon\";\n provinces[YK][NAME_OF_CAPITAL_CITY] = \"WhiteHorse\";\n provinces[YK][NAME_OF_BIGGEST_CITY] = \"Whitehorse\";\n provinces[NV][NAME_OF_PROVINCE] = \"Nunavut\";\n provinces[NV][NAME_OF_CAPITAL_CITY] = \"Iqaluit\";\n provinces[NV][NAME_OF_BIGGEST_CITY] = \"Iqaluit\";\n provinces[NT][NAME_OF_PROVINCE] = \"Northwest Territories\";\n provinces[NT][NAME_OF_CAPITAL_CITY] = \"Yellowknife\";\n provinces[NT][NAME_OF_BIGGEST_CITY] = \"Yellowknife\";\n provinces[ON][NAME_OF_PROVINCE] = \"Ontario\";\n provinces[ON][NAME_OF_CAPITAL_CITY] = \"Toronto\";\n provinces[ON][NAME_OF_BIGGEST_CITY] = \"Toronto\";\n provinces[QC][NAME_OF_PROVINCE] = \"Quebec\";\n provinces[QC][NAME_OF_CAPITAL_CITY] = \"Quebec City\";\n provinces[QC][NAME_OF_BIGGEST_CITY] = \"Montreal\";\n provinces[NS][NAME_OF_PROVINCE] = \"Nova Scotia\";\n provinces[NS][NAME_OF_CAPITAL_CITY] = \"Halifax\";\n provinces[NS][NAME_OF_BIGGEST_CITY] = \"Halifax\";\n provinces[NB][NAME_OF_PROVINCE] = \"New Brunswick\";\n provinces[NB][NAME_OF_CAPITAL_CITY] = \"Fredericton\";\n provinces[NB][NAME_OF_BIGGEST_CITY] = \"Saint John\";\n provinces[MB][NAME_OF_PROVINCE] = \"Manitoba\";\n provinces[MB][NAME_OF_CAPITAL_CITY] = \"Winnipeg\";\n provinces[MB][NAME_OF_BIGGEST_CITY] = \"Winnipeg\";\n }", "public static Map<Integer, TaxCategory> alberta() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10, 0, 131220); // Tax Category 1 for Alberta\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12,131220.01, 157464); // Tax Category 2 for Alberta\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13, 157464.01, 209952); // Tax Category 3 for Alberta\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(14, 209952.01, 314928); // Tax Category 4 for Alberta\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(15, 314928.01, 10000000); // Tax Category 5 for Alberta\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static List<Category> getCategorysofProvince(Province province){\n\t\treturn CategoryDAO.getCategorysofProvince(province);\n\t}", "public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> novaScotia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> ontario() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "public Cgg_veh_categoria(){}", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "private Map<String, Integer> getPuntuationCat(List<Point> points, Trial trial){\n\t\t\n\t\t//Categoria master40\n\t\tMap<String, Integer> puntuation = setPuntuation(points, this.getMaster(trial.getId(), 40));\n\t\t \n\t\t//Categoria master30\n\t\tMap<String, Integer> puntuationMaster30 = setPuntuation(points, this.getMaster(trial.getId(), 30));\n\t\t//unir los dos maps\n\t\tpuntuationMaster30.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t//Categoria master20\n\t\tMap<String, Integer> puntuationMaster20 = setPuntuation(points, this.getMaster(trial.getId(), 20));\n\t\t//unir los dos maps\n\t\tpuntuationMaster20.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t\n\t\treturn puntuation;\n\t}", "public String getCapitalCityOf(String province) {\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null && \n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_CAPITAL_CITY];\n }\n\n }\n return null;\n }", "public static Map<Integer, TaxCategory> federal() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void displayAllProvinceInfo() {\n \n for(int i = 0; i < provinces.length; i++) {\n\n \n if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null && \n provinces[i][NAME_OF_CAPITAL_CITY].equalsIgnoreCase(provinces[i][NAME_OF_BIGGEST_CITY])) {\n System.out.println(\"The capital city of \" + provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" + provinces[i][NAME_OF_CAPITAL_CITY] + \", and it is also the largest city.\");\n \n }\n else if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null) {\n System.out.println(\"The capital city of \" +provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" +provinces[i][NAME_OF_CAPITAL_CITY] + \", but the largest city is \" \n +provinces[i][NAME_OF_BIGGEST_CITY] + \".\");\n }\n \n }\n}", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "public final void c() throws AMapException {\n if (this.f != null) {\n at atVar = new at(this.i, \"\");\n atVar.a(this.i);\n List list = (List) atVar.c();\n if (this.c != null) {\n this.f.a((List<OfflineMapProvince>) list);\n }\n synchronized (this.c) {\n Iterator<OfflineMapProvince> it = this.f.a().iterator();\n while (it.hasNext()) {\n Iterator<OfflineMapCity> it2 = it.next().getCityList().iterator();\n while (it2.hasNext()) {\n OfflineMapCity next = it2.next();\n for (al next2 : this.c) {\n if (next.getPinyin().equals(next2.getPinyin())) {\n String version = next2.getVersion();\n if (next2.getState() != 4 || d.length() <= 0 || !b(d, version)) {\n next2.setCity(next.getCity());\n next2.setUrl(next.getUrl());\n next2.setAdcode(next.getAdcode());\n next2.setVersion(next.getVersion());\n next2.setSize(next.getSize());\n next2.setCode(next.getCode());\n next2.setJianpin(next.getJianpin());\n next2.setPinyin(next.getPinyin());\n } else {\n next2.j();\n next2.setUrl(next.getUrl());\n }\n }\n }\n }\n }\n }\n }\n }", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public static void main(String[] args) {\n TypedQuery<Object[]> query = em.createQuery(\n \"SELECT COUNT(p), p.location.city FROM RegularCustomer p WHERE p.location.province = :province GROUP BY p.location.city\", Object[].class);\n List<Object[]> res1 = query.setParameter(\"province\", \"Jawa Barat\").getResultList();\n for (Object[] r : res1) {\n System.out.println(\"Count: \" + r[0] + \", City: \" + r[1]);\n }\n em.close();\n emf.close();\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public static Map<Integer, TaxCategory> saskatchewan() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "private void mapContinents() {\n\t\tElevationMap elevs = mRegion.getElevationMap();\r\n\t\tif (elevs.w != w || elevs.h != h)\r\n\t\t\tthrow new RuntimeException(\"Elevation map and continent map are not the same size.\");\r\n\t\t\r\n\t\t// Create continent map\r\n\t\tthis.mContinents = new int[w][h];\r\n\t\t// Set points below sea level to 0, all else to 2\r\n\t\tfor (int x = 0; x < w; ++x) {\r\n\t\t\tfor (int y = 0; y < h; ++y) {\r\n\t\t\t\t// MUST CHANGE THIS; SEA LEVEL HARD CODED TO 5\r\n\t\t\t\tif (elevs.getElev(x, y) < 5) mContinents[x][y] = 0;\r\n\t\t\t\telse mContinents[x][y] = 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Previous step separated land and water; now we distinguish unique land masses\r\n\t\tfor (int x = 0; x < w; ++x) {\r\n\t\t\tfor (int y = 0; y < h; ++y) {\r\n\t\t\t\t// \r\n\t\t\t\tif (mContinents[x][y] == 0) continue;\r\n\t\t\t\telse if (mContinents[x][y] == 2) {\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 static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "public controladorCategorias() {\r\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "public MapInfo getAllCovidCasesMapinfo() {\n GeoJsonGenerator generator = new GeoJsonGenerator();\n return generator.getAllMapInfo(getMapParamsOfMany(covidDataRepository.findAll()));\n }", "public Integer getProvince() {\n return province;\n }", "public Integer getProvince() {\n return province;\n }", "public String getCorpProvince() {\n return corpProvince;\n }", "private Object getAnomizedCategory() {\r\n\tString categorie = (String) record.get(\"categorie\");\r\n\tif (categorie != null) {\r\n\t switch (categorie) {\r\n\t case \"AD\":\r\n\t case \"CO\":\r\n\t case \"FI\":\r\n\t case \"IBL\":\r\n\t case \"KI\":\r\n\t case \"KL\":\r\n\t case \"VO\":\r\n\t\tbreak;\r\n\t default:\r\n\t\tcategorie = null;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\r\n\treturn categorie;\r\n }", "private void setEntropiaP(Map<String, Integer> categoriasPresenca, int totalPresenca) {\n\t\t\n\t}", "private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "private void cargarCmbColores(){\n MapaColores.getMap().forEach((k,v)->cmbColores.getItems().add(k));\n cmbColores.getSelectionModel().selectFirst();\n }", "public Cattery()\r\n {\r\n businessName = \"unknown business\";\r\n catCollection = new ArrayList<Cat>();\r\n }", "public ArrayList<City> getPopCityReg() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Region, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Region, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityReg = new ArrayList<>();\n System.out.println(\"9. All the cities in a REGION organised by largest population to smallest.\");\n System.out.println(\"Region | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.Population = rset.getInt(\"Population\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n\n Country cnt = new Country();\n cnt.Region = rset.getString(\"Region\");\n System.out.println(cnt.Region + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityReg.add(cty);\n }\n return PopCityReg;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "private void checkCategoriaInDB(DB db ){\n\t\tString[] catDef = {\"Ambiente\", \"Animali\", \"Arte e Cultura\",\"Elettronica e Tecnologia\", \"Sport\", \"Svago\"};\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tfor(String nomeCat : catDef) {\n\t\t\tlong hashcode = (long)nomeCat.hashCode();\n\t\t\tif(!categorie.containsKey(hashcode))\n\t\t\t\tcategorie.put(hashcode, new Categoria(null ,nomeCat));\n\t\t}\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "public ArrayList<City> getDiscPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.District, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" ORDER BY city.District, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> DiscPop = new ArrayList<>();\n System.out.println(\"11. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n DiscPop.add(cty);\n }\n return DiscPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"11. Failed to get city details\");\n return null;\n }\n }", "public Long getProvinceCitiesCode() {\n return provinceCitiesCode;\n }", "public ArrayList<Country> getACountryPopulation(String region) {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in the world\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS cName, SUM(DISTINCT country.Population) AS coPopulation\" +\n \" FROM country \" +\n \" WHERE country.Name = \" + \"'\" + region + \"'\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n System.out.println(\"29. Population of a country.\");\n System.out.println(\"Country\" + \" | \" + \"Population\");\n ArrayList<Country> country = new ArrayList<Country>();\n while (rset.next()) {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Name = rset.getString(\"cName\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population);\n country.add(cnt);\n }\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"28. Failed to get population of each region\");\n\n return null;\n }\n }", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "public ArrayList<Country> getRegionPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS dRegion, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dRegion \"; //population of people in each region\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\" 24. The population of people, people living in cities, and people not living in cities in each REGION.\");\n System.out.println(\" Region | Region Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Region = rset.getString(\"dRegion\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + ((cCity.Population * 100) / (cnt.Population)) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"24. Failed to get region populations\");\n return null;\n }\n }", "public HashMap<ContinentName, CountryName[]> getContinents() { return continents; }", "public void setCorpProvince(String corpProvince) {\n this.corpProvince = corpProvince;\n }", "private Map<String, Integer> getContinentEnrichment(PersonActivity in) {\n\t\tList<String> places = in.getCategoryKeys(CategoryType.PLACE);\n\t\tMap<String, Integer> continents = places.stream().map(place -> countryContinentRelation.get(place))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn continents;\n\t}", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public ArrayList<Country> getContinentPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n //population of people in each CONTINENT\n String strSelect =\n \" SELECT DISTINCT(country.Continent) AS dContinent, SUM(DISTINCT country.Population) AS coPopulation, SUM(city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dContinent\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\"23. The population of people, people living in cities, and people not living in cities in each CONTINENT.\");\n System.out.println(\" Continent | Continent Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while (rset.next())\n {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Continent = rset.getString(\"dContinent\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Continent + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population*100)/(cnt.Population))) + \"%\" + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - ((cCity.Population * 100) / (cnt.Population)))+ \"%\");\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"23. Failed to get continent populations\");\n\n return null;\n }\n }", "public Vector<Site> getCities(){\n return cities;\n }", "@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRepository.save(categorie);\n\t\t});\n\t}", "public static List<Categorias> obtenerCategorias(){\n List<Categorias> categorias = new ArrayList<>();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro\");\n \n ResultSet informacion = c.getResultSet();\n \n try {\n while (informacion.next())\n categorias.add(new Categorias(informacion));\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categorias;\n }", "public void getCities(Integer province_id) {\n App.getInstance().getApiInterface().getCities(province_id,Constants.APPJSON).enqueue(new Callback<List<CityList>>() {\n @Override\n public void onResponse(Call<List<CityList>> call, final Response<List<CityList>> response) {\n if (response.isSuccessful()) {\n final Realm realm = Realm.getDefaultInstance();\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n realm.delete(CityList.class);\n realm.copyToRealmOrUpdate(response.body());\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n realm.close();\n }\n }, new Realm.Transaction.OnError() {\n @Override\n public void onError(Throwable error) {\n realm.close();\n error.printStackTrace();\n getView().showAlert(error.getLocalizedMessage());\n }\n });\n } else {\n getView().showAlert(\"Server Error\");\n }\n }\n\n @Override\n public void onFailure(Call<List<CityList>> call, Throwable t) {\n t.printStackTrace();\n getView().showAlert(t.getLocalizedMessage());\n }\n });\n }", "public ResponseDTO getRegionProvinceCityList() {\n ResponseDTO dto = new ResponseDTO();\n List<Region> list = regionBiz.selectRegionProvinceCityList();\n dto.setCode(ResponseCode.CommonCode.OK.v());\n dto.setMsg(ResponseCode.CommonCode.OK.c());\n dto.setData(list);\n return dto;\n }", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "RoomType getCostCategory();", "public ArrayList<Country> getRegionPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n +\" FROM country\"\n +\" GROUP BY country.Region, country.Name, country.Code, country.Continent, country.Capital\"\n +\" ORDER BY country.Region, cPopulation DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"3. All the countries in a REGION organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital);\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"3. Failed to get city details\");\n return null;\n }\n }", "List<RegionalClassifierEntity> getItsListOfRegions();", "public BoroughContestObjects createBoroughContestInOslo() {\n\t\tBoroughContestObjects objects = new BoroughContestObjects();\n\n\t\tobjects.nbNoLocale = getNbNoLocale();\n\t\tobjects.adminUserData = createUserDataForAdministrator(objects.nbNoLocale);\n\t\tobjects.electionEvent = createElectionEvent(objects.adminUserData, objects.nbNoLocale);\n\n\t\tcreateAreas(objects.electionEvent, objects.nbNoLocale);\n\t\tcopyRolesFromAdminEvent(objects.electionEvent);\n\t\tsetMvAreaOnUserData(objects.adminUserData, backend.getMvAreaRepository().findSingleByPath(AreaPath.from(ELECTION_EVENT_ID)));\n\n\t\tobjects.electionGroup = createElectionGroup(objects.adminUserData, objects.electionEvent);\n\t\tobjects.election = createElection(objects.adminUserData, objects.electionGroup);\n\t\tList<NewlyCreatedContest> newlyCreatedContests = createContests(objects.adminUserData, objects.election);\n\t\tobjects.registerNewlyCreatedContests(newlyCreatedContests);\n\n\t\tMvArea osloMunicipality = backend.getMvAreaRepository().findSingleByPath(OSLO_MUNICIPALITY_AREA_PATH);\n\t\tMvArea kampenPollingDistrict = backend.getMvAreaRepository().findSingleByPath(KAMPEN_SKOLE_AREA_PATH);\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, osloMunicipality, ReportingUnitTypeId.VALGSTYRET, \"Oslo\");\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, kampenPollingDistrict, ReportingUnitTypeId.STEMMESTYRET, \"Kampen skole\");\n\n\t\tobjects.opptellingsansvarligUserData = createOpptellingsansvarligUserData(objects.nbNoLocale, objects.electionEvent);\n\n\t\tParty arbeiderpartiet = createArbeiderpartiet(objects.adminUserData, objects.electionEvent);\n\n\t\tcreateBallotsAndAffiliations(objects.contestIdToContestMap, arbeiderpartiet, objects.nbNoLocale, objects.adminUserData, 2);\n\n\t\tcreateElectionDay(ELECTION_DAY_1, objects.electionEvent, objects.adminUserData);\n\t\tcreateElectionDay(ELECTION_DAY_2, objects.electionEvent, objects.adminUserData);\n\n\t\tcreateAntallStemmesedlerLagtTilSide(objects, newlyCreatedContests, osloMunicipality);\n\n\t\treturn objects;\n\t}", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }", "private void populaSexoCat()\n {\n sexoCatDAO.insert(new SexoCat(\"Masculino\"));\n sexoCatDAO.insert(new SexoCat(\"Feminino\"));\n sexoCatDAO.insert(new SexoCat(\"Todos\"));\n }", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "private CoeurAStockageImpl()\n\t{\n\t\tmonnayeur = new Monnayeur();\n\t\timprimante = new Imprimante(this);\n\t\tcomposantEnMarche = new HashMap<Composant,Boolean>();\n\t\tfor(Composant composant : Composant.values())\n\t\t{\n\t\t\tcomposantEnMarche.put(composant, true);\n\t\t}\n\t}", "public CitiesMap(){\r\n\t\tmap=new Graph<City>();\r\n\t}", "google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory();", "void fetchCountryInformation();", "public HashMap<Integer, Element> getCandies() {\n\t\treturn candies;\n\t}", "public void read_india_states() throws IOException {\r\n\t\tString line = \"\";\r\n\t\tString splitBy = \",\";\r\n\t\tString path = \".\\\\src\\\\main\\\\java\\\\com\\\\covidProject\\\\covid19\\\\Datasets\\\\Indian Cities Database.csv\";\r\n\t\tHashMap<String, List<String>> state_city = new HashMap<>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// parsing a CSV file into BufferedReader class constructor\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\r\n\t\t\twhile ((line = br.readLine()) != null) // returns a Boolean value\r\n\t\t\t{\r\n\t\t\t\tString[] info = line.split(splitBy); // use comma as separator\r\n\t\t\t\tString City = info[0].toLowerCase();\r\n\t\t\t\tString State = info[5].toLowerCase();\r\n\r\n\t\t\t\tif (state_city.get(State) == null) {\r\n\t\t\t\t\tList<String> temp_list = new ArrayList<>();\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tList<String> temp_list = state_city.get(State);\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tList<Document> list = new ArrayList<Document>();\r\n\t\t\t\r\n\t\t\t//Initialize country\r\n\t\t\tCovidCountry countryDoc = new CovidCountry();\r\n\t\t\tcountryDoc.setName(\"India\");\r\n\t\t\t\r\n\t\t\t//Initialize state list\r\n\t\t\tList<CovidState> states_list = new ArrayList<>();\r\n\t\t\t\r\n\t\t\tfor (Map.Entry<String, List<String>> entry : state_city.entrySet()) {\r\n\t\t\t\t\r\n\t\t\t\t//get state and cities from the map we created \r\n\t\t\t\tString state = entry.getKey();\r\n\t\t\t\tList<String> cities = entry.getValue();\r\n\r\n\t\t\t\tList<CovidSubCity> city_list = new ArrayList<>();\r\n\r\n\t\t\t\t//Cities are created before states.\r\n\t\t\t\tfor (String city : cities) {\r\n\t\t\t\t\tCovidCity covidCity = new CovidCity(city,state,countryDoc.getName());\r\n\t\t\t\t\tthis.covidCityRepository.save(covidCity);\r\n\t\t\t\t\tCovidSubCity subCity = new CovidSubCity(city,covidCity.getId());\r\n\t\t\t\t\tcity_list.add(subCity);\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\t//create state\r\n\t\t\t\tCovidState covidState = new CovidState(state,city_list);\r\n\t\t\t\t//this.covidStateRepository.save(covidState);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstates_list.add(covidState);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcountryDoc.setStates(states_list);\r\n\t\t\tthis.covidCountryRepository.save(countryDoc);\r\n\t\t\t\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "private Collection<IInstallableUnit>queryCategories(final IProgressMonitor monitor, IProvisioningAgent agent)\r\n\t{\t\t\r\n\t\tCollection<IInstallableUnit>iuSet = new LinkedList<IInstallableUnit>();\r\n\t\tIQueryable<IInstallableUnit> queryable = ((IProfileRegistry) agent\r\n\t\t\t\t.getService(IProfileRegistry.SERVICE_NAME))\r\n\t\t\t\t.getProfile(PROFILE_ID);\r\n\r\n\t\tif (queryable != null)\r\n\t\t{\r\n\t\t\t// Kategorien abfragen\r\n\t\t\tIQueryResult<IInstallableUnit> resultCategory = queryable.query(\r\n\t\t\t\t\tQueryUtil.createIUCategoryQuery(), monitor);\r\n\t\t\t\r\n\t\t\tIterator<IInstallableUnit> itMembers = resultCategory.iterator();\r\n\t\t\twhile (itMembers.hasNext())\r\n\t\t\t{\r\n\t\t\t\tIInstallableUnit uiMember = itMembers.next();\r\n\t\t\t\tiuSet.add(uiMember);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn iuSet;\r\n\t}", "private void populaNoticiaCat()\n {\n NoticiaCat n1 = new NoticiaCat(\"Avisos\", \"Help\");\n noticiaCatDAO.insert(n1);\n NoticiaCat n2 = new NoticiaCat(\"Noticias\", \"Document Notes\");\n noticiaCatDAO.insert(n2);\n NoticiaCat n3 = new NoticiaCat(\"Dicas\", \"Tag\");\n noticiaCatDAO.insert(n3);\n }", "@Override\n\tpublic ArrayList<Categoria> getCategorie() {\n\t\tDB db = getDB();\n\t\tArrayList<Categoria> categorie = new ArrayList<Categoria>();\n\t\tMap<Long, Categoria> list = db.getTreeMap(\"categorie\");\n\t\tfor(Map.Entry<Long, Categoria> categoria : list.entrySet())\n\t\t\tif(categoria.getValue() instanceof Categoria)\n\t\t\t\tcategorie.add((Categoria)categoria.getValue());\n\t\treturn categorie;\n\t}", "public void allocateCountries() {\n\t\tmakeDeck() ;\n\t\t\n\t\tint id =0;\n\t\t//Randomly give players 9 country cards, and place 1 army on country\n\t\tfor(int j=0;j<Constants.NUM_PLAYERS;j++) {\n\t\t\tfor (int i=0; i<9;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t\t\n\t\t\t\t\t//Tells user what cards where drawn\n\t\t\t\t\tview.displayString(\"Player \"+(j+1)+\" Drew Card ' \" +deck.get(0).toString()+\"'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set rest of countries to neutrals with 1 army\n\t\tfor(int j=Constants.NUM_PLAYERS;j<6;j++) {\n\t\t\tfor (int i=0; i<6;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else { \n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t}\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t//Adds cards back to deck and shuffles\n\t\tdiscardToDeck() ;\t\t\n\t}", "public List getZonasRegion(String feriadoRegion);", "public static void main(String[] args) {\n\t\t\n\t\tProvaCollezioni pc = new ProvaCollezioni();\n\t\t\n\t\tpc.spesa.add(\"latte\");\n\t\tpc.spesa.add(\"pane\");\n\t\tpc.spesa.add(\"biscotti\");\n\t\tpc.spesa.add(\"olio\");\n\t\tpc.spesa.add(\"biscotti\");\n\t\t\n\n\t\tSystem.out.println(pc.spesa.size());\n\t\t\n\t\tfor (String voce : pc.spesa) {\n\t\t\tpc.spesaFiltrata.add(voce);\n\t\t\tpc.spesaOrdinata.add(voce);\n\t\t}\n\n\t\tSystem.out.println(pc.spesaFiltrata.size());\n\t\tfor (String string : pc.spesaOrdinata) {\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\t\n\t\tMap<String, String> regioni = new TreeMap<>();\n\t\t\n\t\tregioni.put(\"Piemonte\", \"Torino\");\n\t\tregioni.put(\"Lombardia\", \"Milano\");\n\t\tregioni.put(\"Toscana\", \"Firenze\");\n\t\tregioni.put(\"Puglia\", \"Bari\");\n\t\t\n\t\tSystem.out.println(regioni.size());\n\t\t\n\t\tSystem.out.println(regioni.get(\"Piemonte\"));\n\t\t\n\t\tSystem.out.println(regioni.keySet());\n\t\t\n\t\tSystem.out.println(regioni.values());\n\t\t\n//\t\tfor (String regione : regioni.keySet()) {\n//\t\t\tSystem.out.println(\"Il capoluogo della regione \" \n//\t\t\t\t\t\t\t+ regione \n//\t\t\t\t\t\t\t+ \" è: \" \n//\t\t\t\t\t\t\t+ regioni.get(regione));\n//\t\t}\n//\t\t\n\t\t\n\t\tfor (Entry<String, String> regione : regioni.entrySet()) {\n\t\t\tSystem.out.print(\"Il capoluogo della regione \" + regione.getKey());\n\t\t\tSystem.out.println(\" è: \" + regione.getValue());\n\t\t\tSystem.out.println(regione);\n\t\t}\n\t\t\n\t\t\n\t}", "String getCategoria();", "private void createAreas(ElectionEvent electionEvent, Locale locale) {\n\n\t\tCountry norge = new Country(\"47\", \"Norge\", electionEvent);\n\t\tentityManager.persist(norge);\n\n\t\tCountyStatus countyStatusApproved = (CountyStatus) entityManager.createQuery(\"select cs from CountyStatus cs where cs.id = \"\n\t\t\t\t+ (Integer) CountyStatusEnum.APPROVED_CONFIGURATION.id()).getSingleResult();\n\t\tCounty osloFylke = new County(\"03\", \"Oslo\", norge);\n\t\tosloFylke.setLocale(locale);\n\t\tosloFylke.setCountyStatus(countyStatusApproved);\n\t\tentityManager.persist(osloFylke);\n\n\t\tMunicipalityStatus statusApproved = (MunicipalityStatus) entityManager.createQuery(\"select ms from MunicipalityStatus ms where ms.id = \"\n\t\t\t\t+ (Integer) MunicipalityStatusEnum.APPROVED_CONFIGURATION.id()).getSingleResult();\n\n\t\tMunicipality osloKommune = new Municipality(AreaPath.OSLO_MUNICIPALITY_ID, \"Oslo\", osloFylke);\n\t\tosloKommune.setLocale(locale);\n\t\tosloKommune.setMunicipalityStatus(statusApproved);\n\t\tosloKommune.setElectronicMarkoffs(true);\n\t\tosloKommune.setRequiredProtocolCount(true);\n\t\tosloKommune.setTechnicalPollingDistrictsAllowed(true);\n\t\tentityManager.persist(osloKommune);\n\n\t\tBorough bydelGamleOslo = new Borough(\"030101\", \"Gamle Oslo\", osloKommune);\n\t\tbydelGamleOslo.setMunicipality1(false);\n\t\tentityManager.persist(bydelGamleOslo);\n\n\t\tPollingDistrict kampenSkole = new PollingDistrict(\"0103\", \"Kampen skole\", bydelGamleOslo);\n\t\tkampenSkole.setMunicipality(false);\n\t\tkampenSkole.setParentPollingDistrict(false);\n\t\tkampenSkole.setTechnicalPollingDistrict(false);\n\t\tentityManager.persist(kampenSkole);\n\t}", "public Contestant(String n, String c){\n\t\tname = n;\n \tcountry = c;\n\t\tage = 18;\n\t\ttalents = new String[3];\n\t}", "private Set<Sector> createSectors() {\n\n // This will contain all the loaded sectors\n Set<Sector> sectors = new HashSet<>();\n\n int[][] colorGrid;\n\n try {\n\n String filePath = ZoneLoader.class.getResource(\n \"/maps/\" + zoneName.getFileName()).getFile();\n\n /* We try to load a Zone from file. It could throw an IOException\n . */\n colorGrid = MapIO.loadMap(filePath);\n\n } catch (IOException e) {\n\n /*\n * IO exception while loading the zone, it should not happen because\n * the user cannot directly insert a fileName but he can only choose\n * them from an enumeration. If there is an IOException then that\n * ZoneName is invalid and the user must select another one.\n */\n LOG.log(Level.SEVERE, \"Error loading Zone: \" + e.toString(), e);\n throw new InvalidZoneException(\n \"IO Exception while loading the Zone from file.\");\n\n }\n\n /* The size of the colorGrid */\n int gridWidth = colorGrid.length;\n int gridHeight = colorGrid[0].length;\n\n for (int col = 0; col < gridWidth; col++) {\n for (int row = 0; row < gridHeight; row++) {\n\n // Create a new CubicCoordinate\n // // !IMPORTANT! we start form (0, 0) // //\n CubicCoordinate coord = CubicCoordinate\n .createFromOddQ(col, row);\n\n // And use it to create a new Sector\n addSectorFromColor(sectors, colorGrid[col][row], coord);\n\n }\n }\n\n return sectors;\n\n }", "public ArrayList<Country> getContinentPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" FROM country\"\n + \" GROUP BY country.Continent, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" ORDER BY country.Continent, cPopulation DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"2. All the countries in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital );\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"2. Failed to get country details\");\n return null;\n }\n }" ]
[ "0.6402048", "0.636513", "0.62485576", "0.6134551", "0.59302574", "0.58892053", "0.5735387", "0.57263607", "0.5693574", "0.5670969", "0.56063426", "0.5571337", "0.55132234", "0.5492714", "0.54570377", "0.54439324", "0.54382795", "0.54289037", "0.54289037", "0.5423912", "0.5363644", "0.53552866", "0.53453195", "0.5331514", "0.53190553", "0.5317598", "0.5308828", "0.53030884", "0.529143", "0.52877384", "0.52877384", "0.52806336", "0.527212", "0.52625126", "0.52516806", "0.5251626", "0.5251626", "0.5251626", "0.52426815", "0.52351433", "0.5216994", "0.5216994", "0.5193598", "0.5174089", "0.51718366", "0.51704705", "0.5169497", "0.51642346", "0.51554126", "0.51358205", "0.5134708", "0.51343846", "0.5131103", "0.5124435", "0.5124065", "0.51224226", "0.5100226", "0.5099068", "0.50984776", "0.5098352", "0.50982624", "0.5093257", "0.50871354", "0.5082358", "0.5082358", "0.5077277", "0.506821", "0.50681853", "0.5068148", "0.50655156", "0.504812", "0.50455976", "0.5045372", "0.5038942", "0.5027198", "0.5021014", "0.50197124", "0.50037855", "0.50037074", "0.49971086", "0.4993106", "0.4992261", "0.49916917", "0.49898127", "0.49869436", "0.4985804", "0.49707144", "0.49693513", "0.4954033", "0.49396494", "0.4939258", "0.49173158", "0.49155107", "0.4912505", "0.49122676", "0.49081743", "0.49065244", "0.49040264", "0.48981044", "0.48908356" ]
0.60638756
4
declares the catgeroies for the province of Alberta
public static Map<Integer, TaxCategory> alberta() { HashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>(); try { //INSERT YOUR CODE HERE - Using the specification given on Federal //You will need to study how Manitoba is being implemented TaxCategory cat1 = new TaxCategory(10, 0, 131220); // Tax Category 1 for Alberta categories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1 TaxCategory cat2 = new TaxCategory(12,131220.01, 157464); // Tax Category 2 for Alberta categories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2 TaxCategory cat3 = new TaxCategory(13, 157464.01, 209952); // Tax Category 3 for Alberta categories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3 TaxCategory cat4 = new TaxCategory(14, 209952.01, 314928); // Tax Category 4 for Alberta categories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4 TaxCategory cat5 = new TaxCategory(15, 314928.01, 10000000); // Tax Category 5 for Alberta categories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5 } catch( Exception e ) {} return categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Canada() {\n\n //Initialize the array \n provinces = new String[NUM_PROVINCES][NUM_NAMES];\n\n // Set the elements in the array \n provinces[BC][NAME_OF_PROVINCE] = \"British Columbia\";\n provinces[BC][NAME_OF_CAPITAL_CITY] = \"Victoria\";\n provinces[BC][NAME_OF_BIGGEST_CITY] = \"Vancouver\";\n provinces[PE][NAME_OF_PROVINCE] = \"Prince Edward Island\";\n provinces[PE][NAME_OF_CAPITAL_CITY] = \"Charlottetown\";\n provinces[PE][NAME_OF_BIGGEST_CITY] = \"Charlottetown\";\n provinces[SK][NAME_OF_PROVINCE] = \"Saskatchewan\";\n provinces[SK][NAME_OF_CAPITAL_CITY] = \"Regina\";\n provinces[SK][NAME_OF_BIGGEST_CITY] = \"Saskatoon\";\n provinces[AB][NAME_OF_PROVINCE] = \"Alberta\";\n provinces[AB][NAME_OF_CAPITAL_CITY] = \"Edmonton\";\n provinces[AB][NAME_OF_BIGGEST_CITY] = \"Calgary\";\n provinces[NL][NAME_OF_PROVINCE] = \"Newfoundland and Labrador\";\n provinces[NL][NAME_OF_CAPITAL_CITY] = \"St. John's\";\n provinces[NL][NAME_OF_BIGGEST_CITY] = \"St. John's\";\n provinces[YK][NAME_OF_PROVINCE] = \"Yukon\";\n provinces[YK][NAME_OF_CAPITAL_CITY] = \"WhiteHorse\";\n provinces[YK][NAME_OF_BIGGEST_CITY] = \"Whitehorse\";\n provinces[NV][NAME_OF_PROVINCE] = \"Nunavut\";\n provinces[NV][NAME_OF_CAPITAL_CITY] = \"Iqaluit\";\n provinces[NV][NAME_OF_BIGGEST_CITY] = \"Iqaluit\";\n provinces[NT][NAME_OF_PROVINCE] = \"Northwest Territories\";\n provinces[NT][NAME_OF_CAPITAL_CITY] = \"Yellowknife\";\n provinces[NT][NAME_OF_BIGGEST_CITY] = \"Yellowknife\";\n provinces[ON][NAME_OF_PROVINCE] = \"Ontario\";\n provinces[ON][NAME_OF_CAPITAL_CITY] = \"Toronto\";\n provinces[ON][NAME_OF_BIGGEST_CITY] = \"Toronto\";\n provinces[QC][NAME_OF_PROVINCE] = \"Quebec\";\n provinces[QC][NAME_OF_CAPITAL_CITY] = \"Quebec City\";\n provinces[QC][NAME_OF_BIGGEST_CITY] = \"Montreal\";\n provinces[NS][NAME_OF_PROVINCE] = \"Nova Scotia\";\n provinces[NS][NAME_OF_CAPITAL_CITY] = \"Halifax\";\n provinces[NS][NAME_OF_BIGGEST_CITY] = \"Halifax\";\n provinces[NB][NAME_OF_PROVINCE] = \"New Brunswick\";\n provinces[NB][NAME_OF_CAPITAL_CITY] = \"Fredericton\";\n provinces[NB][NAME_OF_BIGGEST_CITY] = \"Saint John\";\n provinces[MB][NAME_OF_PROVINCE] = \"Manitoba\";\n provinces[MB][NAME_OF_CAPITAL_CITY] = \"Winnipeg\";\n provinces[MB][NAME_OF_BIGGEST_CITY] = \"Winnipeg\";\n }", "public static List<Category> getCategorysofProvince(Province province){\n\t\treturn CategoryDAO.getCategorysofProvince(province);\n\t}", "public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "public void displayAllProvinceInfo() {\n \n for(int i = 0; i < provinces.length; i++) {\n\n \n if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null && \n provinces[i][NAME_OF_CAPITAL_CITY].equalsIgnoreCase(provinces[i][NAME_OF_BIGGEST_CITY])) {\n System.out.println(\"The capital city of \" + provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" + provinces[i][NAME_OF_CAPITAL_CITY] + \", and it is also the largest city.\");\n \n }\n else if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null) {\n System.out.println(\"The capital city of \" +provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" +provinces[i][NAME_OF_CAPITAL_CITY] + \", but the largest city is \" \n +provinces[i][NAME_OF_BIGGEST_CITY] + \".\");\n }\n \n }\n}", "public String getCapitalCityOf(String province) {\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null && \n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_CAPITAL_CITY];\n }\n\n }\n return null;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "void fetchCountryInformation();", "public final void c() throws AMapException {\n if (this.f != null) {\n at atVar = new at(this.i, \"\");\n atVar.a(this.i);\n List list = (List) atVar.c();\n if (this.c != null) {\n this.f.a((List<OfflineMapProvince>) list);\n }\n synchronized (this.c) {\n Iterator<OfflineMapProvince> it = this.f.a().iterator();\n while (it.hasNext()) {\n Iterator<OfflineMapCity> it2 = it.next().getCityList().iterator();\n while (it2.hasNext()) {\n OfflineMapCity next = it2.next();\n for (al next2 : this.c) {\n if (next.getPinyin().equals(next2.getPinyin())) {\n String version = next2.getVersion();\n if (next2.getState() != 4 || d.length() <= 0 || !b(d, version)) {\n next2.setCity(next.getCity());\n next2.setUrl(next.getUrl());\n next2.setAdcode(next.getAdcode());\n next2.setVersion(next.getVersion());\n next2.setSize(next.getSize());\n next2.setCode(next.getCode());\n next2.setJianpin(next.getJianpin());\n next2.setPinyin(next.getPinyin());\n } else {\n next2.j();\n next2.setUrl(next.getUrl());\n }\n }\n }\n }\n }\n }\n }\n }", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "public static Map<Integer, TaxCategory> ontario() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }", "public static Map<Integer, TaxCategory> novaScotia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public Integer getProvince() {\n return province;\n }", "public Integer getProvince() {\n return province;\n }", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "public String getCorpProvince() {\n return corpProvince;\n }", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public Cgg_veh_categoria(){}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public void populateAllCountries(SolrGazetteer gaz) {\n // SolrGazetteer has full Country metadata, like\n // GeonamesUtility lists offical countries (with TZ, region, aliases, codes)\n // SolrGazetteer lists more aliases/name variants.\n // So have Map( variant =&gt; Country ), where Country is official one.\n //\n allCountries = new HashMap<>();\n\n // Gather 'Official names'\n for (Country C : countries.getCountries()) {\n // NAME: 'United States of America'\n allCountries.put(C.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(C.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(C.CC_ISO3.toLowerCase(), C);\n }\n\n // Gather name variants from anything that looks like PCLI or PCLI* in\n // gazetteer:\n //\n for (String cc : gaz.getCountries().keySet()) {\n Country alt = gaz.getCountries().get(cc);\n Country C = countries.getCountry(cc);\n // NAME: 'United States of America'\n allCountries.put(alt.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(alt.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(alt.CC_ISO3.toLowerCase(), C);\n for (String a : alt.getAliases()) {\n // Aliases: 'U.S.A', 'US of A', 'America', etc.\n //\n allCountries.put(a.toLowerCase(), C);\n }\n }\n }", "public static Map<Integer, TaxCategory> federal() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "public ArrayList<Country> getACountryPopulation(String region) {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in the world\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS cName, SUM(DISTINCT country.Population) AS coPopulation\" +\n \" FROM country \" +\n \" WHERE country.Name = \" + \"'\" + region + \"'\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n System.out.println(\"29. Population of a country.\");\n System.out.println(\"Country\" + \" | \" + \"Population\");\n ArrayList<Country> country = new ArrayList<Country>();\n while (rset.next()) {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Name = rset.getString(\"cName\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population);\n country.add(cnt);\n }\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"28. Failed to get population of each region\");\n\n return null;\n }\n }", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "public void allocateCountries() {\n\t\tmakeDeck() ;\n\t\t\n\t\tint id =0;\n\t\t//Randomly give players 9 country cards, and place 1 army on country\n\t\tfor(int j=0;j<Constants.NUM_PLAYERS;j++) {\n\t\t\tfor (int i=0; i<9;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t\t\n\t\t\t\t\t//Tells user what cards where drawn\n\t\t\t\t\tview.displayString(\"Player \"+(j+1)+\" Drew Card ' \" +deck.get(0).toString()+\"'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set rest of countries to neutrals with 1 army\n\t\tfor(int j=Constants.NUM_PLAYERS;j<6;j++) {\n\t\t\tfor (int i=0; i<6;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else { \n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t}\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t//Adds cards back to deck and shuffles\n\t\tdiscardToDeck() ;\t\t\n\t}", "public HashMap<ContinentName, CountryName[]> getContinents() { return continents; }", "public Contestant(String n, String c, int a){\n\t\tname = n;\n\t\tcountry = c;\n\t\tage = a;\n\t\ttalents = new String[3];\n\t}", "public void setCorpProvince(String corpProvince) {\n this.corpProvince = corpProvince;\n }", "public Province getLivingProvince() {\n return livingProvince;\n }", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "public Long getProvinceCitiesCode() {\n return provinceCitiesCode;\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "public static void main(String[] args) {\n TypedQuery<Object[]> query = em.createQuery(\n \"SELECT COUNT(p), p.location.city FROM RegularCustomer p WHERE p.location.province = :province GROUP BY p.location.city\", Object[].class);\n List<Object[]> res1 = query.setParameter(\"province\", \"Jawa Barat\").getResultList();\n for (Object[] r : res1) {\n System.out.println(\"Count: \" + r[0] + \", City: \" + r[1]);\n }\n em.close();\n emf.close();\n }", "private Map<String, Integer> getPuntuationCat(List<Point> points, Trial trial){\n\t\t\n\t\t//Categoria master40\n\t\tMap<String, Integer> puntuation = setPuntuation(points, this.getMaster(trial.getId(), 40));\n\t\t \n\t\t//Categoria master30\n\t\tMap<String, Integer> puntuationMaster30 = setPuntuation(points, this.getMaster(trial.getId(), 30));\n\t\t//unir los dos maps\n\t\tpuntuationMaster30.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t//Categoria master20\n\t\tMap<String, Integer> puntuationMaster20 = setPuntuation(points, this.getMaster(trial.getId(), 20));\n\t\t//unir los dos maps\n\t\tpuntuationMaster20.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t\n\t\treturn puntuation;\n\t}", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "public Contestant(String n, String c){\n\t\tname = n;\n \tcountry = c;\n\t\tage = 18;\n\t\ttalents = new String[3];\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getAllProvince() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"H_PROVINCE_FB.getAllProvince\");\r\n\t}", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "public void getCities(Integer province_id) {\n App.getInstance().getApiInterface().getCities(province_id,Constants.APPJSON).enqueue(new Callback<List<CityList>>() {\n @Override\n public void onResponse(Call<List<CityList>> call, final Response<List<CityList>> response) {\n if (response.isSuccessful()) {\n final Realm realm = Realm.getDefaultInstance();\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n realm.delete(CityList.class);\n realm.copyToRealmOrUpdate(response.body());\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n realm.close();\n }\n }, new Realm.Transaction.OnError() {\n @Override\n public void onError(Throwable error) {\n realm.close();\n error.printStackTrace();\n getView().showAlert(error.getLocalizedMessage());\n }\n });\n } else {\n getView().showAlert(\"Server Error\");\n }\n }\n\n @Override\n public void onFailure(Call<List<CityList>> call, Throwable t) {\n t.printStackTrace();\n getView().showAlert(t.getLocalizedMessage());\n }\n });\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public Causa getCausa() {\n return causa.get();\n }", "public Cattery()\r\n {\r\n businessName = \"unknown business\";\r\n catCollection = new ArrayList<Cat>();\r\n }", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "@Override\n public String toString() {\n return getCounty();\n }", "public ArrayList<Country> getContinentPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n //population of people in each CONTINENT\n String strSelect =\n \" SELECT DISTINCT(country.Continent) AS dContinent, SUM(DISTINCT country.Population) AS coPopulation, SUM(city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dContinent\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\"23. The population of people, people living in cities, and people not living in cities in each CONTINENT.\");\n System.out.println(\" Continent | Continent Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while (rset.next())\n {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Continent = rset.getString(\"dContinent\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Continent + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population*100)/(cnt.Population))) + \"%\" + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - ((cCity.Population * 100) / (cnt.Population)))+ \"%\");\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"23. Failed to get continent populations\");\n\n return null;\n }\n }", "public Long getProvinceagent() {\n return provinceagent;\n }", "private Object getAnomizedCategory() {\r\n\tString categorie = (String) record.get(\"categorie\");\r\n\tif (categorie != null) {\r\n\t switch (categorie) {\r\n\t case \"AD\":\r\n\t case \"CO\":\r\n\t case \"FI\":\r\n\t case \"IBL\":\r\n\t case \"KI\":\r\n\t case \"KL\":\r\n\t case \"VO\":\r\n\t\tbreak;\r\n\t default:\r\n\t\tcategorie = null;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\r\n\treturn categorie;\r\n }", "@Override\n public String toString() {\n return \"Province = \" + getProvince() + \"\\nCity = \" + getCity() + \"\\nDescription = \" + getDescription();\n }", "public HashMap<Integer, Element> getCandies() {\n\t\treturn candies;\n\t}", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "public boolean affordCity() {\n \t\treturn (FREE_BUILD || cities < MAX_CITIES\n \t\t\t\t&& getResources(Type.GRAIN) >= 2 && getResources(Type.ORE) >= 3);\n \t}", "public SortedSet<Concert> getActiveConcerts()//\t\t--> Returnerer alle aktive konserter registrert på dette lokalet.\n\t{\n\t\tGregorianCalendar calender = (GregorianCalendar)Calendar.getInstance();\n\t\tcalender = Utilities.getCleanDate(calender);\n\n\t\tConcert c = new Concert(calender);\n\t\tSortedSet<Concert> active = concerts.tailSet(c);\n\n\t\tif(active.isEmpty())\n\t\t\treturn null;\n\n\t\treturn active;\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "public ArrayList<Country> getRegionPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n +\" FROM country\"\n +\" GROUP BY country.Region, country.Name, country.Code, country.Continent, country.Capital\"\n +\" ORDER BY country.Region, cPopulation DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"3. All the countries in a REGION organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital);\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"3. Failed to get city details\");\n return null;\n }\n }", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "public void setLivingProvince(Province livingProvince) {\n this.livingProvince = livingProvince;\n }", "Map<Long, List<String>> retrieveCategoriesForTargetTable(TargetTable ttable);", "public ArrayList<City> getDiscPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.District, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" ORDER BY city.District, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> DiscPop = new ArrayList<>();\n System.out.println(\"11. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n DiscPop.add(cty);\n }\n return DiscPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"11. Failed to get city details\");\n return null;\n }\n }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public ArrayList<Country> getRegionPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS dRegion, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dRegion \"; //population of people in each region\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\" 24. The population of people, people living in cities, and people not living in cities in each REGION.\");\n System.out.println(\" Region | Region Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Region = rset.getString(\"dRegion\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + ((cCity.Population * 100) / (cnt.Population)) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"24. Failed to get region populations\");\n return null;\n }\n }", "private void checkCategoriaInDB(DB db ){\n\t\tString[] catDef = {\"Ambiente\", \"Animali\", \"Arte e Cultura\",\"Elettronica e Tecnologia\", \"Sport\", \"Svago\"};\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tfor(String nomeCat : catDef) {\n\t\t\tlong hashcode = (long)nomeCat.hashCode();\n\t\t\tif(!categorie.containsKey(hashcode))\n\t\t\t\tcategorie.put(hashcode, new Categoria(null ,nomeCat));\n\t\t}\n\t}", "public ArrayList<City> getPopCityReg() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Region, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Region, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityReg = new ArrayList<>();\n System.out.println(\"9. All the cities in a REGION organised by largest population to smallest.\");\n System.out.println(\"Region | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.Population = rset.getInt(\"Population\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n\n Country cnt = new Country();\n cnt.Region = rset.getString(\"Region\");\n System.out.println(cnt.Region + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityReg.add(cty);\n }\n return PopCityReg;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "private Map<String, Integer> getContinentEnrichment(PersonActivity in) {\n\t\tList<String> places = in.getCategoryKeys(CategoryType.PLACE);\n\t\tMap<String, Integer> continents = places.stream().map(place -> countryContinentRelation.get(place))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn continents;\n\t}", "public BoroughContestObjects createBoroughContestInOslo() {\n\t\tBoroughContestObjects objects = new BoroughContestObjects();\n\n\t\tobjects.nbNoLocale = getNbNoLocale();\n\t\tobjects.adminUserData = createUserDataForAdministrator(objects.nbNoLocale);\n\t\tobjects.electionEvent = createElectionEvent(objects.adminUserData, objects.nbNoLocale);\n\n\t\tcreateAreas(objects.electionEvent, objects.nbNoLocale);\n\t\tcopyRolesFromAdminEvent(objects.electionEvent);\n\t\tsetMvAreaOnUserData(objects.adminUserData, backend.getMvAreaRepository().findSingleByPath(AreaPath.from(ELECTION_EVENT_ID)));\n\n\t\tobjects.electionGroup = createElectionGroup(objects.adminUserData, objects.electionEvent);\n\t\tobjects.election = createElection(objects.adminUserData, objects.electionGroup);\n\t\tList<NewlyCreatedContest> newlyCreatedContests = createContests(objects.adminUserData, objects.election);\n\t\tobjects.registerNewlyCreatedContests(newlyCreatedContests);\n\n\t\tMvArea osloMunicipality = backend.getMvAreaRepository().findSingleByPath(OSLO_MUNICIPALITY_AREA_PATH);\n\t\tMvArea kampenPollingDistrict = backend.getMvAreaRepository().findSingleByPath(KAMPEN_SKOLE_AREA_PATH);\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, osloMunicipality, ReportingUnitTypeId.VALGSTYRET, \"Oslo\");\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, kampenPollingDistrict, ReportingUnitTypeId.STEMMESTYRET, \"Kampen skole\");\n\n\t\tobjects.opptellingsansvarligUserData = createOpptellingsansvarligUserData(objects.nbNoLocale, objects.electionEvent);\n\n\t\tParty arbeiderpartiet = createArbeiderpartiet(objects.adminUserData, objects.electionEvent);\n\n\t\tcreateBallotsAndAffiliations(objects.contestIdToContestMap, arbeiderpartiet, objects.nbNoLocale, objects.adminUserData, 2);\n\n\t\tcreateElectionDay(ELECTION_DAY_1, objects.electionEvent, objects.adminUserData);\n\t\tcreateElectionDay(ELECTION_DAY_2, objects.electionEvent, objects.adminUserData);\n\n\t\tcreateAntallStemmesedlerLagtTilSide(objects, newlyCreatedContests, osloMunicipality);\n\n\t\treturn objects;\n\t}", "public ArrayList<Country> getContinentPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" FROM country\"\n + \" GROUP BY country.Continent, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" ORDER BY country.Continent, cPopulation DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"2. All the countries in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital );\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"2. Failed to get country details\");\n return null;\n }\n }", "private void createAreas(ElectionEvent electionEvent, Locale locale) {\n\n\t\tCountry norge = new Country(\"47\", \"Norge\", electionEvent);\n\t\tentityManager.persist(norge);\n\n\t\tCountyStatus countyStatusApproved = (CountyStatus) entityManager.createQuery(\"select cs from CountyStatus cs where cs.id = \"\n\t\t\t\t+ (Integer) CountyStatusEnum.APPROVED_CONFIGURATION.id()).getSingleResult();\n\t\tCounty osloFylke = new County(\"03\", \"Oslo\", norge);\n\t\tosloFylke.setLocale(locale);\n\t\tosloFylke.setCountyStatus(countyStatusApproved);\n\t\tentityManager.persist(osloFylke);\n\n\t\tMunicipalityStatus statusApproved = (MunicipalityStatus) entityManager.createQuery(\"select ms from MunicipalityStatus ms where ms.id = \"\n\t\t\t\t+ (Integer) MunicipalityStatusEnum.APPROVED_CONFIGURATION.id()).getSingleResult();\n\n\t\tMunicipality osloKommune = new Municipality(AreaPath.OSLO_MUNICIPALITY_ID, \"Oslo\", osloFylke);\n\t\tosloKommune.setLocale(locale);\n\t\tosloKommune.setMunicipalityStatus(statusApproved);\n\t\tosloKommune.setElectronicMarkoffs(true);\n\t\tosloKommune.setRequiredProtocolCount(true);\n\t\tosloKommune.setTechnicalPollingDistrictsAllowed(true);\n\t\tentityManager.persist(osloKommune);\n\n\t\tBorough bydelGamleOslo = new Borough(\"030101\", \"Gamle Oslo\", osloKommune);\n\t\tbydelGamleOslo.setMunicipality1(false);\n\t\tentityManager.persist(bydelGamleOslo);\n\n\t\tPollingDistrict kampenSkole = new PollingDistrict(\"0103\", \"Kampen skole\", bydelGamleOslo);\n\t\tkampenSkole.setMunicipality(false);\n\t\tkampenSkole.setParentPollingDistrict(false);\n\t\tkampenSkole.setTechnicalPollingDistrict(false);\n\t\tentityManager.persist(kampenSkole);\n\t}", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "@Override\r\n\tpublic Cage[] getCages() {\n\t\treturn null;\r\n\t}", "public void read_india_states() throws IOException {\r\n\t\tString line = \"\";\r\n\t\tString splitBy = \",\";\r\n\t\tString path = \".\\\\src\\\\main\\\\java\\\\com\\\\covidProject\\\\covid19\\\\Datasets\\\\Indian Cities Database.csv\";\r\n\t\tHashMap<String, List<String>> state_city = new HashMap<>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// parsing a CSV file into BufferedReader class constructor\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\r\n\t\t\twhile ((line = br.readLine()) != null) // returns a Boolean value\r\n\t\t\t{\r\n\t\t\t\tString[] info = line.split(splitBy); // use comma as separator\r\n\t\t\t\tString City = info[0].toLowerCase();\r\n\t\t\t\tString State = info[5].toLowerCase();\r\n\r\n\t\t\t\tif (state_city.get(State) == null) {\r\n\t\t\t\t\tList<String> temp_list = new ArrayList<>();\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tList<String> temp_list = state_city.get(State);\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tList<Document> list = new ArrayList<Document>();\r\n\t\t\t\r\n\t\t\t//Initialize country\r\n\t\t\tCovidCountry countryDoc = new CovidCountry();\r\n\t\t\tcountryDoc.setName(\"India\");\r\n\t\t\t\r\n\t\t\t//Initialize state list\r\n\t\t\tList<CovidState> states_list = new ArrayList<>();\r\n\t\t\t\r\n\t\t\tfor (Map.Entry<String, List<String>> entry : state_city.entrySet()) {\r\n\t\t\t\t\r\n\t\t\t\t//get state and cities from the map we created \r\n\t\t\t\tString state = entry.getKey();\r\n\t\t\t\tList<String> cities = entry.getValue();\r\n\r\n\t\t\t\tList<CovidSubCity> city_list = new ArrayList<>();\r\n\r\n\t\t\t\t//Cities are created before states.\r\n\t\t\t\tfor (String city : cities) {\r\n\t\t\t\t\tCovidCity covidCity = new CovidCity(city,state,countryDoc.getName());\r\n\t\t\t\t\tthis.covidCityRepository.save(covidCity);\r\n\t\t\t\t\tCovidSubCity subCity = new CovidSubCity(city,covidCity.getId());\r\n\t\t\t\t\tcity_list.add(subCity);\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\t//create state\r\n\t\t\t\tCovidState covidState = new CovidState(state,city_list);\r\n\t\t\t\t//this.covidStateRepository.save(covidState);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstates_list.add(covidState);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcountryDoc.setStates(states_list);\r\n\t\t\tthis.covidCountryRepository.save(countryDoc);\r\n\t\t\t\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "public void setAll()\r\n\t{\r\n\t\tthis.coderVersion = CaTIESProperties.getValue(\"caties.coder.version\");\r\n\t\tthis.gateHome = CaTIESProperties.getValue(\"caties.gate.home\");\r\n\t\tthis.creoleUrlName = CaTIESProperties.getValue(\"caties.creole.url.name\");\r\n\t\tthis.caseInsensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.insensitive.gazetteer.url.name\");\r\n\t\tthis.caseSensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.sensitive.gazetteer.url.name\");\r\n\t\tthis.sectionChunkerUrlName = CaTIESProperties.getValue(\"caties.section.chunker.url.name\");\r\n\t\tthis.conceptFilterUrlName = CaTIESProperties.getValue(\"caties.concept.filter.url.name\");\r\n\t\tthis.negExUrlName = CaTIESProperties.getValue(\"caties.neg.ex.url.name\");\r\n\t\tthis.conceptCategorizerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.concept.categorizer.url.name\");\r\n\t}", "public static Map<Integer, TaxCategory> saskatchewan() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "List<RegionalClassifierEntity> getItsListOfRegions();" ]
[ "0.6463653", "0.6121742", "0.59258825", "0.58239317", "0.574321", "0.5596563", "0.5552335", "0.54071134", "0.53698695", "0.53698695", "0.53605187", "0.5333378", "0.53254676", "0.53145707", "0.53120625", "0.5309524", "0.5309524", "0.5291844", "0.52885157", "0.5279231", "0.5279231", "0.5279231", "0.52712363", "0.5242589", "0.5224184", "0.5224184", "0.5213898", "0.5190795", "0.51884305", "0.5180548", "0.5177878", "0.51472557", "0.5131204", "0.5123446", "0.51231945", "0.5122181", "0.5116336", "0.50990194", "0.50868607", "0.50821275", "0.50740266", "0.5068637", "0.50680435", "0.5066834", "0.5044119", "0.5036934", "0.50293005", "0.50167775", "0.50089496", "0.4995461", "0.49952245", "0.49940503", "0.49923614", "0.4982586", "0.49778965", "0.49778965", "0.49721834", "0.49657428", "0.49655125", "0.496287", "0.49587744", "0.49524415", "0.4943357", "0.4940045", "0.49342027", "0.4933687", "0.4932918", "0.4930135", "0.49266946", "0.49266177", "0.4925864", "0.4923744", "0.4921845", "0.4921559", "0.4918674", "0.49139234", "0.4911183", "0.4911183", "0.4911183", "0.49098617", "0.48921728", "0.48897368", "0.48845717", "0.48839757", "0.4880463", "0.4877009", "0.4869297", "0.4869297", "0.4869297", "0.4869297", "0.4869297", "0.4869297", "0.4869297", "0.48682746", "0.4867819", "0.48528057", "0.48521572", "0.4850211", "0.48397478", "0.48306188" ]
0.6686892
0
declares the catgeroies for the province of Quebec
public static Map<Integer, TaxCategory> britishColumbia() { HashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>(); try { //INSERT YOUR CODE HERE - Using the specification given on Federal //You will need to study how Manitoba is being implemented TaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC categories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1 TaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC categories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2 TaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC categories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3 TaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC categories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4 TaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC categories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5 TaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC categories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6 TaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC categories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7 } catch( Exception e ) {} return categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Canada() {\n\n //Initialize the array \n provinces = new String[NUM_PROVINCES][NUM_NAMES];\n\n // Set the elements in the array \n provinces[BC][NAME_OF_PROVINCE] = \"British Columbia\";\n provinces[BC][NAME_OF_CAPITAL_CITY] = \"Victoria\";\n provinces[BC][NAME_OF_BIGGEST_CITY] = \"Vancouver\";\n provinces[PE][NAME_OF_PROVINCE] = \"Prince Edward Island\";\n provinces[PE][NAME_OF_CAPITAL_CITY] = \"Charlottetown\";\n provinces[PE][NAME_OF_BIGGEST_CITY] = \"Charlottetown\";\n provinces[SK][NAME_OF_PROVINCE] = \"Saskatchewan\";\n provinces[SK][NAME_OF_CAPITAL_CITY] = \"Regina\";\n provinces[SK][NAME_OF_BIGGEST_CITY] = \"Saskatoon\";\n provinces[AB][NAME_OF_PROVINCE] = \"Alberta\";\n provinces[AB][NAME_OF_CAPITAL_CITY] = \"Edmonton\";\n provinces[AB][NAME_OF_BIGGEST_CITY] = \"Calgary\";\n provinces[NL][NAME_OF_PROVINCE] = \"Newfoundland and Labrador\";\n provinces[NL][NAME_OF_CAPITAL_CITY] = \"St. John's\";\n provinces[NL][NAME_OF_BIGGEST_CITY] = \"St. John's\";\n provinces[YK][NAME_OF_PROVINCE] = \"Yukon\";\n provinces[YK][NAME_OF_CAPITAL_CITY] = \"WhiteHorse\";\n provinces[YK][NAME_OF_BIGGEST_CITY] = \"Whitehorse\";\n provinces[NV][NAME_OF_PROVINCE] = \"Nunavut\";\n provinces[NV][NAME_OF_CAPITAL_CITY] = \"Iqaluit\";\n provinces[NV][NAME_OF_BIGGEST_CITY] = \"Iqaluit\";\n provinces[NT][NAME_OF_PROVINCE] = \"Northwest Territories\";\n provinces[NT][NAME_OF_CAPITAL_CITY] = \"Yellowknife\";\n provinces[NT][NAME_OF_BIGGEST_CITY] = \"Yellowknife\";\n provinces[ON][NAME_OF_PROVINCE] = \"Ontario\";\n provinces[ON][NAME_OF_CAPITAL_CITY] = \"Toronto\";\n provinces[ON][NAME_OF_BIGGEST_CITY] = \"Toronto\";\n provinces[QC][NAME_OF_PROVINCE] = \"Quebec\";\n provinces[QC][NAME_OF_CAPITAL_CITY] = \"Quebec City\";\n provinces[QC][NAME_OF_BIGGEST_CITY] = \"Montreal\";\n provinces[NS][NAME_OF_PROVINCE] = \"Nova Scotia\";\n provinces[NS][NAME_OF_CAPITAL_CITY] = \"Halifax\";\n provinces[NS][NAME_OF_BIGGEST_CITY] = \"Halifax\";\n provinces[NB][NAME_OF_PROVINCE] = \"New Brunswick\";\n provinces[NB][NAME_OF_CAPITAL_CITY] = \"Fredericton\";\n provinces[NB][NAME_OF_BIGGEST_CITY] = \"Saint John\";\n provinces[MB][NAME_OF_PROVINCE] = \"Manitoba\";\n provinces[MB][NAME_OF_CAPITAL_CITY] = \"Winnipeg\";\n provinces[MB][NAME_OF_BIGGEST_CITY] = \"Winnipeg\";\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "public static List<Category> getCategorysofProvince(Province province){\n\t\treturn CategoryDAO.getCategorysofProvince(province);\n\t}", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public static Map<Integer, TaxCategory> alberta() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10, 0, 131220); // Tax Category 1 for Alberta\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12,131220.01, 157464); // Tax Category 2 for Alberta\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13, 157464.01, 209952); // Tax Category 3 for Alberta\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(14, 209952.01, 314928); // Tax Category 4 for Alberta\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(15, 314928.01, 10000000); // Tax Category 5 for Alberta\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "public final void c() throws AMapException {\n if (this.f != null) {\n at atVar = new at(this.i, \"\");\n atVar.a(this.i);\n List list = (List) atVar.c();\n if (this.c != null) {\n this.f.a((List<OfflineMapProvince>) list);\n }\n synchronized (this.c) {\n Iterator<OfflineMapProvince> it = this.f.a().iterator();\n while (it.hasNext()) {\n Iterator<OfflineMapCity> it2 = it.next().getCityList().iterator();\n while (it2.hasNext()) {\n OfflineMapCity next = it2.next();\n for (al next2 : this.c) {\n if (next.getPinyin().equals(next2.getPinyin())) {\n String version = next2.getVersion();\n if (next2.getState() != 4 || d.length() <= 0 || !b(d, version)) {\n next2.setCity(next.getCity());\n next2.setUrl(next.getUrl());\n next2.setAdcode(next.getAdcode());\n next2.setVersion(next.getVersion());\n next2.setSize(next.getSize());\n next2.setCode(next.getCode());\n next2.setJianpin(next.getJianpin());\n next2.setPinyin(next.getPinyin());\n } else {\n next2.j();\n next2.setUrl(next.getUrl());\n }\n }\n }\n }\n }\n }\n }\n }", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "void fetchCountryInformation();", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "public String getCapitalCityOf(String province) {\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null && \n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_CAPITAL_CITY];\n }\n\n }\n return null;\n }", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "public boolean affordCity() {\n \t\treturn (FREE_BUILD || cities < MAX_CITIES\n \t\t\t\t&& getResources(Type.GRAIN) >= 2 && getResources(Type.ORE) >= 3);\n \t}", "@Override\n\tpublic ArrayList<String> getCityList() {\n\t\treturn constantPO.getCityList();\n\t}", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "public Vector<Site> getCities(){\n return cities;\n }", "public Long getProvinceCitiesCode() {\n return provinceCitiesCode;\n }", "public ArrayList<City> getPopCityReg() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Region, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Region, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityReg = new ArrayList<>();\n System.out.println(\"9. All the cities in a REGION organised by largest population to smallest.\");\n System.out.println(\"Region | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.Population = rset.getInt(\"Population\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n\n Country cnt = new Country();\n cnt.Region = rset.getString(\"Region\");\n System.out.println(cnt.Region + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityReg.add(cty);\n }\n return PopCityReg;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public static String [] getCities(){\n\t\tString [] s = new String [cities.length]; \n\t\tfor (int i = 0; i < cities.length; i++)\n\t\t{\n\t\t\ts[i] = cities[i].getCity();\n\t\t}\n\t\treturn s;\n\t}", "public void displayAllProvinceInfo() {\n \n for(int i = 0; i < provinces.length; i++) {\n\n \n if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null && \n provinces[i][NAME_OF_CAPITAL_CITY].equalsIgnoreCase(provinces[i][NAME_OF_BIGGEST_CITY])) {\n System.out.println(\"The capital city of \" + provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" + provinces[i][NAME_OF_CAPITAL_CITY] + \", and it is also the largest city.\");\n \n }\n else if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null) {\n System.out.println(\"The capital city of \" +provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" +provinces[i][NAME_OF_CAPITAL_CITY] + \", but the largest city is \" \n +provinces[i][NAME_OF_BIGGEST_CITY] + \".\");\n }\n \n }\n}", "public static Map<Integer, TaxCategory> novaScotia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "public ArrayList<CityArea> getCityAreasConquered() {\n\t\treturn cityAreasConquered;\n\t}", "public ArrayList<Country> getRegionPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n +\" FROM country\"\n +\" GROUP BY country.Region, country.Name, country.Code, country.Continent, country.Capital\"\n +\" ORDER BY country.Region, cPopulation DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"3. All the countries in a REGION organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital);\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"3. Failed to get city details\");\n return null;\n }\n }", "public ArrayList<Country> getACountryPopulation(String region) {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in the world\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS cName, SUM(DISTINCT country.Population) AS coPopulation\" +\n \" FROM country \" +\n \" WHERE country.Name = \" + \"'\" + region + \"'\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n System.out.println(\"29. Population of a country.\");\n System.out.println(\"Country\" + \" | \" + \"Population\");\n ArrayList<Country> country = new ArrayList<Country>();\n while (rset.next()) {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Name = rset.getString(\"cName\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population);\n country.add(cnt);\n }\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"28. Failed to get population of each region\");\n\n return null;\n }\n }", "void countries_init() throws SQLException {\r\n countries = DatabaseQuerySF.get_all_stations();\r\n }", "public ArrayList<City> getDiscPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.District, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" ORDER BY city.District, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> DiscPop = new ArrayList<>();\n System.out.println(\"11. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n DiscPop.add(cty);\n }\n return DiscPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"11. Failed to get city details\");\n return null;\n }\n }", "public ResponseDTO getRegionProvinceCityList() {\n ResponseDTO dto = new ResponseDTO();\n List<Region> list = regionBiz.selectRegionProvinceCityList();\n dto.setCode(ResponseCode.CommonCode.OK.v());\n dto.setMsg(ResponseCode.CommonCode.OK.c());\n dto.setData(list);\n return dto;\n }", "public HashMap<ContinentName, CountryName[]> getContinents() { return continents; }", "public static Map<Integer, TaxCategory> federal() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "private Map<String, Map<String, City>> getCountryCityMap() {\n return countryService.findAll().stream()\n .collect(toMap(Country::getName,\n country -> country.getCities().stream()\n .collect(toMap(City::getName,\n city -> city))));\n }", "public void read_india_states() throws IOException {\r\n\t\tString line = \"\";\r\n\t\tString splitBy = \",\";\r\n\t\tString path = \".\\\\src\\\\main\\\\java\\\\com\\\\covidProject\\\\covid19\\\\Datasets\\\\Indian Cities Database.csv\";\r\n\t\tHashMap<String, List<String>> state_city = new HashMap<>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// parsing a CSV file into BufferedReader class constructor\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\r\n\t\t\twhile ((line = br.readLine()) != null) // returns a Boolean value\r\n\t\t\t{\r\n\t\t\t\tString[] info = line.split(splitBy); // use comma as separator\r\n\t\t\t\tString City = info[0].toLowerCase();\r\n\t\t\t\tString State = info[5].toLowerCase();\r\n\r\n\t\t\t\tif (state_city.get(State) == null) {\r\n\t\t\t\t\tList<String> temp_list = new ArrayList<>();\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tList<String> temp_list = state_city.get(State);\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tList<Document> list = new ArrayList<Document>();\r\n\t\t\t\r\n\t\t\t//Initialize country\r\n\t\t\tCovidCountry countryDoc = new CovidCountry();\r\n\t\t\tcountryDoc.setName(\"India\");\r\n\t\t\t\r\n\t\t\t//Initialize state list\r\n\t\t\tList<CovidState> states_list = new ArrayList<>();\r\n\t\t\t\r\n\t\t\tfor (Map.Entry<String, List<String>> entry : state_city.entrySet()) {\r\n\t\t\t\t\r\n\t\t\t\t//get state and cities from the map we created \r\n\t\t\t\tString state = entry.getKey();\r\n\t\t\t\tList<String> cities = entry.getValue();\r\n\r\n\t\t\t\tList<CovidSubCity> city_list = new ArrayList<>();\r\n\r\n\t\t\t\t//Cities are created before states.\r\n\t\t\t\tfor (String city : cities) {\r\n\t\t\t\t\tCovidCity covidCity = new CovidCity(city,state,countryDoc.getName());\r\n\t\t\t\t\tthis.covidCityRepository.save(covidCity);\r\n\t\t\t\t\tCovidSubCity subCity = new CovidSubCity(city,covidCity.getId());\r\n\t\t\t\t\tcity_list.add(subCity);\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\t//create state\r\n\t\t\t\tCovidState covidState = new CovidState(state,city_list);\r\n\t\t\t\t//this.covidStateRepository.save(covidState);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstates_list.add(covidState);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcountryDoc.setStates(states_list);\r\n\t\t\tthis.covidCountryRepository.save(countryDoc);\r\n\t\t\t\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public List getZonasRegion(String feriadoRegion);", "public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }", "public void popCity(AjaxBehaviorEvent e) {\n\t\tlstCity = new ArrayList<CityMasterDesc>();\n\t\tlstCity.addAll(getGeneralService().getCityList(new BigDecimal(sessionStateManage.isExists(\"languageId\")?sessionStateManage.getSessionValue(\"languageId\"):\"1\"),getCountryId(),getStateId(),getDistrictId()));\n\t}", "public ArrayList<Country> getContinentPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n //population of people in each CONTINENT\n String strSelect =\n \" SELECT DISTINCT(country.Continent) AS dContinent, SUM(DISTINCT country.Population) AS coPopulation, SUM(city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dContinent\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\"23. The population of people, people living in cities, and people not living in cities in each CONTINENT.\");\n System.out.println(\" Continent | Continent Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while (rset.next())\n {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Continent = rset.getString(\"dContinent\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Continent + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population*100)/(cnt.Population))) + \"%\" + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - ((cCity.Population * 100) / (cnt.Population)))+ \"%\");\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"23. Failed to get continent populations\");\n\n return null;\n }\n }", "public HashMap<Integer, Element> getCandies() {\n\t\treturn candies;\n\t}", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "@Override\n public String toString() {\n return getCounty();\n }", "private void cargarCmbColores(){\n MapaColores.getMap().forEach((k,v)->cmbColores.getItems().add(k));\n cmbColores.getSelectionModel().selectFirst();\n }", "public void getCities(Integer province_id) {\n App.getInstance().getApiInterface().getCities(province_id,Constants.APPJSON).enqueue(new Callback<List<CityList>>() {\n @Override\n public void onResponse(Call<List<CityList>> call, final Response<List<CityList>> response) {\n if (response.isSuccessful()) {\n final Realm realm = Realm.getDefaultInstance();\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n realm.delete(CityList.class);\n realm.copyToRealmOrUpdate(response.body());\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n realm.close();\n }\n }, new Realm.Transaction.OnError() {\n @Override\n public void onError(Throwable error) {\n realm.close();\n error.printStackTrace();\n getView().showAlert(error.getLocalizedMessage());\n }\n });\n } else {\n getView().showAlert(\"Server Error\");\n }\n }\n\n @Override\n public void onFailure(Call<List<CityList>> call, Throwable t) {\n t.printStackTrace();\n getView().showAlert(t.getLocalizedMessage());\n }\n });\n }", "public ArrayList<Country> getRegionPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS dRegion, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dRegion \"; //population of people in each region\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\" 24. The population of people, people living in cities, and people not living in cities in each REGION.\");\n System.out.println(\" Region | Region Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Region = rset.getString(\"dRegion\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + ((cCity.Population * 100) / (cnt.Population)) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"24. Failed to get region populations\");\n return null;\n }\n }", "public List<String> getCities() {\n\t\treturn cities;\n\t}", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "public static Region RegionQueensCarteNY() {\n\t\t\t\t\treturn new Region(\"Queens\",Territoire.listeTerritoireRegionQueens());\n\t\t\t\t}", "public City(String name) {\n\t\tthis.name = name;\n\t\tthis.inhabitants = new ArrayList<Inhabitant>();\n\t\tthis.postbox = new ArrayList<Letter<?>>();\n\t\tSystem.out.println(\"Creating \" + this.name + \" city\");\n\t}", "@Override\n\tpublic String getCityCode() {\n\t\treturn null;\n\t}", "@Override\n public List<Map<String, Object>> getCityList(Map<String, Object> params)\n {\n return advertisementMapper.getCityList(params);\n }", "public List<City> getCities(){\n waitFor(visibilityOfAllElements(cities));\n return cities.stream().map(City::new).collect(toList());\n }", "public BigDecimal getBENEF_CITY() {\r\n return BENEF_CITY;\r\n }", "public CitiesMap(){\r\n\t\tmap=new Graph<City>();\r\n\t}", "private static CIty chaxunniangen(int i, ArrayList<CIty> citys) {\n\t\tIterator it=citys.iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tCIty c=(CIty)it.next();\r\n\t\t\tif(c.year==i)\r\n\t\t\t\treturn c;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Cgg_veh_categoria(){}", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "public ArrayList<Country> getContinentPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" FROM country\"\n + \" GROUP BY country.Continent, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" ORDER BY country.Continent, cPopulation DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"2. All the countries in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital );\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"2. Failed to get country details\");\n return null;\n }\n }", "public PostalCodeDataBase()\n {\n codeToCityMap = new HashMap<String, Set<String>>();\n // additional instance variable(s) to be initialized in part (b)\n }", "City(int 1_x_coordinate, int 1_y_coordinate, String name_coordinate){\n x_coordinate = 1_x_coordinate;\n y_coordinate = 1_y_coordinate;\n city_name = name_coordinate;\n }", "public static Map<Integer, TaxCategory> ontario() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void allocateCountries() {\n\t\tmakeDeck() ;\n\t\t\n\t\tint id =0;\n\t\t//Randomly give players 9 country cards, and place 1 army on country\n\t\tfor(int j=0;j<Constants.NUM_PLAYERS;j++) {\n\t\t\tfor (int i=0; i<9;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t\t\n\t\t\t\t\t//Tells user what cards where drawn\n\t\t\t\t\tview.displayString(\"Player \"+(j+1)+\" Drew Card ' \" +deck.get(0).toString()+\"'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set rest of countries to neutrals with 1 army\n\t\tfor(int j=Constants.NUM_PLAYERS;j<6;j++) {\n\t\t\tfor (int i=0; i<6;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else { \n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t}\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t//Adds cards back to deck and shuffles\n\t\tdiscardToDeck() ;\t\t\n\t}", "public City(String cit) {\n this.thecity = cit;\n city.add(this);\n }", "public String getCorpProvince() {\n return corpProvince;\n }", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "private void fillCity() {\n \n if(postalCodeTF.getText().length() == 4){\n City city = memberConnection.getCity(postalCodeTF.getText());\n cityTF.setText(city.getCity().replaceAll(\"_\", \" \"));\n municipalTF.setText(city.getMunicipal().replaceAll(\"_\", \" \"));\n }\n }", "public static int numberOfCities(){\n return destinationCities.size();\n }", "private static CIty chaxunjibandi(String jibandi, ArrayList<CIty> citys) {\n\t\tIterator it=citys.iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tCIty c=(CIty)it.next();\r\n\t\t\tif(c.place.equals(jibandi))\r\n\t\t\t\treturn c;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "java.lang.String getDepartureAirportCity();", "@Test\n public void getCities()\n {\n List<City> cities = new ArrayList<>();\n Map<City, List<Road>> networkEmpty = new HashMap<>();\n Country countryEmpty = new Country(\"CountryEmpty\", networkEmpty);\n assertTrue(countryEmpty.getCities().size()==0);\n assertEquals(cities,countryEmpty.getCities());\n //Sorted list returned.\n cities = new ArrayList<>(country1.getNetwork().keySet());\n Collections.sort(cities);\n assertEquals(cities,country1.getCities());\n }", "String getCity();", "public String getBankCity() {\r\n return bankCity;\r\n }", "public IntercityBus(){\n super(\"CombustionEngine\");\n super.setRegion(\"Regional\");\n }", "@Override\n\tpublic List<String> mostPopulatedCities() {\n\t\treturn null;\n\t}", "public void setProvinceCitiesCode(Long provinceCitiesCode) {\n this.provinceCitiesCode = provinceCitiesCode;\n }", "public static Map<Integer, TaxCategory> saskatchewan() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "void createNewContinent();", "public void ordenarComunidadCiudad() {\r\n Collections.sort(ciudades, new ComunidadCiudadComparator());\r\n }", "protected void setCitiesOnSelectedRegion(String requestedRegionAndFields, final ArrayList<AddressCity> cities) {\n city_spinner.setVisibility(View.VISIBLE);\n ArrayAdapter<AddressCity> adapter = new ArrayAdapter<>(getBaseActivity(), R.layout.form_spinner_item, cities);\n adapter.setDropDownViewResource(R.layout.form_spinner_dropdown_item);\n PromptSpinnerAdapter promptAdapter = new PromptSpinnerAdapter(adapter, R.layout.form_spinner_prompt, getBaseActivity());\n promptAdapter.setPrompt(getString(R.string.address_city_placeholder));\n city_spinner.setAdapter(promptAdapter);\n city_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n address_city_error.setVisibility(View.GONE);\n if (position == 0) {\n city_Id = cities.get(position).getValue();\n triggerGetPostalCodes(getPostalApi, city_Id, String.valueOf(city_Id));\n } else {\n city_Id = cities.get(position - 1).getValue();\n triggerGetPostalCodes(getPostalApi, city_Id, String.valueOf(city_Id));\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n\n hideActivityProgress();\n showFragmentContentContainer();\n\n\n }", "public ArrayList<Country> getCountryPopulation() {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in each COUNTRY\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS dCountry, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dCountry \"; // population of people in each country\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country = new ArrayList<Country>();\n System.out.println(\"25. The population of people, people living in cities, and people not living in cities in each COUNTRY.\");\n System.out.println(\" Country | Country Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Name = rset.getString(\"dCountry\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population * 100) / (cnt.Population))) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"25. Failed to get country populations\");\n\n return null;\n }\n }", "public ArrayList<String> showCity();", "boolean hasHasCity();", "public ArrayList<City> getPopCity() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.Name, city.Population, city.CountryCode, city.District\"\n +\" FROM city\"\n +\" ORDER BY city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> CtyPop = new ArrayList<>();\n System.out.println(\"7. All the cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CtyPop.add(cty);\n }\n return CtyPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"7. Failed to get city details\");\n return null;\n }\n }", "public BoroughContestObjects createBoroughContestInOslo() {\n\t\tBoroughContestObjects objects = new BoroughContestObjects();\n\n\t\tobjects.nbNoLocale = getNbNoLocale();\n\t\tobjects.adminUserData = createUserDataForAdministrator(objects.nbNoLocale);\n\t\tobjects.electionEvent = createElectionEvent(objects.adminUserData, objects.nbNoLocale);\n\n\t\tcreateAreas(objects.electionEvent, objects.nbNoLocale);\n\t\tcopyRolesFromAdminEvent(objects.electionEvent);\n\t\tsetMvAreaOnUserData(objects.adminUserData, backend.getMvAreaRepository().findSingleByPath(AreaPath.from(ELECTION_EVENT_ID)));\n\n\t\tobjects.electionGroup = createElectionGroup(objects.adminUserData, objects.electionEvent);\n\t\tobjects.election = createElection(objects.adminUserData, objects.electionGroup);\n\t\tList<NewlyCreatedContest> newlyCreatedContests = createContests(objects.adminUserData, objects.election);\n\t\tobjects.registerNewlyCreatedContests(newlyCreatedContests);\n\n\t\tMvArea osloMunicipality = backend.getMvAreaRepository().findSingleByPath(OSLO_MUNICIPALITY_AREA_PATH);\n\t\tMvArea kampenPollingDistrict = backend.getMvAreaRepository().findSingleByPath(KAMPEN_SKOLE_AREA_PATH);\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, osloMunicipality, ReportingUnitTypeId.VALGSTYRET, \"Oslo\");\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, kampenPollingDistrict, ReportingUnitTypeId.STEMMESTYRET, \"Kampen skole\");\n\n\t\tobjects.opptellingsansvarligUserData = createOpptellingsansvarligUserData(objects.nbNoLocale, objects.electionEvent);\n\n\t\tParty arbeiderpartiet = createArbeiderpartiet(objects.adminUserData, objects.electionEvent);\n\n\t\tcreateBallotsAndAffiliations(objects.contestIdToContestMap, arbeiderpartiet, objects.nbNoLocale, objects.adminUserData, 2);\n\n\t\tcreateElectionDay(ELECTION_DAY_1, objects.electionEvent, objects.adminUserData);\n\t\tcreateElectionDay(ELECTION_DAY_2, objects.electionEvent, objects.adminUserData);\n\n\t\tcreateAntallStemmesedlerLagtTilSide(objects, newlyCreatedContests, osloMunicipality);\n\n\t\treturn objects;\n\t}", "public void setCouncil(String council) {\n this.council = council;\n }", "public Causa getCausa() {\n return causa.get();\n }", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "public java.lang.String getCITY1()\n {\n \n return __CITY1;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }" ]
[ "0.66175544", "0.63065434", "0.59870845", "0.5913481", "0.5875907", "0.5794113", "0.5742796", "0.5734245", "0.5724059", "0.57198673", "0.57078123", "0.56409335", "0.56296164", "0.56149656", "0.5611782", "0.55648965", "0.5562453", "0.5552658", "0.55494857", "0.5520042", "0.5505215", "0.5485586", "0.5483054", "0.54772437", "0.5475511", "0.54692", "0.5451716", "0.5426453", "0.5423878", "0.54202724", "0.54096967", "0.53873837", "0.53834397", "0.5334954", "0.5329161", "0.53269625", "0.53231806", "0.5304057", "0.5290706", "0.52888733", "0.5288641", "0.52811575", "0.5271714", "0.52678615", "0.5255692", "0.5240414", "0.5235584", "0.52342236", "0.52334887", "0.523127", "0.52280104", "0.521784", "0.52122796", "0.52068996", "0.52027035", "0.51825243", "0.5175268", "0.5170415", "0.5159222", "0.51586354", "0.51584196", "0.51578796", "0.5157005", "0.5156894", "0.5153519", "0.5151265", "0.5132597", "0.51194423", "0.51142067", "0.5104151", "0.5102906", "0.50949013", "0.5086438", "0.50830233", "0.50736713", "0.50674313", "0.50644803", "0.50629264", "0.5053578", "0.50288963", "0.5023072", "0.5021333", "0.5018146", "0.5015713", "0.50108534", "0.5009277", "0.5005343", "0.50052446", "0.5003022", "0.49998203", "0.49944094", "0.4990807", "0.49894756", "0.4984883", "0.498324", "0.4981331", "0.4979559", "0.49748477", "0.49746484", "0.49746484" ]
0.61653835
2
declares the catgeroies for the province of New Brunswick
public static Map<Integer, TaxCategory> newBrunswick() { HashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>(); try { //INSERT YOUR CODE HERE - Using the specification given on Federal //You will need to study how Manitoba is being implemented TaxCategory cat1 = new TaxCategory(9.68, 0, 43835); //Tax Category 1 for NewBrunswick categories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1 TaxCategory cat2 = new TaxCategory(14.82, 43835.01, 87671); //Tax Category 1 for NewBrunswick categories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2 TaxCategory cat3 = new TaxCategory(16.52, 87671.01, 142534); //Tax Category 1 for NewBrunswick categories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3 TaxCategory cat4 = new TaxCategory(17.84, 142534.01, 162383); //Tax Category 1 for NewBrunswick categories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4 TaxCategory cat5 = new TaxCategory(20.3, 162383.01, 10000000); //Tax Category 1 for NewBrunswick categories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5 } catch( Exception e ) {} return categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Canada() {\n\n //Initialize the array \n provinces = new String[NUM_PROVINCES][NUM_NAMES];\n\n // Set the elements in the array \n provinces[BC][NAME_OF_PROVINCE] = \"British Columbia\";\n provinces[BC][NAME_OF_CAPITAL_CITY] = \"Victoria\";\n provinces[BC][NAME_OF_BIGGEST_CITY] = \"Vancouver\";\n provinces[PE][NAME_OF_PROVINCE] = \"Prince Edward Island\";\n provinces[PE][NAME_OF_CAPITAL_CITY] = \"Charlottetown\";\n provinces[PE][NAME_OF_BIGGEST_CITY] = \"Charlottetown\";\n provinces[SK][NAME_OF_PROVINCE] = \"Saskatchewan\";\n provinces[SK][NAME_OF_CAPITAL_CITY] = \"Regina\";\n provinces[SK][NAME_OF_BIGGEST_CITY] = \"Saskatoon\";\n provinces[AB][NAME_OF_PROVINCE] = \"Alberta\";\n provinces[AB][NAME_OF_CAPITAL_CITY] = \"Edmonton\";\n provinces[AB][NAME_OF_BIGGEST_CITY] = \"Calgary\";\n provinces[NL][NAME_OF_PROVINCE] = \"Newfoundland and Labrador\";\n provinces[NL][NAME_OF_CAPITAL_CITY] = \"St. John's\";\n provinces[NL][NAME_OF_BIGGEST_CITY] = \"St. John's\";\n provinces[YK][NAME_OF_PROVINCE] = \"Yukon\";\n provinces[YK][NAME_OF_CAPITAL_CITY] = \"WhiteHorse\";\n provinces[YK][NAME_OF_BIGGEST_CITY] = \"Whitehorse\";\n provinces[NV][NAME_OF_PROVINCE] = \"Nunavut\";\n provinces[NV][NAME_OF_CAPITAL_CITY] = \"Iqaluit\";\n provinces[NV][NAME_OF_BIGGEST_CITY] = \"Iqaluit\";\n provinces[NT][NAME_OF_PROVINCE] = \"Northwest Territories\";\n provinces[NT][NAME_OF_CAPITAL_CITY] = \"Yellowknife\";\n provinces[NT][NAME_OF_BIGGEST_CITY] = \"Yellowknife\";\n provinces[ON][NAME_OF_PROVINCE] = \"Ontario\";\n provinces[ON][NAME_OF_CAPITAL_CITY] = \"Toronto\";\n provinces[ON][NAME_OF_BIGGEST_CITY] = \"Toronto\";\n provinces[QC][NAME_OF_PROVINCE] = \"Quebec\";\n provinces[QC][NAME_OF_CAPITAL_CITY] = \"Quebec City\";\n provinces[QC][NAME_OF_BIGGEST_CITY] = \"Montreal\";\n provinces[NS][NAME_OF_PROVINCE] = \"Nova Scotia\";\n provinces[NS][NAME_OF_CAPITAL_CITY] = \"Halifax\";\n provinces[NS][NAME_OF_BIGGEST_CITY] = \"Halifax\";\n provinces[NB][NAME_OF_PROVINCE] = \"New Brunswick\";\n provinces[NB][NAME_OF_CAPITAL_CITY] = \"Fredericton\";\n provinces[NB][NAME_OF_BIGGEST_CITY] = \"Saint John\";\n provinces[MB][NAME_OF_PROVINCE] = \"Manitoba\";\n provinces[MB][NAME_OF_CAPITAL_CITY] = \"Winnipeg\";\n provinces[MB][NAME_OF_BIGGEST_CITY] = \"Winnipeg\";\n }", "public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> alberta() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10, 0, 131220); // Tax Category 1 for Alberta\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12,131220.01, 157464); // Tax Category 2 for Alberta\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13, 157464.01, 209952); // Tax Category 3 for Alberta\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(14, 209952.01, 314928); // Tax Category 4 for Alberta\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(15, 314928.01, 10000000); // Tax Category 5 for Alberta\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static List<Category> getCategorysofProvince(Province province){\n\t\treturn CategoryDAO.getCategorysofProvince(province);\n\t}", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "public static Map<Integer, TaxCategory> novaScotia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "public Cattery()\r\n {\r\n businessName = \"unknown business\";\r\n catCollection = new ArrayList<Cat>();\r\n }", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "private void populateBranches() {\n\t\tStationsDTO[] station = null;\n\t\ttry {\n\t\t\tstation = handler.getAllBranches();\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoBranch.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public Cgg_veh_categoria(){}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "public ArrayList<City> getDiscPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.District, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" ORDER BY city.District, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> DiscPop = new ArrayList<>();\n System.out.println(\"11. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n DiscPop.add(cty);\n }\n return DiscPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"11. Failed to get city details\");\n return null;\n }\n }", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "protected static List<Critter> getBabies() {\r\n \t ArrayList<Critter> critterList = new ArrayList<Critter>();\r\n //iterator through the keys in the babies hash map\r\n Iterator<String> populationIterator = babies.keySet().iterator();\r\n while(populationIterator.hasNext()) {\r\n \tString coord = populationIterator.next();\r\n \t//iterator through the critter babies in a key in a hash map\r\n \tIterator<Critter> positionIterator = babies.get(coord).iterator();\r\n \twhile(positionIterator.hasNext()) {\r\n \t\tCritter critt = positionIterator.next();\r\n \t\t//add the babies to the critter population\r\n \t\tcritterList.add(critt);\r\n \t}\r\n }\r\n \r\n return critterList;\r\n }", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "void addCoaster(String name, String park, Date date, double rating);", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "public static Map<Integer, TaxCategory> ontario() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }", "public BoroughContestObjects createBoroughContestInOslo() {\n\t\tBoroughContestObjects objects = new BoroughContestObjects();\n\n\t\tobjects.nbNoLocale = getNbNoLocale();\n\t\tobjects.adminUserData = createUserDataForAdministrator(objects.nbNoLocale);\n\t\tobjects.electionEvent = createElectionEvent(objects.adminUserData, objects.nbNoLocale);\n\n\t\tcreateAreas(objects.electionEvent, objects.nbNoLocale);\n\t\tcopyRolesFromAdminEvent(objects.electionEvent);\n\t\tsetMvAreaOnUserData(objects.adminUserData, backend.getMvAreaRepository().findSingleByPath(AreaPath.from(ELECTION_EVENT_ID)));\n\n\t\tobjects.electionGroup = createElectionGroup(objects.adminUserData, objects.electionEvent);\n\t\tobjects.election = createElection(objects.adminUserData, objects.electionGroup);\n\t\tList<NewlyCreatedContest> newlyCreatedContests = createContests(objects.adminUserData, objects.election);\n\t\tobjects.registerNewlyCreatedContests(newlyCreatedContests);\n\n\t\tMvArea osloMunicipality = backend.getMvAreaRepository().findSingleByPath(OSLO_MUNICIPALITY_AREA_PATH);\n\t\tMvArea kampenPollingDistrict = backend.getMvAreaRepository().findSingleByPath(KAMPEN_SKOLE_AREA_PATH);\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, osloMunicipality, ReportingUnitTypeId.VALGSTYRET, \"Oslo\");\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, kampenPollingDistrict, ReportingUnitTypeId.STEMMESTYRET, \"Kampen skole\");\n\n\t\tobjects.opptellingsansvarligUserData = createOpptellingsansvarligUserData(objects.nbNoLocale, objects.electionEvent);\n\n\t\tParty arbeiderpartiet = createArbeiderpartiet(objects.adminUserData, objects.electionEvent);\n\n\t\tcreateBallotsAndAffiliations(objects.contestIdToContestMap, arbeiderpartiet, objects.nbNoLocale, objects.adminUserData, 2);\n\n\t\tcreateElectionDay(ELECTION_DAY_1, objects.electionEvent, objects.adminUserData);\n\t\tcreateElectionDay(ELECTION_DAY_2, objects.electionEvent, objects.adminUserData);\n\n\t\tcreateAntallStemmesedlerLagtTilSide(objects, newlyCreatedContests, osloMunicipality);\n\n\t\treturn objects;\n\t}", "public void allocateCountries() {\n\t\tmakeDeck() ;\n\t\t\n\t\tint id =0;\n\t\t//Randomly give players 9 country cards, and place 1 army on country\n\t\tfor(int j=0;j<Constants.NUM_PLAYERS;j++) {\n\t\t\tfor (int i=0; i<9;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t\t\n\t\t\t\t\t//Tells user what cards where drawn\n\t\t\t\t\tview.displayString(\"Player \"+(j+1)+\" Drew Card ' \" +deck.get(0).toString()+\"'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set rest of countries to neutrals with 1 army\n\t\tfor(int j=Constants.NUM_PLAYERS;j<6;j++) {\n\t\t\tfor (int i=0; i<6;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else { \n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t}\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t//Adds cards back to deck and shuffles\n\t\tdiscardToDeck() ;\t\t\n\t}", "public void displayAllProvinceInfo() {\n \n for(int i = 0; i < provinces.length; i++) {\n\n \n if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null && \n provinces[i][NAME_OF_CAPITAL_CITY].equalsIgnoreCase(provinces[i][NAME_OF_BIGGEST_CITY])) {\n System.out.println(\"The capital city of \" + provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" + provinces[i][NAME_OF_CAPITAL_CITY] + \", and it is also the largest city.\");\n \n }\n else if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null) {\n System.out.println(\"The capital city of \" +provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" +provinces[i][NAME_OF_CAPITAL_CITY] + \", but the largest city is \" \n +provinces[i][NAME_OF_BIGGEST_CITY] + \".\");\n }\n \n }\n}", "public void setCouncil(String council) {\n this.council = council;\n }", "public static Map<Integer, TaxCategory> federal() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public HashMap<Integer, Element> getCandies() {\n\t\treturn candies;\n\t}", "private Cup buildOperationalCup() {\n return new CupBuilder()\n .setCupManufacturer(CupConstants.CUP_MANUFACTURER)\n .setCupModelNumber(CupConstants.CUP_MODEL_NUMBER)\n .setAmmountOfCupsInStock(cupState.getAmountOfCupsInStock().get())\n .setAmmountOfCupsMade(cupState.getCupsMade().get())\n .setCupStatus(CupStatus.values()[cupState.getCupStatus().getStatus()])\n .build();\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "protected static List<Critter> getBabies() {\n return babies;\n }", "@Override\n public String toString() {\n return getCounty();\n }", "public String getCapitalCityOf(String province) {\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null && \n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_CAPITAL_CITY];\n }\n\n }\n return null;\n }", "private void cargarCmbColores(){\n MapaColores.getMap().forEach((k,v)->cmbColores.getItems().add(k));\n cmbColores.getSelectionModel().selectFirst();\n }", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "public Cattery(String businessName)\r\n {\r\n setBusinessName( businessName);\r\n catCollection = new ArrayList <Cat>();\r\n }", "public static Map<Integer, TaxCategory> saskatchewan() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "public ArrayList<City> getPopCityReg() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Region, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Region, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityReg = new ArrayList<>();\n System.out.println(\"9. All the cities in a REGION organised by largest population to smallest.\");\n System.out.println(\"Region | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.Population = rset.getInt(\"Population\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n\n Country cnt = new Country();\n cnt.Region = rset.getString(\"Region\");\n System.out.println(cnt.Region + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityReg.add(cty);\n }\n return PopCityReg;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public Integer getCyrs() {\r\n return cyrs;\r\n }", "void fetchCountryInformation();", "private void generateCandies(){\n\t\tfor (int i = 0; i < 16; i++){\n\t\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t\tCandy candy = new Candy(coordX, coordY, i);\n\t\t\tcandies.put(i, candy);\n\t\t}\n\t}", "public CountyStationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR;\n\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t}\n\t\t}\n\n\t\tif(NW==\"CM\"){\n\t\t\tfor(int i=0;i<banknode;i++){\n\t\t\t\tBank.get(i).totalassets=E/banknode;\n\t\t\t\tBank.get(i).n=Bank.get(i).totalassets*asyCAR;\n\t\t\t\tBank.get(i).forcelev=megaCAR;\n\t\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t\t}\n\n\t\t}\n\n\t}", "private void getCityHotels(String tag) {\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCurrencyCode(userDTO.getCurrency());\n hotelListingRequest.setLanguageCode(userDTO.getLanguage());\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setPageNumber(1);\n hotelListingRequest.setPageSize(10);\n\n\n if (tag.equals(\"noRooms\")) {\n\n hotelListingRequest.setCityId(cityId); // for sold out hotels.. set popularity and descending order.\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n } else {\n\n hotelListingRequest.setCityId(Long.parseLong(destination.getKey())); // regular flow.. getting cityId and areaId from destination.\n\n UserDTO.getUserDTO().setCityName(destination.getDestinationName());\n // here check whether category is city search otherwise areaWise search\n if (destination.getCategory().equals(\"City\")) {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n\n } else {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"area\");\n hotelListingRequest.setSortByArea(0);\n }\n\n\n }\n\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n kidsAgeArrayList = new ArrayList<>();\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelListingRequest.setOccupancy(occupancyDtoArrayList);\n }\n FiltersRequestDto filtersRequestDto = new FiltersRequestDto();\n filtersRequestDto.setAmenityIds(null);\n filtersRequestDto.setAreaIds(null);\n filtersRequestDto.setHotelId(null);\n filtersRequestDto.setCategoryIds(null);\n filtersRequestDto.setChainIds(null);\n filtersRequestDto.setMaxPrice(0.00);\n filtersRequestDto.setMinPrice(0.00);\n filtersRequestDto.setTripAdvisorRatings(null);\n filtersRequestDto.setStarRatings(null);\n hotelListingRequest.setFilters(filtersRequestDto);\n\n request = new Gson().toJson(hotelListingRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n\n showDialog();\n\n hotelSearchPresenter.getHotelListInfo(Constant.API_URL + Constant.HOTELLISTING, request, context);\n\n\n } else {\n\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "public ArrayList<Country> getRegionPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n +\" FROM country\"\n +\" GROUP BY country.Region, country.Name, country.Code, country.Continent, country.Capital\"\n +\" ORDER BY country.Region, cPopulation DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"3. All the countries in a REGION organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital);\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"3. Failed to get city details\");\n return null;\n }\n }", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "private static void readOhioRailRegions (ResourceBundle appRb, int[] countyFips) {\n\n logger.info(\"Reading Ohio Rail Regions\");\n TableDataSet railRegions = fafUtils.importTable(appRb.getString(\"rail.zone.definition\"));\n int highestFips = fafUtils.getHighestVal(countyFips);\n\n railRegionReference = new String[highestFips + 1];\n for (int row = 1; row <= railRegions.getRowCount(); row++) {\n int fips = (int) railRegions.getValueAt(row, \"fips\");\n String reg = railRegions.getStringValueAt(row, \"ohioRailRegion\");\n railRegionReference[fips] = reg;\n }\n listOfRailRegions = fafUtils.getUniqueListOfValues(railRegionReference);\n }", "public void chooseFortifyGivers(){\n gameState = GameState.FORTIFYGIVER;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getFortifyGivers());\n notifyObservers();\n }", "public void printRemainingCouncilors(CouncillorsPool pool);", "protected static List<Critter> getBabies() {\n\t\t\treturn babies;\n\t\t}", "protected static List<Critter> getBabies() {\n\t\t\treturn babies;\n\t\t}", "public void read_india_states() throws IOException {\r\n\t\tString line = \"\";\r\n\t\tString splitBy = \",\";\r\n\t\tString path = \".\\\\src\\\\main\\\\java\\\\com\\\\covidProject\\\\covid19\\\\Datasets\\\\Indian Cities Database.csv\";\r\n\t\tHashMap<String, List<String>> state_city = new HashMap<>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// parsing a CSV file into BufferedReader class constructor\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\r\n\t\t\twhile ((line = br.readLine()) != null) // returns a Boolean value\r\n\t\t\t{\r\n\t\t\t\tString[] info = line.split(splitBy); // use comma as separator\r\n\t\t\t\tString City = info[0].toLowerCase();\r\n\t\t\t\tString State = info[5].toLowerCase();\r\n\r\n\t\t\t\tif (state_city.get(State) == null) {\r\n\t\t\t\t\tList<String> temp_list = new ArrayList<>();\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tList<String> temp_list = state_city.get(State);\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tList<Document> list = new ArrayList<Document>();\r\n\t\t\t\r\n\t\t\t//Initialize country\r\n\t\t\tCovidCountry countryDoc = new CovidCountry();\r\n\t\t\tcountryDoc.setName(\"India\");\r\n\t\t\t\r\n\t\t\t//Initialize state list\r\n\t\t\tList<CovidState> states_list = new ArrayList<>();\r\n\t\t\t\r\n\t\t\tfor (Map.Entry<String, List<String>> entry : state_city.entrySet()) {\r\n\t\t\t\t\r\n\t\t\t\t//get state and cities from the map we created \r\n\t\t\t\tString state = entry.getKey();\r\n\t\t\t\tList<String> cities = entry.getValue();\r\n\r\n\t\t\t\tList<CovidSubCity> city_list = new ArrayList<>();\r\n\r\n\t\t\t\t//Cities are created before states.\r\n\t\t\t\tfor (String city : cities) {\r\n\t\t\t\t\tCovidCity covidCity = new CovidCity(city,state,countryDoc.getName());\r\n\t\t\t\t\tthis.covidCityRepository.save(covidCity);\r\n\t\t\t\t\tCovidSubCity subCity = new CovidSubCity(city,covidCity.getId());\r\n\t\t\t\t\tcity_list.add(subCity);\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\t//create state\r\n\t\t\t\tCovidState covidState = new CovidState(state,city_list);\r\n\t\t\t\t//this.covidStateRepository.save(covidState);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstates_list.add(covidState);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcountryDoc.setStates(states_list);\r\n\t\t\tthis.covidCountryRepository.save(countryDoc);\r\n\t\t\t\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public boolean affordCity() {\n \t\treturn (FREE_BUILD || cities < MAX_CITIES\n \t\t\t\t&& getResources(Type.GRAIN) >= 2 && getResources(Type.ORE) >= 3);\n \t}", "public void populateAllCountries(SolrGazetteer gaz) {\n // SolrGazetteer has full Country metadata, like\n // GeonamesUtility lists offical countries (with TZ, region, aliases, codes)\n // SolrGazetteer lists more aliases/name variants.\n // So have Map( variant =&gt; Country ), where Country is official one.\n //\n allCountries = new HashMap<>();\n\n // Gather 'Official names'\n for (Country C : countries.getCountries()) {\n // NAME: 'United States of America'\n allCountries.put(C.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(C.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(C.CC_ISO3.toLowerCase(), C);\n }\n\n // Gather name variants from anything that looks like PCLI or PCLI* in\n // gazetteer:\n //\n for (String cc : gaz.getCountries().keySet()) {\n Country alt = gaz.getCountries().get(cc);\n Country C = countries.getCountry(cc);\n // NAME: 'United States of America'\n allCountries.put(alt.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(alt.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(alt.CC_ISO3.toLowerCase(), C);\n for (String a : alt.getAliases()) {\n // Aliases: 'U.S.A', 'US of A', 'America', etc.\n //\n allCountries.put(a.toLowerCase(), C);\n }\n }\n }", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "private Map<String, Integer> getPuntuationCat(List<Point> points, Trial trial){\n\t\t\n\t\t//Categoria master40\n\t\tMap<String, Integer> puntuation = setPuntuation(points, this.getMaster(trial.getId(), 40));\n\t\t \n\t\t//Categoria master30\n\t\tMap<String, Integer> puntuationMaster30 = setPuntuation(points, this.getMaster(trial.getId(), 30));\n\t\t//unir los dos maps\n\t\tpuntuationMaster30.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t//Categoria master20\n\t\tMap<String, Integer> puntuationMaster20 = setPuntuation(points, this.getMaster(trial.getId(), 20));\n\t\t//unir los dos maps\n\t\tpuntuationMaster20.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t\n\t\treturn puntuation;\n\t}", "public ArrayList<Country> getRegionPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS dRegion, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dRegion \"; //population of people in each region\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\" 24. The population of people, people living in cities, and people not living in cities in each REGION.\");\n System.out.println(\" Region | Region Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Region = rset.getString(\"dRegion\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + ((cCity.Population * 100) / (cnt.Population)) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"24. Failed to get region populations\");\n return null;\n }\n }", "public void setAll()\r\n\t{\r\n\t\tthis.coderVersion = CaTIESProperties.getValue(\"caties.coder.version\");\r\n\t\tthis.gateHome = CaTIESProperties.getValue(\"caties.gate.home\");\r\n\t\tthis.creoleUrlName = CaTIESProperties.getValue(\"caties.creole.url.name\");\r\n\t\tthis.caseInsensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.insensitive.gazetteer.url.name\");\r\n\t\tthis.caseSensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.sensitive.gazetteer.url.name\");\r\n\t\tthis.sectionChunkerUrlName = CaTIESProperties.getValue(\"caties.section.chunker.url.name\");\r\n\t\tthis.conceptFilterUrlName = CaTIESProperties.getValue(\"caties.concept.filter.url.name\");\r\n\t\tthis.negExUrlName = CaTIESProperties.getValue(\"caties.neg.ex.url.name\");\r\n\t\tthis.conceptCategorizerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.concept.categorizer.url.name\");\r\n\t}", "private void _generateAdjacentCountries() {\n\n // North America\n this.adjCountries.put(CountryName.Alaska, new CountryName[] {\n CountryName.NorthwestTerritories });\n this.adjCountries.put(CountryName.WesternCanada, new CountryName[] {\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.WesternCanada,\n CountryName.WesternUS});\n this.adjCountries.put(CountryName.CentralAmerica, new CountryName[] {\n CountryName.EasternUS,\n CountryName.WesternUS,\n CountryName.Venezuela});\n this.adjCountries.put(CountryName.EasternUS, new CountryName[] {\n CountryName.CentralAmerica,\n CountryName.CentralCanada,\n CountryName.WesternUS });\n this.adjCountries.put(CountryName.Greenland, new CountryName[] {\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.Iceland });\n this.adjCountries.put(CountryName.NorthwestTerritories, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.Greenland,\n CountryName.CentralCanada });\n this.adjCountries.put(CountryName.CentralCanada, new CountryName[] {\n CountryName.WesternCanada,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.EasternCanada });\n this.adjCountries.put(CountryName.EasternCanada, new CountryName[] {\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada });\n this.adjCountries.put(CountryName.WesternUS, new CountryName[] {\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.CentralCanada });\n\n // South America\n this.adjCountries.put(CountryName.Argentina, new CountryName[] {\n CountryName.Brazil,\n CountryName.Peru });\n this.adjCountries.put(CountryName.Brazil, new CountryName[] {\n CountryName.Argentina,\n CountryName.Peru,\n CountryName.Venezuela});\n this.adjCountries.put(CountryName.Peru, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Venezuela });\n this.adjCountries.put(CountryName.Venezuela, new CountryName[] {\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.CentralAmerica});\n\n // Europe\n this.adjCountries.put(CountryName.GreatBritain, new CountryName[] {\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.WesternEurope });\n this.adjCountries.put(CountryName.Iceland, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Greenland });\n this.adjCountries.put(CountryName.NorthernEurope, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope });\n this.adjCountries.put(CountryName.Scandinavia, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Ukraine });\n this.adjCountries.put(CountryName.SouthernEurope, new CountryName[] {\n CountryName.NorthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope,\n CountryName.Egypt,\n CountryName.NorthAfrica,\n CountryName.MiddleEast });\n this.adjCountries.put(CountryName.Ukraine, new CountryName[] {\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Afghanistan,\n CountryName.MiddleEast,\n CountryName.Ural });\n this.adjCountries.put(CountryName.WesternEurope, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.NorthernEurope,\n CountryName.SouthernEurope,\n CountryName.NorthAfrica });\n\n // Africa\n this.adjCountries.put(CountryName.Congo, new CountryName[] {\n CountryName.EastAfrica,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica });\n this.adjCountries.put(CountryName.EastAfrica, new CountryName[] {\n CountryName.Congo,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.MiddleEast });\n this.adjCountries.put(CountryName.Egypt, new CountryName[] {\n CountryName.EastAfrica,\n CountryName.NorthAfrica,\n CountryName.SouthernEurope,\n CountryName.MiddleEast });\n this.adjCountries.put(CountryName.Madagascar, new CountryName[] {\n CountryName.EastAfrica,\n CountryName.SouthAfrica });\n this.adjCountries.put(CountryName.NorthAfrica, new CountryName[] {\n CountryName.Congo,\n CountryName.Egypt,\n CountryName.Brazil,\n CountryName.SouthernEurope,\n CountryName.WesternEurope });\n this.adjCountries.put(CountryName.SouthAfrica, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Madagascar });\n\n // Asia\n this.adjCountries.put(CountryName.Afghanistan, new CountryName[] {\n CountryName.China,\n CountryName.India,\n CountryName.MiddleEast,\n CountryName.Ural,\n CountryName.Ukraine });\n this.adjCountries.put(CountryName.China, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.India,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural });\n this.adjCountries.put(CountryName.India, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.MiddleEast });\n this.adjCountries.put(CountryName.Irkutsk, new CountryName[] {\n CountryName.Kamchatka,\n CountryName.Mongolia,\n CountryName.Siberia,\n CountryName.Yakutsk });\n this.adjCountries.put(CountryName.Japan, new CountryName[] {\n CountryName.Kamchatka,\n CountryName.Mongolia });\n this.adjCountries.put(CountryName.Kamchatka, new CountryName[] {\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Yakutsk });\n this.adjCountries.put(CountryName.MiddleEast, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.India,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.SouthernEurope,\n CountryName.Ukraine });\n this.adjCountries.put(CountryName.Mongolia, new CountryName[] {\n CountryName.China,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.Siberia });\n this.adjCountries.put(CountryName.Siam, new CountryName[] {\n CountryName.China,\n CountryName.India,\n CountryName.Indonesia });\n this.adjCountries.put(CountryName.Siberia, new CountryName[] {\n CountryName.China,\n CountryName.Irkutsk,\n CountryName.Mongolia,\n CountryName.Ural,\n CountryName.Yakutsk });\n this.adjCountries.put(CountryName.Ural, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.Siberia,\n CountryName.Ukraine });\n this.adjCountries.put(CountryName.Yakutsk, new CountryName[] {\n CountryName.Irkutsk,\n CountryName.Kamchatka,\n CountryName.Siberia });\n\n // Australia\n this.adjCountries.put(CountryName.EasternAustralia, new CountryName[] {\n CountryName.NewGuinea,\n CountryName.WesternAustralia});\n this.adjCountries.put(CountryName.Indonesia, new CountryName[] {\n CountryName.NewGuinea,\n CountryName.WesternAustralia,\n CountryName.Siam });\n this.adjCountries.put(CountryName.NewGuinea, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia });\n this.adjCountries.put(CountryName.WesternAustralia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.NewGuinea,\n CountryName.Indonesia});\n }", "private void populateSelectedBranches() {\n\t\ttry {\n\t\t\tStationsDTO[] stations = handler.getAllBranches();\n\t\t\tif (null != stations) {\n\t\t\t\tint len = stations.length;\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcbSB.add(stations[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ stations[i].getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic Cage[] getCages() {\n\t\treturn null;\r\n\t}", "public SortedSet<Concert> getActiveConcerts()//\t\t--> Returnerer alle aktive konserter registrert på dette lokalet.\n\t{\n\t\tGregorianCalendar calender = (GregorianCalendar)Calendar.getInstance();\n\t\tcalender = Utilities.getCleanDate(calender);\n\n\t\tConcert c = new Concert(calender);\n\t\tSortedSet<Concert> active = concerts.tailSet(c);\n\n\t\tif(active.isEmpty())\n\t\t\treturn null;\n\n\t\treturn active;\n\t}", "public Vector<Site> getCities(){\n return cities;\n }", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "public ArrayList<Country> getContinentPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n //population of people in each CONTINENT\n String strSelect =\n \" SELECT DISTINCT(country.Continent) AS dContinent, SUM(DISTINCT country.Population) AS coPopulation, SUM(city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dContinent\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\"23. The population of people, people living in cities, and people not living in cities in each CONTINENT.\");\n System.out.println(\" Continent | Continent Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while (rset.next())\n {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Continent = rset.getString(\"dContinent\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Continent + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population*100)/(cnt.Population))) + \"%\" + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - ((cCity.Population * 100) / (cnt.Population)))+ \"%\");\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"23. Failed to get continent populations\");\n\n return null;\n }\n }", "public HashMap<String, Integer> combineCountryPopList(Connection conn) {\n // Retrieve concrete list of countries and populations\n ConcreteStatService concreteClass = new ConcreteStatService();\n List<Pair<String, Integer>> concreteList = concreteClass.GetCountryPopulations();\n\n HashMap<String, Integer> databaseList = getDataBaseCountryPop(conn);\n\n // Combine Lists. If duplicate, use database data.\n for (int i = 0; i < concreteList.size(); i++) {\n String country = concreteList.get(i).getKey();\n if (!(databaseList.containsKey(country))) {\n if (country.equals(\"U.S.A.\") || country.equals(\"United States of America\")) {\n if ((!(databaseList.containsKey(\"U.S.A.\"))) && (!(databaseList.containsKey(\"United States of America\")))) {\n databaseList.put(country, concreteList.get(i).getValue());\n }\n } else {\n databaseList.put(country, concreteList.get(i).getValue());\n }\n }\n }\n\n return databaseList;\n }", "public void printCouncil(int i, Council council);", "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 String getCouncil() {\n return council;\n }", "public ArrayList<Country> getACountryPopulation(String region) {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in the world\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS cName, SUM(DISTINCT country.Population) AS coPopulation\" +\n \" FROM country \" +\n \" WHERE country.Name = \" + \"'\" + region + \"'\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n System.out.println(\"29. Population of a country.\");\n System.out.println(\"Country\" + \" | \" + \"Population\");\n ArrayList<Country> country = new ArrayList<Country>();\n while (rset.next()) {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Name = rset.getString(\"cName\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population);\n country.add(cnt);\n }\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"28. Failed to get population of each region\");\n\n return null;\n }\n }", "public void createDefaultCurnits(ConfigurableApplicationContext applicationContext) {\n\t\tIELO airbagsCurnit = createAirbagsCurnit();\n\t\trep.addELO(airbagsCurnit);\n\t\tsaveToLocalDb(applicationContext, airbagsCurnit);\n\t\t\n//\t\tLearningObject chemicalReactionsCurnit = createChemicalReactionsCurnit();\n//\t\trep.addELO(chemicalReactionsCurnit);\n//\t\tsaveToLocalDb(applicationContext, chemicalReactionsCurnit);\n\t\t\n//\t\tCurnitProxy meiosisCurnit = createMeiosisCurnit();\n//\t\trep.addELO(meiosisCurnit);\n//\t\tsaveToLocalDb(applicationContext, meiosisCurnit);\n//\t\t\n//\t\t\n//\t\tCurnitProxy hydrogenCarsCurnit = createHydrogenCarsCurnit();\n//\t\trep.addELO(hydrogenCarsCurnit);\n//\t\tsaveToLocalDb(applicationContext, hydrogenCarsCurnit);\n//\t\t\n//\t\tCurnitProxy globalWarmingCurnit = createGlobalWarmingCurnit();\n//\t\trep.addELO(globalWarmingCurnit);\n//\t\tsaveToLocalDb(applicationContext, globalWarmingCurnit);\n//\t\t\n//\t\t\n//\t\tCurnitProxy thermodynamicsCurnit = createThermodynamicsCurnit();\n//\t\trep.addELO(thermodynamicsCurnit);\n//\t\tsaveToLocalDb(applicationContext, thermodynamicsCurnit);\n//\n//\t\tCurnitProxy diyCurnit = createDiyCurnit();\n//\t\trep.addELO(diyCurnit);\n//\t\tsaveToLocalDb(applicationContext, diyCurnit);\n\n\t}", "private HashMap<String, Integer> getDataBaseCountryPop(Connection conn) {\n // SQL SELECT Query\n String SELECT_COUNTRY_POPULATION = \"SELECT cy.CountryName, SUM(c.Population) as TotalPopulation FROM City c\\n\" +\n \"JOIN State s ON c.StateId = s.StateId\\n\" +\n \"JOIN Country cy ON s.CountryId = cy.CountryId\\n\" +\n \"GROUP BY cy.CountryName\";\n\n HashMap<String, Integer> countryPopMap = new HashMap<String, Integer>();\n\n PreparedStatement statement = null;\n\n try {\n statement = conn.prepareStatement(SELECT_COUNTRY_POPULATION);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n String countryName = rs.getString(\"CountryName\");\n int population = rs.getInt(\"TotalPopulation\");\n countryPopMap.put(countryName, population);\n }\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n// for (String s : countryPopMap.keySet()) {\n// System.out.println(s + \" \" + countryPopMap.get(s));\n// }\n// System.out.println(\"Number of Countries in DB: \" + countryPopMap.size());\n\n return countryPopMap;\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "public ArrayList<Country> getContinentPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" FROM country\"\n + \" GROUP BY country.Continent, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" ORDER BY country.Continent, cPopulation DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"2. All the countries in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital );\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"2. Failed to get country details\");\n return null;\n }\n }", "private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }", "private Map<String, Integer> getContinentEnrichment(PersonActivity in) {\n\t\tList<String> places = in.getCategoryKeys(CategoryType.PLACE);\n\t\tMap<String, Integer> continents = places.stream().map(place -> countryContinentRelation.get(place))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn continents;\n\t}", "public CitiesMap(){\r\n\t\tmap=new Graph<City>();\r\n\t}", "void createNewContinent();", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setLivingProvince(Province livingProvince) {\n this.livingProvince = livingProvince;\n }", "private void buildBoats() {\n\t\tboats.add(new Boat(\"red\"));\n\t\tboats.add(new Boat(\"pink\"));\n\t\tboats.add(new Boat(\"blue\"));\n\t\tboats.add(new Boat(\"yellow\"));\n\t\tboats.add(new Boat(\"orange\"));\n\t\tboats.add(new Boat(\"green\"));\n\t\tboats.add(new Boat(\"purple\"));\n\t}", "@Transactional\n\tprivate void generateCatOverSet() {\n\t\tMinionCard turkey = createMinionCard(\"Chat Turkey\", 3, 6, 1, 1, \"Eat Me\",\n\t\t\t\t\"img/cardImg/CatOverSet/TurkeyCat.jpg\");\n\t\tMinionCard sushi = createMinionCard(\"Chat sushi\", 1, 8, 1, 1, \"Eat Me\", \"img/cardImg/CatOverSet/SushiCat.jpeg\");\n\t\tMinionCard mop = createMinionCard(\"Chat Mop\", 1, 5, 4, 1, \"No. Not the bucket\",\n\t\t\t\t\"img/cardImg/CatOverSet/Mop.jpg\");\n\t\tMinionCard clean = createMinionCard(\"Chat Clean\", 3, 7, 5, 2, \"Spot less\",\n\t\t\t\t\"img/cardImg/CatOverSet/CleanningCat.jpg\");\n\t\tMinionCard swim = createMinionCard(\"Chat Swim\", 4, 5, 6, 2, \"Dive in\", \"img/cardImg/CatOverSet/swimming.jpg\");\n\t\tMinionCard skatterA = createMinionCard(\"Chat Skater Trick\", 5, 10, 5, 3, \"Grab\",\n\t\t\t\t\"img/cardImg/CatOverSet/SkateBoardTrickCat.jpg\");\n\t\tMinionCard ariel = createMinionCard(\"Chariel\", 12, 9, 4, 4,\n\t\t\t\t\"Under the sea, Nobody beat us, Fry us and eat us, In fricassee\",\n\t\t\t\t\"img/cardImg/CatOverSet/MermaidCat.jpg\");\n\t\tMinionCard Chatraigner = createMinionCard(\"Chatraigner\", 10, 15, 5, 5, \"Food Food Food! Kill Food\",\n\t\t\t\t\"img/cardImg/CatOverSet/SpiderMonsterCat.jpeg\");\n\t\tcardRepository.save(turkey);\n\t\tcardRepository.save(sushi);\n\t\tcardRepository.save(swim);\n\t\tcardRepository.save(mop);\n\t\tcardRepository.save(clean);\n\t\tcardRepository.save(skatterA);\n\t\tcardRepository.save(ariel);\n\t\tcardRepository.save(Chatraigner);\n\n\t}", "public ArrayList<City> getPopCity() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.Name, city.Population, city.CountryCode, city.District\"\n +\" FROM city\"\n +\" ORDER BY city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> CtyPop = new ArrayList<>();\n System.out.println(\"7. All the cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CtyPop.add(cty);\n }\n return CtyPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"7. Failed to get city details\");\n return null;\n }\n }", "public static void main(String[] args) {\n TypedQuery<Object[]> query = em.createQuery(\n \"SELECT COUNT(p), p.location.city FROM RegularCustomer p WHERE p.location.province = :province GROUP BY p.location.city\", Object[].class);\n List<Object[]> res1 = query.setParameter(\"province\", \"Jawa Barat\").getResultList();\n for (Object[] r : res1) {\n System.out.println(\"Count: \" + r[0] + \", City: \" + r[1]);\n }\n em.close();\n emf.close();\n }", "public ArrayList<Country> getCountryPopulation() {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in each COUNTRY\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS dCountry, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dCountry \"; // population of people in each country\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country = new ArrayList<Country>();\n System.out.println(\"25. The population of people, people living in cities, and people not living in cities in each COUNTRY.\");\n System.out.println(\" Country | Country Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Name = rset.getString(\"dCountry\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population * 100) / (cnt.Population))) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"25. Failed to get country populations\");\n\n return null;\n }\n }" ]
[ "0.629477", "0.6125767", "0.58290887", "0.5735213", "0.5549337", "0.5496141", "0.54722947", "0.5461423", "0.5453141", "0.5427061", "0.54130113", "0.5409645", "0.54004145", "0.5392064", "0.53882825", "0.5379518", "0.5359585", "0.5344314", "0.52898973", "0.5277502", "0.52744794", "0.52720135", "0.52691424", "0.52622837", "0.52559084", "0.5241837", "0.523612", "0.52205926", "0.5212478", "0.5202457", "0.5197575", "0.51940227", "0.51936173", "0.5192298", "0.51519907", "0.51435906", "0.5119386", "0.5104241", "0.50870687", "0.5086159", "0.50799614", "0.5057557", "0.50554615", "0.5039336", "0.50339293", "0.5033309", "0.5027051", "0.5010096", "0.5004607", "0.5000918", "0.49961838", "0.49961838", "0.4993565", "0.49918306", "0.49843854", "0.49744567", "0.49716908", "0.496905", "0.49688056", "0.49526078", "0.49526078", "0.49520275", "0.4949941", "0.4942818", "0.49282712", "0.49255523", "0.49235824", "0.49203926", "0.49194956", "0.49141377", "0.491401", "0.49055085", "0.49053693", "0.49047965", "0.48989105", "0.4892776", "0.4891539", "0.48769203", "0.48719937", "0.48681998", "0.48602223", "0.48594767", "0.4854663", "0.4854663", "0.48474854", "0.48447794", "0.48424256", "0.48288953", "0.48223042", "0.4821266", "0.48209321", "0.4820798", "0.4820798", "0.4820798", "0.4816899", "0.48154655", "0.48125187", "0.48081395", "0.48017234", "0.47991568" ]
0.59189236
2
declares the catgeroies for the province of Nova Scotia
public static Map<Integer, TaxCategory> novaScotia() { HashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>(); try { //INSERT YOUR CODE HERE - Using the specification given on Federal //You will need to study how Manitoba is being implemented TaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS categories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1 TaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS categories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2 TaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS categories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3 TaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS categories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4 TaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS categories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5 } catch( Exception e ) {} return categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Canada() {\n\n //Initialize the array \n provinces = new String[NUM_PROVINCES][NUM_NAMES];\n\n // Set the elements in the array \n provinces[BC][NAME_OF_PROVINCE] = \"British Columbia\";\n provinces[BC][NAME_OF_CAPITAL_CITY] = \"Victoria\";\n provinces[BC][NAME_OF_BIGGEST_CITY] = \"Vancouver\";\n provinces[PE][NAME_OF_PROVINCE] = \"Prince Edward Island\";\n provinces[PE][NAME_OF_CAPITAL_CITY] = \"Charlottetown\";\n provinces[PE][NAME_OF_BIGGEST_CITY] = \"Charlottetown\";\n provinces[SK][NAME_OF_PROVINCE] = \"Saskatchewan\";\n provinces[SK][NAME_OF_CAPITAL_CITY] = \"Regina\";\n provinces[SK][NAME_OF_BIGGEST_CITY] = \"Saskatoon\";\n provinces[AB][NAME_OF_PROVINCE] = \"Alberta\";\n provinces[AB][NAME_OF_CAPITAL_CITY] = \"Edmonton\";\n provinces[AB][NAME_OF_BIGGEST_CITY] = \"Calgary\";\n provinces[NL][NAME_OF_PROVINCE] = \"Newfoundland and Labrador\";\n provinces[NL][NAME_OF_CAPITAL_CITY] = \"St. John's\";\n provinces[NL][NAME_OF_BIGGEST_CITY] = \"St. John's\";\n provinces[YK][NAME_OF_PROVINCE] = \"Yukon\";\n provinces[YK][NAME_OF_CAPITAL_CITY] = \"WhiteHorse\";\n provinces[YK][NAME_OF_BIGGEST_CITY] = \"Whitehorse\";\n provinces[NV][NAME_OF_PROVINCE] = \"Nunavut\";\n provinces[NV][NAME_OF_CAPITAL_CITY] = \"Iqaluit\";\n provinces[NV][NAME_OF_BIGGEST_CITY] = \"Iqaluit\";\n provinces[NT][NAME_OF_PROVINCE] = \"Northwest Territories\";\n provinces[NT][NAME_OF_CAPITAL_CITY] = \"Yellowknife\";\n provinces[NT][NAME_OF_BIGGEST_CITY] = \"Yellowknife\";\n provinces[ON][NAME_OF_PROVINCE] = \"Ontario\";\n provinces[ON][NAME_OF_CAPITAL_CITY] = \"Toronto\";\n provinces[ON][NAME_OF_BIGGEST_CITY] = \"Toronto\";\n provinces[QC][NAME_OF_PROVINCE] = \"Quebec\";\n provinces[QC][NAME_OF_CAPITAL_CITY] = \"Quebec City\";\n provinces[QC][NAME_OF_BIGGEST_CITY] = \"Montreal\";\n provinces[NS][NAME_OF_PROVINCE] = \"Nova Scotia\";\n provinces[NS][NAME_OF_CAPITAL_CITY] = \"Halifax\";\n provinces[NS][NAME_OF_BIGGEST_CITY] = \"Halifax\";\n provinces[NB][NAME_OF_PROVINCE] = \"New Brunswick\";\n provinces[NB][NAME_OF_CAPITAL_CITY] = \"Fredericton\";\n provinces[NB][NAME_OF_BIGGEST_CITY] = \"Saint John\";\n provinces[MB][NAME_OF_PROVINCE] = \"Manitoba\";\n provinces[MB][NAME_OF_CAPITAL_CITY] = \"Winnipeg\";\n provinces[MB][NAME_OF_BIGGEST_CITY] = \"Winnipeg\";\n }", "public static List<Category> getCategorysofProvince(Province province){\n\t\treturn CategoryDAO.getCategorysofProvince(province);\n\t}", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "public void displayAllProvinceInfo() {\n \n for(int i = 0; i < provinces.length; i++) {\n\n \n if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null && \n provinces[i][NAME_OF_CAPITAL_CITY].equalsIgnoreCase(provinces[i][NAME_OF_BIGGEST_CITY])) {\n System.out.println(\"The capital city of \" + provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" + provinces[i][NAME_OF_CAPITAL_CITY] + \", and it is also the largest city.\");\n \n }\n else if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null) {\n System.out.println(\"The capital city of \" +provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" +provinces[i][NAME_OF_CAPITAL_CITY] + \", but the largest city is \" \n +provinces[i][NAME_OF_BIGGEST_CITY] + \".\");\n }\n \n }\n}", "public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Map<Integer, TaxCategory> alberta() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10, 0, 131220); // Tax Category 1 for Alberta\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12,131220.01, 157464); // Tax Category 2 for Alberta\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13, 157464.01, 209952); // Tax Category 3 for Alberta\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(14, 209952.01, 314928); // Tax Category 4 for Alberta\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(15, 314928.01, 10000000); // Tax Category 5 for Alberta\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public Vector<Site> getCities(){\n return cities;\n }", "public Cgg_veh_categoria(){}", "public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }", "public MapInfo getAllCovidCasesMapinfo() {\n GeoJsonGenerator generator = new GeoJsonGenerator();\n return generator.getAllMapInfo(getMapParamsOfMany(covidDataRepository.findAll()));\n }", "public static void main(String[] args) {\n TypedQuery<Object[]> query = em.createQuery(\n \"SELECT COUNT(p), p.location.city FROM RegularCustomer p WHERE p.location.province = :province GROUP BY p.location.city\", Object[].class);\n List<Object[]> res1 = query.setParameter(\"province\", \"Jawa Barat\").getResultList();\n for (Object[] r : res1) {\n System.out.println(\"Count: \" + r[0] + \", City: \" + r[1]);\n }\n em.close();\n emf.close();\n }", "public String getCapitalCityOf(String province) {\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null && \n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_CAPITAL_CITY];\n }\n\n }\n return null;\n }", "public static Map<Integer, TaxCategory> ontario() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public BoroughContestObjects createBoroughContestInOslo() {\n\t\tBoroughContestObjects objects = new BoroughContestObjects();\n\n\t\tobjects.nbNoLocale = getNbNoLocale();\n\t\tobjects.adminUserData = createUserDataForAdministrator(objects.nbNoLocale);\n\t\tobjects.electionEvent = createElectionEvent(objects.adminUserData, objects.nbNoLocale);\n\n\t\tcreateAreas(objects.electionEvent, objects.nbNoLocale);\n\t\tcopyRolesFromAdminEvent(objects.electionEvent);\n\t\tsetMvAreaOnUserData(objects.adminUserData, backend.getMvAreaRepository().findSingleByPath(AreaPath.from(ELECTION_EVENT_ID)));\n\n\t\tobjects.electionGroup = createElectionGroup(objects.adminUserData, objects.electionEvent);\n\t\tobjects.election = createElection(objects.adminUserData, objects.electionGroup);\n\t\tList<NewlyCreatedContest> newlyCreatedContests = createContests(objects.adminUserData, objects.election);\n\t\tobjects.registerNewlyCreatedContests(newlyCreatedContests);\n\n\t\tMvArea osloMunicipality = backend.getMvAreaRepository().findSingleByPath(OSLO_MUNICIPALITY_AREA_PATH);\n\t\tMvArea kampenPollingDistrict = backend.getMvAreaRepository().findSingleByPath(KAMPEN_SKOLE_AREA_PATH);\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, osloMunicipality, ReportingUnitTypeId.VALGSTYRET, \"Oslo\");\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, kampenPollingDistrict, ReportingUnitTypeId.STEMMESTYRET, \"Kampen skole\");\n\n\t\tobjects.opptellingsansvarligUserData = createOpptellingsansvarligUserData(objects.nbNoLocale, objects.electionEvent);\n\n\t\tParty arbeiderpartiet = createArbeiderpartiet(objects.adminUserData, objects.electionEvent);\n\n\t\tcreateBallotsAndAffiliations(objects.contestIdToContestMap, arbeiderpartiet, objects.nbNoLocale, objects.adminUserData, 2);\n\n\t\tcreateElectionDay(ELECTION_DAY_1, objects.electionEvent, objects.adminUserData);\n\t\tcreateElectionDay(ELECTION_DAY_2, objects.electionEvent, objects.adminUserData);\n\n\t\tcreateAntallStemmesedlerLagtTilSide(objects, newlyCreatedContests, osloMunicipality);\n\n\t\treturn objects;\n\t}", "private Map<String, Integer> getPuntuationCat(List<Point> points, Trial trial){\n\t\t\n\t\t//Categoria master40\n\t\tMap<String, Integer> puntuation = setPuntuation(points, this.getMaster(trial.getId(), 40));\n\t\t \n\t\t//Categoria master30\n\t\tMap<String, Integer> puntuationMaster30 = setPuntuation(points, this.getMaster(trial.getId(), 30));\n\t\t//unir los dos maps\n\t\tpuntuationMaster30.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t//Categoria master20\n\t\tMap<String, Integer> puntuationMaster20 = setPuntuation(points, this.getMaster(trial.getId(), 20));\n\t\t//unir los dos maps\n\t\tpuntuationMaster20.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t\n\t\treturn puntuation;\n\t}", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "@Override\n public String toString() {\n return getCounty();\n }", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "List<RegionalClassifierEntity> getItsListOfRegions();", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "@Override\n public String toString() {\n return \"Province = \" + getProvince() + \"\\nCity = \" + getCity() + \"\\nDescription = \" + getDescription();\n }", "public void populateAllCountries(SolrGazetteer gaz) {\n // SolrGazetteer has full Country metadata, like\n // GeonamesUtility lists offical countries (with TZ, region, aliases, codes)\n // SolrGazetteer lists more aliases/name variants.\n // So have Map( variant =&gt; Country ), where Country is official one.\n //\n allCountries = new HashMap<>();\n\n // Gather 'Official names'\n for (Country C : countries.getCountries()) {\n // NAME: 'United States of America'\n allCountries.put(C.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(C.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(C.CC_ISO3.toLowerCase(), C);\n }\n\n // Gather name variants from anything that looks like PCLI or PCLI* in\n // gazetteer:\n //\n for (String cc : gaz.getCountries().keySet()) {\n Country alt = gaz.getCountries().get(cc);\n Country C = countries.getCountry(cc);\n // NAME: 'United States of America'\n allCountries.put(alt.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(alt.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(alt.CC_ISO3.toLowerCase(), C);\n for (String a : alt.getAliases()) {\n // Aliases: 'U.S.A', 'US of A', 'America', etc.\n //\n allCountries.put(a.toLowerCase(), C);\n }\n }\n }", "public Long getProvinceCitiesCode() {\n return provinceCitiesCode;\n }", "public static Map<Integer, TaxCategory> saskatchewan() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public CountyStationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public String getCorpProvince() {\n return corpProvince;\n }", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public List getZonasRegion(String feriadoRegion);", "@Override\r\n\tpublic Cage[] getCages() {\n\t\treturn null;\r\n\t}", "public static Map<Integer, TaxCategory> federal() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public ResponseDTO getRegionProvinceCityList() {\n ResponseDTO dto = new ResponseDTO();\n List<Region> list = regionBiz.selectRegionProvinceCityList();\n dto.setCode(ResponseCode.CommonCode.OK.v());\n dto.setMsg(ResponseCode.CommonCode.OK.c());\n dto.setData(list);\n return dto;\n }", "public final void c() throws AMapException {\n if (this.f != null) {\n at atVar = new at(this.i, \"\");\n atVar.a(this.i);\n List list = (List) atVar.c();\n if (this.c != null) {\n this.f.a((List<OfflineMapProvince>) list);\n }\n synchronized (this.c) {\n Iterator<OfflineMapProvince> it = this.f.a().iterator();\n while (it.hasNext()) {\n Iterator<OfflineMapCity> it2 = it.next().getCityList().iterator();\n while (it2.hasNext()) {\n OfflineMapCity next = it2.next();\n for (al next2 : this.c) {\n if (next.getPinyin().equals(next2.getPinyin())) {\n String version = next2.getVersion();\n if (next2.getState() != 4 || d.length() <= 0 || !b(d, version)) {\n next2.setCity(next.getCity());\n next2.setUrl(next.getUrl());\n next2.setAdcode(next.getAdcode());\n next2.setVersion(next.getVersion());\n next2.setSize(next.getSize());\n next2.setCode(next.getCode());\n next2.setJianpin(next.getJianpin());\n next2.setPinyin(next.getPinyin());\n } else {\n next2.j();\n next2.setUrl(next.getUrl());\n }\n }\n }\n }\n }\n }\n }\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "public HashMap<ContinentName, CountryName[]> getContinents() { return continents; }", "public void setCorpProvince(String corpProvince) {\n this.corpProvince = corpProvince;\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "private long censusColapsed(ConstituentsAddressNode crt, int[]neighborhoods) throws P2PDDSQLException {\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:censusColapsed: start\");\n\t\tlong result = 0;\n\t\tif((crt==null)||(crt.n_data==null)) return 0;\n\t\tlong n_ID = crt.n_data.neighborhoodID;\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:censusColapsed: start nID=\"+n_ID);\n\t\tif(n_ID <= 0) return 0;\n\t\t\n\t\tString sql_c =\n\t\t\t\"SELECT \"+table.constituent.neighborhood_ID+\n\t\t\t\" FROM \"+table.constituent.TNAME+\n\t\t\t\" WHERE \"+table.constituent.neighborhood_ID+\"=?;\";\n\t\tArrayList<ArrayList<Object>> c = Application.db.select(sql_c, new String[]{n_ID+\"\"}, DEBUG);\n\t\tresult = c.size();\n\t\t\n\t\t\n\t\tString sql_n =\n\t\t\t\"SELECT \"+table.neighborhood.neighborhood_ID+\n\t\t\t\" FROM \"+table.neighborhood.TNAME+\n\t\t\t\" WHERE \"+table.neighborhood.parent_nID+\"=?;\";\n\t\tArrayList<ArrayList<Object>> n = Application.db.select(sql_n, new String[]{n_ID+\"\"}, DEBUG);\n\t\tneighborhoods[0] += n.size();\n\t\t\n\t\tHashSet<String> visited = new HashSet<String>();\n\t\tvisited.add(\"\"+n_ID);\n\t\tfor(int k=0; k<n.size(); k++) {\n\t\t\tif(!running) return 0;\n\t\t\tresult += censusHiddenNeighborhoods(Util.lval(n.get(k).get(0), -1), visited);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "public static String [] getCities(){\n\t\tString [] s = new String [cities.length]; \n\t\tfor (int i = 0; i < cities.length; i++)\n\t\t{\n\t\t\ts[i] = cities[i].getCity();\n\t\t}\n\t\treturn s;\n\t}", "void fetchCountryInformation();", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "public Integer getProvince() {\n return province;\n }", "public Integer getProvince() {\n return province;\n }", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "public Contestant(String n, String c){\n\t\tname = n;\n \tcountry = c;\n\t\tage = 18;\n\t\ttalents = new String[3];\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tProvaCollezioni pc = new ProvaCollezioni();\n\t\t\n\t\tpc.spesa.add(\"latte\");\n\t\tpc.spesa.add(\"pane\");\n\t\tpc.spesa.add(\"biscotti\");\n\t\tpc.spesa.add(\"olio\");\n\t\tpc.spesa.add(\"biscotti\");\n\t\t\n\n\t\tSystem.out.println(pc.spesa.size());\n\t\t\n\t\tfor (String voce : pc.spesa) {\n\t\t\tpc.spesaFiltrata.add(voce);\n\t\t\tpc.spesaOrdinata.add(voce);\n\t\t}\n\n\t\tSystem.out.println(pc.spesaFiltrata.size());\n\t\tfor (String string : pc.spesaOrdinata) {\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\t\n\t\tMap<String, String> regioni = new TreeMap<>();\n\t\t\n\t\tregioni.put(\"Piemonte\", \"Torino\");\n\t\tregioni.put(\"Lombardia\", \"Milano\");\n\t\tregioni.put(\"Toscana\", \"Firenze\");\n\t\tregioni.put(\"Puglia\", \"Bari\");\n\t\t\n\t\tSystem.out.println(regioni.size());\n\t\t\n\t\tSystem.out.println(regioni.get(\"Piemonte\"));\n\t\t\n\t\tSystem.out.println(regioni.keySet());\n\t\t\n\t\tSystem.out.println(regioni.values());\n\t\t\n//\t\tfor (String regione : regioni.keySet()) {\n//\t\t\tSystem.out.println(\"Il capoluogo della regione \" \n//\t\t\t\t\t\t\t+ regione \n//\t\t\t\t\t\t\t+ \" è: \" \n//\t\t\t\t\t\t\t+ regioni.get(regione));\n//\t\t}\n//\t\t\n\t\t\n\t\tfor (Entry<String, String> regione : regioni.entrySet()) {\n\t\t\tSystem.out.print(\"Il capoluogo della regione \" + regione.getKey());\n\t\t\tSystem.out.println(\" è: \" + regione.getValue());\n\t\t\tSystem.out.println(regione);\n\t\t}\n\t\t\n\t\t\n\t}", "public int getNumCities() {\n \t\treturn cities;\n \t}", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getAllProvince() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"H_PROVINCE_FB.getAllProvince\");\r\n\t}", "public ArrayList<City> getDiscPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.District, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" ORDER BY city.District, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> DiscPop = new ArrayList<>();\n System.out.println(\"11. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n DiscPop.add(cty);\n }\n return DiscPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"11. Failed to get city details\");\n return null;\n }\n }", "public Integer getCyrs() {\r\n return cyrs;\r\n }", "public void getCities(Integer province_id) {\n App.getInstance().getApiInterface().getCities(province_id,Constants.APPJSON).enqueue(new Callback<List<CityList>>() {\n @Override\n public void onResponse(Call<List<CityList>> call, final Response<List<CityList>> response) {\n if (response.isSuccessful()) {\n final Realm realm = Realm.getDefaultInstance();\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n realm.delete(CityList.class);\n realm.copyToRealmOrUpdate(response.body());\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n realm.close();\n }\n }, new Realm.Transaction.OnError() {\n @Override\n public void onError(Throwable error) {\n realm.close();\n error.printStackTrace();\n getView().showAlert(error.getLocalizedMessage());\n }\n });\n } else {\n getView().showAlert(\"Server Error\");\n }\n }\n\n @Override\n public void onFailure(Call<List<CityList>> call, Throwable t) {\n t.printStackTrace();\n getView().showAlert(t.getLocalizedMessage());\n }\n });\n }", "public void read_india_states() throws IOException {\r\n\t\tString line = \"\";\r\n\t\tString splitBy = \",\";\r\n\t\tString path = \".\\\\src\\\\main\\\\java\\\\com\\\\covidProject\\\\covid19\\\\Datasets\\\\Indian Cities Database.csv\";\r\n\t\tHashMap<String, List<String>> state_city = new HashMap<>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// parsing a CSV file into BufferedReader class constructor\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\r\n\t\t\twhile ((line = br.readLine()) != null) // returns a Boolean value\r\n\t\t\t{\r\n\t\t\t\tString[] info = line.split(splitBy); // use comma as separator\r\n\t\t\t\tString City = info[0].toLowerCase();\r\n\t\t\t\tString State = info[5].toLowerCase();\r\n\r\n\t\t\t\tif (state_city.get(State) == null) {\r\n\t\t\t\t\tList<String> temp_list = new ArrayList<>();\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tList<String> temp_list = state_city.get(State);\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tList<Document> list = new ArrayList<Document>();\r\n\t\t\t\r\n\t\t\t//Initialize country\r\n\t\t\tCovidCountry countryDoc = new CovidCountry();\r\n\t\t\tcountryDoc.setName(\"India\");\r\n\t\t\t\r\n\t\t\t//Initialize state list\r\n\t\t\tList<CovidState> states_list = new ArrayList<>();\r\n\t\t\t\r\n\t\t\tfor (Map.Entry<String, List<String>> entry : state_city.entrySet()) {\r\n\t\t\t\t\r\n\t\t\t\t//get state and cities from the map we created \r\n\t\t\t\tString state = entry.getKey();\r\n\t\t\t\tList<String> cities = entry.getValue();\r\n\r\n\t\t\t\tList<CovidSubCity> city_list = new ArrayList<>();\r\n\r\n\t\t\t\t//Cities are created before states.\r\n\t\t\t\tfor (String city : cities) {\r\n\t\t\t\t\tCovidCity covidCity = new CovidCity(city,state,countryDoc.getName());\r\n\t\t\t\t\tthis.covidCityRepository.save(covidCity);\r\n\t\t\t\t\tCovidSubCity subCity = new CovidSubCity(city,covidCity.getId());\r\n\t\t\t\t\tcity_list.add(subCity);\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\t//create state\r\n\t\t\t\tCovidState covidState = new CovidState(state,city_list);\r\n\t\t\t\t//this.covidStateRepository.save(covidState);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstates_list.add(covidState);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcountryDoc.setStates(states_list);\r\n\t\t\tthis.covidCountryRepository.save(countryDoc);\r\n\t\t\t\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public Province getLivingProvince() {\n return livingProvince;\n }", "private long census(ConstituentsAddressNode crt) throws P2PDDSQLException {\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start\");\n\t\tif((crt==null)||(crt.n_data==null)){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: end no ID\");\n\t\t\treturn 0;\n\t\t}\n\t\tlong n_ID = crt.n_data.neighborhoodID;\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID);\n\t\tif(n_ID <= 0){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID+\" abandon\");\t\t\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t\n\t\tlong result = 0;\n\t\tint neighborhoods[] = {0};\n\t\t\n\t\tif(crt.isColapsed()){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: this is colapsed\");\n\t\t\tresult = censusColapsed(crt, neighborhoods);\n\t\t}else{\n\t\t\tfor(int k=0; k<crt.children.length; k++) {\n\t\t\t\tif(!running){\n\t\t\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID+\" abandon request\");\t\t\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\tConstituentsNode child = crt.children[k];\n\t\t\t\tif(child instanceof ConstituentsAddressNode) {\n\t\t\t\t\tresult += census((ConstituentsAddressNode)child);\n\t\t\t\t\tneighborhoods[0]++;\n\t\t\t\t}\n\t\t\t\tif(child instanceof ConstituentsIDNode)\n\t\t\t\t\tresult ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcrt.neighborhoods = neighborhoods[0];\n\t\tcrt.location.inhabitants = (int)result;\n\t\tcrt.location.censusDone = true;\n\t\t\n\t\tannounce(crt);\n\t\t\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:censusColapsed: start nID=\"+n_ID+\" got=\"+result);\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "public ArrayList<Country> getRegionPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS dRegion, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dRegion \"; //population of people in each region\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\" 24. The population of people, people living in cities, and people not living in cities in each REGION.\");\n System.out.println(\" Region | Region Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Region = rset.getString(\"dRegion\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + ((cCity.Population * 100) / (cnt.Population)) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"24. Failed to get region populations\");\n return null;\n }\n }", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "public Cgg_veh_categoria(\n\t\tString inCvctg_codigo,\n\t\tString inCgg_cvctg_codigo,\n\t\tString inCvctg_nombre,\n\t\tString inCvctg_observacion,\n\t\tboolean inCvctg_estado,\n\t\tString inCvctg_usuario_insert,\n\t\tString inCvctg_usuario_update\n\t){\n\t\tthis.setCVCTG_CODIGO(inCvctg_codigo);\n\t\tthis.setCGG_CVCTG_CODIGO(inCgg_cvctg_codigo);\n\t\tthis.setCVCTG_NOMBRE(inCvctg_nombre);\n\t\tthis.setCVCTG_OBSERVACION(inCvctg_observacion);\n\t\tthis.setCVCTG_ESTADO(inCvctg_estado);\n\t\tthis.setCVCTG_USUARIO_INSERT(inCvctg_usuario_insert);\n\t\tthis.setCVCTG_USUARIO_UPDATE(inCvctg_usuario_update);\n\t}", "public static void main(String[] args) {\nString [][] cars= {\n\t\t{\"Dodge\",\"Ford\",\"Chevrolet\"},\n\t\t{\"Mercedes-Benz\",\"BMW\",\"Audi\"},\n\t\t{\"Kia\", \"Hyundai\",\"Renault\"}\t\n};\n\n\nfor (String[] origin:cars) {\n\tfor (String title:origin) {\n\t\tSystem.out.println(title+\" \");\n\t}\n}\n\n/* Task2\n*Create an array of countries: north america countries,\n*south america countries, europe countries,\n*asian countries, african countries. \n*Then print all values from that array using\n*2 different loops and calculate how many total\n*countries been stored.\n*/\n\n\tString[][] countries= {\n\t\t\t{\"Virginia\",\"Texas\",\"Florida\"},\n\t\t\t{\"Chile\",\"Argentina\",\"Brazil\"},\n\t\t\t{\"Ukriane\",\"Germany\",\"France\"},\n\t\t\t{\"Tunisia\",\"Ghana\",\"Kenya\"}\t\n\t};\t\n\tint count=0;\n\tfor (String[] country:countries) {\n\t\tfor (String keshvar:country) {\n\t\t\tSystem.out.print(keshvar+\" \");\n\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println();\n\t}\n\tSystem.out.println(\"Total= \"+count);\n}", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public SystemRegionExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "int getStamina();", "public void setLivingProvince(Province livingProvince) {\n this.livingProvince = livingProvince;\n }", "int getIndividualStamina();", "private void getCityHotels(String tag) {\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCurrencyCode(userDTO.getCurrency());\n hotelListingRequest.setLanguageCode(userDTO.getLanguage());\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setPageNumber(1);\n hotelListingRequest.setPageSize(10);\n\n\n if (tag.equals(\"noRooms\")) {\n\n hotelListingRequest.setCityId(cityId); // for sold out hotels.. set popularity and descending order.\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n } else {\n\n hotelListingRequest.setCityId(Long.parseLong(destination.getKey())); // regular flow.. getting cityId and areaId from destination.\n\n UserDTO.getUserDTO().setCityName(destination.getDestinationName());\n // here check whether category is city search otherwise areaWise search\n if (destination.getCategory().equals(\"City\")) {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n\n } else {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"area\");\n hotelListingRequest.setSortByArea(0);\n }\n\n\n }\n\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n kidsAgeArrayList = new ArrayList<>();\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelListingRequest.setOccupancy(occupancyDtoArrayList);\n }\n FiltersRequestDto filtersRequestDto = new FiltersRequestDto();\n filtersRequestDto.setAmenityIds(null);\n filtersRequestDto.setAreaIds(null);\n filtersRequestDto.setHotelId(null);\n filtersRequestDto.setCategoryIds(null);\n filtersRequestDto.setChainIds(null);\n filtersRequestDto.setMaxPrice(0.00);\n filtersRequestDto.setMinPrice(0.00);\n filtersRequestDto.setTripAdvisorRatings(null);\n filtersRequestDto.setStarRatings(null);\n hotelListingRequest.setFilters(filtersRequestDto);\n\n request = new Gson().toJson(hotelListingRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n\n showDialog();\n\n hotelSearchPresenter.getHotelListInfo(Constant.API_URL + Constant.HOTELLISTING, request, context);\n\n\n } else {\n\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n\n }", "public List<Cvcategory> findAllCvcategories();", "private Map<String, Map<String, City>> getCountryCityMap() {\n return countryService.findAll().stream()\n .collect(toMap(Country::getName,\n country -> country.getCities().stream()\n .collect(toMap(City::getName,\n city -> city))));\n }", "private static void readOhioRailRegions (ResourceBundle appRb, int[] countyFips) {\n\n logger.info(\"Reading Ohio Rail Regions\");\n TableDataSet railRegions = fafUtils.importTable(appRb.getString(\"rail.zone.definition\"));\n int highestFips = fafUtils.getHighestVal(countyFips);\n\n railRegionReference = new String[highestFips + 1];\n for (int row = 1; row <= railRegions.getRowCount(); row++) {\n int fips = (int) railRegions.getValueAt(row, \"fips\");\n String reg = railRegions.getStringValueAt(row, \"ohioRailRegion\");\n railRegionReference[fips] = reg;\n }\n listOfRailRegions = fafUtils.getUniqueListOfValues(railRegionReference);\n }", "private void cargarProvincias() {\n ArrayList<Provincia> provincias = new ArrayList<>();\n try {\n provincias = new Provincia().listarProvincias();\n if (!provincias.isEmpty()) {\n for (int i = 0; i < provincias.size(); i++) {\n ProvinciasjComboBox.addItem(provincias.get(i).getNombreProvincia());\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al cargar las provincias\");\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "@Override\n public List<Map<String, Object>> getCityList(Map<String, Object> params)\n {\n return advertisementMapper.getCityList(params);\n }", "public boolean affordCity() {\n \t\treturn (FREE_BUILD || cities < MAX_CITIES\n \t\t\t\t&& getResources(Type.GRAIN) >= 2 && getResources(Type.ORE) >= 3);\n \t}", "RoomType getCostCategory();", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "@Test\n public void getCities()\n {\n List<City> cities = new ArrayList<>();\n Map<City, List<Road>> networkEmpty = new HashMap<>();\n Country countryEmpty = new Country(\"CountryEmpty\", networkEmpty);\n assertTrue(countryEmpty.getCities().size()==0);\n assertEquals(cities,countryEmpty.getCities());\n //Sorted list returned.\n cities = new ArrayList<>(country1.getNetwork().keySet());\n Collections.sort(cities);\n assertEquals(cities,country1.getCities());\n }", "public Long getProvinceagent() {\n return provinceagent;\n }", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "public String getCounty() {\r\n return county;\r\n }", "public String getCounty()\n {\n \treturn county;\n }", "public ArrayList<Country> getContinentPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n //population of people in each CONTINENT\n String strSelect =\n \" SELECT DISTINCT(country.Continent) AS dContinent, SUM(DISTINCT country.Population) AS coPopulation, SUM(city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dContinent\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\"23. The population of people, people living in cities, and people not living in cities in each CONTINENT.\");\n System.out.println(\" Continent | Continent Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while (rset.next())\n {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Continent = rset.getString(\"dContinent\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Continent + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population*100)/(cnt.Population))) + \"%\" + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - ((cCity.Population * 100) / (cnt.Population)))+ \"%\");\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"23. Failed to get continent populations\");\n\n return null;\n }\n }", "@PostConstruct\r\n public void getCountriesKeysAndNamesAtApplicationStartUp() {\r\n ViewsController.countries = new HashMap<>();\r\n Object object = restTemplate.getForObject(\"https://api.covid19tracking.narrativa.com/api/countries\", Object.class);\r\n new HashMap<>();\r\n if (object != null) {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n Country data = objectMapper.convertValue(object, Country.class);\r\n for (Country_ country : data.getCountries()) {\r\n ViewsController.countries.put(country.getId(), country.getName());\r\n }\r\n }\r\n }", "private Map<String, Integer> getContinentEnrichment(PersonActivity in) {\n\t\tList<String> places = in.getCategoryKeys(CategoryType.PLACE);\n\t\tMap<String, Integer> continents = places.stream().map(place -> countryContinentRelation.get(place))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn continents;\n\t}", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }" ]
[ "0.6466224", "0.5946207", "0.5733753", "0.56985515", "0.5683437", "0.56398255", "0.56335425", "0.5563681", "0.5545393", "0.55076116", "0.54455703", "0.54143333", "0.53950596", "0.53531754", "0.5351783", "0.5335687", "0.53112805", "0.5305879", "0.5301339", "0.5245435", "0.52081215", "0.51976657", "0.5180689", "0.5174558", "0.5174558", "0.51733357", "0.51593006", "0.5142176", "0.51016223", "0.50989103", "0.50963426", "0.5096274", "0.50822175", "0.50822175", "0.50820106", "0.5081444", "0.50801736", "0.5078846", "0.5062393", "0.50441647", "0.50439304", "0.50439304", "0.50439304", "0.50332034", "0.50328296", "0.50305927", "0.5029249", "0.50220424", "0.50155216", "0.5004553", "0.50009835", "0.49972618", "0.49883914", "0.49837065", "0.49837065", "0.4977621", "0.4952909", "0.49508703", "0.49383187", "0.4934041", "0.4930253", "0.49233145", "0.49233145", "0.4921841", "0.4914812", "0.49094173", "0.49085155", "0.4906055", "0.4889256", "0.48872313", "0.48794204", "0.4877724", "0.48739547", "0.48711792", "0.4863228", "0.48626712", "0.48568237", "0.48501703", "0.4842927", "0.48425135", "0.4841049", "0.48396656", "0.4839166", "0.48340443", "0.48323214", "0.48165682", "0.48162764", "0.48141557", "0.4808938", "0.48028064", "0.4797106", "0.47964272", "0.47928178", "0.47917905", "0.47891566", "0.47869664", "0.47787866", "0.47773808", "0.47703567", "0.4770006" ]
0.6280555
1
declares the catgeroies for the province of Ontario
public static Map<Integer, TaxCategory> ontario() { HashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>(); try { //INSERT YOUR CODE HERE - Using the specification given on Federal //You will need to study how Manitoba is being implemented TaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON categories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1 TaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON categories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2 TaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON categories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3 TaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON categories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4 TaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON categories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5 } catch( Exception e ) {} return categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Category> getCategorysofProvince(Province province){\n\t\treturn CategoryDAO.getCategorysofProvince(province);\n\t}", "public Canada() {\n\n //Initialize the array \n provinces = new String[NUM_PROVINCES][NUM_NAMES];\n\n // Set the elements in the array \n provinces[BC][NAME_OF_PROVINCE] = \"British Columbia\";\n provinces[BC][NAME_OF_CAPITAL_CITY] = \"Victoria\";\n provinces[BC][NAME_OF_BIGGEST_CITY] = \"Vancouver\";\n provinces[PE][NAME_OF_PROVINCE] = \"Prince Edward Island\";\n provinces[PE][NAME_OF_CAPITAL_CITY] = \"Charlottetown\";\n provinces[PE][NAME_OF_BIGGEST_CITY] = \"Charlottetown\";\n provinces[SK][NAME_OF_PROVINCE] = \"Saskatchewan\";\n provinces[SK][NAME_OF_CAPITAL_CITY] = \"Regina\";\n provinces[SK][NAME_OF_BIGGEST_CITY] = \"Saskatoon\";\n provinces[AB][NAME_OF_PROVINCE] = \"Alberta\";\n provinces[AB][NAME_OF_CAPITAL_CITY] = \"Edmonton\";\n provinces[AB][NAME_OF_BIGGEST_CITY] = \"Calgary\";\n provinces[NL][NAME_OF_PROVINCE] = \"Newfoundland and Labrador\";\n provinces[NL][NAME_OF_CAPITAL_CITY] = \"St. John's\";\n provinces[NL][NAME_OF_BIGGEST_CITY] = \"St. John's\";\n provinces[YK][NAME_OF_PROVINCE] = \"Yukon\";\n provinces[YK][NAME_OF_CAPITAL_CITY] = \"WhiteHorse\";\n provinces[YK][NAME_OF_BIGGEST_CITY] = \"Whitehorse\";\n provinces[NV][NAME_OF_PROVINCE] = \"Nunavut\";\n provinces[NV][NAME_OF_CAPITAL_CITY] = \"Iqaluit\";\n provinces[NV][NAME_OF_BIGGEST_CITY] = \"Iqaluit\";\n provinces[NT][NAME_OF_PROVINCE] = \"Northwest Territories\";\n provinces[NT][NAME_OF_CAPITAL_CITY] = \"Yellowknife\";\n provinces[NT][NAME_OF_BIGGEST_CITY] = \"Yellowknife\";\n provinces[ON][NAME_OF_PROVINCE] = \"Ontario\";\n provinces[ON][NAME_OF_CAPITAL_CITY] = \"Toronto\";\n provinces[ON][NAME_OF_BIGGEST_CITY] = \"Toronto\";\n provinces[QC][NAME_OF_PROVINCE] = \"Quebec\";\n provinces[QC][NAME_OF_CAPITAL_CITY] = \"Quebec City\";\n provinces[QC][NAME_OF_BIGGEST_CITY] = \"Montreal\";\n provinces[NS][NAME_OF_PROVINCE] = \"Nova Scotia\";\n provinces[NS][NAME_OF_CAPITAL_CITY] = \"Halifax\";\n provinces[NS][NAME_OF_BIGGEST_CITY] = \"Halifax\";\n provinces[NB][NAME_OF_PROVINCE] = \"New Brunswick\";\n provinces[NB][NAME_OF_CAPITAL_CITY] = \"Fredericton\";\n provinces[NB][NAME_OF_BIGGEST_CITY] = \"Saint John\";\n provinces[MB][NAME_OF_PROVINCE] = \"Manitoba\";\n provinces[MB][NAME_OF_CAPITAL_CITY] = \"Winnipeg\";\n provinces[MB][NAME_OF_BIGGEST_CITY] = \"Winnipeg\";\n }", "public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> novaScotia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "public static Map<Integer, TaxCategory> alberta() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10, 0, 131220); // Tax Category 1 for Alberta\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12,131220.01, 157464); // Tax Category 2 for Alberta\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13, 157464.01, 209952); // Tax Category 3 for Alberta\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(14, 209952.01, 314928); // Tax Category 4 for Alberta\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(15, 314928.01, 10000000); // Tax Category 5 for Alberta\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "public void displayAllProvinceInfo() {\n \n for(int i = 0; i < provinces.length; i++) {\n\n \n if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null && \n provinces[i][NAME_OF_CAPITAL_CITY].equalsIgnoreCase(provinces[i][NAME_OF_BIGGEST_CITY])) {\n System.out.println(\"The capital city of \" + provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" + provinces[i][NAME_OF_CAPITAL_CITY] + \", and it is also the largest city.\");\n \n }\n else if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null) {\n System.out.println(\"The capital city of \" +provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" +provinces[i][NAME_OF_CAPITAL_CITY] + \", but the largest city is \" \n +provinces[i][NAME_OF_BIGGEST_CITY] + \".\");\n }\n \n }\n}", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> federal() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "public BoroughContestObjects createBoroughContestInOslo() {\n\t\tBoroughContestObjects objects = new BoroughContestObjects();\n\n\t\tobjects.nbNoLocale = getNbNoLocale();\n\t\tobjects.adminUserData = createUserDataForAdministrator(objects.nbNoLocale);\n\t\tobjects.electionEvent = createElectionEvent(objects.adminUserData, objects.nbNoLocale);\n\n\t\tcreateAreas(objects.electionEvent, objects.nbNoLocale);\n\t\tcopyRolesFromAdminEvent(objects.electionEvent);\n\t\tsetMvAreaOnUserData(objects.adminUserData, backend.getMvAreaRepository().findSingleByPath(AreaPath.from(ELECTION_EVENT_ID)));\n\n\t\tobjects.electionGroup = createElectionGroup(objects.adminUserData, objects.electionEvent);\n\t\tobjects.election = createElection(objects.adminUserData, objects.electionGroup);\n\t\tList<NewlyCreatedContest> newlyCreatedContests = createContests(objects.adminUserData, objects.election);\n\t\tobjects.registerNewlyCreatedContests(newlyCreatedContests);\n\n\t\tMvArea osloMunicipality = backend.getMvAreaRepository().findSingleByPath(OSLO_MUNICIPALITY_AREA_PATH);\n\t\tMvArea kampenPollingDistrict = backend.getMvAreaRepository().findSingleByPath(KAMPEN_SKOLE_AREA_PATH);\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, osloMunicipality, ReportingUnitTypeId.VALGSTYRET, \"Oslo\");\n\t\tcreateReportingUnit(objects.adminUserData, OSLO_ELECTION_PATH, kampenPollingDistrict, ReportingUnitTypeId.STEMMESTYRET, \"Kampen skole\");\n\n\t\tobjects.opptellingsansvarligUserData = createOpptellingsansvarligUserData(objects.nbNoLocale, objects.electionEvent);\n\n\t\tParty arbeiderpartiet = createArbeiderpartiet(objects.adminUserData, objects.electionEvent);\n\n\t\tcreateBallotsAndAffiliations(objects.contestIdToContestMap, arbeiderpartiet, objects.nbNoLocale, objects.adminUserData, 2);\n\n\t\tcreateElectionDay(ELECTION_DAY_1, objects.electionEvent, objects.adminUserData);\n\t\tcreateElectionDay(ELECTION_DAY_2, objects.electionEvent, objects.adminUserData);\n\n\t\tcreateAntallStemmesedlerLagtTilSide(objects, newlyCreatedContests, osloMunicipality);\n\n\t\treturn objects;\n\t}", "void fetchCountryInformation();", "public String getCapitalCityOf(String province) {\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null && \n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_CAPITAL_CITY];\n }\n\n }\n return null;\n }", "public Cgg_veh_categoria(){}", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "public String getCorpProvince() {\n return corpProvince;\n }", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "@Override\n public String toString() {\n return getCounty();\n }", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "public static Map<Integer, TaxCategory> saskatchewan() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "@Override\n public String toString() {\n return \"Province = \" + getProvince() + \"\\nCity = \" + getCity() + \"\\nDescription = \" + getDescription();\n }", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "public ArrayList<City> getDiscPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.District, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" ORDER BY city.District, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> DiscPop = new ArrayList<>();\n System.out.println(\"11. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n DiscPop.add(cty);\n }\n return DiscPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"11. Failed to get city details\");\n return null;\n }\n }", "private Map<String, Integer> getPuntuationCat(List<Point> points, Trial trial){\n\t\t\n\t\t//Categoria master40\n\t\tMap<String, Integer> puntuation = setPuntuation(points, this.getMaster(trial.getId(), 40));\n\t\t \n\t\t//Categoria master30\n\t\tMap<String, Integer> puntuationMaster30 = setPuntuation(points, this.getMaster(trial.getId(), 30));\n\t\t//unir los dos maps\n\t\tpuntuationMaster30.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t//Categoria master20\n\t\tMap<String, Integer> puntuationMaster20 = setPuntuation(points, this.getMaster(trial.getId(), 20));\n\t\t//unir los dos maps\n\t\tpuntuationMaster20.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t\n\t\treturn puntuation;\n\t}", "public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "public List getZonasRegion(String feriadoRegion);", "private Object getAnomizedCategory() {\r\n\tString categorie = (String) record.get(\"categorie\");\r\n\tif (categorie != null) {\r\n\t switch (categorie) {\r\n\t case \"AD\":\r\n\t case \"CO\":\r\n\t case \"FI\":\r\n\t case \"IBL\":\r\n\t case \"KI\":\r\n\t case \"KL\":\r\n\t case \"VO\":\r\n\t\tbreak;\r\n\t default:\r\n\t\tcategorie = null;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\r\n\treturn categorie;\r\n }", "RoomType getCostCategory();", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setCorpProvince(String corpProvince) {\n this.corpProvince = corpProvince;\n }", "public ArrayList<Country> getACountryPopulation(String region) {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in the world\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS cName, SUM(DISTINCT country.Population) AS coPopulation\" +\n \" FROM country \" +\n \" WHERE country.Name = \" + \"'\" + region + \"'\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n System.out.println(\"29. Population of a country.\");\n System.out.println(\"Country\" + \" | \" + \"Population\");\n ArrayList<Country> country = new ArrayList<Country>();\n while (rset.next()) {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Name = rset.getString(\"cName\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population);\n country.add(cnt);\n }\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"28. Failed to get population of each region\");\n\n return null;\n }\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public ResponseDTO getRegionProvinceCityList() {\n ResponseDTO dto = new ResponseDTO();\n List<Region> list = regionBiz.selectRegionProvinceCityList();\n dto.setCode(ResponseCode.CommonCode.OK.v());\n dto.setMsg(ResponseCode.CommonCode.OK.c());\n dto.setData(list);\n return dto;\n }", "private static void readOhioRailRegions (ResourceBundle appRb, int[] countyFips) {\n\n logger.info(\"Reading Ohio Rail Regions\");\n TableDataSet railRegions = fafUtils.importTable(appRb.getString(\"rail.zone.definition\"));\n int highestFips = fafUtils.getHighestVal(countyFips);\n\n railRegionReference = new String[highestFips + 1];\n for (int row = 1; row <= railRegions.getRowCount(); row++) {\n int fips = (int) railRegions.getValueAt(row, \"fips\");\n String reg = railRegions.getStringValueAt(row, \"ohioRailRegion\");\n railRegionReference[fips] = reg;\n }\n listOfRailRegions = fafUtils.getUniqueListOfValues(railRegionReference);\n }", "public void getCities(Integer province_id) {\n App.getInstance().getApiInterface().getCities(province_id,Constants.APPJSON).enqueue(new Callback<List<CityList>>() {\n @Override\n public void onResponse(Call<List<CityList>> call, final Response<List<CityList>> response) {\n if (response.isSuccessful()) {\n final Realm realm = Realm.getDefaultInstance();\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n realm.delete(CityList.class);\n realm.copyToRealmOrUpdate(response.body());\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n realm.close();\n }\n }, new Realm.Transaction.OnError() {\n @Override\n public void onError(Throwable error) {\n realm.close();\n error.printStackTrace();\n getView().showAlert(error.getLocalizedMessage());\n }\n });\n } else {\n getView().showAlert(\"Server Error\");\n }\n }\n\n @Override\n public void onFailure(Call<List<CityList>> call, Throwable t) {\n t.printStackTrace();\n getView().showAlert(t.getLocalizedMessage());\n }\n });\n }", "public Long getProvinceCitiesCode() {\n return provinceCitiesCode;\n }", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "public static List<Categorias> obtenerCategorias(){\n List<Categorias> categorias = new ArrayList<>();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro\");\n \n ResultSet informacion = c.getResultSet();\n \n try {\n while (informacion.next())\n categorias.add(new Categorias(informacion));\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categorias;\n }", "public MapInfo getAllCovidCasesMapinfo() {\n GeoJsonGenerator generator = new GeoJsonGenerator();\n return generator.getAllMapInfo(getMapParamsOfMany(covidDataRepository.findAll()));\n }", "public ArrayList<Country> getRegionPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n +\" FROM country\"\n +\" GROUP BY country.Region, country.Name, country.Code, country.Continent, country.Capital\"\n +\" ORDER BY country.Region, cPopulation DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"3. All the countries in a REGION organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital);\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"3. Failed to get city details\");\n return null;\n }\n }", "public Integer getProvince() {\n return province;\n }", "public Integer getProvince() {\n return province;\n }", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "public void read_india_states() throws IOException {\r\n\t\tString line = \"\";\r\n\t\tString splitBy = \",\";\r\n\t\tString path = \".\\\\src\\\\main\\\\java\\\\com\\\\covidProject\\\\covid19\\\\Datasets\\\\Indian Cities Database.csv\";\r\n\t\tHashMap<String, List<String>> state_city = new HashMap<>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// parsing a CSV file into BufferedReader class constructor\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\r\n\t\t\twhile ((line = br.readLine()) != null) // returns a Boolean value\r\n\t\t\t{\r\n\t\t\t\tString[] info = line.split(splitBy); // use comma as separator\r\n\t\t\t\tString City = info[0].toLowerCase();\r\n\t\t\t\tString State = info[5].toLowerCase();\r\n\r\n\t\t\t\tif (state_city.get(State) == null) {\r\n\t\t\t\t\tList<String> temp_list = new ArrayList<>();\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tList<String> temp_list = state_city.get(State);\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tList<Document> list = new ArrayList<Document>();\r\n\t\t\t\r\n\t\t\t//Initialize country\r\n\t\t\tCovidCountry countryDoc = new CovidCountry();\r\n\t\t\tcountryDoc.setName(\"India\");\r\n\t\t\t\r\n\t\t\t//Initialize state list\r\n\t\t\tList<CovidState> states_list = new ArrayList<>();\r\n\t\t\t\r\n\t\t\tfor (Map.Entry<String, List<String>> entry : state_city.entrySet()) {\r\n\t\t\t\t\r\n\t\t\t\t//get state and cities from the map we created \r\n\t\t\t\tString state = entry.getKey();\r\n\t\t\t\tList<String> cities = entry.getValue();\r\n\r\n\t\t\t\tList<CovidSubCity> city_list = new ArrayList<>();\r\n\r\n\t\t\t\t//Cities are created before states.\r\n\t\t\t\tfor (String city : cities) {\r\n\t\t\t\t\tCovidCity covidCity = new CovidCity(city,state,countryDoc.getName());\r\n\t\t\t\t\tthis.covidCityRepository.save(covidCity);\r\n\t\t\t\t\tCovidSubCity subCity = new CovidSubCity(city,covidCity.getId());\r\n\t\t\t\t\tcity_list.add(subCity);\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\t//create state\r\n\t\t\t\tCovidState covidState = new CovidState(state,city_list);\r\n\t\t\t\t//this.covidStateRepository.save(covidState);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstates_list.add(covidState);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcountryDoc.setStates(states_list);\r\n\t\t\tthis.covidCountryRepository.save(countryDoc);\r\n\t\t\t\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "public ArrayList<Country> getRegionPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS dRegion, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dRegion \"; //population of people in each region\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\" 24. The population of people, people living in cities, and people not living in cities in each REGION.\");\n System.out.println(\" Region | Region Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Region = rset.getString(\"dRegion\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + ((cCity.Population * 100) / (cnt.Population)) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"24. Failed to get region populations\");\n return null;\n }\n }", "private void createAreas(ElectionEvent electionEvent, Locale locale) {\n\n\t\tCountry norge = new Country(\"47\", \"Norge\", electionEvent);\n\t\tentityManager.persist(norge);\n\n\t\tCountyStatus countyStatusApproved = (CountyStatus) entityManager.createQuery(\"select cs from CountyStatus cs where cs.id = \"\n\t\t\t\t+ (Integer) CountyStatusEnum.APPROVED_CONFIGURATION.id()).getSingleResult();\n\t\tCounty osloFylke = new County(\"03\", \"Oslo\", norge);\n\t\tosloFylke.setLocale(locale);\n\t\tosloFylke.setCountyStatus(countyStatusApproved);\n\t\tentityManager.persist(osloFylke);\n\n\t\tMunicipalityStatus statusApproved = (MunicipalityStatus) entityManager.createQuery(\"select ms from MunicipalityStatus ms where ms.id = \"\n\t\t\t\t+ (Integer) MunicipalityStatusEnum.APPROVED_CONFIGURATION.id()).getSingleResult();\n\n\t\tMunicipality osloKommune = new Municipality(AreaPath.OSLO_MUNICIPALITY_ID, \"Oslo\", osloFylke);\n\t\tosloKommune.setLocale(locale);\n\t\tosloKommune.setMunicipalityStatus(statusApproved);\n\t\tosloKommune.setElectronicMarkoffs(true);\n\t\tosloKommune.setRequiredProtocolCount(true);\n\t\tosloKommune.setTechnicalPollingDistrictsAllowed(true);\n\t\tentityManager.persist(osloKommune);\n\n\t\tBorough bydelGamleOslo = new Borough(\"030101\", \"Gamle Oslo\", osloKommune);\n\t\tbydelGamleOslo.setMunicipality1(false);\n\t\tentityManager.persist(bydelGamleOslo);\n\n\t\tPollingDistrict kampenSkole = new PollingDistrict(\"0103\", \"Kampen skole\", bydelGamleOslo);\n\t\tkampenSkole.setMunicipality(false);\n\t\tkampenSkole.setParentPollingDistrict(false);\n\t\tkampenSkole.setTechnicalPollingDistrict(false);\n\t\tentityManager.persist(kampenSkole);\n\t}", "public Vector<Site> getCities(){\n return cities;\n }", "public ArrayList<City> getPopCityReg() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Region, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Region, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityReg = new ArrayList<>();\n System.out.println(\"9. All the cities in a REGION organised by largest population to smallest.\");\n System.out.println(\"Region | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.Population = rset.getInt(\"Population\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n\n Country cnt = new Country();\n cnt.Region = rset.getString(\"Region\");\n System.out.println(cnt.Region + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityReg.add(cty);\n }\n return PopCityReg;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public controladorCategorias() {\r\n }", "public static void main(String[] args) {\n TypedQuery<Object[]> query = em.createQuery(\n \"SELECT COUNT(p), p.location.city FROM RegularCustomer p WHERE p.location.province = :province GROUP BY p.location.city\", Object[].class);\n List<Object[]> res1 = query.setParameter(\"province\", \"Jawa Barat\").getResultList();\n for (Object[] r : res1) {\n System.out.println(\"Count: \" + r[0] + \", City: \" + r[1]);\n }\n em.close();\n emf.close();\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public HashMap<ContinentName, CountryName[]> getContinents() { return continents; }", "public ArrayList<Country> getContinentPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n //population of people in each CONTINENT\n String strSelect =\n \" SELECT DISTINCT(country.Continent) AS dContinent, SUM(DISTINCT country.Population) AS coPopulation, SUM(city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dContinent\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\"23. The population of people, people living in cities, and people not living in cities in each CONTINENT.\");\n System.out.println(\" Continent | Continent Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while (rset.next())\n {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Continent = rset.getString(\"dContinent\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Continent + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population*100)/(cnt.Population))) + \"%\" + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - ((cCity.Population * 100) / (cnt.Population)))+ \"%\");\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"23. Failed to get continent populations\");\n\n return null;\n }\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "private Map<String, Map<String, City>> getCountryCityMap() {\n return countryService.findAll().stream()\n .collect(toMap(Country::getName,\n country -> country.getCities().stream()\n .collect(toMap(City::getName,\n city -> city))));\n }", "public final void c() throws AMapException {\n if (this.f != null) {\n at atVar = new at(this.i, \"\");\n atVar.a(this.i);\n List list = (List) atVar.c();\n if (this.c != null) {\n this.f.a((List<OfflineMapProvince>) list);\n }\n synchronized (this.c) {\n Iterator<OfflineMapProvince> it = this.f.a().iterator();\n while (it.hasNext()) {\n Iterator<OfflineMapCity> it2 = it.next().getCityList().iterator();\n while (it2.hasNext()) {\n OfflineMapCity next = it2.next();\n for (al next2 : this.c) {\n if (next.getPinyin().equals(next2.getPinyin())) {\n String version = next2.getVersion();\n if (next2.getState() != 4 || d.length() <= 0 || !b(d, version)) {\n next2.setCity(next.getCity());\n next2.setUrl(next.getUrl());\n next2.setAdcode(next.getAdcode());\n next2.setVersion(next.getVersion());\n next2.setSize(next.getSize());\n next2.setCode(next.getCode());\n next2.setJianpin(next.getJianpin());\n next2.setPinyin(next.getPinyin());\n } else {\n next2.j();\n next2.setUrl(next.getUrl());\n }\n }\n }\n }\n }\n }\n }\n }", "private void checkCategoriaInDB(DB db ){\n\t\tString[] catDef = {\"Ambiente\", \"Animali\", \"Arte e Cultura\",\"Elettronica e Tecnologia\", \"Sport\", \"Svago\"};\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tfor(String nomeCat : catDef) {\n\t\t\tlong hashcode = (long)nomeCat.hashCode();\n\t\t\tif(!categorie.containsKey(hashcode))\n\t\t\t\tcategorie.put(hashcode, new Categoria(null ,nomeCat));\n\t\t}\n\t}", "public static ArrayList<CategoryInfo> getCommunities(Document doc) {\n Elements e = doc.select(\"#list_output a\");\n Elements f = doc.select(\"#list_output span\");\n ArrayList<CategoryInfo> result = new ArrayList<CategoryInfo>();\n for (int i = 0; i < e.size(); i++) {\n String cat = e.get(i).text();\n String value = f.get(i).text().replaceAll(\"[\\\\(\\\\)]\", \"\");\n String ref = e.get(i).absUrl(\"href\");\n result.add(new CategoryInfo(cat, value, ref));\n }\n return result;\n }", "private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "String category();", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "private Set<Sector> createSectors() {\n\n // This will contain all the loaded sectors\n Set<Sector> sectors = new HashSet<>();\n\n int[][] colorGrid;\n\n try {\n\n String filePath = ZoneLoader.class.getResource(\n \"/maps/\" + zoneName.getFileName()).getFile();\n\n /* We try to load a Zone from file. It could throw an IOException\n . */\n colorGrid = MapIO.loadMap(filePath);\n\n } catch (IOException e) {\n\n /*\n * IO exception while loading the zone, it should not happen because\n * the user cannot directly insert a fileName but he can only choose\n * them from an enumeration. If there is an IOException then that\n * ZoneName is invalid and the user must select another one.\n */\n LOG.log(Level.SEVERE, \"Error loading Zone: \" + e.toString(), e);\n throw new InvalidZoneException(\n \"IO Exception while loading the Zone from file.\");\n\n }\n\n /* The size of the colorGrid */\n int gridWidth = colorGrid.length;\n int gridHeight = colorGrid[0].length;\n\n for (int col = 0; col < gridWidth; col++) {\n for (int row = 0; row < gridHeight; row++) {\n\n // Create a new CubicCoordinate\n // // !IMPORTANT! we start form (0, 0) // //\n CubicCoordinate coord = CubicCoordinate\n .createFromOddQ(col, row);\n\n // And use it to create a new Sector\n addSectorFromColor(sectors, colorGrid[col][row], coord);\n\n }\n }\n\n return sectors;\n\n }", "google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory();", "String getCategoria();", "public List<CategoriaVO> mostrarCategorias() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<CategoriaVO> resultado = new ArrayList();\n\t\t\tresultado = OwlDAO.obtenerCategorias(mysql);\n\t\t\treturn resultado;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t\treturn null;\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "public void allocateCountries() {\n\t\tmakeDeck() ;\n\t\t\n\t\tint id =0;\n\t\t//Randomly give players 9 country cards, and place 1 army on country\n\t\tfor(int j=0;j<Constants.NUM_PLAYERS;j++) {\n\t\t\tfor (int i=0; i<9;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t\t\n\t\t\t\t\t//Tells user what cards where drawn\n\t\t\t\t\tview.displayString(\"Player \"+(j+1)+\" Drew Card ' \" +deck.get(0).toString()+\"'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set rest of countries to neutrals with 1 army\n\t\tfor(int j=Constants.NUM_PLAYERS;j<6;j++) {\n\t\t\tfor (int i=0; i<6;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else { \n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t}\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t//Adds cards back to deck and shuffles\n\t\tdiscardToDeck() ;\t\t\n\t}", "List<RegionalClassifierEntity> getItsListOfRegions();", "private Map<String, Integer> getContinentEnrichment(PersonActivity in) {\n\t\tList<String> places = in.getCategoryKeys(CategoryType.PLACE);\n\t\tMap<String, Integer> continents = places.stream().map(place -> countryContinentRelation.get(place))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn continents;\n\t}", "public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }", "public CitiesMap(){\r\n\t\tmap=new Graph<City>();\r\n\t}", "public ArrayList<Country> getContinentPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" FROM country\"\n + \" GROUP BY country.Continent, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" ORDER BY country.Continent, cPopulation DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"2. All the countries in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital );\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"2. Failed to get country details\");\n return null;\n }\n }", "public static String [] getCities(){\n\t\tString [] s = new String [cities.length]; \n\t\tfor (int i = 0; i < cities.length; i++)\n\t\t{\n\t\t\ts[i] = cities[i].getCity();\n\t\t}\n\t\treturn s;\n\t}", "private void cargarCmbColores(){\n MapaColores.getMap().forEach((k,v)->cmbColores.getItems().add(k));\n cmbColores.getSelectionModel().selectFirst();\n }", "private void getCityHotels(String tag) {\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCurrencyCode(userDTO.getCurrency());\n hotelListingRequest.setLanguageCode(userDTO.getLanguage());\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setPageNumber(1);\n hotelListingRequest.setPageSize(10);\n\n\n if (tag.equals(\"noRooms\")) {\n\n hotelListingRequest.setCityId(cityId); // for sold out hotels.. set popularity and descending order.\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n } else {\n\n hotelListingRequest.setCityId(Long.parseLong(destination.getKey())); // regular flow.. getting cityId and areaId from destination.\n\n UserDTO.getUserDTO().setCityName(destination.getDestinationName());\n // here check whether category is city search otherwise areaWise search\n if (destination.getCategory().equals(\"City\")) {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n\n } else {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"area\");\n hotelListingRequest.setSortByArea(0);\n }\n\n\n }\n\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n kidsAgeArrayList = new ArrayList<>();\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelListingRequest.setOccupancy(occupancyDtoArrayList);\n }\n FiltersRequestDto filtersRequestDto = new FiltersRequestDto();\n filtersRequestDto.setAmenityIds(null);\n filtersRequestDto.setAreaIds(null);\n filtersRequestDto.setHotelId(null);\n filtersRequestDto.setCategoryIds(null);\n filtersRequestDto.setChainIds(null);\n filtersRequestDto.setMaxPrice(0.00);\n filtersRequestDto.setMinPrice(0.00);\n filtersRequestDto.setTripAdvisorRatings(null);\n filtersRequestDto.setStarRatings(null);\n hotelListingRequest.setFilters(filtersRequestDto);\n\n request = new Gson().toJson(hotelListingRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n\n showDialog();\n\n hotelSearchPresenter.getHotelListInfo(Constant.API_URL + Constant.HOTELLISTING, request, context);\n\n\n } else {\n\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n\n }", "@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRepository.save(categorie);\n\t\t});\n\t}", "@Override\n\tpublic ArrayList<String> getCityList() {\n\t\treturn constantPO.getCityList();\n\t}", "public boolean affordCity() {\n \t\treturn (FREE_BUILD || cities < MAX_CITIES\n \t\t\t\t&& getResources(Type.GRAIN) >= 2 && getResources(Type.ORE) >= 3);\n \t}", "public String getLocationCategory(){\r\n return this.locationCategory;\r\n }", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "public String getCounty()\n {\n \treturn county;\n }", "public String getCounty() {\r\n return county;\r\n }" ]
[ "0.63653964", "0.62388307", "0.6074135", "0.6059744", "0.60134315", "0.59241396", "0.5890205", "0.57346547", "0.56318134", "0.55955863", "0.55878687", "0.55270606", "0.5517225", "0.5475039", "0.5464922", "0.54581726", "0.5447188", "0.5441187", "0.5416171", "0.5391251", "0.5390595", "0.53784263", "0.5359337", "0.53414613", "0.5330083", "0.53270185", "0.53255403", "0.53248876", "0.5295642", "0.5287544", "0.5258409", "0.5237656", "0.52351", "0.5232955", "0.5230987", "0.52270895", "0.52247137", "0.5218855", "0.5207178", "0.5207178", "0.51976466", "0.5196243", "0.51929164", "0.518871", "0.51853913", "0.5183954", "0.5182197", "0.516317", "0.51453304", "0.5145277", "0.5134616", "0.5133007", "0.5133007", "0.51264995", "0.51219374", "0.5120206", "0.51105267", "0.5109038", "0.5105211", "0.50965524", "0.5086492", "0.5082542", "0.5074776", "0.50705326", "0.506637", "0.50635767", "0.5061173", "0.5061173", "0.5060368", "0.5058556", "0.5056606", "0.5049183", "0.5044311", "0.5039458", "0.5039458", "0.5039458", "0.50362736", "0.5027071", "0.5025282", "0.50246805", "0.50145054", "0.49967888", "0.49869552", "0.49847794", "0.49720162", "0.4970071", "0.4966074", "0.49646926", "0.4956448", "0.49526772", "0.49481302", "0.49468887", "0.4944906", "0.4937823", "0.49297893", "0.492574", "0.49171996", "0.49162728", "0.49154255", "0.49119386" ]
0.60329884
4
declares the catgeroies for the province of saskatchewan
public static Map<Integer, TaxCategory> saskatchewan() { HashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>(); try { //INSERT YOUR CODE HERE - Using the specification given on Federal //You will need to study how Manitoba is being implemented TaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK categories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1 TaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK categories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2 TaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK categories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3 } catch( Exception e ) {} return categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Canada() {\n\n //Initialize the array \n provinces = new String[NUM_PROVINCES][NUM_NAMES];\n\n // Set the elements in the array \n provinces[BC][NAME_OF_PROVINCE] = \"British Columbia\";\n provinces[BC][NAME_OF_CAPITAL_CITY] = \"Victoria\";\n provinces[BC][NAME_OF_BIGGEST_CITY] = \"Vancouver\";\n provinces[PE][NAME_OF_PROVINCE] = \"Prince Edward Island\";\n provinces[PE][NAME_OF_CAPITAL_CITY] = \"Charlottetown\";\n provinces[PE][NAME_OF_BIGGEST_CITY] = \"Charlottetown\";\n provinces[SK][NAME_OF_PROVINCE] = \"Saskatchewan\";\n provinces[SK][NAME_OF_CAPITAL_CITY] = \"Regina\";\n provinces[SK][NAME_OF_BIGGEST_CITY] = \"Saskatoon\";\n provinces[AB][NAME_OF_PROVINCE] = \"Alberta\";\n provinces[AB][NAME_OF_CAPITAL_CITY] = \"Edmonton\";\n provinces[AB][NAME_OF_BIGGEST_CITY] = \"Calgary\";\n provinces[NL][NAME_OF_PROVINCE] = \"Newfoundland and Labrador\";\n provinces[NL][NAME_OF_CAPITAL_CITY] = \"St. John's\";\n provinces[NL][NAME_OF_BIGGEST_CITY] = \"St. John's\";\n provinces[YK][NAME_OF_PROVINCE] = \"Yukon\";\n provinces[YK][NAME_OF_CAPITAL_CITY] = \"WhiteHorse\";\n provinces[YK][NAME_OF_BIGGEST_CITY] = \"Whitehorse\";\n provinces[NV][NAME_OF_PROVINCE] = \"Nunavut\";\n provinces[NV][NAME_OF_CAPITAL_CITY] = \"Iqaluit\";\n provinces[NV][NAME_OF_BIGGEST_CITY] = \"Iqaluit\";\n provinces[NT][NAME_OF_PROVINCE] = \"Northwest Territories\";\n provinces[NT][NAME_OF_CAPITAL_CITY] = \"Yellowknife\";\n provinces[NT][NAME_OF_BIGGEST_CITY] = \"Yellowknife\";\n provinces[ON][NAME_OF_PROVINCE] = \"Ontario\";\n provinces[ON][NAME_OF_CAPITAL_CITY] = \"Toronto\";\n provinces[ON][NAME_OF_BIGGEST_CITY] = \"Toronto\";\n provinces[QC][NAME_OF_PROVINCE] = \"Quebec\";\n provinces[QC][NAME_OF_CAPITAL_CITY] = \"Quebec City\";\n provinces[QC][NAME_OF_BIGGEST_CITY] = \"Montreal\";\n provinces[NS][NAME_OF_PROVINCE] = \"Nova Scotia\";\n provinces[NS][NAME_OF_CAPITAL_CITY] = \"Halifax\";\n provinces[NS][NAME_OF_BIGGEST_CITY] = \"Halifax\";\n provinces[NB][NAME_OF_PROVINCE] = \"New Brunswick\";\n provinces[NB][NAME_OF_CAPITAL_CITY] = \"Fredericton\";\n provinces[NB][NAME_OF_BIGGEST_CITY] = \"Saint John\";\n provinces[MB][NAME_OF_PROVINCE] = \"Manitoba\";\n provinces[MB][NAME_OF_CAPITAL_CITY] = \"Winnipeg\";\n provinces[MB][NAME_OF_BIGGEST_CITY] = \"Winnipeg\";\n }", "public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static List<Category> getCategorysofProvince(Province province){\n\t\treturn CategoryDAO.getCategorysofProvince(province);\n\t}", "public static Map<Integer, TaxCategory> novaScotia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> alberta() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10, 0, 131220); // Tax Category 1 for Alberta\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12,131220.01, 157464); // Tax Category 2 for Alberta\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13, 157464.01, 209952); // Tax Category 3 for Alberta\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(14, 209952.01, 314928); // Tax Category 4 for Alberta\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(15, 314928.01, 10000000); // Tax Category 5 for Alberta\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Map<Integer, TaxCategory> federal() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void displayAllProvinceInfo() {\n \n for(int i = 0; i < provinces.length; i++) {\n\n \n if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null && \n provinces[i][NAME_OF_CAPITAL_CITY].equalsIgnoreCase(provinces[i][NAME_OF_BIGGEST_CITY])) {\n System.out.println(\"The capital city of \" + provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" + provinces[i][NAME_OF_CAPITAL_CITY] + \", and it is also the largest city.\");\n \n }\n else if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null) {\n System.out.println(\"The capital city of \" +provinces[i][NAME_OF_PROVINCE].toUpperCase() + \" is \" +provinces[i][NAME_OF_CAPITAL_CITY] + \", but the largest city is \" \n +provinces[i][NAME_OF_BIGGEST_CITY] + \".\");\n }\n \n }\n}", "void fetchCountryInformation();", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public static Map<Integer, TaxCategory> ontario() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "public String getCapitalCityOf(String province) {\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null && \n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_CAPITAL_CITY];\n }\n\n }\n return null;\n }", "public ArrayList<Country> getACountryPopulation(String region) {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in the world\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS cName, SUM(DISTINCT country.Population) AS coPopulation\" +\n \" FROM country \" +\n \" WHERE country.Name = \" + \"'\" + region + \"'\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n System.out.println(\"29. Population of a country.\");\n System.out.println(\"Country\" + \" | \" + \"Population\");\n ArrayList<Country> country = new ArrayList<Country>();\n while (rset.next()) {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Name = rset.getString(\"cName\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population);\n country.add(cnt);\n }\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"28. Failed to get population of each region\");\n\n return null;\n }\n }", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "public ArrayList<Country> getRegionPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n +\" FROM country\"\n +\" GROUP BY country.Region, country.Name, country.Code, country.Continent, country.Capital\"\n +\" ORDER BY country.Region, cPopulation DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"3. All the countries in a REGION organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital);\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"3. Failed to get city details\");\n return null;\n }\n }", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }", "public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }", "public Long getProvinceCitiesCode() {\n return provinceCitiesCode;\n }", "public Integer getProvince() {\n return province;\n }", "public Integer getProvince() {\n return province;\n }", "public static void main(String[] args) {\n TypedQuery<Object[]> query = em.createQuery(\n \"SELECT COUNT(p), p.location.city FROM RegularCustomer p WHERE p.location.province = :province GROUP BY p.location.city\", Object[].class);\n List<Object[]> res1 = query.setParameter(\"province\", \"Jawa Barat\").getResultList();\n for (Object[] r : res1) {\n System.out.println(\"Count: \" + r[0] + \", City: \" + r[1]);\n }\n em.close();\n emf.close();\n }", "public ArrayList<Country> getRegionPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS dRegion, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dRegion \"; //population of people in each region\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\" 24. The population of people, people living in cities, and people not living in cities in each REGION.\");\n System.out.println(\" Region | Region Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Region = rset.getString(\"dRegion\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + ((cCity.Population * 100) / (cnt.Population)) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"24. Failed to get region populations\");\n return null;\n }\n }", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "public ArrayList<City> getPopCityReg() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Region, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Region, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityReg = new ArrayList<>();\n System.out.println(\"9. All the cities in a REGION organised by largest population to smallest.\");\n System.out.println(\"Region | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.Population = rset.getInt(\"Population\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n\n Country cnt = new Country();\n cnt.Region = rset.getString(\"Region\");\n System.out.println(cnt.Region + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityReg.add(cty);\n }\n return PopCityReg;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public final void c() throws AMapException {\n if (this.f != null) {\n at atVar = new at(this.i, \"\");\n atVar.a(this.i);\n List list = (List) atVar.c();\n if (this.c != null) {\n this.f.a((List<OfflineMapProvince>) list);\n }\n synchronized (this.c) {\n Iterator<OfflineMapProvince> it = this.f.a().iterator();\n while (it.hasNext()) {\n Iterator<OfflineMapCity> it2 = it.next().getCityList().iterator();\n while (it2.hasNext()) {\n OfflineMapCity next = it2.next();\n for (al next2 : this.c) {\n if (next.getPinyin().equals(next2.getPinyin())) {\n String version = next2.getVersion();\n if (next2.getState() != 4 || d.length() <= 0 || !b(d, version)) {\n next2.setCity(next.getCity());\n next2.setUrl(next.getUrl());\n next2.setAdcode(next.getAdcode());\n next2.setVersion(next.getVersion());\n next2.setSize(next.getSize());\n next2.setCode(next.getCode());\n next2.setJianpin(next.getJianpin());\n next2.setPinyin(next.getPinyin());\n } else {\n next2.j();\n next2.setUrl(next.getUrl());\n }\n }\n }\n }\n }\n }\n }\n }", "public void setCorpProvince(String corpProvince) {\n this.corpProvince = corpProvince;\n }", "@Override\n public String toString() {\n return getCounty();\n }", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public ArrayList<City> getDiscPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT city.District, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" ORDER BY city.District, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> DiscPop = new ArrayList<>();\n System.out.println(\"11. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new city (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n System.out.println(cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n DiscPop.add(cty);\n }\n return DiscPop;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"11. Failed to get city details\");\n return null;\n }\n }", "public Vector<Site> getCities(){\n return cities;\n }", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "public String getCorpProvince() {\n return corpProvince;\n }", "public ArrayList<Country> getContinentPopulation()\n {\n try\n {\n Statement stmt = con.createStatement();\n\n //population of people in each CONTINENT\n String strSelect =\n \" SELECT DISTINCT(country.Continent) AS dContinent, SUM(DISTINCT country.Population) AS coPopulation, SUM(city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dContinent\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country= new ArrayList<Country>();\n System.out.println(\"23. The population of people, people living in cities, and people not living in cities in each CONTINENT.\");\n System.out.println(\" Continent | Continent Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while (rset.next())\n {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Continent = rset.getString(\"dContinent\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Continent + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population*100)/(cnt.Population))) + \"%\" + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - ((cCity.Population * 100) / (cnt.Population)))+ \"%\");\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"23. Failed to get continent populations\");\n\n return null;\n }\n }", "public void read_india_states() throws IOException {\r\n\t\tString line = \"\";\r\n\t\tString splitBy = \",\";\r\n\t\tString path = \".\\\\src\\\\main\\\\java\\\\com\\\\covidProject\\\\covid19\\\\Datasets\\\\Indian Cities Database.csv\";\r\n\t\tHashMap<String, List<String>> state_city = new HashMap<>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// parsing a CSV file into BufferedReader class constructor\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\r\n\t\t\twhile ((line = br.readLine()) != null) // returns a Boolean value\r\n\t\t\t{\r\n\t\t\t\tString[] info = line.split(splitBy); // use comma as separator\r\n\t\t\t\tString City = info[0].toLowerCase();\r\n\t\t\t\tString State = info[5].toLowerCase();\r\n\r\n\t\t\t\tif (state_city.get(State) == null) {\r\n\t\t\t\t\tList<String> temp_list = new ArrayList<>();\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tList<String> temp_list = state_city.get(State);\r\n\t\t\t\t\ttemp_list.add(City);\r\n\t\t\t\t\tstate_city.put(State, temp_list);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tList<Document> list = new ArrayList<Document>();\r\n\t\t\t\r\n\t\t\t//Initialize country\r\n\t\t\tCovidCountry countryDoc = new CovidCountry();\r\n\t\t\tcountryDoc.setName(\"India\");\r\n\t\t\t\r\n\t\t\t//Initialize state list\r\n\t\t\tList<CovidState> states_list = new ArrayList<>();\r\n\t\t\t\r\n\t\t\tfor (Map.Entry<String, List<String>> entry : state_city.entrySet()) {\r\n\t\t\t\t\r\n\t\t\t\t//get state and cities from the map we created \r\n\t\t\t\tString state = entry.getKey();\r\n\t\t\t\tList<String> cities = entry.getValue();\r\n\r\n\t\t\t\tList<CovidSubCity> city_list = new ArrayList<>();\r\n\r\n\t\t\t\t//Cities are created before states.\r\n\t\t\t\tfor (String city : cities) {\r\n\t\t\t\t\tCovidCity covidCity = new CovidCity(city,state,countryDoc.getName());\r\n\t\t\t\t\tthis.covidCityRepository.save(covidCity);\r\n\t\t\t\t\tCovidSubCity subCity = new CovidSubCity(city,covidCity.getId());\r\n\t\t\t\t\tcity_list.add(subCity);\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\t//create state\r\n\t\t\t\tCovidState covidState = new CovidState(state,city_list);\r\n\t\t\t\t//this.covidStateRepository.save(covidState);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstates_list.add(covidState);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcountryDoc.setStates(states_list);\r\n\t\t\tthis.covidCountryRepository.save(countryDoc);\r\n\t\t\t\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "private HashMap<String, Integer> getDataBaseCountryPop(Connection conn) {\n // SQL SELECT Query\n String SELECT_COUNTRY_POPULATION = \"SELECT cy.CountryName, SUM(c.Population) as TotalPopulation FROM City c\\n\" +\n \"JOIN State s ON c.StateId = s.StateId\\n\" +\n \"JOIN Country cy ON s.CountryId = cy.CountryId\\n\" +\n \"GROUP BY cy.CountryName\";\n\n HashMap<String, Integer> countryPopMap = new HashMap<String, Integer>();\n\n PreparedStatement statement = null;\n\n try {\n statement = conn.prepareStatement(SELECT_COUNTRY_POPULATION);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n String countryName = rs.getString(\"CountryName\");\n int population = rs.getInt(\"TotalPopulation\");\n countryPopMap.put(countryName, population);\n }\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n// for (String s : countryPopMap.keySet()) {\n// System.out.println(s + \" \" + countryPopMap.get(s));\n// }\n// System.out.println(\"Number of Countries in DB: \" + countryPopMap.size());\n\n return countryPopMap;\n }", "public ArrayList<Country> getContinentPop() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT SUM(country.Population) AS cPopulation, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" FROM country\"\n + \" GROUP BY country.Continent, country.Code, country.Name, country.Continent, country.Region, country.Capital\"\n + \" ORDER BY country.Continent, cPopulation DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<Country> Country = new ArrayList<>();\n System.out.println(\"2. All the countries in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Code | Name | Continent | Region | Population | Capital\");\n while (rset.next()) {\n // Create new Country (to store in database)\n Country cnt = new Country();\n cnt.Code = rset.getString(\"Code\");\n cnt.Name = rset.getString(\"Name\");\n cnt.Continent = rset.getString(\"Continent\");\n cnt.Region = rset.getString(\"Region\");\n cnt.Population = rset.getInt(\"cPopulation\");\n cnt.Capital = rset.getInt(\"Capital\");\n\n System.out.println(cnt.Code + \" | \" + cnt.Name + \" | \" + cnt.Continent + \" | \" + cnt.Region + \" | \" + cnt.Population + \" | \" + cnt.Capital );\n Country.add(cnt);\n }\n return Country;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"2. Failed to get country details\");\n return null;\n }\n }", "private Map<String, Integer> getPuntuationCat(List<Point> points, Trial trial){\n\t\t\n\t\t//Categoria master40\n\t\tMap<String, Integer> puntuation = setPuntuation(points, this.getMaster(trial.getId(), 40));\n\t\t \n\t\t//Categoria master30\n\t\tMap<String, Integer> puntuationMaster30 = setPuntuation(points, this.getMaster(trial.getId(), 30));\n\t\t//unir los dos maps\n\t\tpuntuationMaster30.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t//Categoria master20\n\t\tMap<String, Integer> puntuationMaster20 = setPuntuation(points, this.getMaster(trial.getId(), 20));\n\t\t//unir los dos maps\n\t\tpuntuationMaster20.forEach((k, v) -> {\n\t\t\tpuntuation.merge(k, v, (v1, v2) -> v1 += v2);\n\t\t});\n\t\t\n\t\t\n\t\treturn puntuation;\n\t}", "public Cgg_veh_categoria(){}", "public void getCities(Integer province_id) {\n App.getInstance().getApiInterface().getCities(province_id,Constants.APPJSON).enqueue(new Callback<List<CityList>>() {\n @Override\n public void onResponse(Call<List<CityList>> call, final Response<List<CityList>> response) {\n if (response.isSuccessful()) {\n final Realm realm = Realm.getDefaultInstance();\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n realm.delete(CityList.class);\n realm.copyToRealmOrUpdate(response.body());\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n realm.close();\n }\n }, new Realm.Transaction.OnError() {\n @Override\n public void onError(Throwable error) {\n realm.close();\n error.printStackTrace();\n getView().showAlert(error.getLocalizedMessage());\n }\n });\n } else {\n getView().showAlert(\"Server Error\");\n }\n }\n\n @Override\n public void onFailure(Call<List<CityList>> call, Throwable t) {\n t.printStackTrace();\n getView().showAlert(t.getLocalizedMessage());\n }\n });\n }", "@Override\n public String toString() {\n return \"Province = \" + getProvince() + \"\\nCity = \" + getCity() + \"\\nDescription = \" + getDescription();\n }", "public List getZonasRegion(String feriadoRegion);", "List<City> getCityList(Integer countryId)throws EOTException;", "public ResponseDTO getRegionProvinceCityList() {\n ResponseDTO dto = new ResponseDTO();\n List<Region> list = regionBiz.selectRegionProvinceCityList();\n dto.setCode(ResponseCode.CommonCode.OK.v());\n dto.setMsg(ResponseCode.CommonCode.OK.c());\n dto.setData(list);\n return dto;\n }", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "private void getCityHotels(String tag) {\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCurrencyCode(userDTO.getCurrency());\n hotelListingRequest.setLanguageCode(userDTO.getLanguage());\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setPageNumber(1);\n hotelListingRequest.setPageSize(10);\n\n\n if (tag.equals(\"noRooms\")) {\n\n hotelListingRequest.setCityId(cityId); // for sold out hotels.. set popularity and descending order.\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n } else {\n\n hotelListingRequest.setCityId(Long.parseLong(destination.getKey())); // regular flow.. getting cityId and areaId from destination.\n\n UserDTO.getUserDTO().setCityName(destination.getDestinationName());\n // here check whether category is city search otherwise areaWise search\n if (destination.getCategory().equals(\"City\")) {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n\n } else {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"area\");\n hotelListingRequest.setSortByArea(0);\n }\n\n\n }\n\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n kidsAgeArrayList = new ArrayList<>();\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelListingRequest.setOccupancy(occupancyDtoArrayList);\n }\n FiltersRequestDto filtersRequestDto = new FiltersRequestDto();\n filtersRequestDto.setAmenityIds(null);\n filtersRequestDto.setAreaIds(null);\n filtersRequestDto.setHotelId(null);\n filtersRequestDto.setCategoryIds(null);\n filtersRequestDto.setChainIds(null);\n filtersRequestDto.setMaxPrice(0.00);\n filtersRequestDto.setMinPrice(0.00);\n filtersRequestDto.setTripAdvisorRatings(null);\n filtersRequestDto.setStarRatings(null);\n hotelListingRequest.setFilters(filtersRequestDto);\n\n request = new Gson().toJson(hotelListingRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n\n showDialog();\n\n hotelSearchPresenter.getHotelListInfo(Constant.API_URL + Constant.HOTELLISTING, request, context);\n\n\n } else {\n\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n\n }", "public ArrayList<Country> getCountryPopulation() {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in each COUNTRY\n String strSelect =\n \" SELECT DISTINCT(country.Name) AS dCountry, SUM(DISTINCT country.Population) AS coPopulation, SUM(DISTINCT city.Population) AS cPopulation\" +\n \" FROM country JOIN city ON country.Code = city.CountryCode\" +\n \" WHERE country.Code = city.CountryCode\" +\n \" GROUP BY dCountry \"; // population of people in each country\n\n ResultSet rset = stmt.executeQuery(strSelect);\n\n ArrayList<Country> country = new ArrayList<Country>();\n System.out.println(\"25. The population of people, people living in cities, and people not living in cities in each COUNTRY.\");\n System.out.println(\" Country | Country Pop | City Pop | City Pop % | Not a City Pop | Not a City Pop %\");\n while(rset.next())\n {\n Country cnt = new Country();\n cnt.Name = rset.getString(\"dCountry\");\n cnt.Population = rset.getLong(\"coPopulation\");\n\n City cCity = new City();\n cCity.Population = rset.getLong(\"cPopulation\");\n\n System.out.println(cnt.Name + \" | \" + cnt.Population + \" | \" + cCity.Population + \" | \" + (((cCity.Population * 100) / (cnt.Population))) + \" | \" + (cnt.Population - cCity.Population) + \" | \" + (100 - (cCity.Population * 100) / (cnt.Population)));\n\n country.add(cnt);\n }\n System.out.println(\"\\n\");\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"25. Failed to get country populations\");\n\n return null;\n }\n }", "public void populateAllCountries(SolrGazetteer gaz) {\n // SolrGazetteer has full Country metadata, like\n // GeonamesUtility lists offical countries (with TZ, region, aliases, codes)\n // SolrGazetteer lists more aliases/name variants.\n // So have Map( variant =&gt; Country ), where Country is official one.\n //\n allCountries = new HashMap<>();\n\n // Gather 'Official names'\n for (Country C : countries.getCountries()) {\n // NAME: 'United States of America'\n allCountries.put(C.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(C.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(C.CC_ISO3.toLowerCase(), C);\n }\n\n // Gather name variants from anything that looks like PCLI or PCLI* in\n // gazetteer:\n //\n for (String cc : gaz.getCountries().keySet()) {\n Country alt = gaz.getCountries().get(cc);\n Country C = countries.getCountry(cc);\n // NAME: 'United States of America'\n allCountries.put(alt.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(alt.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(alt.CC_ISO3.toLowerCase(), C);\n for (String a : alt.getAliases()) {\n // Aliases: 'U.S.A', 'US of A', 'America', etc.\n //\n allCountries.put(a.toLowerCase(), C);\n }\n }\n }", "private Map<String, Map<String, City>> getCountryCityMap() {\n return countryService.findAll().stream()\n .collect(toMap(Country::getName,\n country -> country.getCities().stream()\n .collect(toMap(City::getName,\n city -> city))));\n }", "public void allocateCountries() {\n\t\tmakeDeck() ;\n\t\t\n\t\tint id =0;\n\t\t//Randomly give players 9 country cards, and place 1 army on country\n\t\tfor(int j=0;j<Constants.NUM_PLAYERS;j++) {\n\t\t\tfor (int i=0; i<9;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t\t\n\t\t\t\t\t//Tells user what cards where drawn\n\t\t\t\t\tview.displayString(\"Player \"+(j+1)+\" Drew Card ' \" +deck.get(0).toString()+\"'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set rest of countries to neutrals with 1 army\n\t\tfor(int j=Constants.NUM_PLAYERS;j<6;j++) {\n\t\t\tfor (int i=0; i<6;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else { \n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t}\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t//Adds cards back to deck and shuffles\n\t\tdiscardToDeck() ;\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getAllProvince() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"H_PROVINCE_FB.getAllProvince\");\r\n\t}", "public static String [] getCities(){\n\t\tString [] s = new String [cities.length]; \n\t\tfor (int i = 0; i < cities.length; i++)\n\t\t{\n\t\t\ts[i] = cities[i].getCity();\n\t\t}\n\t\treturn s;\n\t}", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "public void setProvinceCitiesCode(Long provinceCitiesCode) {\n this.provinceCitiesCode = provinceCitiesCode;\n }", "public HashMap<ContinentName, CountryName[]> getContinents() { return continents; }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "public MapInfo getAllCovidCasesMapinfo() {\n GeoJsonGenerator generator = new GeoJsonGenerator();\n return generator.getAllMapInfo(getMapParamsOfMany(covidDataRepository.findAll()));\n }", "void countries_init() throws SQLException {\r\n countries = DatabaseQuerySF.get_all_stations();\r\n }", "public void setLocationProvince(String locationProvince) {\n this.locationProvince = locationProvince;\n }", "public ArrayList<City> getADistrictPopulation(String district)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.District), SUM(city.Population) AS cPopulation \"\n + \"FROM city \"\n + \"WHERE city.District = \" + \"'\" + district +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> city = new ArrayList<City>();\n System.out.println(\"30. Population of a district.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.District = rset.getString(\"District\");\n cCty.Population = rset.getInt(\"cPopulation\");\n\n System.out.println(cCty.District + \" | \" + cCty.Population);\n city.add(cCty);\n }\n System.out.println(\"\\n\");\n return city;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "public ArrayList<Country> getARegionPopulation(String region) {\n try {\n Statement stmt = con.createStatement();\n\n //population of people in a region\n String strSelect =\n \" SELECT DISTINCT(country.Region) AS cRegion, SUM(DISTINCT country.Population) AS coPopulation\" +\n \" FROM country \" +\n \" WHERE country.Region = \" + \"'\" + region + \"'\";\n\n ResultSet rset = stmt.executeQuery(strSelect);\n System.out.println(\"28. Population of a region.\");\n System.out.println(\"Region\" + \" | \" + \"Population\");\n ArrayList<Country> country = new ArrayList<Country>();\n while (rset.next()) {\n Country cnt = new Country();\n cnt.Population = rset.getLong(\"coPopulation\");\n cnt.Region = rset.getString(\"cRegion\");\n\n System.out.println(cnt.Region + \" | \" + cnt.Population);\n country.add(cnt);\n }\n return country;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"28. Failed to get population of each region\");\n\n return null;\n }\n }", "public CitiesMap(){\r\n\t\tmap=new Graph<City>();\r\n\t}", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "@Override\n\tpublic void selectDataGridByProvince(PageInfo pageInfo) {\n\t\t Page<Map<String, Object>> page = new Page<Map<String, Object>>(pageInfo.getNowpage(), pageInfo.getSize());\n\t page.setOrderByField(pageInfo.getSort());\n\t page.setAsc(pageInfo.getOrder().equalsIgnoreCase(\"asc\"));\n\t List<Map<String, Object>> list = dataMapper.selectDataPageByProvince(page, pageInfo.getCondition());\n\t pageInfo.setRows(list);\n\t pageInfo.setTotal(page.getTotal());\n\t}", "@Test\n public void getCities()\n {\n List<City> cities = new ArrayList<>();\n Map<City, List<Road>> networkEmpty = new HashMap<>();\n Country countryEmpty = new Country(\"CountryEmpty\", networkEmpty);\n assertTrue(countryEmpty.getCities().size()==0);\n assertEquals(cities,countryEmpty.getCities());\n //Sorted list returned.\n cities = new ArrayList<>(country1.getNetwork().keySet());\n Collections.sort(cities);\n assertEquals(cities,country1.getCities());\n }", "RoomType getCostCategory();", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "private Map<String, Integer> getContinentEnrichment(PersonActivity in) {\n\t\tList<String> places = in.getCategoryKeys(CategoryType.PLACE);\n\t\tMap<String, Integer> continents = places.stream().map(place -> countryContinentRelation.get(place))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn continents;\n\t}", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public List initProvince(Map map) {\n\t\treturn apMessageDao.initProvince(map);\r\n\t}", "public void setLivingProvince(Province livingProvince) {\n this.livingProvince = livingProvince;\n }", "private void cargarCmbColores(){\n MapaColores.getMap().forEach((k,v)->cmbColores.getItems().add(k));\n cmbColores.getSelectionModel().selectFirst();\n }", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }" ]
[ "0.6586832", "0.63052255", "0.6252129", "0.61811906", "0.6130527", "0.6126996", "0.5822282", "0.5773484", "0.5748911", "0.5714712", "0.56988645", "0.5696274", "0.56897396", "0.56339675", "0.5616804", "0.5616804", "0.5593846", "0.5593846", "0.5548635", "0.5548635", "0.5548635", "0.55099046", "0.54796785", "0.5460722", "0.5455992", "0.54462785", "0.544235", "0.5437017", "0.5423659", "0.54001725", "0.5373351", "0.5363004", "0.5361866", "0.5361866", "0.5360813", "0.53593045", "0.5353814", "0.5343251", "0.5327084", "0.53136295", "0.5310847", "0.5302284", "0.52785504", "0.5268527", "0.5265356", "0.5261652", "0.5258273", "0.5240152", "0.523063", "0.523063", "0.52238625", "0.5207735", "0.52069503", "0.51975477", "0.51974666", "0.51963496", "0.5185744", "0.5180056", "0.517526", "0.5161691", "0.51613677", "0.5140586", "0.51373833", "0.5125615", "0.51197624", "0.5099228", "0.5091673", "0.50865066", "0.50798625", "0.5076812", "0.5066978", "0.506131", "0.50553364", "0.50490326", "0.50490326", "0.50490326", "0.5034079", "0.5024114", "0.50198156", "0.5019075", "0.5015912", "0.50145733", "0.50135523", "0.50074583", "0.5003065", "0.50021994", "0.49971882", "0.49950543", "0.49871153", "0.49870995", "0.49870995", "0.49870995", "0.49870995", "0.49870995", "0.49870995", "0.49870995", "0.49710137", "0.49688604", "0.49650094", "0.49567503" ]
0.5974329
6
declares the catgeroies for the federal government
public static Map<Integer, TaxCategory> federal() { HashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>(); try { //INSERT YOUR CODE HERE - Using the specification given on Federal //You will need to study how Manitoba is being implemented TaxCategory cat1 = new TaxCategory(15, 0, 49020); //Tax Category 1 for federal categories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1 TaxCategory cat2 = new TaxCategory( 20.5, 49020.01, 98040); //Tax Category 2 for federal categories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2 TaxCategory cat3 = new TaxCategory(26, 98040.01, 151978); //Tax Category 3 for federal categories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3 TaxCategory cat4 = new TaxCategory(29, 151978.01, 216511); //Tax Category 4 for federal categories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4 TaxCategory cat5 = new TaxCategory(33, 216511.01, 10000000); //Tax Category 5 for federal categories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5 } catch( Exception e ) {} return categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> alberta() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10, 0, 131220); // Tax Category 1 for Alberta\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12,131220.01, 157464); // Tax Category 2 for Alberta\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13, 157464.01, 209952); // Tax Category 3 for Alberta\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(14, 209952.01, 314928); // Tax Category 4 for Alberta\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(15, 314928.01, 10000000); // Tax Category 5 for Alberta\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public void setAll()\r\n\t{\r\n\t\tthis.coderVersion = CaTIESProperties.getValue(\"caties.coder.version\");\r\n\t\tthis.gateHome = CaTIESProperties.getValue(\"caties.gate.home\");\r\n\t\tthis.creoleUrlName = CaTIESProperties.getValue(\"caties.creole.url.name\");\r\n\t\tthis.caseInsensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.insensitive.gazetteer.url.name\");\r\n\t\tthis.caseSensitiveGazetteerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.case.sensitive.gazetteer.url.name\");\r\n\t\tthis.sectionChunkerUrlName = CaTIESProperties.getValue(\"caties.section.chunker.url.name\");\r\n\t\tthis.conceptFilterUrlName = CaTIESProperties.getValue(\"caties.concept.filter.url.name\");\r\n\t\tthis.negExUrlName = CaTIESProperties.getValue(\"caties.neg.ex.url.name\");\r\n\t\tthis.conceptCategorizerUrlName = CaTIESProperties\r\n\t\t\t\t.getValue(\"caties.concept.categorizer.url.name\");\r\n\t}", "public static Map<Integer, TaxCategory> novaScotia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(8.79, 0, 29590.00); //Tax Category 1 for NS\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.95, 29590.01, 59180.00); //Tax Category 2 for NS\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.67, 59180.01, 93000.00); //Tax Category 3 for NS\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.50, 93000.01, 150000.00); //Tax Category 4 for NS\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(21.00, 150000.01, 10000000); //Tax Category 15for NS\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public static Map<Integer, TaxCategory> ontario() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.05, 0, 44740); //Tax Category 1 for ON\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(9.15, 44740.01, 89482);//Tax Category 2 for ON\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(11.16, 89482.01, 150000);//Tax Category 3 for ON\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.16, 150000.01, 220000);//Tax Category 4 for ON\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(13.16, 220000.01, 10000000);//Tax Category 5 for ON\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public Cattery()\r\n {\r\n businessName = \"unknown business\";\r\n catCollection = new ArrayList<Cat>();\r\n }", "public static Map<Integer, TaxCategory> saskatchewan() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.5, 0, 45677.00); //Tax Category 1 for SK\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.50, 45677.01, 130506.00);//Tax Category 2 for SK\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(13.16, 130506.01, 10000000);//Tax Category 3 for SK\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "protected Double getCAProfessionnel() {\n List<Facture> facturesProfessionnel = this.factureProfessionnelList;\n Double ca = 0.0; \n for(Facture f : facturesProfessionnel )\n ca = ca + f.getTotalHT();\n \n return ca ; \n \n }", "public void setCouncil(String council) {\n this.council = council;\n }", "public double getTotalCO2Emissions() {\n totalCO2Emissions = 0;\n Food foodItem;\n\n // Loop through the ArrayList with the 5 Food Categories\n // For each Food Category, loop through the food items and get the CO2e and timesPerWeek\n // Add up the total CO2 emissions for every food item\n // Returns the total CO2 emissions per year\n for(int foodCatIndex=0; foodCatIndex<foodBank.size(); foodCatIndex++){\n foodlist = foodBank.get(foodCatIndex);\n for(int foodNameIndex=0; foodNameIndex<foodlist.getSize(); foodNameIndex++){\n foodItem = foodlist.getFood(foodNameIndex);\n totalCO2Emissions += foodItem.getCo2PerServing() * foodItem.getTimesPerWeek();\n }\n }\n return totalCO2Emissions * NUM_WEEKS_IN_YEAR;\n }", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "public String getCouncil() {\n return council;\n }", "@Override\n protected void setRetributionsAndBeneficiaries(){\n // Example for picking the \"chosen ones\" to be benefited from my generous policy\n // First we empty the bag in case we don't want to keep old beneficiaries\n beneficiaries.clear();\n // Pick 3 random territories from my subordinates\n if (myTerritory.getSubordinates().numObjs>=1){\n beneficiaries.add(myTerritory.getSubordinates().get((new Random()).nextInt(1)));\n\n // Now assign the corresponding amounts of soldiers to each beneficiary\n // Since there are three of them, we need to re-instantiate the retributions array to one of size 3\n retributions = new double[myTerritory.getSubordinates().numObjs];\n // Lets transfer equal amounts of soldiers, which will add up half of my soldiers stock\n retributions[myTerritory.getSubordinates().numObjs-1] = (myTerritory.getSoldiers())/(myTerritory.getSubordinates().numObjs);\n\n }\n\n // This procedure opdated the beneficiaries list and the retribution array, which gives to the system\n // the necessary info about the redistributive policy of the lords\n }", "public boolean affordCity() {\n \t\treturn (FREE_BUILD || cities < MAX_CITIES\n \t\t\t\t&& getResources(Type.GRAIN) >= 2 && getResources(Type.ORE) >= 3);\n \t}", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }", "public void getCovid()\n\t{\n\t\tsetHealthStatus(HealthStatus.INFLECTED);\n\t\tdeathTimer = new PlayPauseTimer((int) (100*(1 - world.getMortalityRate())), new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjustDie();\n\t\t\t\ttimerList.remove(deathTimer);\n\t\t\t}\n\t\t\t\n\t\t}, world.getRefreshTime());\n\t\ttimerList.add(deathTimer);\n\t\t\n\t\thospitalNeed = new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tworld.getHospital().acceptIndividual();\n\t\t\t\t\tgoHospital();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tgoHospitalTimer = new PlayPauseTimer(25, new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thospitalNeed.start();\n\t\t\t\ttimerList.remove(goHospitalTimer);\n\t\t\t}\n\t\t\t\n\t\t}, world.getRefreshTime());\n\t\ttimerList.add(goHospitalTimer);\n\t\tworld.infect();\n\t}", "public SortedSet<Concert> getActiveConcerts()//\t\t--> Returnerer alle aktive konserter registrert på dette lokalet.\n\t{\n\t\tGregorianCalendar calender = (GregorianCalendar)Calendar.getInstance();\n\t\tcalender = Utilities.getCleanDate(calender);\n\n\t\tConcert c = new Concert(calender);\n\t\tSortedSet<Concert> active = concerts.tailSet(c);\n\n\t\tif(active.isEmpty())\n\t\t\treturn null;\n\n\t\treturn active;\n\t}", "int getEducationsCount();", "public FacBuyerExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Cattery(String businessName)\r\n {\r\n setBusinessName( businessName);\r\n catCollection = new ArrayList <Cat>();\r\n }", "public void createDefaultCurnits(ConfigurableApplicationContext applicationContext) {\n\t\tIELO airbagsCurnit = createAirbagsCurnit();\n\t\trep.addELO(airbagsCurnit);\n\t\tsaveToLocalDb(applicationContext, airbagsCurnit);\n\t\t\n//\t\tLearningObject chemicalReactionsCurnit = createChemicalReactionsCurnit();\n//\t\trep.addELO(chemicalReactionsCurnit);\n//\t\tsaveToLocalDb(applicationContext, chemicalReactionsCurnit);\n\t\t\n//\t\tCurnitProxy meiosisCurnit = createMeiosisCurnit();\n//\t\trep.addELO(meiosisCurnit);\n//\t\tsaveToLocalDb(applicationContext, meiosisCurnit);\n//\t\t\n//\t\t\n//\t\tCurnitProxy hydrogenCarsCurnit = createHydrogenCarsCurnit();\n//\t\trep.addELO(hydrogenCarsCurnit);\n//\t\tsaveToLocalDb(applicationContext, hydrogenCarsCurnit);\n//\t\t\n//\t\tCurnitProxy globalWarmingCurnit = createGlobalWarmingCurnit();\n//\t\trep.addELO(globalWarmingCurnit);\n//\t\tsaveToLocalDb(applicationContext, globalWarmingCurnit);\n//\t\t\n//\t\t\n//\t\tCurnitProxy thermodynamicsCurnit = createThermodynamicsCurnit();\n//\t\trep.addELO(thermodynamicsCurnit);\n//\t\tsaveToLocalDb(applicationContext, thermodynamicsCurnit);\n//\n//\t\tCurnitProxy diyCurnit = createDiyCurnit();\n//\t\trep.addELO(diyCurnit);\n//\t\tsaveToLocalDb(applicationContext, diyCurnit);\n\n\t}", "public Collection pesquisaParaCriarDebitosCategoriaNaoGerados() throws ErroRepositorioException{\n\t\treturn null;\n\t}", "private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }", "public void printRemainingCouncilors(CouncillorsPool pool);", "public List<SermCit> getCits(){\n return citations;\n }", "public void visitCashChanger( DevCat devCat ) {}", "void fetchHolidayRentalHousesData();", "@Override\r\n\tpublic Cage[] getCages() {\n\t\treturn null;\r\n\t}", "public void printCouncil(int i, Council council);", "HashSet<CategoryBudget> getCategoryBudgets() throws NoUserSelectedException;", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "private void getAnimalCategory() {\n mProgressBar.setVisibility(View.VISIBLE);\n VolleyInvokeWebService volleyClient = new VolleyInvokeWebService(this, VolleyInvokeWebService.JSON_TYPE_REQUEST, this, Request.Method.GET);\n volleyClient.hitWithOutTokenService(Constants.GET_ANIMAL_CATEGORY, null, GET_ANIMAL_CATEGORY_TAG);\n }", "public void visitCashDrawer( DevCat devCat ) {}", "private List<AdhocCustomer> getSearchUniverseSearchAdhocCustomerDataSet() {\n // The initialization of the result list must be done here\n //\n //\n return AdhocCustomer.findAll().collect(Collectors.toList());\n }", "public HashMap<Integer, Element> getCandies() {\n\t\treturn candies;\n\t}", "public ArrayList<Concert> getConcerts(){\n\t\treturn concerts;\n\t}", "private HashMap<String, String> loadDistricts() {\n\t\tList<OrganizationUnitMaster> districts = districtsDao.getAllDistricts();\n\t\tHashMap<String, String> districtReference = new HashMap<String, String>();\n\t\tfor (OrganizationUnitMaster district : districts) {\n\t\t\tlogger.debug(\"Organizational Code \" + district.getOrganizationCode());\n\t\t\tlogger.debug(\"Organizational Name \" + district.getOrganizationName());\n\t\t\tdistrictReference.put(district.getOrganizationCode(), district.getOrganizationName());\n\t\t\t\n\t\t}\n\t\treturn districtReference;\n\t}", "public static Map<Integer, TaxCategory> newBrunswick() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(9.68, 0, 43835); //Tax Category 1 for NewBrunswick\n\t\t\t\tcategories.put( 1, cat1 ); //puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(14.82, 43835.01, 87671); //Tax Category 1 for NewBrunswick\n\t\t\t\tcategories.put( 2, cat2 ); //puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(16.52, 87671.01, 142534); //Tax Category 1 for NewBrunswick\n\t\t\t\tcategories.put( 3, cat3 ); //puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(17.84, 142534.01, 162383); //Tax Category 1 for NewBrunswick\n\t\t\t\tcategories.put( 4, cat4 ); //puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(20.3, 162383.01, 10000000); //Tax Category 1 for NewBrunswick\n\t\t\t\tcategories.put( 5, cat5 ); //puts both the key and the Taxcategory(value) into the hashmap for category 5\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public RegysDateCentExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "void fetchCountryInformation();", "public void allocateCountries() {\n\t\tmakeDeck() ;\n\t\t\n\t\tint id =0;\n\t\t//Randomly give players 9 country cards, and place 1 army on country\n\t\tfor(int j=0;j<Constants.NUM_PLAYERS;j++) {\n\t\t\tfor (int i=0; i<9;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t\t\n\t\t\t\t\t//Tells user what cards where drawn\n\t\t\t\t\tview.displayString(\"Player \"+(j+1)+\" Drew Card ' \" +deck.get(0).toString()+\"'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set rest of countries to neutrals with 1 army\n\t\tfor(int j=Constants.NUM_PLAYERS;j<6;j++) {\n\t\t\tfor (int i=0; i<6;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else { \n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t}\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t//Adds cards back to deck and shuffles\n\t\tdiscardToDeck() ;\t\t\n\t}", "public void populateAllCountries(SolrGazetteer gaz) {\n // SolrGazetteer has full Country metadata, like\n // GeonamesUtility lists offical countries (with TZ, region, aliases, codes)\n // SolrGazetteer lists more aliases/name variants.\n // So have Map( variant =&gt; Country ), where Country is official one.\n //\n allCountries = new HashMap<>();\n\n // Gather 'Official names'\n for (Country C : countries.getCountries()) {\n // NAME: 'United States of America'\n allCountries.put(C.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(C.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(C.CC_ISO3.toLowerCase(), C);\n }\n\n // Gather name variants from anything that looks like PCLI or PCLI* in\n // gazetteer:\n //\n for (String cc : gaz.getCountries().keySet()) {\n Country alt = gaz.getCountries().get(cc);\n Country C = countries.getCountry(cc);\n // NAME: 'United States of America'\n allCountries.put(alt.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(alt.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(alt.CC_ISO3.toLowerCase(), C);\n for (String a : alt.getAliases()) {\n // Aliases: 'U.S.A', 'US of A', 'America', etc.\n //\n allCountries.put(a.toLowerCase(), C);\n }\n }\n }", "public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}", "public List<Contestant> initializeContestants() {\n List<Contestant> contestants = new ArrayList<>();\n addContestants(contestants);\n return contestants;\n }", "public void prepare_local() throws Exception {\n\t\texpenses = new ExpensesCategory();\r\n\t\texpenses.setMenuCode(773);\r\n\r\n\t}", "@Override\r\n\tpublic List<String> getCities() {\n \tList<Note> notes = this.noteRepository.findAll();\r\n \tfor (Note note : notes) {\r\n\t\t\tSystem.out.println(note.getTitle());\r\n\t\t}\r\n\t\treturn hotelBookingDao.getCities();\r\n\t}", "public void chooseFortifyGivers(){\n gameState = GameState.FORTIFYGIVER;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getFortifyGivers());\n notifyObservers();\n }", "public CountyStationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "public void campaign() {\r\n for (int i = 0; i < this.parties.length; i++) {\r\n while (this.parties[i].makeAction(this.constituencies, this.acts)) {}\r\n }\r\n }", "public Cgg_veh_categoria(){}", "public controladorCategorias() {\r\n }", "private CIECADocument updateCoverageCategory(final CIECADocument inDoc, final java.util.logging.Logger mLogger) {\n\t\t\n\t\tif (inDoc != null && inDoc.getCIECA() != null && inDoc.getCIECA().getAssignmentAddRq() != null) {\n\t\t\t\n\t\t\t//\n\t\t\t// <ClaimInfo>/<PolicyInfo>/<CoverageInfo>/<Coverage>/<CoverageCategory>\n\t\t\t//\n\t\t\tfinal ClaimInfoType claimInfo = inDoc.getCIECA().getAssignmentAddRq().getClaimInfo();\n\t\t\tif (claimInfo != null) {\n\t\t\t\tif (claimInfo.isSetPolicyInfo()) {\n\t\t\t\t\tfinal PolicyInfoType policyInfo = claimInfo.getPolicyInfo();\n\t\t\t\t\tif (policyInfo != null) {\n\t\t\t\t\t\tif (policyInfo.isSetCoverageInfo()) {\n\t\t\t\t\t\t\tfinal CoverageInfoType coverageInfo = policyInfo.getCoverageInfo();\n\t\t\t\t\t\t\tif (coverageInfo != null && coverageInfo.sizeOfCoverageArray() > 0) {\n\t\t\t\t\t\t\t\tfinal Coverage coverage = coverageInfo.getCoverageArray(0);\n\t\t\t\t\t\t\t\tif (coverage != null) {\n\t\t\t\t\t\t\t\t\tif (coverage.isSetCoverageCategory()) {\n\t\t\t\t\t\t\t\t if (mLogger.isLoggable(Level.FINE)) {\n\t\t\t\t\t\t\t\t \tmLogger.fine(\"********* BEFORE updateCoverageCategory:: coverage.getCoverageCategory(): [ \" + coverage.getCoverageCategory() + \" ] *********\");\n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t// TypeOfLoss - C maps to G, P maps to A, M maps to D, \n\t\t\t\t\t\t\t\t\t\t// A (Animal) maps to 0 Else no mapping \n\t\t\t\t\t\t\t\t\t\tif (coverage.getCoverageCategory() != null) {\n\t\t\t\t\t\t\t\t\t\t\tfinal String inCoverageCategory = coverage.getCoverageCategory();\n\t\t\t\t\t\t\t\t\t\t\tif (inCoverageCategory.equalsIgnoreCase(\"C\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"G\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"P\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"A\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"M\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"D\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"A\")) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Map A (Animal) to O (Other) - preventing collision with A (Property)\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"0\");\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\t// else NO MAPPING of remaining LossTypes\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t if (mLogger.isLoggable(Level.FINE)) {\n\t\t\t\t\t\t\t\t \tmLogger.fine(\"********* AFTER updateCoverageCategory:: coverage.getCoverageCategory(): [ \" + coverage.getCoverageCategory() + \" ] *********\");\n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn inDoc;\n\t}", "private void generateCandies(){\n\t\tfor (int i = 0; i < 16; i++){\n\t\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t\tCandy candy = new Candy(coordX, coordY, i);\n\t\t\tcandies.put(i, candy);\n\t\t}\n\t}", "public Vector<Site> getCities(){\n return cities;\n }", "public void CobroCiatCasaCiat() throws GWorkException {\r\n\t\tListarVehiculosCiatCasaCiat();\r\n\t}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "public CouncillorsReserve(List<Councillor> councillors){\r\n\t\tthis.councillors=councillors;\r\n\t\tCollections.shuffle(this.councillors);\r\n\t}", "public void create_GovOfficial(Citizen citizen)\n\t{\n\t\tPersonalDetails details = citizen.getDetails(); \n\t\tString user = citizen.getUsername(), \n\t\t\t pass = citizen.getPassword();\n\t\t\n\t\taccounts.remove(citizen);\n\t\taccounts.add(new GovernmentOfficial(user, pass));\n\t\taccounts.get(accounts.size() - 1).setPersonalDetails(details);\n\t}", "private void categorizeData(){\n\t\tfor(String s :userData.keySet()){\n\t\t\tTransactionData trans = userData.get(s);\n\t\t\tif(trans.getCategory() == 'I'){\n\t\t\t\tignorableTransactions.add(trans);\n\t\t\t}\n\t\t\telse if(trans.getCategory() == 'R'){\n\t\t\t\trestaurantTransactions.add(trans);\n\t\t\t}\n\t\t\telse if(trans.getCategory() == 'G'){\n\t\t\t\tgaspumpTransactions.add(trans);\n\t\t\t}\n\t\t\telse if(trans.getCategory() == 'M'){\n\t\t\t\tmarketTransactions.add(trans);\n\t\t\t}\n\t\t\telse if(trans.getCategory() == 'T'){\n\t\t\t\ttaxiTransactions.add(trans);\n\n\t\t\t}\n\t\t\telse if(trans.getCategory() == 'S'){\n\t\t\t\tstayTransactions.add(trans);\n\t\t\t}\n\t\t\tif(trans.getCategory() == 'U'){\n\t\t\t\tunknownTransactions.add(trans);\n\t\t\t}\n\t\t}\n\t}", "RoomType getCostCategory();", "public DietaryProfile(AllergyList allergyList) {\n\t\tthis.calorieLimit = 0;\n\t\tthis.caloriesConsumedToday = 0;\n\t\tthis.caloriesConsumedMonthly = new ArrayList<Integer>();\n\t\tthis.allergyList = allergyList;\n\t}", "protected static List<Critter> getPopulation() {\n return population;\n }", "private void getCityHotels(String tag) {\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCurrencyCode(userDTO.getCurrency());\n hotelListingRequest.setLanguageCode(userDTO.getLanguage());\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setPageNumber(1);\n hotelListingRequest.setPageSize(10);\n\n\n if (tag.equals(\"noRooms\")) {\n\n hotelListingRequest.setCityId(cityId); // for sold out hotels.. set popularity and descending order.\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n } else {\n\n hotelListingRequest.setCityId(Long.parseLong(destination.getKey())); // regular flow.. getting cityId and areaId from destination.\n\n UserDTO.getUserDTO().setCityName(destination.getDestinationName());\n // here check whether category is city search otherwise areaWise search\n if (destination.getCategory().equals(\"City\")) {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n\n } else {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"area\");\n hotelListingRequest.setSortByArea(0);\n }\n\n\n }\n\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n kidsAgeArrayList = new ArrayList<>();\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelListingRequest.setOccupancy(occupancyDtoArrayList);\n }\n FiltersRequestDto filtersRequestDto = new FiltersRequestDto();\n filtersRequestDto.setAmenityIds(null);\n filtersRequestDto.setAreaIds(null);\n filtersRequestDto.setHotelId(null);\n filtersRequestDto.setCategoryIds(null);\n filtersRequestDto.setChainIds(null);\n filtersRequestDto.setMaxPrice(0.00);\n filtersRequestDto.setMinPrice(0.00);\n filtersRequestDto.setTripAdvisorRatings(null);\n filtersRequestDto.setStarRatings(null);\n hotelListingRequest.setFilters(filtersRequestDto);\n\n request = new Gson().toJson(hotelListingRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n\n showDialog();\n\n hotelSearchPresenter.getHotelListInfo(Constant.API_URL + Constant.HOTELLISTING, request, context);\n\n\n } else {\n\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n\n }", "public Holidays (){\n name= \"Exotic Beach Holiday of a Lifetime\";\n cost = 5000;\n location = \"Fesdu Island, Maldives\";\n type = \"beach\";\n }", "private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "void addCoaster(String name, String park, Date date, double rating);", "public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }", "void setNumberOfCavalry(int cavalery);", "public void choosePrivileges(List<Integer> councilPrivileges) {\n choosePrivilegeController.choosePrivilege(councilPrivileges);\n }", "public static void createColony(){\r\n try {\r\n //Figure out how big the colony and each generation should be - relative to the number of sets in the search space\r\n // Naieve - one ant for every set in sets, one generation\r\n\r\n //Create the colony\r\n while (colony.size() < colonySize) {\r\n colony.add(new Ant());\r\n }\r\n\r\n }catch(Exception e){\r\n System.out.println(\"ERROR in createColony\");\r\n System.out.println(\"Colony: \" + colony);\r\n System.out.println();\r\n System.out.println(e.toString());\r\n }\r\n }", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "public void ListarVehiculosCiatCasaCiat() throws GWorkException {\r\n\t\ttry {\r\n\t\t\tDate dtFechaInicio;\r\n\t\t\tDate dtFechaFin;\r\n\t\t\tLong idPeriodo = 1L;\r\n\r\n\t\t\tdtFechaInicio = ManipulacionFechas\r\n\t\t\t\t\t.getMesAnterior(ManipulacionFechas.getFechaActual());\r\n\r\n\t\t\t// Integer mes = Integer.valueOf(ManipulacionFechas\r\n\t\t\t// .getMes(ManipulacionFechas.getFechaActual()));\r\n\t\t\tCalendar calendario = Calendar.getInstance();\r\n\r\n\t\t\tcalendario.setTime(dtFechaInicio);\r\n\t\t\tcalendario.set(Calendar.DAY_OF_MONTH, 5);\r\n\t\t\t// calendario.set(Calendar.MONTH, mes - 2);\r\n\r\n\t\t\tdtFechaInicio = calendario.getTime();\r\n\r\n\t\t\tdtFechaFin = ManipulacionFechas.getFechaActual();\r\n\t\t\tcalendario.setTime(dtFechaFin);\r\n\t\t\tcalendario.set(Calendar.DAY_OF_MONTH, 4);\r\n\r\n\t\t\tdtFechaFin = calendario.getTime();\r\n\r\n\t\t\tList<BillingAccountVO> vehiculos = listVehiclesFlatFileCiatCasaCiat(\r\n\t\t\t\t\tdtFechaInicio, dtFechaFin);\r\n\r\n\t\t\tReporteCobroCiatCasaCiat(vehiculos, idPeriodo);\r\n\t\t\tEntityManagerHelper.getEntityManager().getTransaction().begin();\r\n\t\t\tEntityManagerHelper.getEntityManager().getTransaction().commit();\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tlog.error(\"ListarVehiculosCiatCasaCiat\",re);\r\n\t\t\tthrow new GworkRuntimeException(\"[INFO] - \" + re.getMessage(), re);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"ListarVehiculosCiatCasaCiat\",e);\r\n\t\t\tthrow new GWorkException(\r\n\t\t\t\t\t\"No se pudo generar el comprobante [ERROR] - \"\r\n\t\t\t\t\t\t\t+ e.getMessage(), e);\r\n\r\n\t\t}\r\n\t}", "public WithdrawalExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "List<ChartBean> returnTravelGrantsByDepartmentInstituteCenter();", "int getNumberOfCavalry();", "int getIndividualDefense();", "public Contestant(String n, String c){\n\t\tname = n;\n \tcountry = c;\n\t\tage = 18;\n\t\ttalents = new String[3];\n\t}", "public Casilla getCasillas()\r\n\t{\r\n\t\treturn casillas;\r\n\t}", "public Citizen(){\n fullName = \"\";\n email = \"\";\n address = \"\";\n age = 0;\n district = 0;\n resident = false;\n gender = 'M';\n }", "protected static List<Critter> getBabies() {\n return babies;\n }", "public TaxCategory() {\n\t\ttaxRates=new TreeSet<TaxRate>();\n\t\t\n\t}", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "public Citizen(String fullName, String email, String address, int age, int district, boolean resident, char gender){\n this.fullName = fullName;\n this.email = email;\n this.address = address;\n this.age = age;\n this.district = district;\n this.resident = resident;\n this.gender = gender;\n }", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "@Override\r\npublic String getCelestialClassification() {\n\treturn \"DwarfPlanets\";\r\n}", "private void computeCoffeeMaker(){\n HashMap<String,String> notAvailableBeverages = coffeeMakerService.getNotAvailableBeverages();\n ArrayList<String> beverageNames = coffeeMakerService.getBeveragesName();\n for (String beverage: beverageNames) {\n if(notAvailableBeverages.containsKey(beverage)){\n System.out.println(notAvailableBeverages.get(beverage));\n }else{\n if(coffeeMakerService.canPrepareBeverage(beverage)){\n coffeeMakerService.prepareBeverage(beverage);\n System.out.println(beverage+\" is prepared\");\n }else{\n System.out.println(coffeeMakerService.getReasonForNotPreparation(beverage));\n }\n }\n }\n }", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "private Collection<IInstallableUnit>queryCategories(final IProgressMonitor monitor, IProvisioningAgent agent)\r\n\t{\t\t\r\n\t\tCollection<IInstallableUnit>iuSet = new LinkedList<IInstallableUnit>();\r\n\t\tIQueryable<IInstallableUnit> queryable = ((IProfileRegistry) agent\r\n\t\t\t\t.getService(IProfileRegistry.SERVICE_NAME))\r\n\t\t\t\t.getProfile(PROFILE_ID);\r\n\r\n\t\tif (queryable != null)\r\n\t\t{\r\n\t\t\t// Kategorien abfragen\r\n\t\t\tIQueryResult<IInstallableUnit> resultCategory = queryable.query(\r\n\t\t\t\t\tQueryUtil.createIUCategoryQuery(), monitor);\r\n\t\t\t\r\n\t\t\tIterator<IInstallableUnit> itMembers = resultCategory.iterator();\r\n\t\t\twhile (itMembers.hasNext())\r\n\t\t\t{\r\n\t\t\t\tIInstallableUnit uiMember = itMembers.next();\r\n\t\t\t\tiuSet.add(uiMember);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn iuSet;\r\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}", "private void setEntropiaF(Map<String, Integer> categoriasFrequencia, int totalFrequencia) {\n\t\t\n\t}", "private void updatePieChart() {\n //If both EXPENSE and INCOME calculation are completed, do this\n if(isCategoryIncomeCalculationComplete && isCategoryExpenseCalculationComplete){\n List<Category> catList = new ArrayList<>();\n\n int[] colorList = new int[]{R.color.alizarin, R.color.nephritis};\n\n Category catExpense = new Category();\n catExpense.setName(\"Expense\");\n catExpense.setCost(Math.abs(totalExpenseCost));\n catExpense.setColor(getResources().getString(colorList[0]));\n\n Category catIncome = new Category();\n catIncome.setName(\"Income\");\n catIncome.setCost(Math.abs(totalIncomeCost));\n catIncome.setColor(getResources().getString(colorList[1]));\n\n catList.add(catIncome);\n catList.add(catExpense);\n\n pieChartFragment.setData(catList, true);\n }\n }", "public void getCosts() {\n\t}", "public void food(){\n\t\tSystem.out.println(\"Name:\");\n\t\tString nameRegistered = reader.nextLine();\n\t\tSystem.out.println(\"Nit:\");\n\t\tString nit = reader.nextLine();\n\t\tSystem.out.println(\"Address:\");\n\t\tString address = reader.nextLine();\n\t\tSystem.out.println(\"Contact number:\");\n\t\tString contactNumber = reader.nextLine();\n\t\tSystem.out.println(\"Number of employees:\");\n\t\tint employees = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Value of the actives:\");\n\t\tdouble value = reader.nextDouble();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Legal representative:\");\n\t\tString legalRepresentative = reader.nextLine();\n\t\tSystem.out.println(\"Constitution date:\");\n\t\tSystem.out.println(\"Day:\");\n\t\tint day = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Month:\");\n\t\tint month = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Year:\");\n\t\tint year = reader.nextInt();\n\t\treader.nextLine();\n\t\tDate constitution = new Date(day, month, year);\n\t\tSystem.out.println(\"floors of the building\");\n\t\tint rows = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Type:\");\n\t\tString type = reader.nextLine();\n\t\tSystem.out.println(\"Group of the food:\");\n\t\tint group = reader.nextInt();\n\t\treader.nextLine();\n\t\tFood toAdd = new Food(nameRegistered, nit, address, contactNumber, employees, value, legalRepresentative, constitution, rows, type, group);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\tSystem.out.println(\"The company were added successfuly\");\n\t}", "private void initiaLizeRequirements() {\n\n\t\ttry {\n\t\t\tstFoodDataEntry = cnFoodDataEntry.createStatement();\n\n\t\t\tString sql = \"select energysourceid, unit, conversionfactor from energysourcedetail where energysourceid in (select sourceid from energysource where energytypeid =\"\n\t\t\t\t\t+ FOOD + \") order by energysourceid asc\";\n\t\t\trsFoodDataEntry = stFoodDataEntry.executeQuery(sql);\n\n\t\t\tMap<String, Double> unitConversionF = null;\n\t\t\t// List<Map<String, Double>> listUnitConversionF;\n\t\t\tenergySourceDetail = new LinkedHashMap<Integer, Map<String, Double>>();\n\n\t\t\tint energysourceId;\n\t\t\tString unit;\n\t\t\tDouble coversionFactor;\n\n\t\t\twhile (rsFoodDataEntry.next()) {\n\t\t\t\tenergysourceId = rsFoodDataEntry.getInt(\"energysourceid\");\n\t\t\t\tunit = rsFoodDataEntry.getString(\"unit\");\n\t\t\t\tcoversionFactor = rsFoodDataEntry.getDouble(\"conversionfactor\");\n\n\t\t\t\tif (energySourceDetail.containsKey(energysourceId)) {\n\t\t\t\t\tenergySourceDetail.remove(energysourceId);\n\t\t\t\t} else {\n\t\t\t\t\tunitConversionF = new LinkedHashMap<String, Double>();\n\t\t\t\t}\n\t\t\t\tunitConversionF.put(unit, coversionFactor);\n\t\t\t\tenergySourceDetail.put(energysourceId, unitConversionF);\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public List<ServiceAffinities> selectServiceAffinities() {\n\n\t\tList<ServiceAffinities> customers = new ArrayList<ServiceAffinities>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from service_affinities\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tServiceAffinities customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new ServiceAffinities();\n\t\t\t\tcustomer.setApplication(resultSet.getString(1));\n\t\t\t\tcustomer.setServices(resultSet.getString(2));\n\t\t\t\tcustomer.setEnvironment_types(resultSet.getString(3));\n\t\t\t\tcustomer.setAffinity(resultSet.getString(4));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}" ]
[ "0.61467224", "0.59281623", "0.5737423", "0.5691981", "0.5643257", "0.5611647", "0.54733604", "0.5424769", "0.541765", "0.52550966", "0.525426", "0.5254001", "0.5251476", "0.5238101", "0.5229879", "0.52096343", "0.51970416", "0.5185184", "0.5185017", "0.5181617", "0.5155107", "0.5151664", "0.51312536", "0.5078056", "0.50680375", "0.5052472", "0.50506717", "0.5032703", "0.5006201", "0.50049424", "0.498132", "0.49811867", "0.49737749", "0.49685162", "0.49667552", "0.49568152", "0.49540687", "0.49535426", "0.494376", "0.4939642", "0.49265012", "0.49252424", "0.4914262", "0.49116167", "0.4902648", "0.4898385", "0.48925152", "0.488715", "0.48868448", "0.48722115", "0.48633355", "0.48559022", "0.48544723", "0.4853285", "0.48437506", "0.48431253", "0.48361853", "0.48340747", "0.48327473", "0.4827388", "0.48267046", "0.48256698", "0.48239478", "0.48192602", "0.48159537", "0.4794363", "0.47941345", "0.4792733", "0.47902608", "0.47863546", "0.4772496", "0.47699314", "0.47677344", "0.4765107", "0.4763914", "0.47560507", "0.4755829", "0.47512904", "0.47453082", "0.47446775", "0.47400534", "0.4738088", "0.47374722", "0.4735953", "0.47298697", "0.47286004", "0.47259986", "0.47256663", "0.47238988", "0.47228003", "0.4720427", "0.47136632", "0.47118762", "0.47094393", "0.47081873", "0.47072643", "0.4706569", "0.47033912", "0.47020817", "0.4700628" ]
0.6469386
0
This Class has all the actions related to the Signup(Registered and Unregistered)
public SignUpActions(WebDriver driver, DeviceInterface runnerInfo) { this.driver = driver; deviceHelper = new DeviceHelper(driver); //PageFactory.initElements(new AppiumFieldDecorator(driver), this); PageFactory.initElements(new AppiumFieldDecorator(driver), signUpObjects); this.runnerInfo = runnerInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "private void signUpEvt() {\n String emailRegex = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\n // Get User Details\n String fullname = this.view.getWelcomePanel().getSignUpPanel().getFullnameText().getText().trim();\n String email = this.view.getWelcomePanel().getSignUpPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignUpPanel().getPasswordText().getPassword()).trim();\n\n if (!fullname.equals(\"\") && !email.equals(\"\") && !password.equals(\"\")) {\n if (email.matches(emailRegex)) {\n if (model.getSudokuDB().registerUser(fullname, email, password)) {\n view.getWelcomePanel().getCardLayoutManager().next(view.getWelcomePanel().getSlider());\n // Clear Fields\n view.getWelcomePanel().getSignUpPanel().clear();\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"Your registration was successful!\\n You can now sign in to your account.\", \"Successful Registration\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"Your registration was unsuccessful!\\nBe sure not to create a duplicate account.\", \"Unsuccessful Registration\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n // Email doesn't meet requirement\n Object[] options = {\"I will correct that\"};\n JOptionPane.showOptionDialog(this, \"You must provide a valid email address.\", \"Invalid Email Address\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n // Empty Fields\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to register, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }", "public void signUp() {\n presenter.signup(username.getText().toString(), password.getText().toString());\n }", "void signUp(SignUpRequest signupRequest);", "public void signUp(View v) {\n attemptRegistration();\n }", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public SignUp() {\n Logger.log(\"SHOWING SIGN-UP PAGE\");\n\n displaySurnameFields();\n displayNameFields();\n displayNicknameFields();\n displayEmailFields();\n displayPasswordFields();\n displayConfirmPassword();\n displayBirthdayFields();\n displayCountryFields();\n\n displayBackButton();\n displaySubmitButton();\n\n setSceneMusic(\"pallet_town.mp3\");\n }", "public SignUp() {\n PageFactory.initElements(webDriver, this);\n }", "public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}", "@Override\n public void onSignUpBtnClick() {\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "public String registration() {\n if (name != null) {\n int createdUsers = DBUtils.addUser(name, password, email);\n if (createdUsers > 0) {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/index?faces-redirect=true\";\n }\n }\n return \"/pages/register.xhtml?faces-redirect=true\";\n }", "public signup() {\n initComponents();\n }", "public Sign_up() {\n initComponents();\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "public void onClickSignUp(View view) {\r\n\t\tcheckRegistationValidation();\r\n\t}", "public sign_up_page() {\n initComponents();\n }", "@RequestMapping(value=\"/signup\",method=RequestMethod.GET)\r\n\tpublic ModelAndView signupSuccess()\r\n\t{\r\n\t\tModelAndView mv=new ModelAndView(\"DefaultPage\");\r\n\t\tmv.addObject(\"title\",\"signup\");\r\n\t\tmv.addObject(\"userClicksSignup\", true);\r\n\t\tUser nuser=new User();\r\n\t\t//setting few fields\r\n\t\tnuser.setEnabled(true);\r\n\t\tnuser.setRole(\"USER\");\r\n\t\tmv.addObject(\"user\", nuser);\r\n\t\treturn mv;\r\n\t}", "public Signup() {\n initComponents();\n }", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "void onSignUpEmailRegistered();", "boolean signUp(User user);", "public SignUp() {\n initComponents();\n }", "public SignUp() {\n initComponents();\n }", "private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}", "public void register(View view) {\n if(radioGroup.getCheckedRadioButtonId() == -1){\n Snackbar.make(getCurrentFocus(),\"Please select one of the Options: Student or Professor\",Snackbar.LENGTH_LONG).show();\n return;\n }\n if (usn.getText().toString().trim().equals(\"\")){\n usn.setError(\"This field cannot be empty\");\n return;\n } else if (password.getText().toString().trim().equals(\"\")){\n password.setError(\"This field cannot be empty\");\n return;\n } else if(password.getText().toString().trim().length() < 8){\n password.setError(\"Password too short.\");\n return;\n } else if(confirmPassword.getText().toString().trim().equals(\"\")){\n confirmPassword.setError(\"This field cannot be empty\");\n return;\n } else if(!(password.getText().toString().trim()\n .equals(confirmPassword.getText().toString().trim()))){\n password.setError(\"Passwords do not match\");\n confirmPassword.setError(\"Passwords do not match\");\n return;\n }\n progressBar.setVisibility(View.VISIBLE);\n mAuth.signInAnonymously().addOnSuccessListener(authResult -> myRef.child(usn.getText().toString().trim()).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n try {\n String username = dataSnapshot.child(\"emailId\").getValue().toString();\n String password = confirmPassword.getText().toString().trim();\n System.out.println(username);\n mAuth.createUserWithEmailAndPassword(username,password)\n .addOnCompleteListener(RegisterActivity.this,task -> {\n Log.d(\"TAG\",\"Created User:\"+task.isSuccessful());\n if(!task.isSuccessful()){\n Toast.makeText(RegisterActivity.this, \"Error occurred.\" +\n \" Could not create user. Please \" +\n \"check your internet connection\", Toast.LENGTH_LONG).show();\n return;\n }\n else {\n startActivity(new Intent(RegisterActivity.this,LoginActivity.class));\n finish();\n }\n });\n\n }catch (NullPointerException e){\n usn.setError(\"Invalid USN. Please check your input or contact\" +\n \" your department for help\");\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n }))\n .addOnFailureListener(e -> {\n progressBar.setVisibility(View.INVISIBLE);\n Snackbar.make(view,\"Something went wrong.Please check if you have an internet connection or that the details\" +\n \"entered are valid\",Snackbar.LENGTH_LONG).show();\n });\n }", "@Override\n\tpublic String signUp_request() {\n\t\treturn null;\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString username = etUsername.getText().toString();\n\t\t\t\tString pwd = etPassword.getText().toString();\n\t\t\t\tString pwd1 = etPassword1.getText().toString();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (TextUtils.isEmpty(etUsername.getText())) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Username cannot be empty!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(TextUtils.isEmpty(etPassword.getText()) || TextUtils.isEmpty(etPassword1.getText())){\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Password cannot be empty!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!pwd.equals(pwd1)){\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Password should be the same!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tUser user = new User(username, pwd);\n\t\t\t\t\n\t\t\t\tnew Register(user, RegisterActivity.this, new Register.SuccessCallBack() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this,\"Sign up successfully!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tstartActivity(new Intent(RegisterActivity.this, LoginActivity.class));\n\t\t\t\t\t}\n\t\t\t\t}, new Register.FailCallBack() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFail() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Username already exists!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "@Override\n @RequestMapping(\"/register\")\n public ConfirmationMessage register(@RequestParam(value = \"username\", defaultValue = \"\") String username,\n @RequestParam(value = \"password1\", defaultValue = \"\") String password1,\n @RequestParam(value = \"password2\", defaultValue = \"\") String password2,\n @RequestParam(value = \"email\", defaultValue = \"\") String email,\n @RequestParam(value = \"city\", defaultValue = \"\") String city) {\n return userLogic.register(username, password1, password2, email, city);\n }", "public void Register() {\n Url url = new Url();\n User user = new User(fname.getText().toString(), lname.getText().toString(), username.getText().toString(), password.getText().toString());\n Call<Void> registerUser = url.createInstanceofRetrofit().addNewUser(user);\n registerUser.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n Toast.makeText(getActivity(), \"User Registered successfully\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getActivity(), \"Error\" + t, Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void register(String username,String password){\n\n }", "private void signUp() {\n final String email = ((EditText) findViewById(R.id.etSignUpEmail))\n .getText().toString();\n final String password = ((EditText) findViewById(R.id.etSignUpPassword))\n .getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:success\");\n sendVerificationEmail(mAuth.getCurrentUser());\n updateUI();\n } else {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:failure\");\n Toast.makeText(LoginActivity.this,\n \"Failed to create a new user.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "@OnClick(R.id.activity_register_button_register)\n public void onRegisterClick(View mView) {\n if (!isFinishing()) {\n mUtility.hideKeyboard(RegisterActivity.this);\n mStringUsername = mEditTextUsername.getText().toString().trim();\n mStringAccountName = mEditTextAccountName.getText().toString().trim();\n mStringEmail = mEditTextEmail.getText().toString().trim();\n mStringMobileNO = mEditTextMobileNO.getText().toString().trim();\n mStringPassword = mEditTextPassword.getText().toString().trim();\n mStringDevicesUIDFCMToken = FirebaseInstanceId.getInstance().getToken();\n mPreferenceHelper.setDeviceToken(mStringDevicesUIDFCMToken);\n if (mStringUsername.equalsIgnoreCase(\"\")) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_sign_up_enter_name), getResources().getString(R.string.str_ok));\n return;\n }\n if (mStringAccountName.equalsIgnoreCase(\"\")) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_sign_up_enter_account_name), getResources().getString(R.string.str_ok));\n return;\n }\n if (mStringCountryCode.equalsIgnoreCase(\"\")) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_select_country_code), getResources().getString(R.string.str_ok));\n return;\n }\n\n if (mStringMobileNO.equalsIgnoreCase(\"\")) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_sign_up_enter_mobile_no), getResources().getString(R.string.str_ok));\n return;\n }\n if (mStringMobileNO.length() < 10 || mStringMobileNO.length() > 15) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_sign_up_enter_valid_mobile_no), getResources().getString(R.string.str_ok));\n return;\n }\n if (!mStringEmail.equalsIgnoreCase(\"\")) {\n if (!mUtility.isValidEmail(mStringEmail)) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_sign_up_enter_valid_email_address), getResources().getString(R.string.str_ok));\n return;\n }\n }\n if (mStringPassword.equalsIgnoreCase(\"\")) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_sign_up_enter_password), getResources().getString(R.string.str_ok));\n return;\n }\n if (mStringPassword.length() < 6 || mStringPassword.length() > 15) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_sign_up_enter_valid_password), getResources().getString(R.string.str_ok));\n return;\n }\n if (!mCheckBoxTermNCondition.isChecked()) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_sign_up_agree_terms_condition), getResources().getString(R.string.str_ok));\n return;\n }\n if (mStringDevicesUIDFCMToken == null || mStringDevicesUIDFCMToken.equalsIgnoreCase(\"null\") || mStringDevicesUIDFCMToken.equalsIgnoreCase(\"\")) {\n mStringDevicesUIDFCMToken = FirebaseInstanceId.getInstance().getToken();\n }\n if (mStringDevicesUIDFCMToken == null || mStringDevicesUIDFCMToken.equalsIgnoreCase(\"null\") || mStringDevicesUIDFCMToken.equalsIgnoreCase(\"\")) {\n mStringDevicesUIDFCMToken = System.currentTimeMillis() + \"\";\n }\n\n console.log(\"asxasxasxasx_token\",mStringDevicesUIDFCMToken);\n\n if (!mUtility.haveInternet()) {\n showMessageRedAlert(mRelativeLayoutMain, getResources().getString(R.string.str_no_internet_connection), getResources().getString(R.string.str_ok));\n } else {\n checkUserRegister();\n }\n }\n }", "@Override\n public void getStartedSignUpClicked() {\n\n }", "public Sign_Up() {\n initComponents();\n }", "private void SignUp(String email, String password) {\n if (TextUtils.isEmpty(email) || TextUtils.isEmpty(password) ) {\n\n }else {\n msignInDialog.setTitle(\"Creating New User\");\n msignInDialog.setMessage(\"Please wait while DevChat creates your new Account...\");\n msignInDialog.setCanceledOnTouchOutside(false);\n msignInDialog.show();\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ActivityRegister.this, \"User Account Created!\", Toast.LENGTH_SHORT).show();\n createUser(et_username.getText().toString());\n msignInDialog.dismiss();\n Intent chatBoxIntent = new Intent(ActivityRegister.this, Chatbox_Activity.class);\n Bundle bundle = new Bundle();\n bundle.putStringArray(\"values\", values);\n chatBoxIntent.putExtras(bundle);\n startActivity(chatBoxIntent);\n } else {\n msignInDialog.dismiss();\n Toast.makeText(ActivityRegister.this, \"Error Creating New User Account!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }", "public void RegisterUser() {\n try {\n reg = new Registration();\n reg.setFirstName(FName);\n reg.setLastName(LName);\n reg.setCompanyName(CompanyName);\n reg.setEmail(Email);\n reg.setMobile(mobile);\n ValidateRegistration validator = new ValidateRegistration();\n boolean legitmail = validator.validateEmail(reg);\n if ( legitmail == false ) {\n System.out.println(\"Not a legitimate Email\");\n FacesContext c = FacesContext.getCurrentInstance();\n FacesMessage m = new FacesMessage(\"Invalid Email\", \"The email provided is not correct\");\n c.addMessage(null, m);\n } else {\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"mainpage.xhtml\");\n }\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public void UserSignUp(View view)\n {\n // get the data from text fields\n inputName = ((EditText) findViewById(R.id.signUpEditTextName)).getText().toString();\n inputEmail = ((EditText) findViewById(R.id.signUpEditTextEmail)).getText().toString();\n inputPhoneNumber = ((EditText) findViewById(R.id.signUpEditTextPhoneNumber)).getText().toString();\n inputPassword = ((EditText) findViewById(R.id.signUpEditTextPassword)).getText().toString();\n inputRepeatPassword = ((EditText) (findViewById(R.id.signUpEditTextRepeatPassword))).getText().toString();\n\n // If some text fields are empty\n if(inputName.equals(\"\") || inputEmail.equals(\"\") || inputPhoneNumber.equals(\"\")\n || inputPassword.equals(\"\") || inputRepeatPassword.equals(\"\")) {\n Toast.makeText(SignUpActivity.this, \"All fields are required!\", Toast.LENGTH_LONG).show();\n finish();\n startActivity(getIntent());\n }\n // if password and repeat password are matched\n else if(inputPassword.compareTo(inputRepeatPassword) == 0) {\n // if there is internet connection\n if (CheckNetworkConnection.checknetwork(getApplicationContext()))\n new CreateNewUser().execute();\n else\n Toast.makeText(SignUpActivity.this, \"No Internet Connection!\", Toast.LENGTH_LONG).show();\n }\n // if password and repeat password do not matched\n else {\n Toast.makeText(SignUpActivity.this, \"Passwords do not match!\", Toast.LENGTH_LONG).show();\n finish();\n startActivity(getIntent());\n }\n\n }", "public void handleRegister() {\n\t\tmainApp.showRegistrationPage();\n\t}", "private RegisterUser() {\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString nameS = name.getText().toString();\n\t\t\t\tif (nameS.equals(\"\")) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"用户名不可为空\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString passOne = password.getText().toString();\n\t\t\t\tString passTwo = surePassword.getText().toString();\n\t\t\t\tif (!passOne.equals(passTwo)) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"密码不一致\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tMap<String, String> xml = new HashMap<String, String>();\n\t\t\t\txml.put(\"head\", \"register\");\n\t\t\t\txml.put(\"username\", nameS);\n\t\t\t\txml.put(\"password\", passOne);\n\t\t\t\tUserRegister reg = new UserRegister(getApplicationContext(),\n\t\t\t\t\t\thandler);\n\t\t\t\treg.register(xml);\n\t\t\t}", "public void signupPressed(View view) {\n // fetch the values\n usernameSignup = (EditText) findViewById(R.id.usernameSignupFragment);\n emailSignup = (EditText) findViewById(R.id.emailSignupFragment);\n passwordSignup = (EditText) findViewById(R.id.passwordSignupFragment);\n reenterPasswordSignup = (EditText) findViewById(R.id.reenterPasswordSignupFragment);\n\n String username = usernameSignup.getText().toString();\n String email = emailSignup.getText().toString();\n String password1 = passwordSignup.getText().toString();\n String password2 = reenterPasswordSignup.getText().toString();\n\n // input validation\n if (username.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Please enter a username.\", Toast.LENGTH_SHORT).show();\n } else if (password1.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Please enter a password.\", Toast.LENGTH_SHORT).show();\n } else if (!validatePassword(password1, password2)) {\n Toast.makeText(getApplicationContext(), \"Passwords do not match, try again.\", Toast.LENGTH_SHORT).show();\n } else if (!passwordLongEnough(password1)) {\n Toast.makeText(getApplicationContext(), \"Password too short - must be minimum 8 characters.\", Toast.LENGTH_SHORT).show();\n } else try {\n if (emailAlreadyExists(email)) {\n Toast.makeText(getApplicationContext(), \"Account already exists with this email.\", Toast.LENGTH_SHORT).show();\n } else if (!validateEmail(email)) {\n Toast.makeText(getApplicationContext(), \"Please enter a valid email.\", Toast.LENGTH_SHORT).show();\n } else try {\n if (!usernameAvailable(username)) {\n Toast.makeText(getApplicationContext(), \"Sorry, username already taken.\", Toast.LENGTH_SHORT).show();\n } else {\n // setup a user object with the given attributes, save and enter the app\n final TipperUser user = new TipperUser();\n user.setUsername(username);\n\n // hash password with salt\n String hashed = BCrypt.hashpw(password1, BCrypt.gensalt());\n user.setPassword(hashed);\n\n user.setEmail(email);\n user.setGoogleUser(false);\n user.setFacebookUser(false);\n user.setUuidString();\n\n user.save();\n app.setCurrentUser(user);\n user.pinInBackground();\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onClick(View v) {\n firstName = etFirstName.getText().toString().trim();\n lastName = etLastName.getText().toString().trim();\n username = etUsername.getText().toString().trim();\n password = etPassword.getText().toString().trim();\n confirmPassword = etConfirmPassword.getText().toString().trim();\n email = etEmail.getText().toString().trim();\n major=etMajor.getText().toString().trim();\n university=etUniversity.getText().toString().trim();\n isTutor = tutorCheckBox.isChecked();\n\n if (validateInputs()) {\n registerUser();\n }\n\n }", "public SignUP() {\n initComponents();\n }", "public Register() {\n user = new User();\n em = EMF.createEntityManager();\n valid = false;\n }", "public void onRegisterPressed(View v) {\n String username = ((EditText) findViewById(R.id.usernameNew)).getText().toString();\n String password = ((EditText) findViewById(R.id.passwordNew)).getText().toString();\n String checkPassword = ((EditText) findViewById(R.id.passwordNew2)).getText().toString();\n Register register = new Register(username, password, checkPassword);\n TextView passwordCheck = findViewById(R.id.passwordCheck);\n TextView errorUsername = findViewById(R.id.errorUsername);\n\n if(!register.assertPassword()) {\n passwordCheck.setVisibility(View.VISIBLE);\n } else {\n passwordCheck.setVisibility(View.GONE);\n }\n if (!register.assertUsername()) {\n errorUsername.setVisibility(View.VISIBLE);\n } else {\n errorUsername.setVisibility(View.GONE);\n }\n if(register.assertUsername() && register.assertPassword()) {\n User user = new User(username, password, (UserTypes)userTypeSpinner.getSelectedItem());\n\n Toast.makeText(this, \"Account Added\", Toast.LENGTH_SHORT).show();\n\n Persistence.getInstance().write(User.SAVE_FILE, getApplicationContext(), user);\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(\"EXTRA_USER_TYPE\", user.getAccountType());\n startActivity(mainIntent);\n\n finish();\n }\n }", "public void onSignupSuccess(){\n Toast.makeText(this, \"YEPP\", Toast.LENGTH_SHORT).show();\r\n Intent changetomain = new Intent(RegisterActivity.this, MainAccount.class) ;\r\n startActivity(changetomain);\r\n }", "@Test\n\tpublic void TC01_Register() {\n\t\tclickToElemnet(registerLinkX);\n\t\tSystem.out.println(\"TC01 : 1. Register Page Display Status : \" + checkElementDisplayed(registerPageX));\n\n\t\t// Register new accout\n\t\tclickToElemnet(genderMaleRadioBtnX);\n\t\tsendkeysToElement(firstNameTxtX, regFirstName);\n\t\tsendkeysToElement(lastNameTxtX, regLastName);\n\t\tselectElementFromDropDown(dateOfBirthDropDownX, regDateOfBirth);\n\t\tselectElementFromDropDown(dateOfMonthDropDownX, regDateOfMonth);\n\t\tselectElementFromDropDown(dateOfYearDropDownX, regDateOfYear);\n\t\tsendkeysToElement(emailTxtX, regEmail);\n\t\tsendkeysToElement(companyNameTxtX, regCompanyName);\n\t\tsendkeysToElement(passwordTxtX, regPassword);\n\t\tsendkeysToElement(confirmPasswordTxtX, regPassword);\n\t\tclickToElemnet(registerBtnX);\n\n\t\t// Verify Account is Created Successfully\n\t\tSystem.out.println(\"TC01 : 2. Register message : \" + getTextFromElement(registerSuccessMsgX));\n\n\t\t// Click Log Out Link\n\t\tSystem.out.println(\"TC01 : 3. Click Log Out Link\");\n\t\tclickToElemnet(logOutLinkX);\n\n\t\t// Verify navigate to Home Page\n\t\tSystem.out.println(\"TC01 : 4. Navigate to Home Page : \" + driver.getCurrentUrl());\n\n\t}", "private void signUpActivity() {\n mSignUpButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent registerActivity = new Intent(LoginActivity.this, RegisterActivity.class);\n startActivity(registerActivity);\n }\n });\n }", "public void signup(View view){\r\n if(editText1.getText().toString().isEmpty()||editText2.getText().toString().isEmpty()||editText3.getText().toString().isEmpty()\r\n ||editText4.getText().toString().isEmpty()||editText5.getText().toString().isEmpty()){\r\n Toast.makeText(this, \"Παρακαλώ εισάγετε όλα τα απαραίτητα πεδία προκειμένου να εγγραφείτε.\", Toast.LENGTH_SHORT).show();\r\n }\r\n else{\r\n mAuth.createUserWithEmailAndPassword(editText1.getText().toString(), editText2.getText().toString())\r\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n\r\n if (task.isSuccessful()) {\r\n new_user = mAuth.getCurrentUser();\r\n create_users_list(new_user.getUid());\r\n String userid=new_user.getUid();\r\n String firstname=editText3.getText().toString();\r\n String lastname=editText4.getText().toString();\r\n String address=editText5.getText().toString();\r\n SharedPreferences.Editor editor=pref.edit();\r\n editor.putString(userid+\"firstname\",firstname);\r\n editor.putString(userid+\"lastname\",lastname);\r\n editor.putString(userid+\"address\",address);\r\n editor.apply();\r\n Intent intent = new Intent(getApplicationContext(), MainActivity3.class);\r\n intent.putExtra(\"userid\", new_user.getUid());\r\n\r\n startActivity(intent);\r\n\r\n\r\n } else {\r\n Toast.makeText(getApplicationContext(), task.getException().getMessage(),\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }\r\n }\r\n }\r\n );}}", "@Test(priority=1, dataProvider=\"User Details\")\n\t\tpublic void registration(String firstname,String lastname,String emailAddress,\n\t\t\t\tString telephoneNum,String address1,String cityName,String postcodeNum,\n\t\t\t\tString country,String zone,String pwd,String confirm_pwd) throws Exception{\n\t\t\t\n\t\t\thomePage = new HomePage(driver);\n//'**********************************************************\t\t\t\n//Calling method to click on 'Create Account' link\n\t\t\tregistraionPageOC = homePage.clickCreateAccount();\n//'**********************************************************\t\t\t\n//Calling method to fill user details in Registration page and verify account is created\n\t\t\tregistraionPageOC.inputDetails(firstname,lastname,emailAddress,telephoneNum,address1,cityName,postcodeNum,country,zone,pwd,confirm_pwd);\n\t\t\ttry{\n\t\t\tAssert.assertEquals(\"Your Account Has Been Created!\", driver.getTitle(),\"Titles Not Matched: New Account Not Created\");\n\t\t\textentTest.log(LogStatus.PASS, \"Registration: New User Account is created\");\n\t\t\t}catch(Exception e){\n\t\t\t\textentTest.log(LogStatus.FAIL, \"Registration is not successful\");\n\t\t\t}\n\t\t}", "@Override\n public void onClick(View view) {\n registerUser();\n\n\n }", "void handle_signup(LinkedList<Object> args) {\n try {\n String user = (String) args.get(1);\n String passwd = (String) args.get(2);\n\n PreparedStatement pst =\n con.prepareStatement(\"SELECT id FROM users WHERE username=?\");\n pst.setString(1, user);\n rsl = pst.executeQuery();\n if(rsl.next()) { //查询到结果表明该用户已经存在\n args.set(1, \"no\");\n args.set(2, \"该用户名已经注册\");\n return;\n }\n pst = con.prepareStatement(\"INSERT INTO users\" +\n \"(username, password) VALUES (?,?)\");\n pst.setString(1, user);\n pst.setString(2, passwd);\n pst.executeUpdate();\n args.set(1, \"yes\");\n System.out.println(\"New user signup:\" + user);\n } catch (Exception e) {\n e.printStackTrace();\n args.set(1, \"no\");\n args.set(2, e.toString());\n }\n }", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "@Test(priority = 1, alwaysRun = true)\n\n\tpublic void usercanregistersuccessfully() {\n\t\thomeobject = new HomePage(driver);\n\t\thomeobject.openregisterpage();\n\t\t// take object mn el method elmowgoda fy home page\n\t\tregistrationobject = new UserRegisteration(driver);\n\t\tregistrationobject.userregisteration( firstname, lastname, email, password);\n\n\t\t// validate the scenario\n\t\tAssert.assertTrue(registrationobject.successmessage.getText().contains(\"Your registration completed\"));\n\t}", "@Override\n public void onClick(View v) {\n signUp();\n }", "protected void initUIComponents() {\n registerButton = findViewById(R.id.signUpButton);\n\n email = findViewById(R.id.emailInput);\n password = findViewById(R.id.passwordInput);\n password2 = findViewById(R.id.passwordInput2);\n\n registerButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (checkFields()) {\n createRegistrationInfo();\n registerUser(registrationInfo);\n }\n }\n });\n }", "@FXML protected void handleSignUpButtonAction() {\n \tboolean bexit = false;\n \tif(passwordField.getText().equals(passwordField2.getText()))\n \t{\n \t\t\n \t\tString signUpUsername = username.getText();\n \t\tString signUpPassword = passwordField.getText();\n \t\t\n if(username.getText().toString().length() >= 6 && passwordField.getText().toString().length() >= 6)\n {\n\t \t\tUser user = new User(signUpUsername, \"Unknown\", null, \"Unknown\", signUpPassword);\n\t \t\t\n\t \t\ttry {\n\t\t\t\t\tuser = client.createUser(user);\n\t \t\t\n\t \t\t} catch (WebApplicationException e) {\n\t \t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t \t\t\tif (e.getResponse().getStatus() == 409) {\n\t \t\t\t\tactiontarget.setText(\"Sign up error: Username already exists\");\n\t \t\t\t} else {\n\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t} catch (JsonProcessingException e) {\n\t \t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\t\t\t}\n\t \t\t\n\t \t\t// Go back to Login view\n\t \t\t\n\t \t\tLoginVistaNavigator.loadVista(LoginVistaNavigator.LOGIN);\n }\n else\n {\n \tactiontarget.setText(\"username/password \\nlength must be 6 number\");\n }\n \t}\n \telse\n \t{\n \t\tactiontarget.setText(\"password not consistent.\");\n \t}\n }", "@Override\n public void performRegister(final String name, final String email, final String gender, final String password){\n\n mAuth.createUserWithEmailAndPassword(email.toLowerCase(),password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n User user = new User();\n user.setName(name);\n user.setEmail(email.toLowerCase());\n user.setGender(gender);\n user.setPassword(password);\n FirebaseDatabase.getInstance().getReference(\"Users\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(context, \"Authentication Success.\",\n Toast.LENGTH_LONG).show();\n view.redirectToLogin();\n } else {\n Toast.makeText(context, \"Authentication Failed.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n } else {\n Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(context, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n }", "public interface SignupView {\n void enableInputs();\n void disableInputs();\n void showProgress();\n void hideProgress();\n\n void handleSignUp();\n void navigationToMainScreen();\n\n void newUserSuccess();\n void newUserError(String error);\n\n void setUserEmail(String email);\n\n}", "private void register() {\n Intent intent = new Intent(LoginActivity.this, RegisterActivity.class);\n startActivity(intent);\n }", "public void signup() {\n Log.d(TAG, \"Signup\");\n\n if (!validate()) {\n onSignupFailed();\n return;\n }\n\n createProgressDialog(R.string.creating_account);\n\n final String name = _nameText.getText().toString();\n final String email = _emailText.getText().toString();\n final String password = _passwordText.getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n createToast(R.string.authentication_failed, Toast.LENGTH_SHORT);\n } else {\n progressDialog.dismiss();\n final FirebaseUser user = mAuth.getCurrentUser();\n mDatabase.child(\"users\").child(user.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.getValue() == null) {\n createUserInFirebase(name, email, user.getUid());\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n sendToTrivia();\n }\n\n }\n });\n\n\n new android.os.Handler().postDelayed(\n new Runnable() {\n public void run() {\n // On complete call either onSignupSuccess or onSignupFailed\n // depending on success\n progressDialog.dismiss();\n }\n }, 3000);\n }", "@Override\n public void onClick(View view) {\n registerUser();\n }", "@Override\n\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this,\"Sign up successfully!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tstartActivity(new Intent(RegisterActivity.this, LoginActivity.class));\n\t\t\t\t\t}", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@RequestBody RegistrationRequest registrationRequest){\n return userService.registerUser(registrationRequest);\n }", "private void Register()\n {\n Intent registerIntent = new Intent (LoginActivity.this, RegisterActivity.class);\n startActivity(registerIntent);\n finish();\n }", "@Test(priority=2)\n\tpublic void completeSignUpProcess(){\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"[email protected]\");\n\t\tsignup.enterFirstName(\"Manish Kumar\");\n\t\tsignup.enterLastName(\"Vuttunoori\");\n\t\tsignup.enterPassword(\"qwerty126\");\n\t\tsignup.reenterPassword(\"qwerty126\");\n\t\tsignup.clickSubmit();\n\t\t// must go to home page but wont as the mail id used here is already registered for an account, \n\t\t//so just checking for single error i.e. Email is already registered.\n\t\tAssert.assertEquals(1, signup.getErrors().size());\n\t}", "@Override\n public void onClick(View view) {\n final String username = usernameInput.getText().toString();\n final String password = passwordInput.getText().toString();\n final String email = emailInput.getText().toString();\n final String handle = handleInput.getText().toString();\n signup(username, password, email, handle);\n }", "public static Result register(){\n Skier loggedInSkier=Session.register();\n if(loggedInSkier!=null) {\n login(loggedInSkier);\n return renderHome(loggedInSkier);\n }else\n return badRequest(index.render(\"Something went wrong!\"));\n }", "public Admin_SignUp() {\n initComponents();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText emailText = (EditText)findViewById(R.id.reg_email);\n\t\t\t\tEditText firstNameText = (EditText)findViewById(R.id.reg_first_name);\n\t\t\t\tEditText lastNameText = (EditText)findViewById(R.id.reg_last_name);\n\t\t\t\tEditText userNameText = (EditText)findViewById(R.id.reg_username);\n\t\t\t\tEditText passwordText = (EditText)findViewById(R.id.reg_password);\n\t\t\t\tEditText phoneNumberText = (EditText)findViewById(R.id.reg_phone);\n\t\t\t\t\n\t\t\t\tregister(firstNameText.getText().toString(), lastNameText.getText().toString(), userNameText.getText().toString(), passwordText.getText().toString(), emailText.getText().toString(), phoneNumberText.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "Task<Void> signUp(String email, String password);", "@Override\r\n public void onClick(View view) {\r\n switch (view.getId()){\r\n case R.id.Signup:\r\n\r\n registerUser();\r\n\r\n break;\r\n }\r\n }", "public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}", "public static void signup() throws Exception{\n\t\trender();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_register);\n\t\t\n//\t\tcontext = getApplicationContext();\n//\t\tdbHelper = new MyDBHelper(getApplicationContext());\n\t\tetUsername = (EditText) findViewById(R.id.username);\n\t\tetPassword = (EditText) findViewById(R.id.password);\n\t\tetPassword1 = (EditText) findViewById(R.id.password1);\n\t\tbtnRegister = (Button) findViewById(R.id.btnregister);\n\t\tbtnRegister.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString username = etUsername.getText().toString();\n\t\t\t\tString pwd = etPassword.getText().toString();\n\t\t\t\tString pwd1 = etPassword1.getText().toString();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (TextUtils.isEmpty(etUsername.getText())) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Username cannot be empty!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(TextUtils.isEmpty(etPassword.getText()) || TextUtils.isEmpty(etPassword1.getText())){\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Password cannot be empty!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!pwd.equals(pwd1)){\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Password should be the same!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tUser user = new User(username, pwd);\n\t\t\t\t\n\t\t\t\tnew Register(user, RegisterActivity.this, new Register.SuccessCallBack() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this,\"Sign up successfully!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tstartActivity(new Intent(RegisterActivity.this, LoginActivity.class));\n\t\t\t\t\t}\n\t\t\t\t}, new Register.FailCallBack() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFail() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Username already exists!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "private void initSignUpButton() {\n TextButton signUpButton = new TextButton(\"Sign up\", skin);\n signUpButton.setPosition(320, 125);\n signUpButton.addListener(new InputListener() {\n @Override\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n AuthService authService = new AuthService();\n RegistrationResponse response\n = authService.register(usernameField.getText(), passwordField.getText());\n switch (response) {\n case OCCUPIED_NAME:\n usernameTakenDialog();\n break;\n case SHORT_PASSWORD:\n passwordTooShortDialog();\n break;\n case SUCCESS:\n stateManager.setState(new LoginState(stateManager));\n break;\n default:\n }\n }\n\n @Override\n public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n System.out.println(\"pressed sign up\");\n return true;\n }\n });\n stage.addActor(signUpButton);\n }", "User registration(User user);", "private void onSignUpPressed(View view) {\n Intent intent = new Intent(LoginActivity.this, CreateAccountActivity.class);\n startActivity(intent);\n }", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@Valid @RequestBody SignupRequest signupRequest) {\n System.out.println(\"Creating User \" + signupRequest);\n\n if (userAccountDetailsService.isUserExistByUsername(signupRequest.getUsername())) {\n System.out.println(\"A User with username: \" + signupRequest.getUsername() + \" already exist\");\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\n }\n\n UserAccount userAccount = new UserAccount();\n userAccount.setName(signupRequest.getName());\n userAccount.setUsername(signupRequest.getUsername());\n userAccount.setAge(signupRequest.getAge());\n userAccount.setPassword(passwordEncoder.encode(signupRequest.getPassword()));\n\n Set<String> roles = signupRequest.getRole();\n Set<Authorities> authorities = new HashSet<>();\n for(String role: roles) {\n Authorities authority = new Authorities();\n authority.setAuthority(role);\n authority.setUserAccount(userAccount);\n authorities.add(authority);\n }\n userAccount.setAuthorities(authorities);\n\n userAccountDetailsService.saveUser(userAccount);\n\n return new ResponseEntity<Void>(HttpStatus.CREATED);\n }", "public boolean createUser() {\r\n\t\tboolean signupSuccess = false;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and retrieving data (fetchSelectAllUsers())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection signupConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tinsert data into table\r\n\t\t\t*/\r\n\t\t\tsignupSuccess = signupConn.executeInsertIntoUsers(uName, password, fullName, phone, email);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn signupSuccess;\r\n\t}", "public F.Promise<Result> handleSignUp() {\n final Form<SignUp> filledForm = signUpForm.bindFromRequest();\n if(customerService().isLoggedIn()) {\n return asPromise(redirectToReturnUrl());\n } else if (filledForm.hasErrors()) {\n return asPromise(badRequest(signupView.render(data().build(), filledForm)));\n } else {\n return handleSignUpWithValidForm(filledForm);\n }\n }", "public Result showSignUp() {\n return ok(signupView.render(data().build(), signUpForm));\n }", "@Override\n public void onClick(View view) {\n regUser();\n }", "Boolean registerNewUser(User user);", "public void registerUser(View view) {\n this.closeKeyboard();\n this.validator.validate();\n if (this.validator.hasNoErrors()) {\n User user = createUser();\n RealmUser registeredUser = registerUserDetails(user);\n //TODO register on server.\n if (registeredUser != null) {\n new MockUserRegistrationService().registerUser(user.getFirstName(), user.getLastName(), user.getEmail(), user.getInsuranceProvider(), user.getInsurancePlan());\n doOnRegistrationSuccess();\n }\n }\n }", "private void register() {\n RegisterModel registerModel = new RegisterModel(edtEmail.getText().toString(),\n edtPaswd.getText().toString(),\n edtDisplayName.getText().toString());\n\n Response.Listener<RegisterApiResponse> responseListener = new Response.Listener<RegisterApiResponse>() {\n @Override\n public void onResponse(RegisterApiResponse response) {\n if (response.isSuccess()) login();\n }\n };\n\n Response.ErrorListener errorListener = new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.cancel();\n if (error != null) {\n String errorMsg = \"An error occurred\";\n String err = (error.getMessage() == null) ? errorMsg : error.getMessage();\n Log.d(TAG, err);\n error.printStackTrace();\n\n if (err.matches(AppConstants.CONNECTION_ERROR) || err.matches(AppConstants.TIMEOUT_ERROR)) {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(RegisterActivity.this);\n alertDialog.setTitle(getString(R.string.error_title_signup));\n alertDialog.setMessage(getString(R.string.error_message_network)).setCancelable(false)\n .setPositiveButton(getString(R.string.dialog_ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n alertDialog.show();\n } else if (err.matches(\".*Duplicate entry .* for key 'name_UNIQUE'.*\")) {\n edtDisplayName.setError(\"username taken\");\n edtDisplayName.requestFocus();\n } else if (err.matches(\".*The email has already been taken.*\")) {\n edtEmail.setError(\"email taken\");\n edtEmail.requestFocus();\n } else {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(RegisterActivity.this);\n alertDialog.setTitle(getString(R.string.error_title_signup));\n alertDialog.setMessage(getString(R.string.error_message_network)).setCancelable(false)\n .setPositiveButton(getString(R.string.dialog_ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n alertDialog.show();\n }\n }\n }\n };\n\n\n progressDialog.setMessage(getString(R.string.progress_dialog_message_login));\n RegistrationRequests registerRequest =\n RegistrationRequests.register(this, registerModel, responseListener, errorListener);\n VolleyRequest.getInstance(this.getApplicationContext()).addToRequestQueue(registerRequest);\n progressDialog.show();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_signup);\r\n\r\n\t\t// ENETER BUTTON : Match both the password fields\r\n\t\tButton enterButton = (Button) findViewById(R.id.SignUp_ButtonEnter);\r\n\t\tenterButton.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tfinal EditText emailField = (EditText) findViewById(R.id.SignUp_EditTextEmail);\r\n\t\t\t\tString mail_ID = emailField.getText().toString();\r\n\t\t\t\t\r\n\t\t\t\tif (mail_ID.length() == 0) {\r\n\r\n\t\t\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(\r\n\t\t\t\t\t\t\tSignUpActivity.this);\r\n\t\t\t\t\talertDialog.setTitle(\" User Alert !\");\r\n\t\t\t\t\talertDialog\r\n\t\t\t\t\t\t\t.setMessage(\"Please Enter Valid Username!!!\");\r\n\t\t\t\t\talertDialog.setPositiveButton(\"OK\",\r\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint id) {\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\talertDialog.show();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (scm.isConnected()) {\r\n\t\t\t\t\t((Button) findViewById(R.id.SignUp_ButtonEnter)).setEnabled(false);\r\n\t\t\t\t\tscm.CreateNewUser(mail_ID);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(\r\n\t\t\t\t\t\t\tSignUpActivity.this);\r\n\t\t\t\t\talertDialog.setTitle(\" User Alert !\");\r\n\t\t\t\t\talertDialog\r\n\t\t\t\t\t\t\t.setMessage(\"Sorry, Not connect to server yet.\");\r\n\t\t\t\t\talertDialog.setPositiveButton(\"OK\",\r\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint id) {\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\talertDialog.show();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// CANCEL BUTTON : Finish the Current Activity\r\n\t\tButton cancelButton = (Button) findViewById(R.id.SignUp_ButtonCancel);\r\n\t\tcancelButton.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// TODO Auto-generated method stub\r\n\t}", "@OnClick(R.id.register_button)\n public void register () {\n InputMethodManager imm = (InputMethodManager) context\n .getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromInputMethod(usernameField.getWindowToken(), 0);\n imm.hideSoftInputFromInputMethod(passwordField.getWindowToken(), 0);\n imm.hideSoftInputFromInputMethod(confirmField.getWindowToken(), 0);\n imm.hideSoftInputFromInputMethod(emailField.getWindowToken(), 0);\n\n\n\n\n String username = usernameField.getText().toString();\n String password = passwordField.getText().toString();\n String confirm = confirmField.getText().toString();\n String email = emailField.getText().toString();\n String avatarBase64 = \"string\";\n\n if (username.isEmpty() || password.isEmpty() || confirm.isEmpty() || email.isEmpty()) {\n\n Toast.makeText(context, R.string.field_empty, Toast.LENGTH_LONG).show();\n } else if(!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n\n Toast.makeText(context, R.string.provide_vaild_email, Toast.LENGTH_SHORT).show();\n\n } else if (!password.equals(confirm)) {\n\n Toast.makeText(context, R.string.passwords_dont_match, Toast.LENGTH_SHORT).show();\n } else {\n\n registerButton.setEnabled(false);\n spinner.setVisibility(VISIBLE);\n }\n Account account = new Account(email, username, avatarBase64, password);\n RestClient restClient = new RestClient();\n restClient.getApiService().register(account).enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n\n if (response.isSuccessful()) {\n Toast.makeText(context, R.string.registration_successful, Toast.LENGTH_LONG).show();\n //This will run if everything comes back good and sets the users token and expiration\n// User regUser = response.body();\n// UserStore.getInstance().setToken(regUser.getToken());\n// UserStore.getInstance().setTokenExpiration(regUser.getExpiration());\n\n //This will set up the flow of the application to show the next view upon successful registration\n Flow flow = PeoplemonApplication.getMainFlow();\n flow.goBack();\n } else {\n\n //This will return if the user has entered info but they have registered before\n resetView();\n Toast.makeText(context, R.string.registration_failed + \": \" + response.code(), Toast.LENGTH_LONG).show();\n }\n }\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n\n //This will show up if the data didn't come back from the server correctly or there is a timeout.\n resetView();\n Toast.makeText(context, R.string.registration_failed, Toast.LENGTH_LONG).show();\n }\n });\n }", "private void registrationView() {\n String login;\n String email;\n String password;\n\n try {\n while (true) {\n printLine();\n print(\"\\tВведите логин\\n\");\n print(\"\\t>>>>> \");\n login = readStringFromConsole();\n\n print(\"\\tВведите email\\n\");\n print(\"\\t>>>>> \");\n try {\n email = valid.emailValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный email\");\n continue;\n }\n\n print(\"\\tВведите пароль\\n\");\n print(\"\\t>>>>> \");\n try {\n password = valid.passwordValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный password\");\n continue;\n }\n break;\n }\n\n try {\n\n serviceAuthorizationService.registration(new UserDto()\n .withUsername(login)\n .withEmail(email)\n .withPassword(password));\n setStatus(REGISTERED);\n printLine();\n print(\"\\tВы успешно зарегистрировались\");\n } catch (AlreadyExistsException e) {\n e.showMessage();\n registrationView();\n }\n } catch (IOException e) {\n registrationView();\n }\n }", "private void signUp() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password, true);\n mAuthTask.execute((Void) null);\n }\n }", "public void registerUser(View view) {\n if(!validateName() | !validatePassword() | !validatePhoneNo() | !validateEmail()){\n return;\n }\n String phoneNo = regPhoneNo.getEditText().getText().toString();\n String name = regName.getEditText().getText().toString();\n String email = regEmail.getEditText().getText().toString();\n String password = regPassword.getEditText().getText().toString();\n\n //Call the next activity and pass phone no with it\n Intent intent = new Intent(getApplicationContext(), otpVerify.class);\n intent.putExtra(\"phoneNo\", phoneNo);\n intent.putExtra(\"password\", password);\n intent.putExtra(\"email\", email);\n intent.putExtra(\"name\", name);\n startActivity(intent);\n }", "@Override\n public void onValidationSucceeded() {\n String email = mEmailField.getText().toString();\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n String password = mPasswordField.getText().toString();\n\n mSignUpInterface.onSignup(email, firstName, lastName, password);\n }", "@OnClick(R.id.fragment_register_sign_up_button)\n public void validateSignupInformation() {\n mValidator.validate();\n }", "@Override\n\tpublic int signup(MemberVO member) {\n\t\treturn mapper.signup(member);\n\t}" ]
[ "0.7118093", "0.71165496", "0.70884556", "0.7072214", "0.7053834", "0.7047479", "0.7046814", "0.70267254", "0.6950165", "0.6945044", "0.6915684", "0.69146675", "0.6873959", "0.6850004", "0.6790423", "0.67702484", "0.6744201", "0.67139804", "0.67057586", "0.6693981", "0.6671037", "0.66682833", "0.66662645", "0.66573", "0.6648927", "0.6629301", "0.661899", "0.661899", "0.6615489", "0.6615114", "0.6605787", "0.65946543", "0.65888864", "0.6559279", "0.6555139", "0.6547792", "0.6545677", "0.653425", "0.65335584", "0.65272844", "0.6517143", "0.65062326", "0.6486743", "0.6479547", "0.64789224", "0.6471209", "0.64611155", "0.64582574", "0.6452618", "0.64409196", "0.6432998", "0.64270836", "0.6425577", "0.6421112", "0.6413246", "0.64061147", "0.6403328", "0.64018345", "0.6401075", "0.6393285", "0.63890344", "0.6372205", "0.6371723", "0.6364662", "0.6359059", "0.63487965", "0.6343398", "0.6338594", "0.63289", "0.6326684", "0.6314326", "0.6310779", "0.6309868", "0.6309403", "0.63068175", "0.6286635", "0.6280436", "0.6279768", "0.6274873", "0.6272015", "0.6271237", "0.6270753", "0.6256589", "0.62484336", "0.62362045", "0.62312526", "0.6230136", "0.6225328", "0.6221265", "0.62190634", "0.6210251", "0.6205174", "0.620185", "0.61969465", "0.619665", "0.61944443", "0.6194128", "0.6193347", "0.6189549", "0.61890537", "0.6186298" ]
0.0
-1
This Function is to Select Telugu Language
public void selectTelugu() { deviceHelper.waitTillTheElementIsVisibleAndClickable(signUpObjects.teluguBox); element(signUpObjects.teluguBox).click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectLanguage(String language){\n\t\t\t if (language ==\"Spanish\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_0\")).click();\n\t\t\t }\n\t\t\t else if (language==\"English\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_2\")).click();\t\t\t \n\t\t\t }\n\t\t\t else if (language==\"Portuguese\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_1\")).click();\n\t\t\t\t }\n\t \t }", "private Language askForLanguage() {\r\n // Build a message\r\n String message = \"Which language ? \\n\";\r\n for (int i = 0; i < listLanguages.size(); i++) {\r\n message += \"\\t\" + i + \"\\\\ \" + listLanguages.get(i).getName() + \"\\n\";\r\n }\r\n // Ask for number and get the correct Language\r\n return listLanguages.get(new Integer(askForLine(message)));\r\n }", "CLanguage getClanguage();", "String getLanguage();", "String getLanguage();", "String getLanguage();", "String getLang();", "java.lang.String getLanguage();", "java.lang.String getLanguage();", "private static int switchLanguage(int chineseVersion, int englishVersion)\n {\n if (sIsChinese)\n {\n return chineseVersion;\n }\n else\n {\n return englishVersion;\n }\n }", "java.lang.String getTargetLanguageCode();", "public String getLanguage();", "void TranslateToTurkish() {\n // Check wheter the device language is English\n if(Locale.getDefault().getDisplayLanguage() == \"en\"){ // Don't do anything if it is English\n }\n else { // Translate to device language (For now just Turkish)\n final Handler textViewHandler = new Handler();\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n TranslateOptions options = TranslateOptions.newBuilder()\n .setApiKey(googleApiKey)\n .build();\n Translate translate = options.getService();\n final Translation translation =\n translate.translate(textToSpeechInputText,\n Translate.TranslateOption.targetLanguage(\"tr\"));\n textViewHandler.post(new Runnable() {\n @Override\n public void run() {\n Log.d(\"Translated text:\", translation.getTranslatedText().toString());\n textToSpeechInputText = translation.getTranslatedText().toString();\n Log.d(\"Output\", textToSpeechInputText);\n //Speak of the result\n Speak(textToSpeechInputText);\n state = 2; // Turn state to speaking the result\n }\n });\n return null;\n }\n }.execute();\n }\n }", "void onLanguageSelected();", "private void setLanguageScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t}", "public void switchLanguage(){\n Locale myLocale = new Locale(\"de\");\r\n // get current Locale\r\n String currentLocale = scanActivity.getResources().getConfiguration().locale\r\n .toString();\r\n // set Locale to english if current Locale is german\r\n if (currentLocale.equals(\"de\")) {\r\n myLocale = new Locale(\"en\");\r\n }\r\n // sets the Locale in the configuration and updates the\r\n // configuration\r\n DisplayMetrics metrics = scanActivity.getResources().getDisplayMetrics();\r\n Configuration config = scanActivity.getResources().getConfiguration();\r\n config.locale = myLocale;\r\n scanActivity.getResources().updateConfiguration(config, metrics);\r\n // recreates the app in order to show the selected language\r\n scanActivity.recreate();\r\n }", "private void switchLanguage( ){\n \tString xpathEnglishVersion = \"//*[@id=\\\"menu-item-4424-en\\\"]/a\";\n \tif( driver.findElement( By.xpath( xpathEnglishVersion ) ).getText( ).equals( \"English\" ) ) {\n \t\tSystem.out.println( \"Change language to English\" );\n \t\tdriver.findElement( By.xpath( xpathEnglishVersion ) ).click( );\n \t\tIndexSobrePage.sleepThread( );\n \t}\n }", "public void selectLanguage() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tWebElement languageelement = driver.findElement(By.xpath(\"//select[@name='languageId']\"));\n\t\tSelect se = new Select(languageelement);\n\t\tse.selectByVisibleText(BasePage.getCellData(xlsxName, sheetName, 11, 0));\n\n\t}", "public void setLanguage(String language);", "private void changeLanguage(String selectedLang) {\n if (AppUtils.getInstance().isInternetAvailable(this)) {\n hitChangeLanguageApi(selectedLang);\n\n }\n }", "@DISPID(-2147413012)\n @PropGet\n java.lang.String language();", "private String setSpeechFXLanguage(String language){\n String lang;\n if (!mSpeechFXon) {\n lang = language;\n } else if (mTts == null) {\n\t\t\tLog.i(TAG, \"TTS IS NULL!\");\n\t\t\tlang = language;\n\t\t} else {\n\t\t\tlang = Languages.setSpeechLanguage(language, mDefaultSpeechLang, mTts.ttsengine());\n\t\t\tif (mTts != null && lang != null && !lang.equals(\"\")) {\n\t\t\t\tLog.i(TAG, \"TTS set speech engine language: \" + lang);\n\t\t\t\tmTts.ttsengine().setLanguage(Languages.stringToLocale(lang));\n\t\t\t} else {\n\t\t\t\t// Unchanged, so return the pilot language\n\t\t\t\tlang = language;\n\t\t\t}\n\t\t\tLog.i(TAG, \"TTS LANG: \" + lang);\n\t\t}\n\n\t\treturn lang;\n\t}", "@Override\n public void setLanguage(String lang) {\n }", "public void englishlanguage() {\nSystem.out.println(\"englishlanguage\");\n\t}", "public static String getLanguageRequest(HttpServletRequest request)\n\t{\n\t\tString language = \"en\";\n\t\t\n\t\tLoginResponse userSessionInfo = (LoginResponse) request.getSession().getAttribute(Attribute.s_USER_SESSION_INFO);\n\t\t\n\t\t//Object langobj = request.getSession().getAttribute(Attribute.s_CURRENT_LANGUAGE);\n\t\tObject langobj=null;\n\t\tif(userSessionInfo!=null)langobj = userSessionInfo.getIsoLanguage();\n\t\tif(langobj == null)\n\t\t{\n\t\t\tString langReq = request.getHeader(\"Accept-Language\").split(\";\")[0].split(\",\")[0];\n\t\t\t//System.out.println(\"Language: \" + langReq);\n\t\t\t\n\t\t\tif(langReq.contains(\"es\")){ language = \"es\";}\n\t\t\telse if(langReq.contains(\"en\")){ language = \"en\";}\t\n\t\t\t/*else if(langReq.contains(\"ca\")){ language = \"ca\";}\t\n\t\t\telse if(langReq.contains(\"fr\")){ language = \"fr\";}\t\n\t\t\telse if(langReq.contains(\"it\")){ language = \"it\";}\t\n\t\t\telse if(langReq.contains(\"el\")){ language = \"el\";}\t\n\t\t\telse if(langReq.contains(\"de\")){ language = \"de\";}\n\t\t\telse if(langReq.contains(\"eu\")){ language = \"eu\";}\t\n\t\t\telse if(langReq.contains(\"gl\")){ language = \"gl\";}\t\n\t\t\telse if(langReq.contains(\"ar\")){ language = \"ar\";}\t\n\t\t\telse if(langReq.contains(\"zh\")){ language = \"zh\";}\t\n\t\t\telse if(langReq.contains(\"nl\")){ language = \"nl\";}\t\n\t\t\telse if(langReq.contains(\"pt\")){ language = \"pt\";}\n\t\t\telse if(langReq.contains(\"sv\")){ language = \"sv\";}\t\n\t\t\telse if(langReq.contains(\"ro\")){ language = \"ro\";}\t\n\t\t\telse if(langReq.contains(\"pl\")){ language = \"pl\";}*/\n\t\t\t\n\t\t\trequest.getSession().setAttribute(Attribute.s_CURRENT_LANGUAGE, language);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlanguage = (String)langobj;\n\t\t}\n\t\t\n\t\treturn language;\n\t}", "public String changeLeguage(){\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tLocale miLocale = new Locale(\"en\",\"US\");\r\n\t\tcontext.getViewRoot().setLocale(miLocale);\r\n\t\treturn \"login\";\r\n\t}", "private Locale getBotLocale( HttpServletRequest request )\r\n {\r\n String strLanguage = request.getParameter( PARAMETER_LANGUAGE );\r\n\r\n if ( strLanguage != null )\r\n {\r\n return new Locale( strLanguage );\r\n }\r\n\r\n return LocaleService.getDefault( );\r\n }", "void setLanguage(Language language);", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void setLanguage() {\n if (Value.language_flag == 0) {\n title.setText(title_text);\n back.setText(\"back\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 1) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 2) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n }\n }", "private void changeLanguage(String newLanguage){\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"1\");\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"2\");\n\t}\n\t\n\t/*\n\tprefLanguage = ((GameActivity) activity).getPreference(\"language\", \"1\");\n\tif (prefLanguage.contentEquals(\"1\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t} else if (prefLanguage.contentEquals(\"2\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t}\n\t*/\n\t\n\t\n\t\n\t/*\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t\tlocalLanguage=0;\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t\tlocalLanguage=1;\n\t}\n\t*/\n\t\n}", "Builder addInLanguage(Text value);", "public String getTargetLanguage()\n\t{\n\t\treturn targetLanguage;\n\t}", "public void changeLanguage(View view) {\n\n // Create Dialog\n final Dialog dialog = new Dialog(this);\n\n dialog.setTitle(R.string.language);// Doesn't work\n dialog.setContentView(R.layout.fragment_language_fragment);\n\n // Gets RadioGroup ID from dialog which contains the layout that hold the RadioGroup\n RadioGroup rg = dialog.findViewById(R.id.radiogroup);\n rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n switch (checkedId){\n case R.id.en: {// English\n String languageToLoad = \"en\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n case R.id.es: { // Spanish\n String languageToLoad = \"es\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n\n }\n break;\n case R.id.ja: {// Japanese\n String languageToLoad = \"ja\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n default: {// In case check id gives weired int, set to English\n String languageToLoad = \"en\"; // your language\n Locale locale = new Locale(languageToLoad);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.setLocale(locale); //= locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n }\n break;\n }\n // Refreshes Activity\n Intent intent = new Intent(getBaseContext(),WelcomePage.class);\n finish();\n startActivity(intent);\n }\n });\n\n //Show the dialog\n dialog.show();\n }", "@Override\n public String getLang() {\n if (request != null) {\n return GuideUtils.getAcceptLang(request);\n } else {\n return FormContainer.super.getLang();\n }\n }", "@DISPID(-2147413103)\n @PropGet\n java.lang.String lang();", "public String getLanguageMenuText() {\r\n\t\treturn \"语言\";\r\n\t}", "@Override\n\tpublic java.lang.String getTargetLanguage() {\n\t\treturn _scienceApp.getTargetLanguage();\n\t}", "public void language(String system) {\n String language=\"c语言\";\n this.output.output(system, language);\n //System.out.println(\"C语言编程!\\n\");\n }", "private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}", "protected String getLang(SharedPreferences prefs, Resources res) {\n Intent intent = getIntent();\n if (intent != null) {\n String lang = intent.getStringExtra(RecognizerIntent.EXTRA_LANGUAGE);\n if (lang != null) {\n return lang;\n }\n }\n return PreferenceUtils.getPrefString(prefs, res, R.string.keyLanguage, R.string.defaultLanguage);\n }", "public void selectLanguage(String language) {\n\t\tdeviceHelper.waitTillTheElementIsVisible(signUpObjects.selectLanguageTitle);\n\t\tdeviceHelper.selectLanguageUsingText(language);\n\t}", "private String getLanguageFromTokenizer(StreamTokenizer st)\n\t\t\tthrows IOException {\n\t\tst.nextToken();\n\t\t// if not defined -> define default language of server...\n\t\tif (st.sval == null || st.sval.equals(\"\"))\n\t\t\treturn Locale.getDefault().getLanguage();\n\t\t// else return language string\n\t\treturn st.sval;\n\t}", "@AutoEscape\n\tpublic String getLanguage();", "public void changeLanguage(View v) {\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration config = res.getConfiguration();\n\n String targetLanguage;\n\n // Log.d(\"en-US\", targetLanguage);\n\n if ( config.locale.toString().equals(\"pt\") ) {\n targetLanguage = \"en-US\";\n } else {\n targetLanguage = \"pt\";\n }\n\n Locale newLang = new Locale(targetLanguage);\n\n config.locale = newLang;\n res.updateConfiguration(config, dm);\n\n // Reload current page with new language\n Intent refresh = new Intent(this, Settings.class);\n startActivity(refresh);\n }", "@Override\r\n\t\tpublic String getLang()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "void updateLang() {\n if (lang == null)\n lang = game.q;\n }", "public static void getLangCharCode(Connection conn, String selected, TextArea textArea, int num)\n{\n\t//String countryCode = \"\";\n\t//String language = \"\";\n\t\n\ttry {\n\t\t\n\t\t//works\n\t\t//System.out.println(\"Made it\" + \"***8\" + selected);\n\t\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\t\n\t\t//grabbing correct continent :)\n\t\tString sqlStatement = \"SELECT countryCode FROM Language WHERE language = '\" + selected +\"'\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\tArrayList<String> list = new ArrayList();\n\t\t//this caused a lot of problems -- specifically the invalid cursor state. You must move the cursor up one in a database\n\t\twhile(result.next())\n\t\t{\n\t\t\t\n\t\tlist.add(result.getString(\"countrycode\"));\n\t\t//countryCode = result.getString(\"countryCode\");\n\t\t//System.out.println(countryCode);\n\t\t//getting the countries from the first table by city code\n\t\t}\n\t\t\n\t\t//depending on the number passed through, we will be getting either population, continent, etc\n\t\tif(num == 1)\n\t\t{\n\t\tfor(int i = 0; i < list.size(); i++)\n\t\t{\n\t\t\tgetLanguageContinent(conn, list.get(i), textArea, i);\n\t\t}\n\t\t}\n\t\t\n\t\tif (num == 2)\n\t\t\tfor(int i = 0; i < list.size(); i++)\n\t\t\t{\n\t\t\t\tgetLanguagePopulation(conn, list.get(i), textArea, list, i);\n\t\t\t}\n\t\t\n\t\tif(num == 3)\n\t\t{\n\t\t\tfor(int i = 0; i < list.size(); i++)\n\t\t\n\t\t\t{\n\t\t\t\t\n\t\t\tgetLanguageLifeExpectancy(conn, list.get(i), textArea, list, i);\n\t\t\t}\n\t\t\t}\n\t\t\n\t\tif(num == 4)\n\t\t{\n\t\t\tfor(int i = 0; i < list.size(); i++)\n\t\t\n\t\t\t{\n\t\t\tgetLanguageCountry(conn, list.get(i), textArea, i);\n\t\t\t}\n\t\t\t}\n\t\t\n\t\tstmt.close();\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n}", "static private void setLanguage(String strL) {\r\n\r\n\t\tstrLanguage = strL;\r\n\r\n\t\t// need to reload it again!\r\n\t\tloadBundle();\r\n\t}", "public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter your language:\");\n String language = scanner.nextLine();\n\n switch (language){\n case \"Sinhala\":\n System.out.println(\"Language is changed to Sinhala..\");\n break;\n case \"English\":\n System.out.println(\"Language is changed to English..\");\n break;\n case \"Tamil\":\n System.out.println(\"Language is changed to Tamil..\");\n break;\n default:\n System.out.println(\"Something went wrong!! Try again..\");\n break;\n }\n\n }", "private SupportedLanguage getAndroidLang() {\n\t\treturn this.androidLang;\n\t}", "public String getLocale () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@Step(\"Select {language} language from the list\")\n public void selectLanguage(String language) {\n Select select = new Select(languageSelect);\n select.selectByVisibleText(language);\n }", "@SuppressWarnings(\"unused\")\n public void restoreSystemLanguageAsChineseByFramework() {\n try {\n Class<?> cls = Class.forName(\"com.android.internal.app.LocalePicker\");\n Method updateLocale = cls.getDeclaredMethod(\"updateLocale\", Locale.class);\n updateLocale.invoke(cls.newInstance(), Locale.CHINESE);\n } catch (ClassNotFoundException | InstantiationException\n | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {\n e.printStackTrace();\n Assert.fail(\"setSystemLanguageAsEnglishByFramework, failed!\");\n }\n }", "public abstract void startVoiceRecognition(String language);", "java.lang.String getLanguageCode();", "java.lang.String getLanguageCode();", "public void showLanguage(String which){\n switch (which) {\n case \"en\":\n locale = new Locale(\"en\");\n config.locale = locale;\n //MainActivity.language = 0;\n languageToLoadWizard=\"en\";\n break;\n case \"sw\":\n locale = new Locale(\"sw\");\n config.locale = locale;\n //MainActivity.language = 1;\n languageToLoadWizard=\"sw\";\n break;\n case \"es\":\n locale = new Locale(\"es\");\n config.locale = locale;\n languageToLoadWizard=\"es\";\n break;\n }\n getResources().updateConfiguration(config, null);\n Intent refresh = new Intent(Language.this, Wizard.class);\n startActivity(refresh);\n finish();\n }", "@Override\r\n\t\tpublic void setLang(String lang)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void selectLanguage(String language) {\n\n String xpath = String.format(EST_LANGUAGE, language);\n List<WebElement> elements = languages.findElements(By.xpath(xpath));\n for (WebElement element : elements) {\n if (element.isDisplayed()) {\n element.click();\n break;\n }\n }\n }", "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "@Override\n public String returnlanguage() {\n name =\"Java\";\n return name;\n }", "public String getEnglish()\n {\n if (spanishWord.substring(0,3).equals(\"el \"))\n {\n spanishWord = spanishWord.substring(3, spanishWord.length());\n }\n else if (spanishWord.substring(0, 3).equals(\"la \"))\n {\n spanishWord = spanishWord.substring(3, spanishWord.length());\n }\n if (spanishWord.equals(\"estudiante\"))\n {\n return \"student\"; \n }\n else if (spanishWord.equals(\"aprender\"))\n {\n return \"to learn\";\n }\n else if (spanishWord.equals(\"entender\"))\n {\n return\"to understand\";\n }\n else if (spanishWord.equals(\"verde\"))\n {\n return \"green\";\n }\n else\n {\n return null;\n }\n }", "String getLanguageCode();", "@objid (\"8b3ba8b8-4d09-4d8e-9064-983191cc6b26\")\n @Override\n public String getLanguage() {\n String language = Platform.getNL();\n if (language.contains(\"_\")) {\n return Platform.getNL().substring(0, language.lastIndexOf(\"_\"));\n }\n return Platform.getNL();\n }", "private String getLanguage(String fileName)\n {\n if (fileName.endsWith(\".C\"))\n {\n return \"C\";\n }\n else if (fileName.endsWith(\".Java\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".CPP\"))\n {\n return \"C++\";\n }\n else if (fileName.endsWith(\".Class\"))\n {\n return \"Java\";\n }\n if (fileName.endsWith(\".c\"))\n {\n return \"C\";\n }\n else if (fileName.endsWith(\".java\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".cpp\"))\n {\n return \"C++\";\n }\n else if (fileName.endsWith(\".class\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".h\"))\n {\n return \"C\";\n }\n else\n {\n return \"??\";\n }\n }", "private static void setAcceptLanguage(HttpURLConnection conn) {\n Locale locale = Locale.getDefault();\n\n // Do nothing if no language is set.\n if(locale.getLanguage().length() == 0) {\n return;\n }\n\n StringBuilder sb = new StringBuilder();\n\n // Add country information if available.\n if(locale.getCountry().length() > 0) {\n sb.append(locale.getLanguage() + \"-\" + locale.getCountry() + \",\");\n }\n\n // Add just language (Q-score taken from Firefox)\n sb.append(locale.getLanguage() + \";q=0.5\");\n\n conn.setRequestProperty(\"Accept-Language\", sb.toString());\n }", "public String returnLanguage() {\n\t\treturn this.registration_language.getAttribute(\"value\");\r\n\t}", "private void loadLocale() {\n\t\tSharedPreferences sharedpreferences = this.getSharedPreferences(\"CommonPrefs\", Context.MODE_PRIVATE);\n\t\tString lang = sharedpreferences.getString(\"Language\", \"en\");\n\t\tSystem.out.println(\"Default lang: \"+lang);\n\t\tif(lang.equalsIgnoreCase(\"ar\"))\n\t\t{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"ar\";\n\t\t}\n\t\telse{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"en\";\n\t\t}\n\t}", "public AbstractLetterFactory decideLanguage(String lang){\n if(lang==\"ENG\"){\n Parameters.TARGET_CHROMOSOME = new char[]{'m', 'a', 'y', 'n', 'o', 'o', 't', 'h'};\n return new EnglishLetterFactory();\n\n }\n else if(lang==\"RUS\"){\n Parameters.TARGET_CHROMOSOME = new char[]{'м','а', 'ы', 'н', 'о', 'о', 'т', 'х'};\n return new RussianLetterFactory();\n }\n\n return new EnglishLetterFactory();\n\n }", "@Test\n\tpublic void languageTest() {\n\t\tassertNotNull(queryTest.query(\"漢語\"));\n\t\tassertNotNull(queryTest.query(\"ンサートは\"));\n\t\tassertNotNull(queryTest.query(\"Ζ Θ Ι ΚΛ\"));\n\t\tassertNotNull(queryTest.query(\"Ζ Θ Ι ΚΛ\"));\n\t\tassertNotNull(queryTest.query(\"nalità umana ed al rafforzamento del rispetto dei diritti umani e delle libertà f\"));\n\t}", "public void handleSlovakLanguage(){\n Locale locale = new Locale(\"sk\", \"SK\");\n ResourceBundle bundle = ResourceBundle.getBundle(\"Lang\", locale, new UTF8Control());\n lr.setResources(bundle);\n stageManager.switchScene(FxmlView.LOGIN);\n }", "public Future<String> getLanguage() throws DynamicCallException, ExecutionException {\n return call(\"getLanguage\");\n }", "String getLangId();", "public String getLanguage()\r\n\t{\r\n\t\treturn (String) queryParams.get(AUTH_LANGUAGE);\r\n\t}", "private JSONObject languageMenu(JSONObject base) {\n JSONObject lang = base.getJSONObject(\"language\");\n try {\n } catch (Exception e) {\n e.printStackTrace();\n }\n while (true) {\n String input = \"\";\n try {\n visual.renderSettings(lang, \"Language Settings\");\n visual.renderMessage(\"Write the option to change: \");\n input = visual.getInput();\n } catch (Exception e) {\n e.printStackTrace();\n }\n LanguageHandler langhan = LanguageHandler.getInstance();\n JSONObject opt = null;\n LanguageInfo info = null;\n switch (input) {\n case (\"name\"):\n opt = new JSONObject();\n opt.put(\"value\", lang.getString(\"name\"));\n opt.put(\"options\", new JSONArray(langhan.getLanguages()));\n try {\n visual.renderSettings(opt, \"Language\");\n String in = visual.getInput();\n if (langhan.getLanguages().contains(in)) {\n lang.put(\"name\", in);\n info = langhan.getLanguageInfo(in);\n lang.put(\"size\", info.getDimensions().get(0));\n lang.put(\"dictionary\", info.getDictionaries().get(0));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case (\"size\"):\n opt = new JSONObject();\n info = langhan.getLanguageInfo(lang.getString(\"name\"));\n opt.put(\"value\", lang.getString(\"size\"));\n opt.put(\"options\", new JSONArray(info.getDimensions()));\n try {\n visual.renderSettings(opt, \"Size\");\n String in = visual.getInput();\n if (info.getDimensions().contains(in)) {\n lang.put(\"size\", in);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case (\"dictionary\"):\n opt = new JSONObject();\n info = langhan.getLanguageInfo(lang.getString(\"name\"));\n opt.put(\"value\", lang.getString(\"dictionary\"));\n opt.put(\"options\", new JSONArray(info.getDictionaries()));\n try {\n visual.renderSettings(opt, \"Dictionary\");\n String in = visual.getInput();\n if (info.getDictionaries().contains(in)) {\n lang.put(\"dictionary\", in);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case (\"back\"):\n return lang;\n }\n }\n }", "public Builder setLanguage(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n language_ = value;\n onChanged();\n return this;\n }", "Builder addInLanguage(String value);", "public static String getLocale(Player player)\n {\n Object ep = null;\n try\n {\n ep = getMethod(\"getHandle\", player.getClass()).invoke(player, (Object[]) null);\n }\n catch (IllegalAccessException | IllegalArgumentException| InvocationTargetException e)\n {\n e.printStackTrace();\n }\n Field f = null;\n try\n {\n f = ep.getClass().getDeclaredField(\"locale\");\n }\n catch (NoSuchFieldException | SecurityException e)\n {\n e.printStackTrace();\n }\n f.setAccessible(true);\n String language = null;\n try\n {\n language = (String) f.get(ep);\n }\n catch (IllegalArgumentException | IllegalAccessException e)\n {\n e.printStackTrace();\n }\n return language;\n }", "public String getLanguageKey();", "private void hitChangeLanguageApi(final String selectedLang) {\n progressBar.setVisibility(View.VISIBLE);\n ApiInterface apiInterface = RestApi.createServiceAccessToken(this, ApiInterface.class);//empty field is for the access token\n final HashMap<String, String> params = AppUtils.getInstance().getUserMap(this);\n params.put(Constants.NetworkConstant.PARAM_USER_ID, AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.USER_ID));\n params.put(Constants.NetworkConstant.PARAM_USER_LANGUAGE, String.valueOf(languageCode));\n Call<ResponseBody> call = apiInterface.hitEditProfileDataApi(AppUtils.getInstance().encryptData(params));\n ApiCall.getInstance().hitService(this, call, new NetworkListener() {\n\n @Override\n public void onSuccess(int responseCode, String response, int requestCode) {\n progressBar.setVisibility(View.GONE);\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n switch (responseCode) {\n case Constants.NetworkConstant.SUCCESS_CODE:\n setLanguage(selectedLang);\n// Locale locale = new Locale(language);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());\n AppUtils.getInstance().openNewActivity(ChangeLanguageActivity.this, new Intent(ChangeLanguageActivity.this, HomeActivity.class));\n break;\n }\n }\n\n\n @Override\n public void onError(String response, int requestCode) {\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n progressBar.setVisibility(View.GONE);\n }\n\n\n @Override\n public void onFailure() {\n progressBar.setVisibility(View.GONE);\n }\n }, 1);\n }", "public String getDisplayLanguage(ULocale displayLocale) {\n/* 509 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setLang() {\n new LanguageManager() {\n @Override\n public void engLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_eng);\n mSaleTitle = getString(R.string.converter_sale_eng);\n mPurchaseTitle = getString(R.string.converter_purchase_eng);\n mCountTitle = getString(R.string.converter_count_of_currencies_eng);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_eng));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleEng());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_eng);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_eng);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_eng);\n mToastFailure = getString(R.string.converter_toast_failure_eng);\n mTitle = getResources().getString(R.string.drawer_item_converter_eng);\n mMessage = getString(R.string.dialog_template_text_eng);\n mTitleButtonOne = getString(R.string.dialog_template_edit_eng);\n mTitleButtonTwo = getString(R.string.dialog_template_create_eng);\n mToastEdited = getString(R.string.converter_toast_template_edit_eng);\n mToastCreated = getString(R.string.converter_toast_template_create_eng);\n mMessageFinal = getString(R.string.converter_final_dialog_text_eng);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_eng);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_eng);\n }\n\n @Override\n public void ukrLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_ukr);\n mSaleTitle = getString(R.string.converter_sale_ukr);\n mPurchaseTitle = getString(R.string.converter_purchase_ukr);\n mCountTitle = getString(R.string.converter_count_of_currencies_ukr);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_ukr));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleUkr());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_ukr);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_ukr);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_ukr);\n mToastFailure = getString(R.string.converter_toast_failure_ukr);\n mTitle = getResources().getString(R.string.drawer_item_converter_ukr);\n mMessage = getString(R.string.dialog_template_text_ukr);\n mTitleButtonOne = getString(R.string.dialog_template_edit_ukr);\n mTitleButtonTwo = getString(R.string.dialog_template_create_ukr);\n mToastEdited = getString(R.string.converter_toast_template_edit_ukr);\n mToastCreated = getString(R.string.converter_toast_template_create_ukr);\n mMessageFinal = getString(R.string.converter_final_dialog_text_ukr);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_ukr);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_ukr);\n }\n\n @Override\n public void rusLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_rus);\n mSaleTitle = getString(R.string.converter_sale_rus);\n mPurchaseTitle = getString(R.string.converter_purchase_rus);\n mCountTitle = getString(R.string.converter_count_of_currencies_rus);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_rus));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleRus());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_rus);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_rus);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_rus);\n mToastFailure = getString(R.string.converter_toast_failure_rus);\n mTitle = getResources().getString(R.string.drawer_item_converter_rus);\n mMessage = getString(R.string.dialog_template_text_rus);\n mTitleButtonOne = getString(R.string.dialog_template_edit_rus);\n mTitleButtonTwo = getString(R.string.dialog_template_create_rus);\n mToastEdited = getString(R.string.converter_toast_template_edit_rus);\n mToastCreated = getString(R.string.converter_toast_template_create_rus);\n mMessageFinal = getString(R.string.converter_final_dialog_text_rus);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_rus);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_rus);\n }\n };\n getDataForActionDialog();\n setData();\n }", "public AVT getLang()\n {\n return m_lang_avt;\n }", "public void setLanguageEnglishButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_languageEnglishButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setLanguageEnglishButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "com.google.protobuf.ByteString getTargetLanguageCodeBytes();", "public Builder setLanguage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n language_ = value;\n onChanged();\n return this;\n }", "public String getCurrentLanguage() {\n return getStringData(Key.APP_CURRENT_LANGUAGE + \"\", \"zh\");\n }", "public String getLanguage() {\r\n return language;\r\n }", "public void loadLocale() {\n\n\t\tSystem.out.println(\"Murtuza_Nalawala\");\n\t\tString langPref = \"Language\";\n\t\tSharedPreferences prefs = getSharedPreferences(\"CommonPrefs\",\n\t\t\t\tActivity.MODE_PRIVATE);\n\t\tString language = prefs.getString(langPref, \"\");\n\t\tSystem.out.println(\"Murtuza_Nalawala_language\" + language);\n\n\t\tchangeLang(language);\n\t}", "protected void addLanguageParameter() throws Exception\n {\n Connection c = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try\n {\n ArrayList termbaseLangs = new ArrayList();\n termbaseLangs.add(ALL);\n c = ConnectionPool.getConnection();\n ps = c.prepareStatement(TERM_LANG_QUERY);\n rs = ps.executeQuery();\n while (rs.next())\n {\n termbaseLangs.add(rs.getString(1));\n }\n\n // We should use .addList() and use a multi-select list instead\n // to let the user select multiple languages...BUT\n // this widget just does not work in the current inetsoft version\n // with the DHTML viewer (ok for java viewer)\n // So, we're stuck with giving the user one value to choose.\n theParameters.addChoice(\"selectedLang\", ALL,\n termbaseLangs.toArray());\n theParameters.setAlias(\"selectedLang\", \"Language\");\n }\n finally\n {\n ConnectionPool.silentClose(rs);\n ConnectionPool.silentClose(ps);\n ConnectionPool.silentReturnConnection(c);\n }\n }", "@Override\n public String getResumeLanguage() {\n return \"zh\";\n }", "public void prepareLang(){\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n // first time in this page, no settings yet.\n if(!sharedPreferences.contains(studySetId+\":front:\"+studySetSupportedLanguages[0])){\n lang1 = studySetSupportedLanguages[0];\n lang2 = studySetSupportedLanguages[1];\n return ;\n }\n\n // 2nd time+\n for(String lang :studySetSupportedLanguages){\n if(sharedPreferences.getBoolean(studySetId+\":front:\"+lang, false)) lang1 = lang;\n if(sharedPreferences.getBoolean(studySetId+\":back:\"+lang, false)) lang2 = lang;\n }\n }", "public void setLanguage(Language l)\n\t{\n\t\tm_language = l;\n\t}", "public void changeLanguageCheck(int n) {\n TextView textView = (TextView)this.findViewById(2131361803);\n TextView textView2 = (TextView)this.findViewById(2131361805);\n TextView textView3 = (TextView)this.findViewById(2131361807);\n TextView textView4 = (TextView)this.findViewById(2131361804);\n TextView textView5 = (TextView)this.findViewById(2131361806);\n TextView textView6 = (TextView)this.findViewById(2131361809);\n textView.setText((CharSequence)MessageTopup.getMessage(12));\n textView.setTypeface(MessageTopup.setFont((Context)this, 0));\n textView2.setText((CharSequence)MessageTopup.getMessage(13));\n textView2.setTypeface(MessageTopup.setFont((Context)this, 0));\n textView3.setText((CharSequence)MessageTopup.getMessage(14));\n textView3.setTypeface(MessageTopup.setFont((Context)this, 0));\n textView4.setText((CharSequence)MessageTopup.getMessage(16));\n textView4.setTypeface(MessageTopup.setFont((Context)this, 0));\n textView5.setText((CharSequence)MessageTopup.getMessage(16));\n textView5.setTypeface(MessageTopup.setFont((Context)this, 0));\n textView6.setText((CharSequence)MessageTopup.getMessage(16));\n textView6.setTypeface(MessageTopup.setFont((Context)this, 0));\n String string2 = \"\";\n if (n == 1) {\n string2 = String.valueOf((Object)string2) + \"_th\";\n } else if (n == 2) {\n string2 = String.valueOf((Object)string2) + \"_en\";\n }\n if (this.next != null) {\n this.next.setBackgroundDrawable(CallImage.imageDrawableCard(\"bt_pay\" + string2));\n }\n }", "private static String getCurrentLanguageCode() {\n return Locale.getDefault().getLanguage();\n }", "public void setLanguage(String s) {\n\t\tlanguage = s;\n\t}", "public String getLanguage()\n\t{\n\t\treturn language;\n\t}", "private String autoDetectLanguage(ArrayList<File> progFiles) {\n for (File f : progFiles) {\n String f_extension = getFileExtension(f).toLowerCase();\n if (Arrays.asList(IAGConstant.PYTHON_EXTENSIONS).contains(f_extension)) {\n return IAGConstant.LANGUAGE_PYTHON3;\n }\n if (Arrays.asList(IAGConstant.CPP_EXTENSIONS).contains(f_extension)) {\n return IAGConstant.LANGUAGE_CPP;\n }\n }\n return IAGConstant.LANGUAGE_UNKNOWN;\n }", "private String getSystemLanguage() {\n String language;\n if (System.getProperty(COUNTRY) == null) {\n language = System.getProperty(LANGUAGE);\n } else {\n language = System.getProperty(LANGUAGE) + \"-\"\n + System.getProperty(COUNTRY).toLowerCase(Locale.ENGLISH);\n }\n return language;\n }", "private void setLanguage(String currentLang) {\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE, currentLang);\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE_CODE, String.valueOf(languageCode));\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n switch (currentLang) {\n case Constants.AppConstant.CHINES_TRAD:\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.CHINES_SIMPLE:\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.MALAYALAM:\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.HINDI:\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.ARABIC:\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n default:\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n }\n }" ]
[ "0.659822", "0.65482944", "0.6327051", "0.6159166", "0.6159166", "0.6159166", "0.61415315", "0.61351395", "0.61351395", "0.6016045", "0.60156184", "0.5916191", "0.59111834", "0.5878565", "0.5878221", "0.5777479", "0.57607216", "0.57377243", "0.57346153", "0.56880206", "0.56737274", "0.56670684", "0.56274444", "0.56245416", "0.561604", "0.5614248", "0.5608085", "0.5594881", "0.5584263", "0.5568213", "0.55501974", "0.55422646", "0.55353904", "0.55195653", "0.54804933", "0.54799664", "0.54778147", "0.54625857", "0.54523396", "0.5445353", "0.5444561", "0.54422015", "0.5440538", "0.54394513", "0.54327303", "0.5423741", "0.5421256", "0.5417677", "0.5409827", "0.53697604", "0.53438085", "0.53388506", "0.5336895", "0.53364396", "0.532046", "0.532046", "0.5318621", "0.53174657", "0.5313005", "0.53125226", "0.530456", "0.5297546", "0.5296723", "0.5291266", "0.5291111", "0.52878785", "0.5272263", "0.52689904", "0.525378", "0.52499884", "0.5242195", "0.52332", "0.5232573", "0.52206135", "0.521568", "0.52131414", "0.52052605", "0.5198585", "0.5195958", "0.51899713", "0.5189514", "0.5184695", "0.51846445", "0.51830024", "0.5181887", "0.5176822", "0.51688826", "0.51609755", "0.5160379", "0.5151688", "0.51442045", "0.51376975", "0.5130126", "0.51296455", "0.51247627", "0.5124272", "0.51239896", "0.511955", "0.51131266", "0.5108827" ]
0.66741973
0
This Function is to Select Language using text
public void selectLanguage(String language) { deviceHelper.waitTillTheElementIsVisible(signUpObjects.selectLanguageTitle); deviceHelper.selectLanguageUsingText(language); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectLanguage(String language){\n\t\t\t if (language ==\"Spanish\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_0\")).click();\n\t\t\t }\n\t\t\t else if (language==\"English\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_2\")).click();\t\t\t \n\t\t\t }\n\t\t\t else if (language==\"Portuguese\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_1\")).click();\n\t\t\t\t }\n\t \t }", "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "java.lang.String getLanguage();", "java.lang.String getLanguage();", "CLanguage getClanguage();", "String getLang();", "Builder addInLanguage(Text value);", "void onLanguageSelected();", "String getLanguage();", "String getLanguage();", "String getLanguage();", "private Language askForLanguage() {\r\n // Build a message\r\n String message = \"Which language ? \\n\";\r\n for (int i = 0; i < listLanguages.size(); i++) {\r\n message += \"\\t\" + i + \"\\\\ \" + listLanguages.get(i).getName() + \"\\n\";\r\n }\r\n // Ask for number and get the correct Language\r\n return listLanguages.get(new Integer(askForLine(message)));\r\n }", "private void switchLanguage( ){\n \tString xpathEnglishVersion = \"//*[@id=\\\"menu-item-4424-en\\\"]/a\";\n \tif( driver.findElement( By.xpath( xpathEnglishVersion ) ).getText( ).equals( \"English\" ) ) {\n \t\tSystem.out.println( \"Change language to English\" );\n \t\tdriver.findElement( By.xpath( xpathEnglishVersion ) ).click( );\n \t\tIndexSobrePage.sleepThread( );\n \t}\n }", "@Step(\"Select {language} language from the list\")\n public void selectLanguage(String language) {\n Select select = new Select(languageSelect);\n select.selectByVisibleText(language);\n }", "public void selectLanguage(String language) {\n\n String xpath = String.format(EST_LANGUAGE, language);\n List<WebElement> elements = languages.findElements(By.xpath(xpath));\n for (WebElement element : elements) {\n if (element.isDisplayed()) {\n element.click();\n break;\n }\n }\n }", "public String getLanguage();", "public void selectLanguage() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tWebElement languageelement = driver.findElement(By.xpath(\"//select[@name='languageId']\"));\n\t\tSelect se = new Select(languageelement);\n\t\tse.selectByVisibleText(BasePage.getCellData(xlsxName, sheetName, 11, 0));\n\n\t}", "Builder addInLanguage(String value);", "Language findByName(String name);", "public void setLanguage(String language);", "public void englishlanguage() {\nSystem.out.println(\"englishlanguage\");\n\t}", "@DISPID(-2147413012)\n @PropGet\n java.lang.String language();", "public String getLanguageMenuText() {\r\n\t\treturn \"语言\";\r\n\t}", "public String getSourceLang(String p_text)\n {\n String result;\n\n int i_start = p_text.indexOf(\"SOURCELANG='\");\n i_start += \"SOURCELANG='\".length();\n\n int i_end = p_text.indexOf(\"'\", i_start);\n\n result = p_text.substring(i_start, i_end);\n\n return result;\n }", "private void setLanguageScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t}", "void setLanguage(Language language);", "public AbstractLetterFactory decideLanguage(String lang){\n if(lang==\"ENG\"){\n Parameters.TARGET_CHROMOSOME = new char[]{'m', 'a', 'y', 'n', 'o', 'o', 't', 'h'};\n return new EnglishLetterFactory();\n\n }\n else if(lang==\"RUS\"){\n Parameters.TARGET_CHROMOSOME = new char[]{'м','а', 'ы', 'н', 'о', 'о', 'т', 'х'};\n return new RussianLetterFactory();\n }\n\n return new EnglishLetterFactory();\n\n }", "java.lang.String getTargetLanguageCode();", "public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter your language:\");\n String language = scanner.nextLine();\n\n switch (language){\n case \"Sinhala\":\n System.out.println(\"Language is changed to Sinhala..\");\n break;\n case \"English\":\n System.out.println(\"Language is changed to English..\");\n break;\n case \"Tamil\":\n System.out.println(\"Language is changed to Tamil..\");\n break;\n default:\n System.out.println(\"Something went wrong!! Try again..\");\n break;\n }\n\n }", "public Future<String> getLanguage() throws DynamicCallException, ExecutionException {\n return call(\"getLanguage\");\n }", "private void changeLanguage(String selectedLang) {\n if (AppUtils.getInstance().isInternetAvailable(this)) {\n hitChangeLanguageApi(selectedLang);\n\n }\n }", "public void language(String system) {\n String language=\"c语言\";\n this.output.output(system, language);\n //System.out.println(\"C语言编程!\\n\");\n }", "private void changeLanguage(String newLanguage){\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"1\");\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"2\");\n\t}\n\t\n\t/*\n\tprefLanguage = ((GameActivity) activity).getPreference(\"language\", \"1\");\n\tif (prefLanguage.contentEquals(\"1\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t} else if (prefLanguage.contentEquals(\"2\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t}\n\t*/\n\t\n\t\n\t\n\t/*\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t\tlocalLanguage=0;\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t\tlocalLanguage=1;\n\t}\n\t*/\n\t\n}", "public Builder setLanguage(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n language_ = value;\n onChanged();\n return this;\n }", "public void switchLanguage(){\n Locale myLocale = new Locale(\"de\");\r\n // get current Locale\r\n String currentLocale = scanActivity.getResources().getConfiguration().locale\r\n .toString();\r\n // set Locale to english if current Locale is german\r\n if (currentLocale.equals(\"de\")) {\r\n myLocale = new Locale(\"en\");\r\n }\r\n // sets the Locale in the configuration and updates the\r\n // configuration\r\n DisplayMetrics metrics = scanActivity.getResources().getDisplayMetrics();\r\n Configuration config = scanActivity.getResources().getConfiguration();\r\n config.locale = myLocale;\r\n scanActivity.getResources().updateConfiguration(config, metrics);\r\n // recreates the app in order to show the selected language\r\n scanActivity.recreate();\r\n }", "@AutoEscape\n\tpublic String getLanguage();", "static private void setLanguage(String strL) {\r\n\r\n\t\tstrLanguage = strL;\r\n\r\n\t\t// need to reload it again!\r\n\t\tloadBundle();\r\n\t}", "public Language(String name) {\n this.name = name;\n }", "@DISPID(-2147413103)\n @PropGet\n java.lang.String lang();", "private String getLanguage(String fileName)\n {\n if (fileName.endsWith(\".C\"))\n {\n return \"C\";\n }\n else if (fileName.endsWith(\".Java\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".CPP\"))\n {\n return \"C++\";\n }\n else if (fileName.endsWith(\".Class\"))\n {\n return \"Java\";\n }\n if (fileName.endsWith(\".c\"))\n {\n return \"C\";\n }\n else if (fileName.endsWith(\".java\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".cpp\"))\n {\n return \"C++\";\n }\n else if (fileName.endsWith(\".class\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".h\"))\n {\n return \"C\";\n }\n else\n {\n return \"??\";\n }\n }", "@Override\n public void setLanguage(String lang) {\n }", "public Builder setLanguage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n language_ = value;\n onChanged();\n return this;\n }", "private static int switchLanguage(int chineseVersion, int englishVersion)\n {\n if (sIsChinese)\n {\n return chineseVersion;\n }\n else\n {\n return englishVersion;\n }\n }", "public void addLanguage(String value) {\n/* 230 */ addStringToBag(\"language\", value);\n/* */ }", "public String getEnglish()\n {\n if (spanishWord.substring(0,3).equals(\"el \"))\n {\n spanishWord = spanishWord.substring(3, spanishWord.length());\n }\n else if (spanishWord.substring(0, 3).equals(\"la \"))\n {\n spanishWord = spanishWord.substring(3, spanishWord.length());\n }\n if (spanishWord.equals(\"estudiante\"))\n {\n return \"student\"; \n }\n else if (spanishWord.equals(\"aprender\"))\n {\n return \"to learn\";\n }\n else if (spanishWord.equals(\"entender\"))\n {\n return\"to understand\";\n }\n else if (spanishWord.equals(\"verde\"))\n {\n return \"green\";\n }\n else\n {\n return null;\n }\n }", "public void setLanguage(String s) {\n\t\tlanguage = s;\n\t}", "Language findById(String id);", "public String getLanguage() throws DynamicCallException, ExecutionException {\n return (String)call(\"getLanguage\").get();\n }", "private void showLanguageSelectionMenu(Layer layer) {\n if (layer.isMapsForge()) {\n if (layer.getLanguages() != null)\n if (layer.getLanguages().length > 1) {\n final Menu lsm = new Menu(\"MapViewLayerSelectLanguageTitle\");\n for (String lang : layer.getLanguages()) {\n lsm.addMenuItem(\"\", lang, null, (v, x, y, pointer, button) -> {\n lsm.close();\n String selectedLanguage = ((MenuItem) v).getTitle();\n Settings.preferredMapLanguage.setValue(selectedLanguage);\n Settings.getInstance().acceptChanges();\n return true;\n });\n }\n lsm.show();\n // hasLanguage = true;\n }\n }\n }", "private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}", "@DISPID(-2147413012)\n @PropPut\n void language(\n java.lang.String rhs);", "Builder addInLanguage(Language value);", "public void UpdateLang() {\n for (ParamButton selected : this.mBtnLang) {\n selected.setSelected(false);\n }\n int lang = FtSet.GetLangDef();\n if (lang < 0 || lang >= this.mBtnLang.length) {\n this.mBtnLang[0].setSelected(true);\n } else {\n this.mBtnLang[lang].setSelected(true);\n }\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void setLanguage() {\n if (Value.language_flag == 0) {\n title.setText(title_text);\n back.setText(\"back\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 1) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 2) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n }\n }", "public void showLanguage(String which){\n switch (which) {\n case \"en\":\n locale = new Locale(\"en\");\n config.locale = locale;\n //MainActivity.language = 0;\n languageToLoadWizard=\"en\";\n break;\n case \"sw\":\n locale = new Locale(\"sw\");\n config.locale = locale;\n //MainActivity.language = 1;\n languageToLoadWizard=\"sw\";\n break;\n case \"es\":\n locale = new Locale(\"es\");\n config.locale = locale;\n languageToLoadWizard=\"es\";\n break;\n }\n getResources().updateConfiguration(config, null);\n Intent refresh = new Intent(Language.this, Wizard.class);\n startActivity(refresh);\n finish();\n }", "public interface LanguageProvider {\n\tLanguageService study();\n}", "boolean hasLanguage();", "String getLangId();", "String translate(String text, String fromLanguage, String toLanguage) throws TranslationException;", "private Word askForWord(Language lastLanguage) throws LanguageException {\n Language language = askForLanguage();\r\n if(language == null || language.equals(lastLanguage)) {\r\n throw new LanguageException();\r\n }\r\n // Step 2 : Name of the word\r\n String name = askForLine(\"Name of the word : \");\r\n Word searchedWord = czech.searchWord(language, name);\r\n if(searchedWord != null) {\r\n System.out.println(\"Word \" + name + \" found !\");\r\n return searchedWord;\r\n }\r\n System.out.println(\"Word \" + name + \" not found.\");\r\n // Step 3 : Gender/Phonetic of the word\r\n String gender = askForLine(\"\\tGender of the word : \");\r\n String phonetic = askForLine(\"\\tPhonetic of the word : \");\r\n // Last step : Creation of the word\r\n Word word = new Word(language, name, gender, phonetic);\r\n int id = czech.getListWords(language).get(-1).getId() + 1;\r\n word.setId(id);\r\n czech.getListWords(language).put(-1, word);\r\n return word;\r\n }", "@Override\r\n\t\tpublic void setLang(String lang)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public static void localize(String text) {\n }", "Language findByCode(LanguageCode code);", "protected boolean isLanguage( String word )\r\n\t{\r\n\t\treturn m_listLanguage.contains(word);\r\n\t}", "public void setLanguage(Language l)\n\t{\n\t\tm_language = l;\n\t}", "public void handleSlovakLanguage(){\n Locale locale = new Locale(\"sk\", \"SK\");\n ResourceBundle bundle = ResourceBundle.getBundle(\"Lang\", locale, new UTF8Control());\n lr.setResources(bundle);\n stageManager.switchScene(FxmlView.LOGIN);\n }", "@DISPID(-2147413103)\n @PropPut\n void lang(\n java.lang.String rhs);", "void updateLang() {\n if (lang == null)\n lang = game.q;\n }", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la langue dans une variable lang\n\t\t\ttext.setLang(identifyLanguage(text.getCorpText()));\n\t\t\t//Ajoute le fichier traité dans la Base\n\t\t\tajouterTexte(text);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"fichier texte non trouvé\");\n\t e.printStackTrace();\n\t\t}\n\t}", "public String getLanguageKey();", "public void setLanguage(String newLanguage) {\r\n language = newLanguage;\r\n }", "@Override\n\tpublic java.lang.String getTargetLanguage() {\n\t\treturn _scienceApp.getTargetLanguage();\n\t}", "public void changeLanguage(View v) {\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration config = res.getConfiguration();\n\n String targetLanguage;\n\n // Log.d(\"en-US\", targetLanguage);\n\n if ( config.locale.toString().equals(\"pt\") ) {\n targetLanguage = \"en-US\";\n } else {\n targetLanguage = \"pt\";\n }\n\n Locale newLang = new Locale(targetLanguage);\n\n config.locale = newLang;\n res.updateConfiguration(config, dm);\n\n // Reload current page with new language\n Intent refresh = new Intent(this, Settings.class);\n startActivity(refresh);\n }", "public Language(String lang) {\n this.lang = lang;\n /*\n lexerFactory = new LexerFactory();\n generatorFactory = new GeneratorFactory();\n parserFactory = new ParserFactory();\n */\n }", "public void setLanguageEnglishButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_languageEnglishButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setLanguageEnglishButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "Language getLanguage(LanguageID languageID, int version) throws LanguageNotFoundException;", "private String getLanguageFromTokenizer(StreamTokenizer st)\n\t\t\tthrows IOException {\n\t\tst.nextToken();\n\t\t// if not defined -> define default language of server...\n\t\tif (st.sval == null || st.sval.equals(\"\"))\n\t\t\treturn Locale.getDefault().getLanguage();\n\t\t// else return language string\n\t\treturn st.sval;\n\t}", "@Override\n public String returnlanguage() {\n name =\"Java\";\n return name;\n }", "public void setLang() {\n new LanguageManager() {\n @Override\n public void engLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_eng);\n mSaleTitle = getString(R.string.converter_sale_eng);\n mPurchaseTitle = getString(R.string.converter_purchase_eng);\n mCountTitle = getString(R.string.converter_count_of_currencies_eng);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_eng));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleEng());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_eng);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_eng);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_eng);\n mToastFailure = getString(R.string.converter_toast_failure_eng);\n mTitle = getResources().getString(R.string.drawer_item_converter_eng);\n mMessage = getString(R.string.dialog_template_text_eng);\n mTitleButtonOne = getString(R.string.dialog_template_edit_eng);\n mTitleButtonTwo = getString(R.string.dialog_template_create_eng);\n mToastEdited = getString(R.string.converter_toast_template_edit_eng);\n mToastCreated = getString(R.string.converter_toast_template_create_eng);\n mMessageFinal = getString(R.string.converter_final_dialog_text_eng);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_eng);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_eng);\n }\n\n @Override\n public void ukrLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_ukr);\n mSaleTitle = getString(R.string.converter_sale_ukr);\n mPurchaseTitle = getString(R.string.converter_purchase_ukr);\n mCountTitle = getString(R.string.converter_count_of_currencies_ukr);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_ukr));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleUkr());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_ukr);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_ukr);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_ukr);\n mToastFailure = getString(R.string.converter_toast_failure_ukr);\n mTitle = getResources().getString(R.string.drawer_item_converter_ukr);\n mMessage = getString(R.string.dialog_template_text_ukr);\n mTitleButtonOne = getString(R.string.dialog_template_edit_ukr);\n mTitleButtonTwo = getString(R.string.dialog_template_create_ukr);\n mToastEdited = getString(R.string.converter_toast_template_edit_ukr);\n mToastCreated = getString(R.string.converter_toast_template_create_ukr);\n mMessageFinal = getString(R.string.converter_final_dialog_text_ukr);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_ukr);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_ukr);\n }\n\n @Override\n public void rusLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_rus);\n mSaleTitle = getString(R.string.converter_sale_rus);\n mPurchaseTitle = getString(R.string.converter_purchase_rus);\n mCountTitle = getString(R.string.converter_count_of_currencies_rus);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_rus));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleRus());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_rus);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_rus);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_rus);\n mToastFailure = getString(R.string.converter_toast_failure_rus);\n mTitle = getResources().getString(R.string.drawer_item_converter_rus);\n mMessage = getString(R.string.dialog_template_text_rus);\n mTitleButtonOne = getString(R.string.dialog_template_edit_rus);\n mTitleButtonTwo = getString(R.string.dialog_template_create_rus);\n mToastEdited = getString(R.string.converter_toast_template_edit_rus);\n mToastCreated = getString(R.string.converter_toast_template_create_rus);\n mMessageFinal = getString(R.string.converter_final_dialog_text_rus);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_rus);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_rus);\n }\n };\n getDataForActionDialog();\n setData();\n }", "@Test\n\tpublic void languageTest() {\n\t\tassertNotNull(queryTest.query(\"漢語\"));\n\t\tassertNotNull(queryTest.query(\"ンサートは\"));\n\t\tassertNotNull(queryTest.query(\"Ζ Θ Ι ΚΛ\"));\n\t\tassertNotNull(queryTest.query(\"Ζ Θ Ι ΚΛ\"));\n\t\tassertNotNull(queryTest.query(\"nalità umana ed al rafforzamento del rispetto dei diritti umani e delle libertà f\"));\n\t}", "public static String getLanguageRequest(HttpServletRequest request)\n\t{\n\t\tString language = \"en\";\n\t\t\n\t\tLoginResponse userSessionInfo = (LoginResponse) request.getSession().getAttribute(Attribute.s_USER_SESSION_INFO);\n\t\t\n\t\t//Object langobj = request.getSession().getAttribute(Attribute.s_CURRENT_LANGUAGE);\n\t\tObject langobj=null;\n\t\tif(userSessionInfo!=null)langobj = userSessionInfo.getIsoLanguage();\n\t\tif(langobj == null)\n\t\t{\n\t\t\tString langReq = request.getHeader(\"Accept-Language\").split(\";\")[0].split(\",\")[0];\n\t\t\t//System.out.println(\"Language: \" + langReq);\n\t\t\t\n\t\t\tif(langReq.contains(\"es\")){ language = \"es\";}\n\t\t\telse if(langReq.contains(\"en\")){ language = \"en\";}\t\n\t\t\t/*else if(langReq.contains(\"ca\")){ language = \"ca\";}\t\n\t\t\telse if(langReq.contains(\"fr\")){ language = \"fr\";}\t\n\t\t\telse if(langReq.contains(\"it\")){ language = \"it\";}\t\n\t\t\telse if(langReq.contains(\"el\")){ language = \"el\";}\t\n\t\t\telse if(langReq.contains(\"de\")){ language = \"de\";}\n\t\t\telse if(langReq.contains(\"eu\")){ language = \"eu\";}\t\n\t\t\telse if(langReq.contains(\"gl\")){ language = \"gl\";}\t\n\t\t\telse if(langReq.contains(\"ar\")){ language = \"ar\";}\t\n\t\t\telse if(langReq.contains(\"zh\")){ language = \"zh\";}\t\n\t\t\telse if(langReq.contains(\"nl\")){ language = \"nl\";}\t\n\t\t\telse if(langReq.contains(\"pt\")){ language = \"pt\";}\n\t\t\telse if(langReq.contains(\"sv\")){ language = \"sv\";}\t\n\t\t\telse if(langReq.contains(\"ro\")){ language = \"ro\";}\t\n\t\t\telse if(langReq.contains(\"pl\")){ language = \"pl\";}*/\n\t\t\t\n\t\t\trequest.getSession().setAttribute(Attribute.s_CURRENT_LANGUAGE, language);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlanguage = (String)langobj;\n\t\t}\n\t\t\n\t\treturn language;\n\t}", "private String autoDetectLanguage(ArrayList<File> progFiles) {\n for (File f : progFiles) {\n String f_extension = getFileExtension(f).toLowerCase();\n if (Arrays.asList(IAGConstant.PYTHON_EXTENSIONS).contains(f_extension)) {\n return IAGConstant.LANGUAGE_PYTHON3;\n }\n if (Arrays.asList(IAGConstant.CPP_EXTENSIONS).contains(f_extension)) {\n return IAGConstant.LANGUAGE_CPP;\n }\n }\n return IAGConstant.LANGUAGE_UNKNOWN;\n }", "public void putPrimaryLanguage(String value){\n editor.putString(PRIMARY_LANGUAGE, value);\n editor.apply();\n }", "speech.multilang.Params.SemanticLangidParams getSemanticLangidParams();", "public abstract void startVoiceRecognition(String language);", "protected static void setLanguage(Language lang) {\r\n\t\tInterface.lang = lang;\r\n\t}", "Language create(Language language);", "protected void addLanguageParameter() throws Exception\n {\n Connection c = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try\n {\n ArrayList termbaseLangs = new ArrayList();\n termbaseLangs.add(ALL);\n c = ConnectionPool.getConnection();\n ps = c.prepareStatement(TERM_LANG_QUERY);\n rs = ps.executeQuery();\n while (rs.next())\n {\n termbaseLangs.add(rs.getString(1));\n }\n\n // We should use .addList() and use a multi-select list instead\n // to let the user select multiple languages...BUT\n // this widget just does not work in the current inetsoft version\n // with the DHTML viewer (ok for java viewer)\n // So, we're stuck with giving the user one value to choose.\n theParameters.addChoice(\"selectedLang\", ALL,\n termbaseLangs.toArray());\n theParameters.setAlias(\"selectedLang\", \"Language\");\n }\n finally\n {\n ConnectionPool.silentClose(rs);\n ConnectionPool.silentClose(ps);\n ConnectionPool.silentReturnConnection(c);\n }\n }", "public void setLang(String value) {\n setAttributeInternal(LANG, value);\n }", "static WordList get(Language language) {\n return switch (language) {\n case ENGLISH -> readResource(\"bip39_english.txt\");\n };\n }", "public ArrayList<Book> getListBooklanguage(String laguage);", "public void prepareLang(){\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n // first time in this page, no settings yet.\n if(!sharedPreferences.contains(studySetId+\":front:\"+studySetSupportedLanguages[0])){\n lang1 = studySetSupportedLanguages[0];\n lang2 = studySetSupportedLanguages[1];\n return ;\n }\n\n // 2nd time+\n for(String lang :studySetSupportedLanguages){\n if(sharedPreferences.getBoolean(studySetId+\":front:\"+lang, false)) lang1 = lang;\n if(sharedPreferences.getBoolean(studySetId+\":back:\"+lang, false)) lang2 = lang;\n }\n }", "public void setLanguage(String pLanguage) throws DynamicCallException, ExecutionException{\n call(\"setLanguage\", pLanguage).get();\n }", "public Elements getTextFromWeb(String lang, String word) {\n\t\tToast t = Toast.makeText(this, \"Buscando...\", Toast.LENGTH_SHORT);\n\t\tt.setGravity(Gravity.TOP, 0, 0); // el show lo meto en el try\n\t\tseleccionado.setText(\"\");\n\t\tresultados.clear();\n\t\tlv.setAdapter(new ArrayAdapter<String>(this, R.layout.my_item_list,\n\t\t\t\tresultados));\n\n\t\tElements res = null;\n\t\tif (!networkAvailable(getApplicationContext())) {\n\t\t\tToast.makeText(this, \"¡Necesitas acceso a internet!\",\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t} else {\n\t\t\tString url = \"http://www.wordreference.com/es/translation.asp?tranword=\";\n\t\t\tif (lang == \"aEspa\") {\n\t\t\t\turl += word;\n\t\t\t\tt.show();\n\t\t\t\t/* De ingles a español */\n\t\t\t\ttry {\n\t\t\t\t\tDocument doc = Jsoup.connect(url).get();\n\t\t\t\t\t/* Concise Oxford Spanish Dictionary © 2009 Oxford */\n\t\t\t\t\tif (doc.toString().contains(\n\t\t\t\t\t\t\t\"Concise Oxford Spanish Dictionary\")) {\n\t\t\t\t\t\tres = procesarOxford(doc);\n\t\t\t\t\t}\n\t\t\t\t\t/* Diccionario Espasa Concise © 2000 Espasa Calpe */\n\t\t\t\t\telse if (doc.toString().contains(\n\t\t\t\t\t\t\t\"Diccionario Espasa Concise\")) {\n\t\t\t\t\t\tres = procesarEspasa(doc);\n\t\t\t\t\t}\n\t\t\t\t\t/* WordReference English-Spanish Dictionary © 2012 */\n\t\t\t\t\telse if (doc.toString().contains(\n\t\t\t\t\t\t\t\"WordReference English-Spanish Dictionary\")) {\n\t\t\t\t\t\tres = procesarWR(doc);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(this, \"Error getting text from web\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\turl = \"http://www.wordreference.com/es/en/translation.asp?spen=\"\n\t\t\t\t\t\t+ word;\n\t\t\t\tt.show();\n\t\t\t\t/* De español a ingles */\n\t\t\t\ttry {\n\t\t\t\t\tDocument doc = Jsoup.connect(url).get();\n\t\t\t\t\t/* Concise Oxford Spanish Dictionary © 2009 Oxford */\n\t\t\t\t\tif (doc.toString().contains(\n\t\t\t\t\t\t\t\"Concise Oxford Spanish Dictionary\")) {\n\t\t\t\t\t\tres = procesarOxford2(doc);\n\t\t\t\t\t}\n\t\t\t\t\t/* Diccionario Espasa Concise © 2000 Espasa Calpe */\n\t\t\t\t\telse if (doc.toString().contains(\n\t\t\t\t\t\t\t\"Diccionario Espasa Concise\")) {\n\t\t\t\t\t\tres = procesarEspasa2(doc);\n\t\t\t\t\t}\n\t\t\t\t\t/* WordReference English-Spanish Dictionary © 2012 */\n\t\t\t\t\t// no hay\n\t\t\t\t\t// else if (doc.toString().contains(\n\t\t\t\t\t// \"WordReference English-Spanish Dictionary\")) {\n\t\t\t\t\t// res = procesarWR2(doc);\n\t\t\t\t\t// }\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(this, \"Error getting text from web\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "java.lang.String getLanguageCode();", "java.lang.String getLanguageCode();", "private void hitChangeLanguageApi(final String selectedLang) {\n progressBar.setVisibility(View.VISIBLE);\n ApiInterface apiInterface = RestApi.createServiceAccessToken(this, ApiInterface.class);//empty field is for the access token\n final HashMap<String, String> params = AppUtils.getInstance().getUserMap(this);\n params.put(Constants.NetworkConstant.PARAM_USER_ID, AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.USER_ID));\n params.put(Constants.NetworkConstant.PARAM_USER_LANGUAGE, String.valueOf(languageCode));\n Call<ResponseBody> call = apiInterface.hitEditProfileDataApi(AppUtils.getInstance().encryptData(params));\n ApiCall.getInstance().hitService(this, call, new NetworkListener() {\n\n @Override\n public void onSuccess(int responseCode, String response, int requestCode) {\n progressBar.setVisibility(View.GONE);\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n switch (responseCode) {\n case Constants.NetworkConstant.SUCCESS_CODE:\n setLanguage(selectedLang);\n// Locale locale = new Locale(language);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());\n AppUtils.getInstance().openNewActivity(ChangeLanguageActivity.this, new Intent(ChangeLanguageActivity.this, HomeActivity.class));\n break;\n }\n }\n\n\n @Override\n public void onError(String response, int requestCode) {\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n progressBar.setVisibility(View.GONE);\n }\n\n\n @Override\n public void onFailure() {\n progressBar.setVisibility(View.GONE);\n }\n }, 1);\n }", "public Future<Void> setLanguage(String pLanguage) throws DynamicCallException, ExecutionException{\n return call(\"setLanguage\", pLanguage);\n }", "@Override\r\n\t\tpublic String getLang()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getTargetLanguage()\n\t{\n\t\treturn targetLanguage;\n\t}" ]
[ "0.69186753", "0.6823093", "0.67808616", "0.67808616", "0.6749522", "0.6719175", "0.6681849", "0.6677376", "0.66764206", "0.66764206", "0.66764206", "0.6615807", "0.65120876", "0.64965904", "0.647482", "0.63121426", "0.6297014", "0.6189161", "0.6127892", "0.6124355", "0.60987025", "0.6062849", "0.6041203", "0.6033894", "0.6026758", "0.59866405", "0.5973847", "0.5964154", "0.5963733", "0.5960649", "0.5951333", "0.5947394", "0.59090334", "0.58986324", "0.58951867", "0.58884025", "0.5880654", "0.58647853", "0.58583933", "0.58399165", "0.5820804", "0.58182013", "0.5806948", "0.58019155", "0.57989585", "0.57578117", "0.57393867", "0.57188773", "0.5713726", "0.5712203", "0.57112384", "0.5709736", "0.56770194", "0.5670442", "0.5670324", "0.56667435", "0.5657326", "0.56276715", "0.5621075", "0.5608972", "0.55889237", "0.5581281", "0.55770457", "0.55697805", "0.5566464", "0.55449057", "0.5543598", "0.55351573", "0.5533854", "0.5529511", "0.5521138", "0.5513313", "0.5511649", "0.55053455", "0.54989827", "0.5487511", "0.5483029", "0.5472093", "0.5456973", "0.54532164", "0.54448247", "0.54415405", "0.5440005", "0.5439784", "0.5437313", "0.5436006", "0.54332346", "0.54315877", "0.54305744", "0.54227823", "0.5415001", "0.5405446", "0.5404773", "0.5404501", "0.53939617", "0.53939617", "0.5388539", "0.5384282", "0.53804904", "0.5378722" ]
0.5883535
36
This Function is to Click OTP Button
public void clickGoToYourAccountButton() { element(signUpObjects.getOTPButton).click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onClick(View v) {\r\n try {\r\n InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\r\n } catch (Exception e) {\r\n // TODO: handle exception\r\n }\r\n\r\n otp = OTP_ET_1.getText().toString() +\r\n OTP_ET_2.getText().toString() + OTP_ET_3.getText().toString() +\r\n OTP_ET_4.getText().toString();\r\n if (otp.equals(\"null\")||otp.isEmpty()||otp.length()<4){\r\n Toast.makeText(ThirdActivity.this, \"Please enter OTP\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n HashMap<String, String> params = new HashMap<>();\r\n params.put(\"action\", \"verifyOtp\");\r\n params.put(\"center_id\", centreId);\r\n params.put(\"otp\", otp);\r\n params.put(\"mobile\", number);\r\n progressDialog.show();\r\n apiCall.sendData(Request.Method.POST, OTP_VERIFY, params, \"sendOtp\");\r\n\r\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tRandom ra=new Random();\r\n\t\t\t\tint val=ra.nextInt(999);\r\n\t\t\t\tSmsManager sms=SmsManager.getDefault();\r\n\t\t\t\tsms.sendTextMessage(txt_phone.getText().toString(), null, val+\"\", null, null);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tIntent i=new Intent(getApplicationContext(), OTP_Reg.class);\r\n\t\t\t\ti.putExtra(\"name\", txt_name.getText().toString());\r\n\t\t\t\ti.putExtra(\"phone\", txt_phone.getText().toString());\r\n\t\t\t\ti.putExtra(\"otp\", val+\"\");\r\n\t\t\t\t\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t}", "public void enterOTPActions(String otp){\n\t\tdeviceHelper.writeInputActions(signUpObjects.OTPtextfield,otp);\n\t}", "@And(\"^I click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_click_On_Button(String actkey) throws Throwable {\n\t\tThread.sleep(5000);\r\n\t\t//loginPage.getDriver().findElement(By.xpath(\".//*[contains(@value,'Edit')]\")).click();\r\n\t\tenduser.Qos_screen_edit_and_save(actkey);\r\n\t\t\r\n\t}", "@And(\"^Enter user phone and confirmation code$\")\t\t\t\t\t\n public void Enter_user_phone_and_confirmation_code() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.id(\"phoneNumberId\")).sendKeys(\"01116844320\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvPhoneNext']/content/span\")).click();\n driver.findElement(By.id(\"code\")).sendKeys(\"172978\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvVerifyNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }", "public void callNextScreenFromOTP(View view) {\n String otpByuser = pinEntered.getText().toString();\n if (!otpByuser.isEmpty()) {\n verifyPhoneNumberWithCode(mVerificationId,otpByuser);\n }\n }", "public static void Android_Invalid_otp() {\n try {\n\n AppiumDriver<MobileElement> driver = getAppiumDriver();\n Thread.sleep(2000);\n MobileElement el1 = driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.ViewFlipper/android.widget.RelativeLayout/android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup[1]/android.widget.EditText\");\n el1.click();\n\n String userName = getData(\"UserName\");\n el1.sendKeys(userName);\n driver.hideKeyboard();\n MobileElement el2 = driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.ViewFlipper/android.widget.RelativeLayout/android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup[3]/android.widget.EditText\");\n String password = getData(\"Password\");\n\n el2.sendKeys(password);\n driver.hideKeyboard();\n ReportHelper.logReportStatus(LogStatus.PASS, \"UserName and Password Given Successfully\");\n\n MobileElement loginBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Login']\");\n loginBtn.click();\n\n Thread.sleep(12000);\n\n driver.findElementByXPath(\"//android.widget.EditText[@text='Confirmation Code']\").sendKeys(\"5252\");\n Thread.sleep(2000);\n ReportHelper.logReportStatus(LogStatus.PASS, \"Invalid OTP Given Successfully\");\n driver.hideKeyboard();\n MobileElement continueBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Continue']\");\n continueBtn.click();\n Thread.sleep(15000);\n MobileElement Errormsg = driver.findElementByXPath(\"//android.widget.TextView[@text='Sorry the authentication code you entered is incorrect. Please try again.']\");\n\n if (Errormsg.isDisplayed()) {\n Thread.sleep(3000);\n ReportHelper.logReportStatus(LogStatus.PASS, \"Sorry the authentication code you entered is incorrect. Please try again.\");\n MobileElement e2 = driver.findElementByXPath(\"//android.widget.Button[@text='Go To Home']\");\n e2.click();\n Thread.sleep(2000);\n }\n\n\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"login into the application\");\n\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttime=30;\n\t\t\t\tverfy_button.setEnabled(false);\n\t\t\t\thandler.postDelayed(runnable, 1000); \n\t\t\t\tinitSDK();\n\t\t\t\tSMSSDK.getVerificationCode(\"86\",textview_phone.getText().toString());\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(edittext_phone.length()!=11)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getBaseContext(), \"手机号码有误!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(edittext_pas.length()<1)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getBaseContext(), \"请输入密码!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tverfy_button.setEnabled(false);\n\t\t\t\ttime=30;\n\t\t\t\trelativeLayoutregist.setVisibility(View.INVISIBLE);\n\t\t\t\trelativeLayouttijiao.setVisibility(View.VISIBLE);\n\t\t\t\t//传电话号码\n\t\t\t\ttextview_phone.setText(edittext_phone.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Todo 发送短信,获取验证码\n\t\t\t\tinitSDK();\n\t\t\t\tSMSSDK.getVerificationCode(\"86\",textview_phone.getText().toString());\n\t\t\t\t\t\n\t\t\t\thandler.postDelayed(runnable, 1000); \n\t\t\t\t \n\t\t\t}", "@Test\r\n public static void tc_ClickChange_Password()\t\r\n {\n\t GenericFunctions.launchApplication(\"firefox\");\r\n\t \r\n\t //We get business logic here as we used page factory\r\n\t Admin_ClickChangePassword clk_passwword = PageFactory.initElements(driver, Admin_ClickChangePassword.class);\r\n\t clk_passwword.admin_ClickOnChngPswd();\r\n }", "public void verifyCodePressed(View view) {\r\n emailTo = String.valueOf(etEmail.getText());\r\n //Generate the random verify code\r\n verifyCode = (int)((Math.random() * 9 + 1) * 100000);\r\n Toast.makeText(ForgetPswActivity.this,\"Sending..... the verify code\", Toast.LENGTH_LONG).show();\r\n Thread thread = new Thread(){\r\n @Override\r\n public void run() {\r\n EmailUtil.getInstance().sendEmail(emailTo,\"Verify Code from Digital Learner Logbook\",\r\n \"DLL send a verify code: \" + verifyCode +\r\n \", This code is for reset the password only!\" );\r\n\r\n Looper.prepare();\r\n Toast.makeText(ForgetPswActivity.this,\"Sent the verify code\", Toast.LENGTH_LONG).show();\r\n Looper.loop();\r\n }\r\n };\r\n thread.start();\r\n\r\n }", "@Step\n public void clickSendSMSButton(){\n actionWithWebElements.clickOnElement(sendSMSButton);\n }", "public void clickApplyButtonInMyPassword() throws UIAutomationException{\t\r\n\t\telementController.requireElementSmart(fileName,\"Apply Button In My Password\",GlobalVariables.configuration.getAttrSearchList(), \"Apply Button In My Password\");\r\n\t\tUIActions.click(fileName,\"Apply Button In My Password\",GlobalVariables.configuration.getAttrSearchList(), \"Apply Button In My Password\");\r\n\t\tUIActions.getText(fileName, \"Password Changed Notification\",GlobalVariables.configuration.getAttrSearchList() , \"Password Changed Notification\");\r\n\t\t}", "private static void Test8(ChromeDriver driver) throws InterruptedException {\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.id(\"teacher\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"10CSE312\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"logoutBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}", "@Override\n public void onClick(View v) {\n if (v == next){\n Log.d(\"\",\"- - - - - - - Triggered Next Button - - - - - - - - -\");\n if (otpInp.getText().toString().length() < 5){\n otpInp.setError(\"Invalid\");\n }else{\n Toast.makeText(getApplication().getBaseContext(),\"Getting OTP\",Toast.LENGTH_LONG);\n Log.d(\"Loader Message \",\"Getting otp for the validation\");\n startActivity(new Intent(getBaseContext(), ShowItems.class));\n }\n }\n if (v == resend){\n Toast.makeText(getApplicationContext(),\"Resend Otp\", Toast.LENGTH_LONG);\n }\n }", "@Override\n public void onClick(View v)\n {\n phoneAuthentication();\n }", "private void showOtpDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Enter OTP:\");\n\n // set the custom layout\n final View customLayout = getLayoutInflater().inflate(R.layout.pno_otp_alert_dialog, null);\n builder.setView(customLayout);\n\n // add a button\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n EditText otp1 = customLayout.findViewById(R.id.et_verificationCode);\n String otp2 = otp1.getText().toString();\n verifyCode(otp2);\n }\n });\n\n // create and show\n // the alert dialog\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "public void clickTopRightSignintext()\n\t{\n\t\tdriver.findElement(_regflowTopRightSignintext).click();\n\t\tlog.info(\"Clicked Top Right Sign in Button\");\n\t}", "public void clickForgotPassword() {\r\n\t\tutilities.clickOnElement(aForgotPassword);\r\n\t}", "private static void Test9(ChromeDriver driver) throws InterruptedException{\n\t\tHold();\n\t\tdriver.findElement(By.id(\"teacher\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"10CSE311\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tHold();\n\t\tdriver.get(\"http://localhost:3000/teachersignin\");\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"10CSE312\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}", "@Override\r\n public void onClick(View v)\r\n {\n if (v.equals(mButtonOk))\r\n {\r\n // 提交手机号修改\r\n HttpConnectionUtils hcu = new HttpConnectionUtils(handler);\r\n hcu.addGetParmeter(\"phone\", \"13488791001\");\r\n hcu.addGetParmeter(\"password\", \"123456\");\r\n hcu.get(Url.ModifyPhonenumber, HttpConnectEvent.HTTP_MODIFY_PHONENUMBER);\r\n }\r\n \r\n }", "private void when_clickButtonVoice() {\n onView(withId(R.id.buttonVoice))\n .perform(click());\n }", "@When(\"^Enter OTP details$\")\n public void enter_OTP_details() throws Throwable {\n otp.enterOTP();\n }", "@Override\npublic void onClick(View v) {\n\tEditText eMobileNo = (EditText) findViewById(R.id.eMobileNo);\n mobile = eMobileNo.getText().toString().replaceAll(\"[^\\\\d]\", \"\");;\n\n \n\n String tmp = \"Sign up code sent to \" + mobile + \" imei: \" + imei;\n Toast.makeText(RegisterMe.this,\"Register button Clicked\", Toast.LENGTH_SHORT).show();\n \n postData();\n ConfirmToken();\n\n}", "@Then(\"^Click On Send Button$\")\r\n\tpublic void click_On_Send_Button() {\n\t\tnop.click(\"//*[@id=\\\"submitMessage\\\"]/span\"); \r\n\t \r\n\t}", "private static void Test4(ChromeDriver driver) throws InterruptedException {\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.id(\"student\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"CB.EN.U4CSE18452\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"logoutBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}", "public void sendOTP(String username){\n }", "private InboxPage clickPasswordNext() {\n try {\n Thread.sleep(2000);\n } catch (Exception e) {\n }\n if (waitForElementDisplayed(By.id(ID_PASSWORD_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_PASSWORD_NEXT)));\n return new InboxPage(driver);\n }\n return null;\n }", "@OnClick({R.id.ed_phone, R.id.agin_verification_code, R.id.confirm_btn})\n public void onViewClicked(View view) {\n switch (view.getId()) {\n case R.id.ed_phone:\n edPhone.setCursorVisible(true);//光标显示\n break;\n case R.id.agin_verification_code:\n if (ObjectUtils.isEmpty(phone)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.the_cell_phone_number_cannot_be_empty));\n return;\n }\n// if (!RegexUtils.isMobileExact(phone)) {\n// ToastUtils.showLongToast(context, getResources().getString(R.string.please_input_the_correct_mobile_phone_number));\n// return;\n// }\n mPresent.getCode(context, phone);// 1 綁定手机号\n break;\n case R.id.confirm_btn:\n String newDealPwd = edConfirmNewPwd.getText().toString().toString().trim();\n String code = edVerificationCode.getText().toString().trim();\n if (ObjectUtils.isEmpty(code)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.the_verification_code_cannot_be_empty));\n return;\n }\n if (ObjectUtils.isEmpty(newDealPwd)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.please_enter_your_new_deal_password));\n return;\n }\n if(newDealPwd.length()<6){\n ToastUtils.showShortToast(context,getResources().getString(R.string.please_enter_six_digit_trading_password));\n return;\n }\n\n showLoadingDialog();\n mPresent.modifyPwd(context, \"2\", \"\", code, newDealPwd);\n break;\n }\n }", "public void ClickSendApplicationButton()\n {\n\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(SendApplicationButton)).click();\n\n }", "public synchronized void clkOnChangePincodeBtn() {\n\t\ttry {\n\t\t\tWebActionUtil.waitForElement(changePincodeBtn, \"Change pincode button\", 30);\n\t\t\tWebActionUtil.clickOnWebElement(changePincodeBtn, \"Change pincode button\", \"Change pincode button\");\n\t\t}\n\t\t catch (Exception e) \n\t\t{\n\t\t\t WebActionUtil.error(e.getMessage());\n\t\t\tWebActionUtil.error(\"Unable to click Change pincode buttonverify product\");\n\t\t\tAssert.fail(\"Unable to click Change pincode button\");\n\t\t}\n\t}", "@Test\n public void requireOTPTest() {\n RealmRepresentation realm = testRealmResource().toRepresentation();\n realm.setBrowserFlow(\"browser\");\n testRealmResource().update(realm);\n\n updateRequirement(\"browser\", Requirement.REQUIRED, (authExec) -> authExec.getDisplayName().equals(\"Browser - Conditional OTP\"));\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t super.onClick(v);\n\t\t \n\t\t // Calendar c = Calendar.getInstance();\n\t\t //SimpleDateFormat sdf = new SimpleDateFormat(\"EEE, MMM d, yyyy\");\n\t\t if(v == bNext)\n\t\t {\n\t\t \tNewPassword np = NewPassword.getInstance();\n\t\t \tnp.genPassword=tvGenPassowrd.getText().toString();\n\t\t \t\n\t\t \tIntent intent = new Intent(this, Step2CreateActivity.class);\n\t\t \tintent.putExtra(Constants.INTENT_EXTRA_STEP2_FIELD2, getString(R.string.usage));\n\t\t \tintent.putExtra(Constants.INTENT_EXTRA_STEP2_FIELD1, getString(R.string.title));// sdf.format(c.getTime()) );\n\t\t \tintent.putExtra(Constants.INTENT_EXTRA_IS_GENPASSWORD, \"true\" );\n\t\t \tstartActivity(intent);\n\t\t \t\n\t\t }\n\t\t else if(v == tbSpecialChar)\n\t\t {\n\t\t \ttbUseNumbers.setChecked(true);\n\t\t }\n\t\t \n\t\t \n\t\t}", "private void clickInvite(){\n WebDriverHelper.clickElement(inviteButton);\n }", "@Test\r\n public void regButton(){\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.Stud_id)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.btnReg)).perform(click());\r\n }", "private void startOTPVerificationProcess() {\n enableViews(mBinding.textOtpHeading, mBinding.editOtp, mBinding.buttonResendOtp, mBinding.buttonChangeNumber, mBinding.buttonVerifyOtp);\n disableViews(mBinding.progressBar);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew verify().execute(code.getText().toString(),String.valueOf(ID));\r\n\t\t\t\t\r\n\t\t\t}", "public void setVerificationCode(String OTP) {\n\t\thelper.findElementById(otpFieldId).sendKeys(OTP);\n\t}", "@When(\"^click on Login Button$\")\npublic void click_on_Login_Button() throws Throwable \n{\n\tdriver.findElement(By.id(\"form-login_submitAuth\")).click();\n}", "public void clickOnLoginButton(){\n\t\tthis.loginButton.click();\n\t}", "private static void Test5(ChromeDriver driver) throws InterruptedException {\n\t\tHold();\n\t\tdriver.findElement(By.id(\"student\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"CB.EN.U4CSE18453\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.id(\"student\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"CB.EN.U4CSE18452\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}", "@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }", "private void configureOTP() {\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n String totpSecret = testRealmLoginPage.form().totpForm().getTotpSecret();\n testRealmLoginPage.form().totpForm().setTotp(totp.generateTOTP(totpSecret));\n testRealmLoginPage.form().totpForm().submit();\n AccountHelper.logout(testRealmResource(), testUser.getUsername());\n\n //verify that user has OTP configured\n testUser = testRealmResource().users().get(testUser.getId()).toRepresentation();\n Users.setPasswordFor(testUser, PASSWORD);\n assertTrue(testUser.getRequiredActions().isEmpty());\n }", "@Override\n public void onCodeSent(@NonNull String s, @NonNull PhoneAuthProvider.ForceResendingToken forceResendingToken) {\n super.onCodeSent(s, forceResendingToken);\n verificationId = s;\n // start showing the pin view and verify button\n Toast.makeText(MainActivity.this, \"Enter OTP to verify\", Toast.LENGTH_SHORT).show();\n OTP.setVisibility(View.VISIBLE);\n verifyButton.setVisibility(View.VISIBLE);\n }", "public void sendLoginClickPing() {\n WBMDOmnitureManager.sendModuleAction(new WBMDOmnitureModule(\"reg-login\", ProfessionalOmnitureData.getAppNamePrefix(this), WBMDOmnitureManager.shared.getLastSentPage()));\n }", "public void clickMyPasswordTab() throws UIAutomationException{\r\n\t\r\n\t\telementController.requireElementSmart(fileName,\"My Password In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"My Password In Social Panel\");\r\n\t\tUIActions.click(fileName,\"My Password In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"My Password In Social Panel\");\r\n\r\n\t\tString TextInPage=UIActions.getText(fileName,\"My Password In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"My Password In Social Panel\");\r\n\t\tString TextInXML=dataController.getPageDataElements(fileName,\"My Password Tab Text\" , \"Name\");\r\n\t\tif(!TextInPage.contains(TextInXML)){\r\n\t\t\tthrow new UIAutomationException( \"'\"+TextInXML +\"' not found\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onClick(View view) {\n\t\tIntent intent = new Intent();\n\t\tif (view.getId() == R.id.ast_back_icon) {\n\t\t\tintent.setClass(this, AstLoginActivity.class);\n\t\t} else if (view.getId() == R.id.ast_mob_sdk_next_step_btn) {\n\t\t\tnew GuestPhoneCanBindHandler(AstGamePlatform.getInstance()\n\t\t\t\t\t.isDebugMode(), new HttpCallback() {\n\t\t\t\tpublic void onSuccess(int code, String msg, final Object data) {\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setClass(getApplicationContext(),\n\t\t\t\t\t\t\tDeclareGetPasswdActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * 登陆失败处理\n\t\t\t\t */\n\t\t\t\tpublic void onFailure(int code, final String msg, Object data) {\n\t\t\t\t\tif (code != 317) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), msg,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\tintent.setClass(getApplicationContext(),\n\t\t\t\t\t\t\t\tRegetPasswdActivity.class);\n\t\t\t\t\t\tintent.putExtra(\"mobile\", ed.getText().toString());\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, ed.getText().toString()).post();\n\t\t\treturn;\n\t\t}\n\t\tfinish();\n\t\tstartActivity(intent);\n\t}", "public void clickReplenishButton(View view){\r\n if (TextUtils.isEmpty(editTextNumber.getText())){\r\n textView.setText(PUT_MONEY);\r\n }else {\r\n superHero.setAccount(Double.parseDouble(editTextNumber.getText().toString()));\r\n editTextNumber.setText(null);\r\n if (checkBox.isChecked()){\r\n clickUpgradeButton(view);\r\n }\r\n textView.setText(REPLENISH_SUCC + superHero.getAccount());\r\n }\r\n }", "private void confirmOtp(String OTP) {\n verifyOTP=OTP;\n LayoutInflater li = LayoutInflater.from(this);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dailogconfirm, null);\n AppCompatButton buttonConfirm = (AppCompatButton) confirmDialog.findViewById(R.id.buttonConfirm);\n editTextConfirmOtp = (EditText) confirmDialog.findViewById(R.id.editTextOtp);\n\n alert = new AlertDialog.Builder(this);\n alert.setView(confirmDialog);\n\n\n alertDialog = alert.create();\n alertDialog.show();\n\n\n }", "@Override\r\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tString resetUrl = \"#activateacc;uid=\" + user.getRefId();\r\n\t\t\t\tWindow.open(resetUrl, \"Password Reset\", \"\");\r\n\t\t\t}", "@Override\r\n public void onClick(View v) {\n PasswordNumber = (byte) 0x02;\r\n }", "public void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.button1://获取验证码短信\n\t\t\tif(!TextUtils.isEmpty(phoneText.getText().toString())){\n\t\t\t\tSMSSDK.getVerificationCode(\"86\",phoneText.getText().toString()); \n\t\t\t\tphString=phoneText.getText().toString();\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tToast.makeText(RegisterActivity.this,\"电话不能为空\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.button2:\n\t\t\tSMSSDK.submitVerificationCode(\"86\", phString, codeText.getText().toString());\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n public void onClick(View v) {\n PasswordNumber = (byte) 0x01;\r\n }", "@When(\"^Click on Register Button$\")\npublic void click_on_Register_Button() throws Throwable {\n\tdriver.findElement(By.id(\"registration_submit\")).click();\n\tSystem.out.println(\"Successfuly completed the regitration process\");\n \n}", "@And(\"^I click \\\"([^\\\"]*)\\\" button using mobile website$\")\n public void I_click_button_using_mobile_website(String button) throws Throwable {\n if (onPage(\"plenti_summary\")) {\n I_remove_the_plenti_points_from_profile();\n I_navigate_to_my_plenti_page_using_mobile_website();\n }\n\n switch (button.toLowerCase()) {\n case \"join for free\":\n// Clicks.clickWhenPresent(\"plenti_home.learn_more\");\n Wait.untilElementPresent(\"plenti_join.btn_join_now\");\n Wait.untilElementPresent(\"plenti_join.btn_join_now\");\n Assert.assertTrue(\"ERROR-ENV: Unable to locate join for free element\", !Elements.findElements(\"plenti_home.btn_join_free\").isEmpty());\n Clicks.clickIfPresent(\"plenti_join.btn_join_now\");\n Clicks.clickIfPresent(\"plenti_join.btn_join_now\");\n Clicks.clickIfPresent(\"plenti_join.btn_proceed\");\n // Clicks.click(Elements.findElements(\"plenti_home.btn_join_free\").get(0));\n break;\n// case \"join now\":\n// Navigate.visit(\"plenti_enroll\"); //This will directly navigate to plenty enroll page directly\n// // Wait.untilElementPresent(\"plenti_join.btn_join_now\");\n// // Assert.assertTrue(\"ERROR-ENV: Unable to locate join now element\", Elements.elementPresent(\"plenti_join.btn_join_now\"));\n// // Clicks.click(\"plenti_join.btn_join_now\");\n// break;\n case \"enroll cancel\":\n Wait.untilElementPresent(\"plenti_enroll.btn_cancel\");\n Assert.assertTrue(\"ERROR-ENV: Unable to locate enroll cancel element\", Elements.elementPresent(\"plenti_enroll.btn_cancel\"));\n Clicks.click(\"plenti_enroll.btn_cancel\");\n Assert.assertTrue(\"ERROR-ENV: Current environment is deviated in to a \" + url() + \" environment\", MEW());\n break;\n case \"yes, cancel\":\n Wait.forPageReady();\n Wait.untilElementPresent(\"plenti_enrollment_cancel_confirm.cancel_overlay\");\n Assert.assertTrue(\"ERROR-ENV: Unable to locate yes, cancel element\", Elements.elementPresent(\"plenti_enrollment_cancel_confirm.cancel_overlay\"));\n Clicks.click(\"plenti_enrollment_cancel_confirm.btn_yes_cancel\");\n // Assert.assertTrue(\"ERROR-ENV: Current environment is deviated in to a \" + url() + \" environment\", MEW());\n break;\n default:\n logger.info(\"Invalid button: \" + button);\n }\n }", "public void clickOnRegisterButton() {\n Reporter.addStepLog(\" Click on register button \" + _registerBtn.toString());\n clickOnElement(_registerBtn);\n log.info(\" Click on register button \" + _registerBtn.toString());\n }", "public void click_SIGN_IN() {\r\n\t\tbtn_SIGN_IN.click();\r\n\t}", "public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}", "public void clickLoginBtn() {\r\n\t\tthis.loginBtn.click(); \r\n\t}", "public void inputRandomEmailToTextbox() {\r\n\t\twaitElementVisible(driver, RegisterForm.EMAIL_TEXTBOX);\r\n\t\tString emailAddress = \"auto06\" + getTodayString(\"ddMMyyHHmmss\")+\"@lv.com\";\r\n\t\tsendKeyElement(driver,RegisterForm.EMAIL_TEXTBOX, emailAddress);\r\n\t}", "@Test\r\n\tpublic void verification(){\n\t\tdriver.findElement(By.className(\"button block\")).click();\r\n\t\t\r\n\t\t//open a new tab\r\n\t\tdriver.findElement(By.cssSelector(\"body\")).sendKeys(Keys.CONTROL +\"t\");\r\n\t\t\r\n\t\t//switch to new tab\r\n\t\tArrayList<String> tabs = new ArrayList<String>(driver.getWindowHandles());\r\n\t\tdriver.switchTo().window(tabs.get(1));\r\n\t driver.get(\"https://www.textnow.com/login\");\r\n\t driver.findElement(By.id(\"loginUsername\")).sendKeys(\"elaineren\");\r\n\t driver.findElement(By.id(\"loginPassword\")).sendKeys(\"5691219-kk\");\r\n\t driver.findElement(By.id(\"submitLogin\")).click();\r\n\t \r\n\t String scode=driver.findElement(By.id(\"new\")).getText();\r\n\t System.out.println(scode);\r\n\t \r\n\t driver.findElement(By.linkText(\"Log Out\"));\r\n\t \r\n\t driver.switchTo().window(tabs.get(0));\r\n\t}", "@Then(\"^Click on signup button$\")\t\t\t\t\t\n public void Click_on_signup_button() throws Throwable \t\t\t\t\t\t\t\n { \n \tdriver.findElement(By.xpath(\"//*[@id='accountDetailsNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUri uri = Uri.parse(\"tel:6581890\");\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_DIAL, uri);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public void creditcard() {\n\t\tBy cd=By.xpath(\"//input[@name='creditCard']\");\r\n\t\tWebElement W_cd=wt.WaitForElement(cd, 10);\r\n\t\tW_cd.sendKeys(\"5462897859858\");\r\n\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tconfirm_button.setEnabled(false);\n\t\t\t\tthis.startAppium();\n\t\t\t\twhile(!isStarted()){\n\t\t\t\t\tthis.startAppium();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tMyFrame.username=u_field.getText();\n\t\t\t\tMyFrame.password=p_field.getText();\n\t\t\t\tMyFrame.time=(String) year_box.getSelectedItem()+\"-\"+month_box.getSelectedItem()+\"-\"+day_box.getSelectedItem()+\"_\"+hour_box.getSelectedItem()+\":\"+minute_box.getSelectedItem();\n\t\t\t\tHello531.initUser(MyFrame.username, MyFrame.password);\n\t\t\t\tSystem.out.println(MyFrame.time);\n\t\t\t\tconfirm_panel();\n\t\t\t\tnew Call().start(time);\n\t\t\t\t\n\t\t\t}", "@Test(dependsOnMethods=\"startapp\")\r\n\tpublic void loginapp() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[1]/input\")).sendKeys(\"[email protected]\");\r\n\t\t//((WebElement) driver.findElements(By.xpath(\"//*[@id=\\\"idSIButton9\\\"]\"))).click();\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[2]/input\")).sendKeys(\"Liverpool1\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/button\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\r\n\t}", "public void clickOnEnrollNowButton() {\n\t\tif(enrollNowButton.isEnabled()) {\n\t\twaitAndClick(enrollNowButton);\n\t\t}\n\t}", "private void clickSignOn() {\n\t\tthis.clickElement(signon);\n\t}", "public void makepayment() throws InterruptedException {\n\t\tdriver.switchTo().frame(0);\n\t\tThread.sleep(3000);\n\t\tAssert.assertTrue(driver.findElement(By.xpath(props.getProperty(\"payment_card_logo\"))).isDisplayed(),\n\t\t\t\t\" Card payment pop-up is showing\");\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"email\"))).sendKeys(getemailchars() + \"@gmail.com\");\n\t\t// wait for 20 second and enter OTP manualy\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"card_number\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"card_number\"))).sendKeys(props.getProperty(\"enter_card_number\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"month\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"month\"))).sendKeys(props.getProperty(\"enter_month\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"CVV\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"CVV\"))).sendKeys(props.getProperty(\"enter_CVV\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"zip_code\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"zip_code\"))).sendKeys(props.getProperty(\"enter_zip_code\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"click_rember_checkbox\"))).click();\n\t\tThread.sleep(1000);\n\n\t\t// Enter mobile number\n\t\tdriver.findElement(By.xpath(props.getProperty(\"mobile_No\"))).clear();\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.xpath(props.getProperty(\"mobile_No\")))\n\t\t\t\t.sendKeys(props.getProperty(\"plus_icon\") + mobile_number);\n\n\t\t// Click pay tab to make payment\n\t\tdriver.findElement(By.xpath(props.getProperty(\"payment_tab\"))).click();\n\t\tThread.sleep(2000);\n\t\tdriver.switchTo().defaultContent();\n\n\t}", "public void verifyOTP() {\n HashMap<String, String> commonParams = new CommonParams.Builder()\n .add(AppConstant.KEY_COUNTRY_CODE, mCountryCode)\n .add(AppConstant.KEY_PHONE, mPhoneno)\n .add(AppConstant.KEY_OTP, mOTP).build().getMap();\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userVerifyOTP(\"bearer\" + \" \" + CommonData.getAccessToken(), commonParams)\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n }", "@Override\r\n public void onClick(View v) {\n PasswordNumber = (byte) 0x03;\r\n }", "@Override\n\t public void onClick(View v) {\n\t \t SendReqToPebble();\n\t }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:9753057542\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tif(v.getId()==R.id.btn_login_changeinfo){\n\t\t\tcontroller.validateCredentials(et_phoneNum.getText().toString(),null,et_passwd.getText().toString(),\n\t\t\t\t\tapp.getServerIp(),\"changeinfologin\");\n\t\t}else{\n\t\t\tfinish();\n\t\t}\n\t}", "@Override\r\n\t\tpublic void onClick(View view)\r\n\t\t{\n\t\t showForgotIdDialog();\r\n\t\t}", "public void Verify(View view) {\n try {\n if (!appsingleton.isvalidateLength(et_username,6)) {\n tv_validationtext.setText(getResources().getString(R.string.st_errorOtplength));\n rl_validation.setVisibility(View.VISIBLE);\n tv_validationtext.startAnimation(appsingleton.shake_animation);\n return;\n }\n else\n {\n rl_validation.setVisibility(View.GONE);\n }\n\n if (AppUtils.isNetworkAvailable(this)) {\n new OTPVerification(et_username.getText().toString()).execute();\n\n }//end of network if\n else\n {\n appsingleton.SnackbarMessage(getResources().getString(R.string.st_internet_error),\"\",et_username);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t realCode = GenerateCodeActivity.getInstance().getCode();\n\t\t\t\t\t\t\tString phoneCode = et_phoneCode.getText().toString();\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\tif(phoneCode.equals(realCode))\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tIntent intent=new Intent(pre_registerActivity.this, RegisterActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"phone\",et_phoneNum.getText().toString());//传到跳转页面\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tToast.makeText(pre_registerActivity.this, \"验证码错误\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t}", "public void selectTelugu() {\n\t\tdeviceHelper.waitTillTheElementIsVisibleAndClickable(signUpObjects.teluguBox);\n\t\telement(signUpObjects.teluguBox).click();\n\t}", "@Override\n public void onClick(View view) {\n int clicked_value = -2;\n switch(view.getId()){\n case R.id.keypad0 :\n clicked_value = 0;\n break;\n case R.id.keypad1:\n clicked_value = 1;\n break;\n case R.id.keypad2 :\n clicked_value = 2;\n break;\n case R.id.keypad3 :\n clicked_value = 3;\n break;\n case R.id.keypad4 :\n clicked_value = 4;\n break;\n case R.id.keypad5:\n clicked_value = 5;\n break;\n case R.id.keypad6 :\n clicked_value = 6;\n break;\n case R.id.keypad7:\n clicked_value = 7;\n break;\n case R.id.keypad8:\n clicked_value = 8;\n break;\n case R.id.keypad9:\n clicked_value = 9;\n break;\n case R.id.keypadback:\n clicked_value = -1;\n break;\n }\n\n Log.d(\"Clicked Value\",String.valueOf(clicked_value));\n if(clicked_value == -1)\n {\n int passLength = passNum.length();\n if(passLength != 0)\n passNum = passNum.substring(0,passLength-1); // 그 이전까지 잘라낸다. 하나 지워짐.\n Log.d(\"mypass2\",passNum);\n }\n else if(clicked_value >=0 && clicked_value <=9)\n {\n passNum = passNum + clicked_value; // 글자 하나 추가.\n Log.d(\"mypass\",passNum);\n\n\n if(passNum.length() >= 4) // 길이가 다 차면\n {\n if(lockerType == 2)\n {\n // 비밀번호를 새로 설정한다.\n if(this.isFirst == 0)\n {\n myPass = passNum; // 일단 임시로 저장.\n passNum = \"\";\n this.isFirst++;\n this.tPassText.setText(\"비밀번호를 한번 더 입력하세요.\");\n }\n else if(this.isFirst == 1)\n {\n if(myPass.equals(passNum))\n {\n // 비밀번호가 설정되었다.\n SharedPreferences sharedPreferences = getSharedPreferences(\"mind_key\",MODE_PRIVATE);\n //저장을 하기위해 editor를 이용하여 값을 저장시켜준다.\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(\"lockmode\",true);\n editor.putString(\"locker_pass\",passNum); // key, value를 이용하여 저장하는 형\n editor.commit();\n\n Toast toast = Toast.makeText(getApplicationContext(),\"비밀번호가 설정되었습니다.\",Toast.LENGTH_SHORT);\n toast.show();\n setResult(Activity.RESULT_OK);\n finish();\n }\n else\n {\n // 같지않다면,\n Toast toast = Toast.makeText(getApplicationContext(),\"비밀번호가 다릅니다.\",Toast.LENGTH_SHORT);\n toast.show();\n this.isFirst = 0;\n this.tPassText.setText(\"새로운 비밀번호를 입력하세요.\");\n passNum = \"\";\n }\n }\n }\n else {\n SharedPreferences sharedPreferences = getSharedPreferences(\"mind_key\", MODE_PRIVATE);\n\n //저장을 하기위해 editor를 이용하여 값을 저장시켜준다.\n //SharedPreferences.Editor editor = sharedPreferences.edit();\n //String text = editText.getText().toString(); // 사용자가 입력한 저장할 데이터\n myPass = sharedPreferences.getString(\"locker_pass\", \"0000\");\n\n if (passNum.equals(myPass)) {\n if (lockerType == 0) {\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);//액티비티를 메인으로 넘긴다.\n finish();\n } else if (lockerType == 1) {\n // 비밀번호 해제.\n\n // 비밀번호가 설정되었다.\n sharedPreferences = getSharedPreferences(\"mind_key\",MODE_PRIVATE);\n //저장을 하기위해 editor를 이용하여 값을 저장시켜준다.\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(\"lockmode\",false);\n //editor.putString(\"locker_pass\",passNum); // key, value를 이용하여 저장하는 형\n editor.commit();\n\n setResult(Activity.RESULT_OK);\n finish();\n }\n } else {\n Toast failLogin = Toast.makeText(this.getApplicationContext(), \"비밀번호가 틀렸습니다\", Toast.LENGTH_SHORT);\n failLogin.show();\n passNum = \"\";\n }\n //editor.putString(\"lokcer_pass\",\"1234\"); // key, value를 이용하여 저장하는 형태\n }\n\n }\n }\n\n resetPassView();\n\n }", "public void performLogin(View view) {\r\n // Do something in response to button\r\n\r\n Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://dev.m.gatech.edu/login/private?url=gtclicker://loggedin&sessionTransfer=window\"));\r\n startActivity(myIntent);\r\n }", "public void button_proband_ok(View view){\n String codePart1 = getEditText(R.id.pc_1);\n String codePart2 = getEditText(R.id.pc_2);\n String codePart3 = getEditText(R.id.pc_3);\n String codePart4 = getEditText(R.id.pc_4);\n String codePart5 = getEditText(R.id.pc_5);\n // ToDo: check if all are actually characters\n // (and not numbers/other symbols)\n _control.newUser( codePart1+codePart2+codePart3+codePart4+codePart5 );\n setContentView(R.layout.set_time);\n }", "public void sendClick(View view) {\n String message = input.getText().toString();\n uart.send(message);\n }", "public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}", "public static void clickIntertnational() {\n try {\n AppiumDriver<MobileElement> driver = getAppiumDriver();\n waitToElement(\"// android.widget.TextView[@text='International']\");\n MobileElement internationalBTN = driver.findElementByXPath(\"// android.widget.TextView[@text='International']\");\n internationalBTN.click();\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"unable to click International transfer button\" + e.getMessage());\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(edittext_verfy.getText().toString().length()<1)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getBaseContext(), \"请填写验证码\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tverfyCode=edittext_verfy.getText().toString();\n\t\t\t\t\tSMSSDK.submitVerificationCode(\"86\", textview_phone.getText().toString(),verfyCode);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onClick(View v) {\n String phoneNumber=PhoneNumberEdit.getText().toString();\n\n //if you don't write anything on pone number\n if (PhoneNumberEdit.getText().toString().isEmpty())\n {\n //setting error\n PhoneNumberEdit.setError(\"Phone number is EMPTY \");\n PhoneNumberEdit.requestFocus();\n\n }\n //if the phone number length didn't match with indian std\n else if (PhoneNumberEdit.getText().toString().length()!=10)\n {\n //setting the error\n PhoneNumberEdit.setError(\"The number you entered didn't have 10 digit \");\n PhoneNumberEdit.requestFocus();\n }\n else\n {\n\n //if those two are ok then this happen\n //phone authentication in authentication firebase\n PhoneAuthOptions options=PhoneAuthOptions.newBuilder(mAuth)\n //giving the phone number to send otp\n .setPhoneNumber(\"+91\"+phoneNumber)\n //setting the timer\n .setTimeout(60L, TimeUnit.SECONDS)\n //setting activity\n .setActivity(MainActivity.this)\n //callback function to know we get the response\n .setCallbacks(mCallBacks)\n //build it\n .build();\n\n //passing the object of phone auth options\n PhoneAuthProvider.verifyPhoneNumber(options);\n\n }\n\n }", "@Test\n public void testCase() throws InterruptedException {\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Username']\")).sendKeys(\"company\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@resource-id='com.experitest.ExperiBank:id/passwordTextField']\")).sendKeys(\"company\");\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Login']\")).click();\n \n //Navigate to Make Payment screen\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Make Payment']\")).click();\n \n //Enter payment data\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Phone']\")).sendKeys(\"0112345678\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Name']\")).sendKeys(\"John\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Amount']\")).sendKeys(\"2\");\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Select']\")).click();\n \n //Scroll to the correct country\n driver.scrollTo(\"Spain\");\n driver.findElement(By.xpath(\"//android.widget.TextView[@text='Spain']\")).click();\n \n //Send Payment\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Send Payment']\")).click();\n \n //Confirm\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Yes']\")).click();\n }", "public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "public void clickLoginButton() {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tlog.info(\"Verifying the login button is available or not\");\n\t\tAssert.assertTrue(clickLoginButton.isDisplayed());\n\t\tclickLoginButton.click();\n\t}", "@When(\"^Click on Sign Up Button$\")\npublic void click_on_Sign_Up_Button() throws Throwable \n{\n\tdriver.findElement(By.xpath(\"//*[@id=\\\"login-block\\\"]/div/ul/li[1]/a\")).click();\n\tSystem.out.println(\"User is successfully navigated to Registration screen\");\n \n}", "public void makeAnotherPayment() {\n btnMakeAnotherPayment().click();\n }", "@Override\n public void onClick(View v) {\n String reception = mEmission.getText().toString();\n Log.i(\"debug\", \"onEditorAction:\" + reception);\n\n if (!reception.equals(\"\")) {\n if (Convert.isHexAnd16Byte(reception, ICCActivity.this)) {\n mNo.append(\"SEND: \" + reception + \"\\n\");\n byte[] apdu = Convert.hexStringToByteArray(reception);\n sendCmd(apdu, 1);\n }\n } else {\n Toast.makeText(ICCActivity.this, \"please input content\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tC2DMessaging.register(getBaseContext(), \"[email protected]\");\t\t\t\n\t\t}", "public void Case36(){\n System.out.println(\"Testing Case 36\");\n MobileElement summaryBtn = (MobileElement) driver.findElementByAccessibilityId(\"Show action\");\n summaryBtn.click();\n MobileElement logisticBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/txt_logistics_btn\");\n logisticBtn.click();\n MobileElement cancelBtn = (MobileElement) driver.findElementById(\"android:id/button2\");\n cancelBtn.click();\n logisticTransaction();\n System.out.println(\"Case 36 done\");\n }", "@When(\"^Clicking on login button$\")\npublic void clicking_on_login_button() throws Throwable {\n driver.findElement(By.xpath(\"//*[@id=\\\"loginfrm\\\"]/button\")).click();\n}", "@And(\"click on login button\")\n\tpublic void click_on_login_button() {\n\t\tSystem.out.println(\"click on login button\");\n\t\tdriver.findElement(By.name(\"Submit\")).click();\n\t \n\t}", "@When(\"^I enter my code on Phone Number Verification page$\")\n public void IEnterCode() throws Exception {\n final String verificationCode = BackendAPIWrappers.getLoginCodeByPhoneNumber(\n AndroidTabletTestContextHolder.getInstance().getTestContext().getUsersManager()\n .getSelfUserOrThrowError().getPhoneNumber());\n getTabletPhoneNumberVerificationPage().inputConfirmationCode(verificationCode);\n }", "public void onClick(View view) {\n sendSMSMessage(profile_general,phoneNo);\n GoHome();\n }", "public void click_changepwd() {\r\n\t\tdriver.findElement(change_password).click();\r\n\t}", "@Test(priority = 0)\n public void cickOnSignInButton()\n {\n apdOBJ.clickOnSignInButton();\n }" ]
[ "0.685169", "0.67282414", "0.65624696", "0.64608526", "0.6451089", "0.6376165", "0.6373383", "0.6366056", "0.63486636", "0.62299585", "0.6222395", "0.6211646", "0.61966056", "0.6165886", "0.61638707", "0.611831", "0.6100536", "0.6091976", "0.6083628", "0.6081674", "0.60739833", "0.6072857", "0.60696805", "0.6060938", "0.6052956", "0.60506576", "0.6036952", "0.6024666", "0.6019299", "0.6006376", "0.59905213", "0.59484726", "0.5945345", "0.5943189", "0.59153455", "0.59035933", "0.58939344", "0.5891771", "0.58821434", "0.58817863", "0.5880638", "0.58621114", "0.585342", "0.58529055", "0.58388555", "0.58335704", "0.5814727", "0.5808633", "0.5806167", "0.5803161", "0.57960624", "0.5794862", "0.5793495", "0.5791726", "0.5789429", "0.57862437", "0.57856375", "0.578241", "0.57810074", "0.57783", "0.5764863", "0.5757938", "0.5756796", "0.57436687", "0.57353204", "0.5727532", "0.57260215", "0.57154423", "0.5711396", "0.57100433", "0.57081854", "0.5707204", "0.5698754", "0.56958014", "0.5695321", "0.5683736", "0.5679971", "0.56785387", "0.5677661", "0.56755733", "0.5664264", "0.56532484", "0.5650201", "0.564827", "0.5647023", "0.56385475", "0.563525", "0.56290185", "0.5629002", "0.5628772", "0.56286526", "0.5623567", "0.56208616", "0.56207055", "0.56197566", "0.5617323", "0.56140643", "0.5606526", "0.5604865", "0.559927" ]
0.7270532
0
This Function is to Enter OTP with using Actions class method
public void enterOTPActions(String otp){ deviceHelper.writeInputActions(signUpObjects.OTPtextfield,otp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@When(\"^Enter OTP details$\")\n public void enter_OTP_details() throws Throwable {\n otp.enterOTP();\n }", "@Override\r\n public void onClick(View v) {\r\n try {\r\n InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\r\n } catch (Exception e) {\r\n // TODO: handle exception\r\n }\r\n\r\n otp = OTP_ET_1.getText().toString() +\r\n OTP_ET_2.getText().toString() + OTP_ET_3.getText().toString() +\r\n OTP_ET_4.getText().toString();\r\n if (otp.equals(\"null\")||otp.isEmpty()||otp.length()<4){\r\n Toast.makeText(ThirdActivity.this, \"Please enter OTP\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n HashMap<String, String> params = new HashMap<>();\r\n params.put(\"action\", \"verifyOtp\");\r\n params.put(\"center_id\", centreId);\r\n params.put(\"otp\", otp);\r\n params.put(\"mobile\", number);\r\n progressDialog.show();\r\n apiCall.sendData(Request.Method.POST, OTP_VERIFY, params, \"sendOtp\");\r\n\r\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tRandom ra=new Random();\r\n\t\t\t\tint val=ra.nextInt(999);\r\n\t\t\t\tSmsManager sms=SmsManager.getDefault();\r\n\t\t\t\tsms.sendTextMessage(txt_phone.getText().toString(), null, val+\"\", null, null);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tIntent i=new Intent(getApplicationContext(), OTP_Reg.class);\r\n\t\t\t\ti.putExtra(\"name\", txt_name.getText().toString());\r\n\t\t\t\ti.putExtra(\"phone\", txt_phone.getText().toString());\r\n\t\t\t\ti.putExtra(\"otp\", val+\"\");\r\n\t\t\t\t\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t}", "public void callNextScreenFromOTP(View view) {\n String otpByuser = pinEntered.getText().toString();\n if (!otpByuser.isEmpty()) {\n verifyPhoneNumberWithCode(mVerificationId,otpByuser);\n }\n }", "@And(\"^Enter user phone and confirmation code$\")\t\t\t\t\t\n public void Enter_user_phone_and_confirmation_code() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.id(\"phoneNumberId\")).sendKeys(\"01116844320\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvPhoneNext']/content/span\")).click();\n driver.findElement(By.id(\"code\")).sendKeys(\"172978\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvVerifyNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }", "public void sendOTP(String username){\n }", "private void startOTPVerificationProcess() {\n enableViews(mBinding.textOtpHeading, mBinding.editOtp, mBinding.buttonResendOtp, mBinding.buttonChangeNumber, mBinding.buttonVerifyOtp);\n disableViews(mBinding.progressBar);\n }", "private void configureOTP() {\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n String totpSecret = testRealmLoginPage.form().totpForm().getTotpSecret();\n testRealmLoginPage.form().totpForm().setTotp(totp.generateTOTP(totpSecret));\n testRealmLoginPage.form().totpForm().submit();\n AccountHelper.logout(testRealmResource(), testUser.getUsername());\n\n //verify that user has OTP configured\n testUser = testRealmResource().users().get(testUser.getId()).toRepresentation();\n Users.setPasswordFor(testUser, PASSWORD);\n assertTrue(testUser.getRequiredActions().isEmpty());\n }", "@Override\n public void onClick(View v) {\n if (v == next){\n Log.d(\"\",\"- - - - - - - Triggered Next Button - - - - - - - - -\");\n if (otpInp.getText().toString().length() < 5){\n otpInp.setError(\"Invalid\");\n }else{\n Toast.makeText(getApplication().getBaseContext(),\"Getting OTP\",Toast.LENGTH_LONG);\n Log.d(\"Loader Message \",\"Getting otp for the validation\");\n startActivity(new Intent(getBaseContext(), ShowItems.class));\n }\n }\n if (v == resend){\n Toast.makeText(getApplicationContext(),\"Resend Otp\", Toast.LENGTH_LONG);\n }\n }", "public void takeAction(char sign, String number, String type){\n\t\t\n\t\tswitch(state){\n\t\t\n\t\t\tcase INIT:\n\t\t\t\t\n\t\t\t\tsetLanguageScreen();\n\t\t\t\tstate = MachineStates.CHOOSE_LANGUAGE;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase CHOOSE_LANGUAGE:\n\t\t\t\t\n\t\t\t\tif(sign == 'a' || sign == 'b'){\n\t\t\t\t\t\n\t\t\t\t\tchosenLanguage = (sign == 'a') ? \"english\" : \"polski\";\n\t\t\t\t\t\n\t\t\t\t\tString welcomeMsg = Languages.getMessages().get(chosenLanguage).get(\"welcome\");\n\t\t\t\t\t\n\t\t\t\t\tscreenUI.clearScreen();\n\t\t\t\t\tscreenUI.drawText(2, 1, welcomeMsg);\n\t\t\t\t\tscreenUI.drawText(1, 2, \"[a] \" + Languages.getMessages().get(chosenLanguage).get(\"insert\"));\n\t\t\t\t\tscreenUI.drawText(1, 3, \"[b] \" + Languages.getMessages().get(chosenLanguage).get(\"quit\"));\n\t\t\t\t\t\n\t\t\t\t\tstate = MachineStates.WELCOME_SCREEN;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase WELCOME_SCREEN:\n\t\t\t\t\n\t\t\t\tif(sign == 'a' || sign == 'b'){\n\t\t\t\t\t\n\t\t\t\t\tif(sign == 'a'){\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"cardNumber\"));\n\t\t\t\t\t\tstate = MachineStates.ACCOUNT_NUMBER;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetExitScreen(\"\");\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase ACCOUNT_NUMBER:\n\t\t\t\t\n\t\t\t\tif(number != null){\n\t\t\t\t\t\n\t\t\t\t\tif(examinedAccountNumber.length() < 8){\n\t\t\t\t\t\t\n\t\t\t\t\t\texaminedAccountNumber += number;\n\t\t\t\t\t\tscreenUI.drawText(3, 3, examinedAccountNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(examinedAccountNumber.length() > 0 && type == \"return\"){\n\t\t\t\t\t\n\t\t\t\t\texaminedAccountNumber = examinedAccountNumber.substring(0, examinedAccountNumber.length() - 1);\n\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"cardNumber\"));\n\t\t\t\t\tscreenUI.drawText(3, 3, examinedAccountNumber);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(type == \"enter\"){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tString accountNumber = examinedAccountNumber;\n\t\t\t\t\t\n\t\t\t\t\tString verify = verifyAccount(accountNumber);\n\t\t\t\t\texaminedAccountNumber = \"\";\n\t\t\t\t\t\n\t\t\t\t\tif(verify == \"ok\"){\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"enterPin\"));\n\t\t\t\t\t\tstate = MachineStates.GET_PIN;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetExitScreen(verify);\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase GET_PIN:\n\t\t\t\t\n\t\t\t\tif(number != null){\n\t\t\t\t\t\n\t\t\t\t\tif(examinedPinNumber.length() < 4){\n\t\t\t\t\t\t\n\t\t\t\t\t\texaminedPinNumber += number;\n\t\t\t\t\t\tscreenUI.drawText(3, 3, examinedPinNumber);\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(examinedPinNumber.length() > 0 && type == \"return\"){\n\t\t\t\t\t\n\t\t\t\t\texaminedPinNumber = examinedPinNumber.substring(0, examinedPinNumber.length() - 1);\n\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"enterPin\"));\n\t\t\t\t\tscreenUI.drawText(3, 3, examinedPinNumber);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif(type == \"enter\"){\n\t\t\t\t\t\n\t\t\t\t\tif(examinedPinNumber.equals(examinedAccount.getPin())){\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetMainScreen(examinedAccount, \"\");\n\t\t\t\t\t\twrongPinCounter = 0;\n\t\t\t\t\t\texaminedPinNumber = \"\";\n\t\t\t\t\t\tstate = MachineStates.ACCOUNT_SCREEN;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t\twrongPinCounter++;\n\t\t\t\t\t\texaminedPinNumber = \"\";\n\t\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"againPin\"));\n\t\t\t\t\t\tscreenUI.drawText(3, 3, examinedPinNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(wrongPinCounter == 3){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twrongPinCounter = 0;\n\t\t\t\t\t\t\texaminedPinNumber = \"\";\n\t\t\t\t\t\t\tsetExitScreen(Languages.getMessages().get(chosenLanguage).get(\"wrongPin\"));\n\t\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase ACCOUNT_SCREEN:\n\t\t\t\t\n\t\t\t\tif(sign == 'a' || sign == 'b' || sign == 'c'){\n\t\t\t\t\t\n\t\t\t\t\tif(sign == 'a'){\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetWithdrawScreen();\n\t\t\t\t\t\tstate = MachineStates.WITHDRAW;\n\t\t\t\t\t}else if(sign == 'b'){\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"addAmount\"));\n\t\t\t\t\t\tstate = MachineStates.ADD_MONEY;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetExitScreen(\"\");\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase WITHDRAW:\n\t\t\t\t\n\t\t\t\tif(number == null && type == null){\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\tif(sign == 'a'){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\texaminedAccount.withdrawMoney(50);\n\t\t\t\t\t\t}else if(sign == 'b'){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\texaminedAccount.withdrawMoney(100);\n\t\t\t\t\t\t}else if(sign == 'c'){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\texaminedAccount.withdrawMoney(200);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetExitScreen(Languages.getMessages().get(chosenLanguage).get(\"success\"));\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t}\n\t\t\t\t\tcatch (WithdrawException e) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetExitScreen(e.getErrorMessage());\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(sign == 'd'){\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"customAmount\"));\n\t\t\t\t\t\tstate = MachineStates.CUSTOM_WITHDRAW;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase CUSTOM_WITHDRAW:\n\t\t\t\t\n\t\t\t\tif(number != null){\n\t\t\t\t\t\n\t\t\t\t\tif(examinedAmountNumber.length() < 3){\n\t\t\t\t\t\t\n\t\t\t\t\t\texaminedAmountNumber += number;\n\t\t\t\t\t\tscreenUI.drawText(3, 3, examinedAmountNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(examinedAmountNumber.length() > 0 && type == \"return\"){\n\t\t\t\t\t\n\t\t\t\t\texaminedAmountNumber = examinedAmountNumber.substring(0, examinedAmountNumber.length() - 1);\n\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"customAmount\"));\n\t\t\t\t\tscreenUI.drawText(3, 3, examinedAmountNumber);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(type == \"enter\"){\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\texaminedAccount.withdrawMoney(getNumberFromString(examinedAmountNumber));\n\t\t\t\t\t\tsetExitScreen(Languages.getMessages().get(chosenLanguage).get(\"success\"));\n\t\t\t\t\t\texaminedAmountNumber = \"\";\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t} catch (WithdrawException e) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetExitScreen(e.getErrorMessage());\n\t\t\t\t\t\texaminedAmountNumber = \"\";\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase ADD_MONEY:\n\t\t\t\t\n\t\t\t\tif(number != null){\n\t\t\t\t\t\n\t\t\t\t\tif(examinedAmountNumber.length() < 3){\n\t\t\t\t\t\t\n\t\t\t\t\t\texaminedAmountNumber += number;\n\t\t\t\t\t\tscreenUI.drawText(3, 3, examinedAmountNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(examinedAmountNumber.length() > 0 && type == \"return\"){\n\t\t\t\t\t\n\t\t\t\t\texaminedAmountNumber = examinedAmountNumber.substring(0, examinedAmountNumber.length() - 1);\n\t\t\t\t\tsetLogScreen(Languages.getMessages().get(chosenLanguage).get(\"addAmount\"));\n\t\t\t\t\tscreenUI.drawText(3, 3, examinedAmountNumber);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(type == \"enter\"){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\texaminedAccount.addFunds(getNumberFromString(examinedAmountNumber));\n\t\t\t\t\t\tsetExitScreen(Languages.getMessages().get(chosenLanguage).get(\"success\"));\n\t\t\t\t\t\texaminedAmountNumber = \"\";\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t} catch (AddMoneyException e) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetExitScreen(e.getErrorMessage());\n\t\t\t\t\t\texaminedAmountNumber = \"\";\n\t\t\t\t\t\tstate = MachineStates.EXIT;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase EXIT:\n\t\t\t\t\n\t\t\t\tif(sign == 'a'){\n\t\t\t\t\t\n\t\t\t\t\tscreenUI.clearScreen();\n\t\t\t\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\t\t\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\t\t\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t\t\t\t\tstate = MachineStates.CHOOSE_LANGUAGE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void onClick(View view) {\n\t\tIntent intent = new Intent();\n\t\tif (view.getId() == R.id.ast_back_icon) {\n\t\t\tintent.setClass(this, AstLoginActivity.class);\n\t\t} else if (view.getId() == R.id.ast_mob_sdk_next_step_btn) {\n\t\t\tnew GuestPhoneCanBindHandler(AstGamePlatform.getInstance()\n\t\t\t\t\t.isDebugMode(), new HttpCallback() {\n\t\t\t\tpublic void onSuccess(int code, String msg, final Object data) {\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setClass(getApplicationContext(),\n\t\t\t\t\t\t\tDeclareGetPasswdActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * 登陆失败处理\n\t\t\t\t */\n\t\t\t\tpublic void onFailure(int code, final String msg, Object data) {\n\t\t\t\t\tif (code != 317) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), msg,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\tintent.setClass(getApplicationContext(),\n\t\t\t\t\t\t\t\tRegetPasswdActivity.class);\n\t\t\t\t\t\tintent.putExtra(\"mobile\", ed.getText().toString());\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, ed.getText().toString()).post();\n\t\t\treturn;\n\t\t}\n\t\tfinish();\n\t\tstartActivity(intent);\n\t}", "public void verifyOTP() {\n HashMap<String, String> commonParams = new CommonParams.Builder()\n .add(AppConstant.KEY_COUNTRY_CODE, mCountryCode)\n .add(AppConstant.KEY_PHONE, mPhoneno)\n .add(AppConstant.KEY_OTP, mOTP).build().getMap();\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userVerifyOTP(\"bearer\" + \" \" + CommonData.getAccessToken(), commonParams)\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n }", "@Test\n public void requireOTPTest() {\n RealmRepresentation realm = testRealmResource().toRepresentation();\n realm.setBrowserFlow(\"browser\");\n testRealmResource().update(realm);\n\n updateRequirement(\"browser\", Requirement.REQUIRED, (authExec) -> authExec.getDisplayName().equals(\"Browser - Conditional OTP\"));\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }", "public Action<PaymentState, PaymentEvent> preAuthAction(){\n\n// this is where you will implement business logic, like API call, check value in DB ect ...\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 8){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }", "public static void Android_Invalid_otp() {\n try {\n\n AppiumDriver<MobileElement> driver = getAppiumDriver();\n Thread.sleep(2000);\n MobileElement el1 = driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.ViewFlipper/android.widget.RelativeLayout/android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup[1]/android.widget.EditText\");\n el1.click();\n\n String userName = getData(\"UserName\");\n el1.sendKeys(userName);\n driver.hideKeyboard();\n MobileElement el2 = driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.ViewFlipper/android.widget.RelativeLayout/android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup[3]/android.widget.EditText\");\n String password = getData(\"Password\");\n\n el2.sendKeys(password);\n driver.hideKeyboard();\n ReportHelper.logReportStatus(LogStatus.PASS, \"UserName and Password Given Successfully\");\n\n MobileElement loginBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Login']\");\n loginBtn.click();\n\n Thread.sleep(12000);\n\n driver.findElementByXPath(\"//android.widget.EditText[@text='Confirmation Code']\").sendKeys(\"5252\");\n Thread.sleep(2000);\n ReportHelper.logReportStatus(LogStatus.PASS, \"Invalid OTP Given Successfully\");\n driver.hideKeyboard();\n MobileElement continueBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Continue']\");\n continueBtn.click();\n Thread.sleep(15000);\n MobileElement Errormsg = driver.findElementByXPath(\"//android.widget.TextView[@text='Sorry the authentication code you entered is incorrect. Please try again.']\");\n\n if (Errormsg.isDisplayed()) {\n Thread.sleep(3000);\n ReportHelper.logReportStatus(LogStatus.PASS, \"Sorry the authentication code you entered is incorrect. Please try again.\");\n MobileElement e2 = driver.findElementByXPath(\"//android.widget.Button[@text='Go To Home']\");\n e2.click();\n Thread.sleep(2000);\n }\n\n\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"login into the application\");\n\n }\n }", "public void resendOTP() {\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userResendOTP(\"bearer\" + \" \" + CommonData.getAccessToken())\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n Toast.makeText(OtpActivity.this, \"New OTP Sent\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tconfirm_button.setEnabled(false);\n\t\t\t\tthis.startAppium();\n\t\t\t\twhile(!isStarted()){\n\t\t\t\t\tthis.startAppium();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tMyFrame.username=u_field.getText();\n\t\t\t\tMyFrame.password=p_field.getText();\n\t\t\t\tMyFrame.time=(String) year_box.getSelectedItem()+\"-\"+month_box.getSelectedItem()+\"-\"+day_box.getSelectedItem()+\"_\"+hour_box.getSelectedItem()+\":\"+minute_box.getSelectedItem();\n\t\t\t\tHello531.initUser(MyFrame.username, MyFrame.password);\n\t\t\t\tSystem.out.println(MyFrame.time);\n\t\t\t\tconfirm_panel();\n\t\t\t\tnew Call().start(time);\n\t\t\t\t\n\t\t\t}", "public void stepsForSignUP(String mobNumber,String OTP)\n\t{\n\t\twaitUntilElementIsVisible(fieldMobNumOrEmail);\n\t\tinputText(fieldMobNumOrEmail, mobNumber, \"Enter Mobile Number\");\n\t\tclick(checkboxAcceptTermofService, \"Click on Accept Terms of Service checkbox\");\n\t\tclick(btnContinue, \"Click on Continue button\");\n\t\totp.enterOTP(OTP);\n\t}", "private void tocashAction() {\n\t\tString bankname = bankName.getText().toString();\n\t\tString personname = personName.getText().toString();\n\t\tString accountstr = account.getText().toString();\n\t\tString phonestr = phone.getText().toString();\n\t\tif (TextUtils.isEmpty(bankname)) {\n\t\t\tshowToast(getResources().getString(R.string.nobankname));\n\t\t\treturn;\n\t\t} else if (TextUtils.isEmpty(personname)) {\n\t\t\tshowToast(getResources().getString(R.string.noopenname));\n\t\t\treturn;\n\t\t} else if (TextUtils.isEmpty(accountstr)) {\n\t\t\tshowToast(getResources().getString(R.string.noaccount));\n\t\t\treturn;\n\t\t} else if (TextUtils.isEmpty(phonestr)) {\n\t\t\tshowToast(getResources().getString(R.string.nophone));\n\t\t\treturn;\n\t\t} else if (!validatePhone(phonestr)) {\n\t\t\tshowToast(getResources().getString(R.string.phoneworng));\n\t\t\treturn;\n\t\t} else {\n\t\t\tAccountVo accountVo = new AccountVo(bankname, personname, accountstr, phonestr);\n\t\t\tuserInfoApi.account(getUserInfoVo().getUid(), accountVo, new ClientAjaxCallback() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t\tgetWaitDialog().setMessage(\"提交\");\n\t\t\t\t\tgetWaitDialog().show();\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(String t) {\n\t\t\t\t\tsuper.onSuccess(t);\n\t\t\t\t\tgetWaitDialog().cancel();\n\t\t\t\t\tLog.v(\"申请:\", t);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString data = ErrorCode.getData(getBaseContext(), t);\n\t\t\t\t\t\tif(!TextUtils.isEmpty(data)){\n\t\t\t\t\t\t\tif(\"1\".equals(data)){\n\t\t\t\t\t\t\t\tshow(\"申请成功!\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tshow(\"申请失败!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tshow(\"申请错误!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tshow(\"申请错误!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable t, String strMsg) {\n\t\t\t\t\tsuper.onFailure(t, strMsg);\n\t\t\t\t\tgetWaitDialog().cancel();\n\t\t\t\t\tshow(\"申请错误!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tprivate void show(String str){\n\t\t\t\t\tgetPromptDialog().setMessage(str);\n\t\t\t\t\tgetPromptDialog().addCannel();\n\t\t\t\t\tgetPromptDialog().setCannelText(\"确定\");\n\t\t\t\t\tgetPromptDialog().removeConfirm();\n\t\t\t\t\tgetPromptDialog().show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t}", "@When(\"^I enter my code on Phone Number Verification page$\")\n public void IEnterCode() throws Exception {\n final String verificationCode = BackendAPIWrappers.getLoginCodeByPhoneNumber(\n AndroidTabletTestContextHolder.getInstance().getTestContext().getUsersManager()\n .getSelfUserOrThrowError().getPhoneNumber());\n getTabletPhoneNumberVerificationPage().inputConfirmationCode(verificationCode);\n }", "@Override\n\tpublic String sendOTP(String toNumber, String fromNumber, String abc) {\n\t\tredisRepo.getHashOps();\n\t\tString value = redisRepo.getValue(toNumber, toNumber);\n\t\t\n\t\tif (value != null)\n\t\t\treturn value;\n\t\tString otp = generateOtp();\n\t\tSystem.out.println(\"Inside the sendOtp method\");\n\t\t\n\t\tif (value == null) {\n\t\t\tredisRepo.putKey(toNumber, toNumber, otp);\n\t\t\tSystem.out.println(redisRepo.expireKey(toNumber));\n\t\t}\n\t\t\n\t\ttwService.sendMessage(toNumber,fromNumber, otp);\n\t\t\n\t\treturn otp;\n\t}", "private static void Test4(ChromeDriver driver) throws InterruptedException {\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.id(\"student\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"CB.EN.U4CSE18452\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"logoutBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}", "private static void Test8(ChromeDriver driver) throws InterruptedException {\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.id(\"teacher\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"10CSE312\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"logoutBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}", "public static void main(String[] args) {\n\t\tString input=new Scanner(System.in).nextLine();\n\t\tSystem.out.println(otp(input));\n\n\t}", "private void showOtpDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Enter OTP:\");\n\n // set the custom layout\n final View customLayout = getLayoutInflater().inflate(R.layout.pno_otp_alert_dialog, null);\n builder.setView(customLayout);\n\n // add a button\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n EditText otp1 = customLayout.findViewById(R.id.et_verificationCode);\n String otp2 = otp1.getText().toString();\n verifyCode(otp2);\n }\n });\n\n // create and show\n // the alert dialog\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(edittext_phone.length()!=11)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getBaseContext(), \"手机号码有误!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(edittext_pas.length()<1)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getBaseContext(), \"请输入密码!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tverfy_button.setEnabled(false);\n\t\t\t\ttime=30;\n\t\t\t\trelativeLayoutregist.setVisibility(View.INVISIBLE);\n\t\t\t\trelativeLayouttijiao.setVisibility(View.VISIBLE);\n\t\t\t\t//传电话号码\n\t\t\t\ttextview_phone.setText(edittext_phone.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Todo 发送短信,获取验证码\n\t\t\t\tinitSDK();\n\t\t\t\tSMSSDK.getVerificationCode(\"86\",textview_phone.getText().toString());\n\t\t\t\t\t\n\t\t\t\thandler.postDelayed(runnable, 1000); \n\t\t\t\t \n\t\t\t}", "@Step\n public void enterSmsIntoInput(String smsCode){\n actionWithWebElements.enterTextIntoInput(confirmationSmsCodeInput, smsCode);\n }", "public void setVerificationCode(String OTP) {\n\t\thelper.findElementById(otpFieldId).sendKeys(OTP);\n\t}", "@Override\n public void onClick(View v) {\n String phoneNumber=PhoneNumberEdit.getText().toString();\n\n //if you don't write anything on pone number\n if (PhoneNumberEdit.getText().toString().isEmpty())\n {\n //setting error\n PhoneNumberEdit.setError(\"Phone number is EMPTY \");\n PhoneNumberEdit.requestFocus();\n\n }\n //if the phone number length didn't match with indian std\n else if (PhoneNumberEdit.getText().toString().length()!=10)\n {\n //setting the error\n PhoneNumberEdit.setError(\"The number you entered didn't have 10 digit \");\n PhoneNumberEdit.requestFocus();\n }\n else\n {\n\n //if those two are ok then this happen\n //phone authentication in authentication firebase\n PhoneAuthOptions options=PhoneAuthOptions.newBuilder(mAuth)\n //giving the phone number to send otp\n .setPhoneNumber(\"+91\"+phoneNumber)\n //setting the timer\n .setTimeout(60L, TimeUnit.SECONDS)\n //setting activity\n .setActivity(MainActivity.this)\n //callback function to know we get the response\n .setCallbacks(mCallBacks)\n //build it\n .build();\n\n //passing the object of phone auth options\n PhoneAuthProvider.verifyPhoneNumber(options);\n\n }\n\n }", "@Override\r\n public void onClick(View v)\r\n {\n if (v.equals(mButtonOk))\r\n {\r\n // 提交手机号修改\r\n HttpConnectionUtils hcu = new HttpConnectionUtils(handler);\r\n hcu.addGetParmeter(\"phone\", \"13488791001\");\r\n hcu.addGetParmeter(\"password\", \"123456\");\r\n hcu.get(Url.ModifyPhonenumber, HttpConnectEvent.HTTP_MODIFY_PHONENUMBER);\r\n }\r\n \r\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t super.onClick(v);\n\t\t \n\t\t // Calendar c = Calendar.getInstance();\n\t\t //SimpleDateFormat sdf = new SimpleDateFormat(\"EEE, MMM d, yyyy\");\n\t\t if(v == bNext)\n\t\t {\n\t\t \tNewPassword np = NewPassword.getInstance();\n\t\t \tnp.genPassword=tvGenPassowrd.getText().toString();\n\t\t \t\n\t\t \tIntent intent = new Intent(this, Step2CreateActivity.class);\n\t\t \tintent.putExtra(Constants.INTENT_EXTRA_STEP2_FIELD2, getString(R.string.usage));\n\t\t \tintent.putExtra(Constants.INTENT_EXTRA_STEP2_FIELD1, getString(R.string.title));// sdf.format(c.getTime()) );\n\t\t \tintent.putExtra(Constants.INTENT_EXTRA_IS_GENPASSWORD, \"true\" );\n\t\t \tstartActivity(intent);\n\t\t \t\n\t\t }\n\t\t else if(v == tbSpecialChar)\n\t\t {\n\t\t \ttbUseNumbers.setChecked(true);\n\t\t }\n\t\t \n\t\t \n\t\t}", "public void getPass(ActionEvent actionEvent) {\n if(answer.getText().equals(help)){\n text.setVisible(true);\n password.setVisible(true);\n }\n }", "@When (\"^Enter email and password$\")\t\t\t\t\t\n public void Enter_email_and_password() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n driver.findElement(By.id(\"identifierId\")).sendKeys(\"halamohamed86757556\");\n driver.findElement(By.xpath(\"//*[@id='identifierNext']/content/span\")).click();\n driver.findElement(By.name(\"password\")).sendKeys(\"halamohamed12345\");\t\t\t\t\n }", "@Override\n public void run() {\n Intent intent=new Intent(getApplicationContext(),OTPPage.class);\n\n //passing the data\n intent.putExtra(\"auth\",s);\n\n //start the intent\n startActivity(intent);\n\n }", "@Override\n public boolean onEditorAction(TextView v, int actionId,\n KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_DONE) {\n // do here your stuff f\n validateLogin(editUsername.getText().toString(),\n editPassword.getText().toString());\n return true;\n }\n return false;\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n \t Robot r;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tr = new Robot();\r\n\t\t\t\t int keyCode = KeyEvent.VK_ENTER; // the A key\r\n\t\t\t\t r.keyPress(keyCode);\t\t\t\t \r\n\t\t\t\t} catch (AWTException 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}", "@Then(\"^the user enter the email or phone number and password$\")\r\n\tpublic void the_user_enter_the_email_or_phone_number_and_password() throws Throwable {\n\t sign.signupp();\r\n\t\t\r\n\t}", "public void forGotPass(View view) {\n // Perform Forgot Password Action in response to tapping Sign In button\n Intent intent = new Intent( this, ForGotPasswordActivity.class);\n startActivity(intent);\n }", "private static void Test9(ChromeDriver driver) throws InterruptedException{\n\t\tHold();\n\t\tdriver.findElement(By.id(\"teacher\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"10CSE311\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tHold();\n\t\tdriver.get(\"http://localhost:3000/teachersignin\");\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"10CSE312\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}", "public void clickGoToYourAccountButton() {\n\t\telement(signUpObjects.getOTPButton).click();\n\t}", "void startTA() {\r\n ta_employeeAccount.appendText(\"Are you an employee with the shelter? \\n\" +\r\n \"enter your Last name and First Name \\n\" +\r\n \"Then enter a Password to create an account \\n\\n\" +\r\n \"P.S dont forget the employee code given \\n\" +\r\n \"by the shelter\");\r\n }", "default void interactWith(Teleporter tp) {\n\t}", "@FXML\n public void generateGooglePassword(ActionEvent event){\n AuthSms authSms = new AuthSms();\n String tfaPassword = authSms.generateSecretKey();\n googlePassword.setText(tfaPassword);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttime=30;\n\t\t\t\tverfy_button.setEnabled(false);\n\t\t\t\thandler.postDelayed(runnable, 1000); \n\t\t\t\tinitSDK();\n\t\t\t\tSMSSDK.getVerificationCode(\"86\",textview_phone.getText().toString());\n\t\t\t\t\n\t\t\t}", "private static void Test5(ChromeDriver driver) throws InterruptedException {\n\t\tHold();\n\t\tdriver.findElement(By.id(\"student\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"CB.EN.U4CSE18453\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.id(\"student\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"CB.EN.U4CSE18452\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}", "@Override\n public void onClick(View v) {\n String reception = mEmission.getText().toString();\n Log.i(\"debug\", \"onEditorAction:\" + reception);\n\n if (!reception.equals(\"\")) {\n if (Convert.isHexAnd16Byte(reception, ICCActivity.this)) {\n mNo.append(\"SEND: \" + reception + \"\\n\");\n byte[] apdu = Convert.hexStringToByteArray(reception);\n sendCmd(apdu, 1);\n }\n } else {\n Toast.makeText(ICCActivity.this, \"please input content\", Toast.LENGTH_SHORT).show();\n }\n }", "public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "@Override\n\t\t\tpublic boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\t\t\t\tif(actionId == EditorInfo.IME_ACTION_GO)\n\t\t\t\t{\n\t\t\t\t\tif(passwd.getText().toString().equals(PASSWD))\n\t\t\t\t\t{\n//\t\t\t\t\t\tToast.makeText(getApplicationContext(), \n//\t\t\t\t\t\t\t\t\"进入传送门\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tIntent intent = new Intent(MainActivity.this,TakePhoto.class);\n\t\t\t\t\t\tintent.putExtra(\"\", setting);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t\telse if(passwd.getText().toString().equals(DELETE))\n\t\t\t\t\t{\n\t\t\t\t\t\t//删除记录\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\"SD卡挂载失败,即将退出\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\"网络错误,请稍后再试\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}", "private void confirmOtp(String OTP) {\n verifyOTP=OTP;\n LayoutInflater li = LayoutInflater.from(this);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dailogconfirm, null);\n AppCompatButton buttonConfirm = (AppCompatButton) confirmDialog.findViewById(R.id.buttonConfirm);\n editTextConfirmOtp = (EditText) confirmDialog.findViewById(R.id.editTextOtp);\n\n alert = new AlertDialog.Builder(this);\n alert.setView(confirmDialog);\n\n\n alertDialog = alert.create();\n alertDialog.show();\n\n\n }", "public void verifyCodePressed(View view) {\r\n emailTo = String.valueOf(etEmail.getText());\r\n //Generate the random verify code\r\n verifyCode = (int)((Math.random() * 9 + 1) * 100000);\r\n Toast.makeText(ForgetPswActivity.this,\"Sending..... the verify code\", Toast.LENGTH_LONG).show();\r\n Thread thread = new Thread(){\r\n @Override\r\n public void run() {\r\n EmailUtil.getInstance().sendEmail(emailTo,\"Verify Code from Digital Learner Logbook\",\r\n \"DLL send a verify code: \" + verifyCode +\r\n \", This code is for reset the password only!\" );\r\n\r\n Looper.prepare();\r\n Toast.makeText(ForgetPswActivity.this,\"Sent the verify code\", Toast.LENGTH_LONG).show();\r\n Looper.loop();\r\n }\r\n };\r\n thread.start();\r\n\r\n }", "@Override\n public void onCodeSent(@NonNull String s, @NonNull PhoneAuthProvider.ForceResendingToken forceResendingToken) {\n super.onCodeSent(s, forceResendingToken);\n verificationId = s;\n // start showing the pin view and verify button\n Toast.makeText(MainActivity.this, \"Enter OTP to verify\", Toast.LENGTH_SHORT).show();\n OTP.setVisibility(View.VISIBLE);\n verifyButton.setVisibility(View.VISIBLE);\n }", "public void resendOTP(View view) {\n showSnackbar(\"Resending OTP\");\n\n PhoneAuthOptions authOptions = PhoneAuthOptions.newBuilder(mFirebaseAuth)\n .setPhoneNumber(getString(R.string.country_code) + mPhoneNumber)\n .setTimeout(60L, TimeUnit.SECONDS).setActivity(this).setForceResendingToken(mToken)\n .setCallbacks(mCallBacks).build();\n\n PhoneAuthProvider.verifyPhoneNumber(authOptions);\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "@And(\"^I enter the plenti phone number using mobile website$\")\n public void I_enter_the_plenti_phone_number_using_mobile_website() throws Throwable {\n TextBoxes.typeTextbox(Elements.element(\"plenti_enroll.phone_number\"), TestUsers.getuslCustomer(null).getUser().getProfileAddress().getBestPhone());\n }", "@Override\n public void onClick(View v)\n {\n phoneAuthentication();\n }", "public void Verify(View view) {\n try {\n if (!appsingleton.isvalidateLength(et_username,6)) {\n tv_validationtext.setText(getResources().getString(R.string.st_errorOtplength));\n rl_validation.setVisibility(View.VISIBLE);\n tv_validationtext.startAnimation(appsingleton.shake_animation);\n return;\n }\n else\n {\n rl_validation.setVisibility(View.GONE);\n }\n\n if (AppUtils.isNetworkAvailable(this)) {\n new OTPVerification(et_username.getText().toString()).execute();\n\n }//end of network if\n else\n {\n appsingleton.SnackbarMessage(getResources().getString(R.string.st_internet_error),\"\",et_username);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void logTeacherButton(ActionEvent actionEvent) {\n //if preferences are set remember to check the value from preferences\n // not test because it actually not exists\n if(loginModel.verifyPassword(emailField.getText(),\n passwordField.getText(), UserType.TEACHER)){\n executeLogIn(actionEvent, new LogInTeacher(loginModel.\n getTeacher(emailField.getText())));\n logInTeacher.setDisable(true);\n\n }\n else{\n System.out.println(\"verification not successful\");\n JOptionPane.showMessageDialog(null, \"fuck you\");\n System.out.println(emailField.getText());\n System.out.println(passwordField.getText());\n System.out.println(\"end of that\");\n }\n\n }", "@Override\npublic void onClick(View v) {\n\tEditText eMobileNo = (EditText) findViewById(R.id.eMobileNo);\n mobile = eMobileNo.getText().toString().replaceAll(\"[^\\\\d]\", \"\");;\n\n \n\n String tmp = \"Sign up code sent to \" + mobile + \" imei: \" + imei;\n Toast.makeText(RegisterMe.this,\"Register button Clicked\", Toast.LENGTH_SHORT).show();\n \n postData();\n ConfirmToken();\n\n}", "public Action<PaymentState, PaymentEvent> authAction(){\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 5){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n\n public void onCodeSent(String verificationId,\n PhoneAuthProvider.ForceResendingToken token) {\n\n Toast.makeText(otpsignin.this, verificationId, Toast.LENGTH_SHORT).show();\n\n Log.d(TAG, \"onCodeSent:\" + verificationId);\n\n Toast.makeText(otpsignin.this,\"On code sent meathod\",Toast.LENGTH_SHORT).show();\n\n // Save verification ID and resending token so we can use them later\n\n btntype=1;\n\n\n mVerificationId = verificationId;\n\n mResendToken = token;\n\n btnOTP.setText(\"Verify code\");\n\n // ...\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString psd = SharePreferenceUtil.getInstance(\r\n\t\t\t\t\t\tgetActivity().getApplicationContext()).getUserPsd();\r\n\t\t\t\tString password = editText.getText().toString().trim();\r\n\t\t\t\tif (TextUtils.isEmpty(password)) {\r\n\t\t\t\t\tShowToast(\"密码不能为空!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (password.equals(psd)) {\r\n\t\t\t\t\tavatorPop.dismiss();\r\n\t\t\t\t\tintentAction(getActivity(), GesturePsdActivity.class);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tShowToast(\"输入密码错误!\");\r\n\t\t\t\t}\r\n\t\t\t}", "public boolean keyInput(int code, int action);", "public void PersonalSignUp(String mobNumber,String OTP)\n\t{\n\t\twaitUntilElementIsVisible(btnSignUP);\n\t\tclick(btnSignUP, \"Click on Sign Up Button\");\n\t\twaitUntilElementIsVisible(clickonPersonalTab);\n\t\tclick(clickonPersonalTab, \"Click on PersonalTab Button\");\n\t\tclick(fieldMobNumOrEmail, \"Click on MobNumOrEmail Button\");\n\t\tstepsForSignUP(mobNumber,OTP);\t\n\t\t\t\n\t}", "@Given(\"^I'm on \\\"([^\\\"]*)\\\" page of GetGo pay with valid \\\"([^\\\"]*)\\\" and \\\"([^\\\"]*)\\\"$\")\n public void i_m_on_page_of_GetGo_pay_with_valid_and(String arg1, String arg2, String arg3) throws Throwable {\n passworddetails=arg3;\n email=PropertyReader.testDataOf(arg2);\n if(Device.isAndroid()) {\n welcome.clickLogin();\n login.enterEmail(PropertyReader.testDataOf(arg2));\n login.clickNext();\n login.enterPassword(PropertyReader.testDataOf(arg3));\n //login.enterPassword(PropertyReader.dynamicReadTestDataOf(arg3));\n\n login.clickLogin();\n //dashboard.\n }\n else\n {\n login.iOSLoginFlow(PropertyReader.testDataOf(arg2),PropertyReader.testDataOf(arg3));\n }\n\n }", "@Step\n public void enterPhoneNumberForPurchase(String number){\n actionWithWebElements.enterTextIntoInput(phoneNumberInput, number);\n }", "public void loginPin(){\n\t\tstate = ATM_State.LOGINPIN;\n\t\tgui.setDisplay(\"Enter your account PIN: \\n\");\n\t}", "public void login_pw() {\n\t\tIntent intent = new Intent(this, ResetPasswordActivity.class);\n\t\tstartActivity(intent);\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tuser = txt_usr.getText();\n\t\t\t\tpass = txt_pass.getText();\n\t\t\t\t//check password or id is correct or not\n\t\t\t\tif(user.equals(\"test\") && pass.equals(\"12345\")) {\n\t\t\t\t\t//if both are correct user will be loged in\n\t\t\t\t\tAccountHome reg = new AccountHome();\n\t\t\t\t\treg.setVisible(true);\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//if user input incorrect details he will get alert message to input correct details\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Wrong Password / Username\");\n\t\t\t\t\ttxt_usr.setText(\"\");\n\t\t\t\t\ttxt_pass.setText(\"\");\n\t\t\t\t\ttxt_usr.requestFocus();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tcardNumStr = cardNumAuto.getText().toString();\n\t\t\t\tpasswordStr = passwordET.getText().toString();\n\n\t\t\t\tif (!((cardNumStr.equals(\"test\")) && (passwordStr\n\t\t\t\t\t\t.equals(\"test\")))) {\n\t\t\t\t\tToast.makeText(Login.this, \"密码错误,请重新输入\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tif (savePasswordCB.isChecked()) {// 登陆成功才保存密码\n\t\t\t\t\t\tsp.edit().putString(cardNumStr, passwordStr).commit();\n\t\t\t\t\t}\n\t\t\t\t\tToast.makeText(Login.this, \"登陆成功!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t// 跳转到另一个Activity\n\t\t\t\t\t// do something\n\t\t\t\t\tIntent temptIntent=new Intent();\n\t\t\t\t\ttemptIntent.setClass(Login.this, ECGmain.class);\n\t\t\t\t\ttemptIntent.putExtra(USER, cardNumStr);\n\t\t\t\t\tstartActivity(temptIntent);\n\t\t\t\t\tLogin.this.finish();\n\n\t\t\t\t}\n\n\t\t\t}", "private void resetPassAction(){\n edtResetPassword = (EditText) findViewById(R.id.edtResetPassword);\n edtResetConfirmPassword = (EditText) findViewById(R.id.edtResetConfirmPassword);\n\n strResetPassword = edtResetPassword.getText().toString().trim();\n strResetConfirmPassword = edtResetConfirmPassword.getText().toString().trim();\n if(resetValidate()){\n CommonUtils.clearErrorFromView(resetForm);\n if(InternetConnect.isConnected(ResetPasswordActivity.this)) {\n mProgressDialog.show();\n resetWebService();\n }else{\n CommonUtils.showAlertMessage(ResetPasswordActivity.this,getString(R.string.error),getString(R.string.net_connection_error_title),getString(R.string.net_connection_error_msg),getString(R.string.net_connection_error_btn));\n }\n }\n }", "private void confirmOtp() {\n LayoutInflater li = LayoutInflater.from(this);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dialog_confirm, null);\n\n //Initizliaing confirm button fo dialog box and edittext of dialog box\n AppCompatButton buttonConfirm = confirmDialog.findViewById(R.id.buttonConfirm);\n// editTextConfirmOtp = (EditText) confirmDialog.findViewById(R.id.editTextOtp);\n\n //Creating an alertdialog builder\n AlertDialog.Builder alert = new AlertDialog.Builder(this);\n\n //Adding our dialog box to the view of alert dialog\n alert.setView(confirmDialog);\n alert.setCancelable(false);\n\n //Creating an alert dialog\n final AlertDialog alertDialog = alert.create();\n\n //Displaying the alert dialog\n alertDialog.show();\n\n //On the click of the confirm button from alert dialog\n buttonConfirm.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n //Hiding the alert dialog\n alertDialog.dismiss();\n\n //Displaying a progressbar\n final ProgressDialog loading = ProgressDialog.show(BusinessRegistration.this, \"Authenticating\",\n \"Please wait while we check the entered code\", false, false);\n\n loading.dismiss();\n\n //Starting a new activity\n startActivity(new Intent(BusinessRegistration.this, BusinessMainActivity.class));\n\n\n// //Getting the user entered otp from edittext\n// final String otp = editTextConfirmOtp.getText().toString().trim();\n//\n// //Creating an string request\n// StringRequest stringRequest = new StringRequest(Request.Method.POST, Config.CONFIRM_URL,\n// new Response.Listener<String>() {\n// @Override\n// public void onResponse(String response) {\n// //if the server response is success\n// if(response.equalsIgnoreCase(\"success\")){\n// //dismissing the progressbar\n// loading.dismiss();\n//\n// //Starting a new activity\n// startActivity(new Intent(MainActivity.this, Success.class));\n// }else{\n// //Displaying a toast if the otp entered is wrong\n// Toast.makeText(MainActivity.this,\"Wrong OTP Please Try Again\",Toast.LENGTH_LONG).show();\n// try {\n// //Asking user to enter otp again\n// confirmOtp();\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n// }\n// }\n// },\n// new Response.ErrorListener() {\n// @Override\n// public void onErrorResponse(VolleyError error) {\n// alertDialog.dismiss();\n// Toast.makeText(MainActivity.this, error.getMessage(), Toast.LENGTH_LONG).show();\n// }\n\n\n }\n\n });\n\n }", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\tInputMethodManager imm = (InputMethodManager)getSystemService(\n\t\t\t\t\t\t\t\t\t\t\t \t\tContext.INPUT_METHOD_SERVICE); \n\t\t\t\t\t\t\t imm.hideSoftInputFromWindow(((EditText) findViewById(R.id.get_phone_editText))\n\t\t\t\t\t\t\t \t\t \t\t.getWindowToken(),0);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setPassword(\"\");\n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setUserKey(\"\");\n\t\t\t\t\t\t\t Intent intent = new Intent(AccountForgetPSWActivity.this, AccountSettingActivity.class);\n\t\t\t\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n new TerminalThread(etInput.getText().toString(), 2).start();\n }", "public void submit(View view) {\n new MercadoPago.StartActivityBuilder()\n .setActivity(this)\n .setPublicKey(\"444a9ef5-8a6b-429f-abdf-587639155d88\")\n .startGuessingCardActivity();\n\n }", "public void action()\n {\n if(timeout > 0 && timeout < 2)\n {\n timeout = 0;\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n counter = 0;\n\n\n }\n //If this is the very first time getting to this state or if the timeout reset the counter to 0\n if(counter < 1)\n {\n //Clean the list of receivers in case there is something\n if(!receivers.isEmpty())\n receivers.removeAllElements();\n //Calculate the duration of the intro\n calculateDurationIntro();\n //Find a receiver\n findAllReceivers();\n constructACLMessage();\n introNegotiation = new IntroNegotiation(agent,msg);\n introNegotiation.setDataStore(getDataStore());\n agent.addBehaviour(introNegotiation);\n }\n\n\n //Handle where I'm heading to from here.\n switch (steps)\n {\n case 0:\n transition = 29;\n break;\n case 1:\n agent.removeBehaviour(introNegotiation);\n introNegotiation = null;\n transition = 17;\n\n }\n\n\n\n }", "@And(\"^I click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_click_On_Button(String actkey) throws Throwable {\n\t\tThread.sleep(5000);\r\n\t\t//loginPage.getDriver().findElement(By.xpath(\".//*[contains(@value,'Edit')]\")).click();\r\n\t\tenduser.Qos_screen_edit_and_save(actkey);\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}", "@Override\n public void onClick(View v) {\n biensoxe = etBienSoXe.getText().toString().toLowerCase().trim();\n passwordtx = etPasswordtx.getText().toString().trim();\n confirmPassword = etConfirmPassword.getText().toString().trim();\n tenchuxe = etTenChuXe.getText().toString().trim();\n sdt = etSDT.getText().toString().trim();\n mota = edMoTa.getText().toString().trim();\n loaixe = tenloaixe;\n trongtaixe = trongtai;\n if (validateInputs()) {\n registerUser();\n }\n\n }", "private void menuOptionOne(){\n SimulatorFacade.printTransactions();\n pressAnyKey();\n }", "public void button_proband_ok(View view){\n String codePart1 = getEditText(R.id.pc_1);\n String codePart2 = getEditText(R.id.pc_2);\n String codePart3 = getEditText(R.id.pc_3);\n String codePart4 = getEditText(R.id.pc_4);\n String codePart5 = getEditText(R.id.pc_5);\n // ToDo: check if all are actually characters\n // (and not numbers/other symbols)\n _control.newUser( codePart1+codePart2+codePart3+codePart4+codePart5 );\n setContentView(R.layout.set_time);\n }", "@Test\n public void AshortPass () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter correct past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new short pass\n onView(withId(R.id.newPassword)).perform(typeText(\"pa00\"));\n //close keyboard\n closeSoftKeyboard();\n //renter again the new short pass\n onView(withId(R.id.reNewPassword)).perform(typeText(\"pa00\"));\n //close keyboard\n closeSoftKeyboard();\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.passwordChar))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.passwordChar)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "private void invokeChangePasswordWebService(String mobileNo, String password, String confirmPassword, String otp) {\n dialogManager.showDialog();\n RequestParams params = new RequestParams();\n try {\n params.put(\"mobileNo\", mobileNo);\n params.put(\"password\", password);\n params.put(\"confirmpassword\", confirmPassword);\n params.put(\"otp\", otp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n AsyncHttpClient client = new AsyncHttpClient();\n client.setTimeout(30000);\n client.addHeader(\"apikey\", Constants.API_KEY);\n client.addHeader(\"accesstoken\", loginSessionManger.getKeyAccesstoken());\n client.post(Constants.CHANGE_PASSWORD, params, new JsonHttpResponseHandler() {\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n dialogManager.hideDialog();\n showInfoDialog(\"Error\", responseString);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable,\n JSONObject errorResponse) {\n dialogManager.hideDialog();\n try {\n showInfoDialog(\"Error\", errorResponse.getString(\"message\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n dialogManager.hideDialog();\n try {\n String status = response.getString(\"status\");\n if (status.equalsIgnoreCase(\"200\")) {\n showInfoDialog(\"Success\", response.getString(\"message\"));\n Toast.makeText(mContext, response.getString(\"otp\"), Toast.LENGTH_SHORT).show();\n Log.e(\"OTP\", response.getString(\"otp\"));\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(new Intent(mContext, MainActivity.class));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }", "@Step\r\n\tpublic void enterPhone(String phone) {\r\n\t\tLOGGER.info(\"Entering phone: \" + phone);\r\n\t\tphoneInput.type(phone);\r\n\t}", "@Override\n public void onFailure(Call<String> call, Throwable t) {\n dismissProgress();\n SecurityLayer.generateToken(getApplicationContext());\n com.ceva.ubmobile.core.ui.Log.debug(\"otpvalidation\", t.toString());\n //showToast(getString(R.string.error_500));\n // prog.dismiss();\n // startDashBoard();\n }", "private void onForgetPwd() {\n Intent intent = new Intent(this, ForgotPasswordActivity.class);\n startActivity(intent);\n finish();\n }", "@GetMapping(\"getotp\")\n\tpublic String sendOTP(@RequestParam String email,@RequestParam String otp) {\n\t\t\n\t\tString message = \"\"+otp;\n\t\temailServices.sendEmail(email, \"Password Reset : OTP\", \"toger\");\n\t\t\n\t\treturn null;\n\t}", "public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }", "@Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if(actionId == EditorInfo.IME_ACTION_DONE){\n Intent intent=new Intent(Activity_Verifyemail.this,Activity_Signup.class);\n startActivityForResult(intent, 0);\n finish(); //Kill the activity from which you will go to next activity\n\n return true;\n }\n return false;\n }", "@Override\n public void onClick(ClickEvent event) {\n String mobileNr = content.getLoginView().getMobilenrTxtBox().getText();\n String password = content.getLoginView().getPasswordTxtBox().getText();\n\n // RPC authenticating user method\n motionCBSTestService.authorizeUser(mobileNr, password, new AsyncCallback<User>() {\n\n @Override\n public void onFailure(Throwable caught) {\n Window.alert(\"Der skete en fejl\");\n }\n\n @Override\n public void onSuccess(User user) {\n\n // Failed to match input with User in database\n if (user == null) {\n Window.alert(\"Wrong password or mobile number!\");\n } else if (user.getIsApproved() != true) {\n Window.alert(\"User not approved!\");\n } else\n\n\n\n // Here we check the type and if they are type 1 we go to admin view and the other way around\n if (user.getType() == 1) {\n adminController.loadUser(user);\n content.changeView(content.getMainAdminView());\n } else if (user.getType() == 2) {\n userController.loadUser(user);\n content.changeView(content.getMainUserView());\n }\n\n // Clearing the text fields (mobileNr & password) from the login screen\n content.getLoginView().clearTextBoxFields();\n }\n });\n }", "@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}", "void redirectToEnterKey();", "private void initActions() {\n\t\tthis.back.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlistener.act(PokePartyPanel.MANAGE_TRAINERS_PANEL, \n\t\t\t\t\t\tPokePartyPanel.MANAGE_TRAINERS_PANEL);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tthis.pass.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif(e.getKeyChar() == KeyEvent.VK_ENTER) {\n//\t\t\t\t\tSystem.out.println(PokeUtils.doPass(pass.getPassword()));\n\t\t\t\t\tif(df.login(userID, PokeUtils.doPass(pass.getPassword()))) {\n\t\t\t\t\t\tlistener.act(PokePartyPanel.TEAM_PANEL, String.valueOf(userID));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, msg, title,\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\t}\n\t\t\t\t\tpass.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "@When(\"^The user enters the password$\")\n\tpublic void the_user_enters_the_password() throws Throwable {\n\t\t\n\t lpw.password_textbox();\n\t}", "public void twoStageAuthentication() throws IOException, ClassNotFoundException {\r\n int confirmationCode = 1234;\r\n Scanner input = new Scanner(System.in);\r\n System.out.print(\"Enter Your Confirmation code: \");\r\n\r\n for(int confirmCode = input.nextInt(); confirmationCode != confirmCode; confirmCode = input.nextInt()) {\r\n System.out.println(\"The code entered is Incorrect,Please try again!\");\r\n System.out.print(\"Enter confirmation code: \");\r\n }\r\n\r\n this.showMenu(); // Calling the Mentioned Function\r\n }", "@OnClick({R.id.ed_phone, R.id.agin_verification_code, R.id.confirm_btn})\n public void onViewClicked(View view) {\n switch (view.getId()) {\n case R.id.ed_phone:\n edPhone.setCursorVisible(true);//光标显示\n break;\n case R.id.agin_verification_code:\n if (ObjectUtils.isEmpty(phone)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.the_cell_phone_number_cannot_be_empty));\n return;\n }\n// if (!RegexUtils.isMobileExact(phone)) {\n// ToastUtils.showLongToast(context, getResources().getString(R.string.please_input_the_correct_mobile_phone_number));\n// return;\n// }\n mPresent.getCode(context, phone);// 1 綁定手机号\n break;\n case R.id.confirm_btn:\n String newDealPwd = edConfirmNewPwd.getText().toString().toString().trim();\n String code = edVerificationCode.getText().toString().trim();\n if (ObjectUtils.isEmpty(code)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.the_verification_code_cannot_be_empty));\n return;\n }\n if (ObjectUtils.isEmpty(newDealPwd)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.please_enter_your_new_deal_password));\n return;\n }\n if(newDealPwd.length()<6){\n ToastUtils.showShortToast(context,getResources().getString(R.string.please_enter_six_digit_trading_password));\n return;\n }\n\n showLoadingDialog();\n mPresent.modifyPwd(context, \"2\", \"\", code, newDealPwd);\n break;\n }\n }", "private void scanTicket(){\r\n\t\ttext = numberField.getText();\r\n\t\t//Number field text is converted into char \r\n\t\tstringToChar(text);\r\n\t\tif(executed == false){\r\n\t\t\trandom();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText phoneNb = (EditText) findViewById(R.id.edt_portable);\n\t\t\t\tif (phoneNb.length() == 10) {\n\t\t\t\t\tphoneNb.getText();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Invalid phone number\");\n\t\t\t\t}\n\n\t\t\t\t// Second verification\n\t\t\t\t// to verify that the password is the same in the confirmation\n\t\t\t\t// field\n\t\t\t\tEditText password = (EditText) findViewById(R.id.edt_password);\n\t\t\t\tEditText repassword = (EditText) findViewById(R.id.edt_repassword);\n\t\t\t\tif (repassword.getText().equals(password.getText())) {\n\t\t\t\t\tSystem.out.println(\"same password right \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"your password is not confirmed \");\n\t\t\t\t}\n\n\t\t\t\t// Third verification\n\t\t\t\t// to verify the email\n\t\t\t\tEditText email = (EditText) findViewById(R.id.edt_email);\n\t\t\t\tif (email.getText().equals(emailPattern)) {\n\t\t\t\t\tSystem.out.println(\"Valid mail\");\n\t\t\t\t\t// here we'll take this mail and save it into the user class\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Invalid mail\");\n\t\t\t\t}\n\t\t\t\tEditText nom= (EditText) findViewById(R.id.edt_nom); \n\t\t\t\tEditText prenom= (EditText) findViewById(R.id.edt_prenom); \n\t\t\t\tEditText portable= (EditText)findViewById(R.id.edt_portable); \n\t\t\t\tUser u = new User(); \n\t\t\t\tu.setNom(nom.getText().toString()); \n\t\t\t\tu.setPrenom(prenom.getText().toString()); \n\t\t\t\tu.setPassword(password.getText().toString()); \n\t\t\t\t\n\t\t\t\tnew LongTask().execute(u); \n\t\t\t\n\t\t\t\t/*Intent authentification = new Intent(Formulaire.this,\n\t\t\t\t\t\tAuthentification.class);\n\t\t\t\tstartActivity(authentification);\n\t\t\t\t*/ \n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}" ]
[ "0.69327193", "0.68637025", "0.64229333", "0.6359063", "0.6143652", "0.61346036", "0.6127368", "0.6108418", "0.60524386", "0.6000641", "0.5971918", "0.5834523", "0.58250916", "0.58248365", "0.57948", "0.57719815", "0.5765882", "0.5761723", "0.57535714", "0.5750724", "0.57421464", "0.57340795", "0.5720468", "0.569816", "0.5697613", "0.56916565", "0.56731284", "0.5667599", "0.5666891", "0.56596416", "0.56533766", "0.5636", "0.5587191", "0.5587081", "0.55844814", "0.5583619", "0.5580873", "0.55807793", "0.5579091", "0.5571369", "0.55647105", "0.5550727", "0.5549157", "0.5541944", "0.55312204", "0.5512554", "0.5507312", "0.5503803", "0.5501255", "0.54850113", "0.54830414", "0.5481092", "0.5479829", "0.547417", "0.5472352", "0.54672635", "0.5466576", "0.54611874", "0.5458674", "0.54500175", "0.54477006", "0.542828", "0.5402656", "0.54001504", "0.53936934", "0.5383708", "0.53829044", "0.53803486", "0.5367", "0.53635144", "0.536161", "0.53568494", "0.5351066", "0.53380114", "0.53350854", "0.53326696", "0.53254515", "0.5320491", "0.53166497", "0.5316237", "0.53119457", "0.5311808", "0.5310553", "0.5306437", "0.5304081", "0.5301432", "0.5293237", "0.52896476", "0.5288194", "0.52795553", "0.52785873", "0.5270087", "0.5265703", "0.5265222", "0.5264866", "0.52606004", "0.52594554", "0.5255612", "0.5254608", "0.5242021" ]
0.7875177
0
All things gesturerelated //
public void setupGestures() { mGestureDetector = new GestureDetector( new GestureDetector.SimpleOnGestureListener() { @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { float deltaX = e2.getRawX() - e1.getRawX(); float deltaY = e2.getRawY() - e1.getRawY(); int minSlideWidth = mFlipper.getWidth() / 2; if (Math.abs(deltaY) < 100) { if (deltaX > minSlideWidth) { slideRight(); return true; } if (deltaX < -minSlideWidth) { slideLeft(); return true; } } return false; } }); mGestureDetector.setIsLongpressEnabled(true); mTouchListener = new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { return mGestureDetector.onTouchEvent(event); } }; mFlipper.setLongClickable(true); mFlipper.setOnTouchListener(mTouchListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gored() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void stg() {\n\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public final void mo51373a() {\n }", "public void mo4359a() {\n }", "public void mo38117a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "protected void mo6255a() {\n }", "public static void listing5_14() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo21877s() {\n }", "private stendhal() {\n\t}", "private void m50366E() {\n }", "public void think() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void breathe() {\n\t\tSystem.out.println(\"#gasp#\");\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void applyHorn() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void level7() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void eggHatches() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void breath() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void method_4270() {}", "private void level6() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void getStatus() {\n\t\t\n\t}", "PaulEigon() {\n\treadCurrentPingisState();\n\tscanState();\n\tprintResult();\n }", "private void optimiseEVProfile()\n\t{\n\t}", "protected void additionalProcessing() {\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 toogleFold() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo3376r() {\n }", "public void breaker() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n public void onThinking() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "public void onEnergize() {\n\n\t}", "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void baocun() {\n\t\t\n\t}", "@Override\n public void feedingHerb() {\n\n }", "public void mo21795T() {\n }", "public void skystonePos6() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void eats() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void furyo ()\t{\n }", "public void mo21787L() {\n }", "private void m50367F() {\n }", "public static void listing5_16() {\n }", "public void mo21878t() {\n }", "public void mo21785J() {\n }", "public void mo3370l() {\n }", "public void mo12628c() {\n }", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public static void listing5_15() {\n }", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "public void mo21825b() {\n }", "public void mo55254a() {\n }", "double defendre();", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void turnUpToEleven() {\n\t\t\r\n\t}", "@Override\n public void onMoreLoadding() {\n\n }", "public void m23075a() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic void all() {\n\t\t\n\t}", "protected void thoroughInspection() {}" ]
[ "0.66401744", "0.6346494", "0.6334991", "0.63147974", "0.6114428", "0.6106788", "0.6102092", "0.60614866", "0.6027673", "0.6012223", "0.6004977", "0.5997784", "0.59905547", "0.59887546", "0.59662867", "0.59344816", "0.59162587", "0.58967584", "0.5890051", "0.5880613", "0.5875606", "0.58466804", "0.58416283", "0.5837759", "0.583463", "0.5820257", "0.58048695", "0.5800833", "0.579842", "0.57932705", "0.57912296", "0.5784887", "0.57808733", "0.5769178", "0.5753792", "0.57497185", "0.5745101", "0.5733903", "0.5707345", "0.5703619", "0.56976134", "0.5694421", "0.56777716", "0.5648148", "0.56476396", "0.56350964", "0.56339234", "0.56339234", "0.56339234", "0.56339234", "0.56339234", "0.56339234", "0.56339234", "0.56319934", "0.5631182", "0.5629967", "0.56293", "0.56269836", "0.56269836", "0.56103635", "0.56035274", "0.55902296", "0.5587724", "0.5582771", "0.55802965", "0.5579879", "0.55785424", "0.5577796", "0.5570609", "0.55696523", "0.55602175", "0.5539248", "0.552387", "0.5523747", "0.55171365", "0.55149734", "0.5506572", "0.5505125", "0.5504107", "0.55011064", "0.54995733", "0.54960835", "0.5492046", "0.54902357", "0.5489289", "0.548438", "0.54839265", "0.5481573", "0.5476543", "0.54677224", "0.54630554", "0.546141", "0.54570884", "0.54429907", "0.54422", "0.54415625", "0.5440898", "0.543739", "0.54366326", "0.5434072", "0.5433875" ]
0.0
-1
oh, the menus .... //
@Override public boolean onCreateOptionsMenu(Menu menu) { boolean result = super.onCreateOptionsMenu(menu); menu.add(0, MENU_ADD_ID, 0, R.string.menu_category_add).setIcon( android.R.drawable.ic_menu_add); menu.add(0, MENU_VISUALIZE_ID, 0, R.string.menu_visualize) .setIcon(R.drawable.graph); menu.add(0, MENU_EDIT_ID, 0, R.string.menu_entry_edit).setIcon( android.R.drawable.ic_menu_edit); menu.add(0, MENU_PREFS_ID, 0, R.string.menu_app_prefs).setIcon( android.R.drawable.ic_menu_preferences); menu.add(0, MENU_HELP_ID, 0, R.string.menu_app_help).setIcon( android.R.drawable.ic_menu_help); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void returnMenu() {\n\t\t\r\n\t}", "public void readTheMenu();", "public void initMenu(){\n\t}", "private void searchMenu(){\n\t\t\n\t}", "@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}", "public abstract void displayMenu();", "private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\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 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}", "C getMenu();", "void Menu();", "@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}", "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\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}", "public abstract Menu mo2158c();", "public abstract int getMenu();", "@Override\n public void menuSelected(MenuEvent e) {\n \n }", "@Override\n\t\tpublic void openMenu() {\n\t\t}", "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}", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "IMenu getMainMenu();", "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}", "@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}", "static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }", "static void mainMenu ()\r\n \t{\r\n \t\tfinal byte width = 45; //Menu is 45 characters wide.\r\n \t\tString label [] = {\"Welcome to my RedGame 2 compiler\"};\r\n \t\t\r\n \t\tMenu front = new Menu(label, \"Main Menu\", (byte) width);\r\n \t\t\r\n \t\tMenu systemTests = systemTests(); //Gen a test object.\r\n \t\tMenu settings = settings(); //Gen a setting object.\r\n \t\t\r\n \t\tfront.addOption (systemTests);\r\n \t\tfront.addOption (settings);\r\n \t\t\r\n \t\tfront.select();\r\n \t\t//The program should exit after this menu has returned. CLI-specific\r\n \t\t//exit operations should be here:\r\n \t\t\r\n \t\tprint (\"\\nThank you for using my program.\");\r\n \t}", "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "private void updateMenus()\n {\n m_KernelMenu.updateMenu();\n m_AgentMenu.updateMenu();\n }", "static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }", "Menu getMenuHelp();", "public void menu() {\n\t\tstate.menu();\n\t}", "public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\n\t}", "public Menu createToolsMenu();", "@Override\n\tprotected void setMenu() {\n\t\t\n\t\tfinal ButtonGroup actionButtonGroup = new ButtonGroup();\n\t\tfor (String s : ((TreeSite) object).actions) {\n\t\t\tJRadioButton button = new JRadioButton(s);\n\t\t\tbutton.setActionCommand(s);\n\t\t\tactionButtonGroup.add(button);\n\t\t\tmenu.add(button);\n\t\t}\n\t\t\n\t\tJPanel headingPanel = new JPanel();\n\t\theadingPanel.setLayout(new BoxLayout(headingPanel, BoxLayout.LINE_AXIS));\n\t\theadingPanel.add(new JLabel(\"Heading: \"));\n\t\tfinal JTextField headingField = new JTextField();\n\t\theadingField.setText(Float.toString(INITIAL_FLOAT_VALUE));\n\t\theadingField.setColumns(10);\n\t\theadingPanel.add(headingField);\n\t\tmenu.add(headingPanel);\n\t\t\n\t\tJPanel lengthPanel = new JPanel();\n\t\tlengthPanel.setLayout(new BoxLayout(lengthPanel, BoxLayout.LINE_AXIS));\n\t\tlengthPanel.add(new JLabel(\"Length: \"));\n\t\tfinal JTextField lengthField = new JTextField();\n\t\tlengthField.setText(Integer.toString(INITIAL_INTEGER_VALUE));\n\t\tlengthField.setColumns(10);\n\t\tlengthPanel.add(lengthField);\n\t\tmenu.add(lengthPanel);\n\t\t\n\t\tJPanel counterPanel = new JPanel();\n\t\tcounterPanel.setLayout(new BoxLayout(counterPanel, BoxLayout.LINE_AXIS));\n\t\tcounterPanel.add(new JLabel(\"Counter: \"));\n\t\tfinal JTextField counterField = new JTextField();\n\t\tcounterField.setText(Integer.toString(INITIAL_INTEGER_VALUE));\n\t\tcounterField.setColumns(10);\n\t\tcounterPanel.add(counterField);\n\t\tmenu.add(counterPanel);\n\t\t\n\t\tJPanel targetPanel = new JPanel();\n\t\ttargetPanel.setLayout(new BoxLayout(targetPanel, BoxLayout.LINE_AXIS));\n\t\ttargetPanel.add(new JLabel(\"Target position: \"));\n\t\ttargetFieldX = new JTextField();\n\t\ttargetFieldX.setEditable(false);\n\t\ttargetFieldX.setText(\"\");\n\t\ttargetFieldX.setColumns(4);\n\t\ttargetFieldY = new JTextField();\n\t\ttargetFieldY.setEditable(false);\n\t\ttargetFieldY.setText(\"\");\n\t\ttargetFieldY.setColumns(4);\n\t\ttargetPanel.add(targetFieldX);\n\t\ttargetPanel.add(new JLabel(\", \"));\n\t\ttargetPanel.add(targetFieldY);\n\t\tmenu.add(targetPanel);\n\t\tmenu.add(new SetTargetPositionButton(editor).button);\n\t\t\n\t\tJButton removeTargetButton = new JButton(\"Remove Target\");\n\t\tremoveTargetButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttargetFieldX.setText(\"\");\n\t\t\t\ttargetFieldY.setText(\"\");\n\t\t\t\teditor.targetIcon.setVisible(false);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmenu.add(removeTargetButton);\n\t\t\n\t\tfinal CyclicButtonGroup cyclicButtons = new CyclicButtonGroup();\n\t\t\n\t\tJRadioButton nonCyclicButton = new JRadioButton(\"Set to non-cyclic\");\n\t\tnonCyclicButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tcyclicButtons.beginningOfCycle.data.cycleStart = false;\n\t\t\t\t\tcyclicButtons.beginningOfCycle = null;\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tcyclicButtons.add(nonCyclicButton);\n\t\t\n\t\tfinal JButton addActionButton = new JButton(\"Add Action\");\n\t\t\n\t\tmenu.add(addActionButton);\n\t\tmenu.add(nonCyclicButton);\n\t\t\n\t\taddActionButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif (actionButtonGroup.getSelection() == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please select an action type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tFloat headingValue = null;\n\t\t\t\tInteger lengthValue = null;\n\t\t\t\tInteger counterValue = null;\n\t\t\t\tInteger targetValueX = null;\n\t\t\t\tInteger targetValueY = null;\n\t\t\t\tboolean noTarget = false;\n\t\t\t\ttry {\n\t\t\t\t\ttargetValueX = Integer.parseInt(targetFieldX.getText());\n\t\t\t\t\ttargetValueY = Integer.parseInt(targetFieldY.getText());\n\t\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\t\tnoTarget = true;\n\t\t\t\t}\n\t\t\t\tif (headingField.getText() == null || !isValidHeading(headingField.getText())) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a heading value greater than or equal to 0 and less than 360\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\theadingValue = Float.parseFloat(headingField.getText());\n\t\t\t\t}\n\t\t\t\tif (lengthField.getText() == null || !isValidLength(lengthField.getText())) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter an integer length value greater than 0\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlengthValue = Integer.parseInt(lengthField.getText());\n\t\t\t\t}\n\t\t\t\tif (counterField.getText() == null || !isValidCounter(counterField.getText(), Integer.parseInt(lengthField.getText()))) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter an integer counter value greater than 0 and less than the length value\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcounterValue = Integer.parseInt(counterField.getText());\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tActionMetadata data = new ActionMetadata(actionButtonGroup.getSelection().getActionCommand(),\n\t\t\t\t\t\theadingValue, lengthValue, counterValue, false, targetValueX, targetValueY);\n\t\t\t\t((TreeSite) object).actionQueue.add(data);\n\t\t\t\tcreateActionPanel(cyclicButtons, data);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tfor (ActionMetadata metadata : ((TreeSite) object).actionQueue) {\n\t\t\tcreateActionPanel(cyclicButtons, metadata);\n\t\t}\n\t\t\n\t}", "String getMenus(MmtConfig cfg);", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "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}", "public Menu() { //Menu pannel constructor\n\t\tmenuBar = new JMenuBar();\n\t\tmenu = new JMenu(\"Menu\");\n\t\tabout = new JMenu(\"About\");\n\t\tabout.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ragnarock Web Browser 2017\\nIvan Mykolenko\\u00AE\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\thistory = new JMenu(\"History\");\n\t\thistory.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"history\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"History\");\n\t\t\t\tlayer.show(userViewPort, \"History\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 2;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tbookmarks = new JMenu(\"Bookmarks\");\n\t\tbookmarks.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"bookmarks\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"Bookmarks\");\n\t\t\t\tlayer.show(userViewPort, \"Bookmarks\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tsettingsMenuItem = new JMenuItem(\"Settings\", KeyEvent.VK_X);\n\t\tsettingsMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcreateSettings();\n\t\t\t\tsettings.setVisible(true);\n\t\t\t}\n\t\t});\n\t\texitMenuItem = new JMenuItem(\"Exit\");\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbackButton = new JButton(\"Back\");\n\t\tremoveButton = new JButton(\"Remove\");\n\t\tmenu.add(settingsMenuItem);\n\t\tmenu.add(exitMenuItem);\n\t\tmenuBar.add(menu);\n\t\tmenuBar.add(history);\n\t\tmenuBar.add(bookmarks);\n\t\tmenuBar.add(about);\n\t\tmenuBar.add(Box.createHorizontalGlue()); // Changing backButton's alignment to right\n\t\tsettings = new JDialog();\n\t\tadd(menuBar);\n\t\tsaveButton = new JButton(\"Save\");\n\t\tclearHistory = new JButton(\"Clear History\");\n\t\tclearBookmarks = new JButton(\"Clear Bookmarks\");\n\t\tbuttonsPanel = new JPanel();\n\t\tpanel = new JPanel();\n\t\turlField = new JTextField(15);\n\t\tedit = new JLabel(\"Edit Homepage:\");\n\t\tviewMode = 1;\n\t\tlistModel = new DefaultListModel<String>();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t}", "protected abstract void addMenuOptions();", "void clickAmFromMenu();", "public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public abstract MenuInflater mo2159d();", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadMenuShow(String result) {\n\n\t\t\t\t\t\t\t\t}", "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }", "public int menu(String[] menu);", "String getMenuName();", "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 }", "public String getActivationMenu();", "private void initMenuBar() {\r\n\t\t// file menu\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\r\n\t\tadd(fileMenu);\r\n\r\n\t\tJMenuItem fileNewMenuItem = new JMenuItem(new NewAction(parent, main));\r\n\t\tfileNewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileNewMenuItem);\r\n\t\tJMenuItem fileOpenMenuItem = new JMenuItem(new OpenAction(parent, main));\r\n\t\tfileOpenMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileOpenMenuItem);\r\n\r\n\t\tJMenuItem fileSaveMenuItem = new JMenuItem(new SaveAction(main));\r\n\t\tfileSaveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveMenuItem);\r\n\t\tJMenuItem fileSaveAsMenuItem = new JMenuItem(new SaveAsAction(main));\r\n\t\tfileSaveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveAsMenuItem);\r\n\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.addSeparator();\r\n\r\n\t\tJMenuItem exitMenuItem = new JMenuItem(new ExitAction(main));\r\n\t\texitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(exitMenuItem);\r\n\r\n\t\t// tools menu\r\n\t\tJMenu toolsMenu = new JMenu(\"Application\");\r\n\t\ttoolsMenu.setMnemonic(KeyEvent.VK_A);\r\n\t\tadd(toolsMenu);\r\n\r\n\t\tJMenuItem defineCategoryMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineCategoryAction());\r\n\t\tdefineCategoryMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_C, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineCategoryMenuItem);\r\n\t\tJMenuItem defineBehaviorNetworkMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineBehaviorNetworkAction());\r\n\t\tdefineBehaviorNetworkMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_B, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineBehaviorNetworkMenuItem);\r\n\t\tJMenuItem startSimulationMenuItem = new JMenuItem(\r\n\t\t\t\tnew StartSimulationAction(main));\r\n\t\tstartSimulationMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_E, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(startSimulationMenuItem);\r\n\r\n\t\t// help menu\r\n\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\r\n\t\tadd(helpMenu);\r\n\r\n\t\tJMenuItem helpMenuItem = new JMenuItem(new HelpAction(parent));\r\n\t\thelpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\thelpMenu.add(helpMenuItem);\r\n\r\n\t\t// JCheckBoxMenuItem clock = new JCheckBoxMenuItem(new\r\n\t\t// ScheduleSaveAction(parent));\r\n\t\t// helpMenu.add(clock);\r\n\t\thelpMenu.addSeparator();\r\n\t\tJMenuItem showMemItem = new JMenuItem(new ShowMemAction(parent));\r\n\t\thelpMenu.add(showMemItem);\r\n\r\n\t\tJMenuItem aboutMenuItem = new JMenuItem(new AboutAction(parent));\r\n\t\thelpMenu.add(aboutMenuItem);\r\n\t}", "void askMenu();", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "public void menu(){\n super.goToMenuScreen();\n }", "public abstract Tree extractMenuBarItems (Object obj) throws SAFSException;", "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 }", "static void afficherMenu() {\n\t\tSystem.out.println(\"\\n\\n\\n\\t\\tMENU PRINCIPAL\\n\");\n\t\tSystem.out.println(\"\\t1. Additionner deux nombres\\n\");\n\t\tSystem.out.println(\"\\t2. Soustraire deux nombres\\n\");\n\t\tSystem.out.println(\"\\t3. Multiplier deux nombres\\n\");\n\t\tSystem.out.println(\"\\t4. Deviser deux nombres\\n\");\n\t\tSystem.out.println(\"\\t0. Quitter\\n\");\n\t\tSystem.out.print(\"\\tFaites votre choix : \");\n\t}", "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "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 }", "public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }", "private void updateMenuItems()\r\n\t {\r\n\t\t setListAdapter(new ArrayAdapter<String>(this,\r\n\t\t android.R.layout.simple_list_item_1, home_menu));\r\n\t\t \t \r\n\t }", "public static void printMenu() {\n System.out.print(\"\\n(A)dd Item (R)emove Item (F)ind Item (I)nitialize Tree (N)ew Tree (Q)uit\\n\");\n }", "public String getParentMenu();", "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}", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}", "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 }", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "public void refreshMenu() {\n\t\tthis.Menu.setSize(this.Menu.getWidth(), this.Items.size() * (this.textSize + 4) + 4);\r\n\t\tthis.Menu.Camera.setPosition(0, 0);\r\n\t\tthis.anchorX();\r\n\t\tthis.anchorY();\r\n\t\t//println(\"----------\");\r\n\t\tthis.Menu.reposition((int) menuAnchor.x, (int) menuAnchor.y);\r\n\r\n\t\tfor (uTextButton t : this.Items) {\r\n\t\t\tt.setPosition(t.getX(), (this.Items.indexOf(t) * t.getHeight()));\r\n\t\t}\r\n\r\n\t}", "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}", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "public void componentesimplementacionIsmael() {\n\t\t// En el menu bar Ismael\n\t\tmenuIsmael = new JMenu(\"Ismael\");\n\t\tmenuBar.add(menuIsmael);\n\n\t\t// SUBMENU\n\t\tsubMenuRecientes = new JMenu(\"Recientes\");\n\t\titemSubMenuRecientes = new ArrayList<>();\n\t\trutasRecientes = new ArrayList<>();\n\t\ttry {\n\t\t\trutasRecientes = manejadorFichero.obtenerLineasDelFichero();\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\tif (!rutasRecientes.isEmpty()) {\n\t\t\tfor (int i = 0; i < rutasRecientes.size(); i++) {\n\t\t\t\tJMenuItem textoSubmenu = new JMenuItem(rutasRecientes.get(i));\n\t\t\t\titemSubMenuRecientes.add(textoSubmenu);\n\t\t\t\tsubMenuRecientes.add(textoSubmenu);\n\t\t\t}\n\t\t}\n\t\tmenuIsmael.add(subMenuRecientes);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\t// Fuente\n\t\titemFuente = new JMenuItem(\"Fuente\");\n\t\titemFuente.setEnabled(false);\n\t\titemFuente.setMnemonic(KeyEvent.VK_F);\n\t\titemFuente.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemFuente);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemSeleccionarTodo = new JMenuItem(\"Selec.Todo\");\n\t\titemSeleccionarTodo.setEnabled(false);\n\t\titemSeleccionarTodo.setMnemonic(KeyEvent.VK_N);\n\t\titemSeleccionarTodo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodo);\n\n\t\titemSeleccionarTodoYCopiar = new JMenuItem(\"Selec All+Copy\");\n\t\titemSeleccionarTodoYCopiar.setEnabled(false);\n\t\titemSeleccionarTodoYCopiar.setMnemonic(KeyEvent.VK_M);\n\t\titemSeleccionarTodoYCopiar.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodoYCopiar);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemHora = new JMenuItem(\"Hora\");\n\t\titemHora.setEnabled(true);\n\t\titemHora.setMnemonic(KeyEvent.VK_H);\n\t\titemHora.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemHora);\n\n\t}", "private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }", "private void fixMenus() {\n\t\tfixFileOption();\n\t\tfixDelayOption();\n\t\tfixFormatOption();\n\t\tfixHelpOption();\n\t\t\n\t}", "private void updateMenuItems(){\n String awayState = mStructure.getAway();\n MenuItem menuAway = menu.findItem(R.id.menu_away);\n if (KEY_AUTO_AWAY.equals(awayState) || KEY_AWAY.equals(awayState)) {\n menuAway.setTitle(R.string.away_state_home);\n } else if (KEY_HOME.equals(awayState)) {\n menuAway.setTitle(R.string.away_state_away);\n }\n }", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "public void generateMenu () \n {\n mCoffeeList = mbdb.getCoffeeMenu();\n for(int i =0;i<mCoffeeList.size();i++){\n coffeeTypeCombo.addItem(mCoffeeList.get(i).toString());\n }\n mWaffleList = mbdb.getWaffleMenu();\n for(int j =0;j<mWaffleList.size();j++){\n waffleTypeCombo.addItem(mWaffleList.get(j).toString());\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 }", "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 }", "MenuItem getMenuItemAbout();", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "public void menu3Method() {\n }", "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}", "void onMenuItemClicked();", "public static void afficherMenu() {\r\n System.out.println(\"\\n## Menu de l'application ##\\n\" +\r\n \" Actions Membres :\\n\"+\r\n \" [ 1] : Inscription d'un Membre\\n\" +\r\n \" [ 2] : Désinscription d'un Membre\\n\" +\r\n \" ( 3) : Afficher liste des Membres\\n\" +\r\n \" [ 4] : Payer Cotisation\\n\" +\r\n \" Actions vote Arbres d'un Membre :\\n\" +\r\n \" ( 5) : Voter pour un Arbre\\n\" +\r\n \" ( 6) : Afficher liste des votes\\n\" +\r\n \" ( 7) : Retirer un vote\\n\" +\r\n \" ( 8) : Supprimer les votes d'un Membre.\\n\" +\r\n \" ( 9) : Remplacer un vote\\n\" +\r\n \" Actions Arbres :\\n\" +\r\n \" (10) : Afficher la liste des Arbres\\n\" +\r\n // ...\r\n \" Actions Administration :\\n\" +\r\n \" (11) : Nommer nouveau Président\\n\" +\r\n // ...\r\n \"\\n ( 0) : Quitter l'application\\n\" +\r\n \" - Veuillez saisir une action. -\");\r\n }", "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "public boolean isOnMenu ();", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "private static void menu() {\n\t\tboolean finished = false;\n\t\tdo {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"If you would like to view a current the movies on the movie list, please type \\\"all\\\" \\nIf you would like to see a list of the initial possible categories, please type \\\"categories\\\" \\n\\nTo search for films by category, please type the category, now\\nTo exit the program, just type \\\"no\\\"\");\n\t\t\tString menAns = read.nextLine();\n\t\t\tif (menAns.equalsIgnoreCase(\"all\")) {\n\t\t\t\tlistFormat();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"categories\") || menAns.equalsIgnoreCase(\"cats\")) {\n\t\t\t\tcatList();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"no\")) {\n\t\t\t\tfinished = true;\n\t\t\t} else {\n\t\t\t\tseachCats(menAns);\n\t\t\t}\n\t\t} while (!finished);\n\n\t}", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }", "@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}", "void drawMenu(IMenu menuToBeRendered);", "public void menu4Method() {\n }", "void createMenus(Container cp) {\r\n createMenu4Shape(cp);\r\n createMenu4Color(cp);\r\n createMenu4Filled(cp);\r\n createButtons(cp);\r\n }", "public void onLoadMenuMyFavoritesSelected();", "@Override\r\npublic void menuDeselected(MenuEvent arg0) {\n\t\r\n}" ]
[ "0.75019425", "0.7487138", "0.7411139", "0.71822095", "0.7151784", "0.713811", "0.71202254", "0.70120955", "0.70094717", "0.7004326", "0.69639015", "0.6960523", "0.6950746", "0.694513", "0.69152707", "0.68863547", "0.68411016", "0.6839795", "0.6833828", "0.68163306", "0.68147385", "0.68105435", "0.6790893", "0.6777911", "0.6757552", "0.6754773", "0.6750655", "0.6742542", "0.67326605", "0.6725812", "0.6720994", "0.6720577", "0.6713791", "0.6710954", "0.67103463", "0.6707655", "0.6706555", "0.6703861", "0.6702449", "0.6695918", "0.6668826", "0.6664888", "0.6636501", "0.6634364", "0.66330653", "0.6627677", "0.66254354", "0.6624442", "0.6610963", "0.6609122", "0.66071147", "0.66034067", "0.659934", "0.65981394", "0.6596529", "0.6586028", "0.6570411", "0.6570055", "0.65609694", "0.656074", "0.65585774", "0.6556247", "0.6547715", "0.6537977", "0.6534643", "0.65208715", "0.65078783", "0.65056515", "0.6504263", "0.6498781", "0.6496438", "0.64964104", "0.64911854", "0.6490796", "0.6485914", "0.6484285", "0.64823353", "0.64819556", "0.64780176", "0.64759547", "0.6472802", "0.6465137", "0.64563686", "0.6453926", "0.64523894", "0.6443887", "0.64413375", "0.64388067", "0.64348733", "0.6434163", "0.6429089", "0.64250684", "0.6419973", "0.6417843", "0.6415499", "0.64130735", "0.6408953", "0.6408207", "0.6407824", "0.6401833", "0.6393786" ]
0.0
-1
Filling out the main listview //
private void setCurrentViews(boolean animate) { // These can't be set until the views have been populated from // DB in fillCategoryData() mVisibleCategoriesLayout = (ListView) mFlipper.getCurrentView(); if (mVisibleCategoriesLayout != null) { mVisibleCategoriesLayout.setOnCreateContextMenuListener(this); if (animate == true) slideDown(mVisibleCategoriesLayout, mCtx); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateListView() {\n ArrayAdapter<Representative> adapter = new MyListAdapter();\n ListView list = (ListView) findViewById(R.id.repListView);\n list.setAdapter(adapter);\n }", "public void populateListView() {\n\n\n }", "public void populateView() {\r\n populateHead();\r\n ArrayList arrayList = new ArrayList();\r\n arrayList.add(new AccDetailItem(\"Loan Amount\", this.account.totLoanAmt, MiscUtils.getColor(getResources(), this.account.totLoanAmt)));\r\n arrayList.add(new AccDetailItem(\"Interest Rate\", this.account.interestRate));\r\n arrayList.add(new AccDetailItem(\"Repayment Amount\", this.account.repaymentAmt, MiscUtils.getColor(getResources(), this.account.repaymentAmt)));\r\n arrayList.add(new AccDetailItem(\"Start Date\", this.account.startDt));\r\n arrayList.add(new AccDetailItem(\"End Date\", this.account.endDt));\r\n arrayList.add(new AccDetailItem(\"Status\", this.account.loanStatus));\r\n ArrayList arrayList2 = new ArrayList();\r\n arrayList2.add(new AccDetailItem(\"Outstanding Amount\", this.account.formattedOutstandingAmount, ContextCompat.getColor(getContext(), R.color.primary_red)));\r\n arrayList2.add(new AccDetailItem(\"Overdue Amount\", String.valueOf(this.account.overdueAmount), MiscUtils.getColor(getResources(), (double) this.account.overdueAmount)));\r\n arrayList2.add(new AccDetailItem(\"No. of Repayments Overdue\", this.account.overdueCount));\r\n this.list.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList));\r\n this.list2.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList2));\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list);\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list2);\r\n }", "private void setupListView() {\n potList = loadPotList();\n arrayofpots = potList.getPotDescriptions();\n refresher(arrayofpots);\n }", "private void setUpList() {\n\t\tRoomItemAdapter adapter = new RoomItemAdapter(getApplicationContext(),\n\t\t\t\trName, rRate);\n\t\tlistView.setAdapter(adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\thandleClick(position);\n\t\t\t}\n\t\t});\n\t}", "private void InitData() {\n\t\tmOptList = new HashMap<Integer, PlaylistEntry>();\n\t\tplaylist = new Playlist();\n\t\tmAdapter = new MusicAdapter(getContext());\n\n\t\tmListView = new ListView(getContext());\n\t\tmListView.setDividerHeight(0);\n\t\tmListView.setCacheColorHint(0x00000000);\n\t\tmListView.setFadingEdgeLength(0);\n\t\tmListView.setFastScrollEnabled(true);\n\t\tmListView.setFooterDividersEnabled(true);\n\t\tmListView.setSelector(R.drawable.press_list_sum);\n\t\tmListView.setOnItemClickListener(mOnItemClickListener);\n\t\tmListView.setPadding(1, 1, 1, 1);\n\n\t\t// 设置最后一个View\n\t\tView mFooterView = new View(getContext());\n\t\tmFooterView.setLayoutParams(new ListView.LayoutParams(\n\t\t\t\tLayoutParams.FILL_PARENT, Util.dipTopx(getContext(), 1)));// 以前是66\n\t\tmListView.addFooterView(mFooterView);\n\t\tmListView.setAdapter(mAdapter);\n\t\tmLinearLayout.addView(mListView);\n\n\t\tLinearLayout mLayout = new LinearLayout(getContext());\n\t\t// mLayout.setPadding(2, 0, 2, Util.dipTopx(getContext(), 13));\n\t\tmLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLayout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tLayoutParams.FILL_PARENT));\n\n\t\tView mView = new View(mLayout.getContext());\n\t\tmView.setLayoutParams(new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1));\n\n\t\tmLayout.addView(mView);\n\t\tmLayout.addView(mControlBar);\n\n\t\tthis.addView(mLinearLayout);\n\t\tthis.addView(mLayout);\n\t}", "private void inicializaListView(){\n }", "private void supaporn() {\n\t\tlistView = (ListView) findViewById(R.id.listView1);\n\t\tlists = new ArrayList<items_list>();\n\t\tadapter=new MyAdater();\n\t\tlistView.setAdapter(adapter);\n\t}", "@Override\n\tpublic void initView() {\n\t\tmylis_show.setTitleText(\"我的物流\");\n\t\tlistView = mylis_listview.getRefreshableView();\n\t\t\n\t}", "@Override\n protected void initView() {\n mListView = (ListView) findViewById(R.id.list);\n ViewGroup.LayoutParams layoutParams = mListView.getLayoutParams();\n layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT;\n layoutParams.height = AppController.displayMetrics.heightPixels / 2;\n mListView.setLayoutParams(layoutParams);\n\n\n mSelectChatAdapter = new SelectChatAdapter(getContext());\n mListView.setAdapter(mSelectChatAdapter);\n mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n goToHXMain(\n HXApplication.getInstance().parseUserFromID(HXHelper.yamContactList.get(position)\n .getFirendsUserInfo().getId(), HXConstant.TAG_SHOP));\n }\n });\n }", "public void initView() {\n ArrayAdapter<String> arrayAdapter=new ArrayAdapter<String>(getView().getContext(),android.R.layout.simple_list_item_1,tracks);\n list.setAdapter(arrayAdapter);\n }", "protected void populateContentListView(ArrayList<UnistorEntry> content){\n\n // If first entry is back button, the content array\n // is sorted without this item, which will be added in the first position\n if(content.get(0).getEntryType() == Constants.ENTRY_TYPE_BACK){\n UnistorEntry backEntry = content.remove(0);\n Collections.sort(content, new UnistorEntryComparator());\n content.add(0, backEntry);\n }else{\n Collections.sort(content, new UnistorEntryComparator());\n }\n\n // Setting the adapter with the new items.\n // If the adapter have been previously created, we use notifyDataSetChanged to refresh,\n // that uses fairly less resources than creating a new one.\n if(this.listView.getAdapter() == null){\n UnistorEntryListAdapter listViewAdapter = new UnistorEntryListAdapter(mContext, content);\n this.listView.setAdapter(listViewAdapter);\n // Set context menu for the listview\n registerForContextMenu(listView);\n\n }else{\n UnistorEntryListAdapter listViewAdapter = (UnistorEntryListAdapter)this.listView.getAdapter();\n listViewAdapter.clear();\n listViewAdapter.addAll(content);\n listViewAdapter.notifyDataSetChanged();\n }\n\n\n }", "private void initView() {\n initRefreshListView(mListview);\n }", "public static void addView() {\n\t\tListView listview = (ListView) main_detail.findViewById(R.id.listview);\n\t\tbaseAdapter = new BaseAdapter(getActivity(), new ArrayList<Object>()) {\n\t\t\t@Override\n\t\t\tpublic BaseView getView(Context context, Object data) {\n\t\t\t\tfinal ProfileRecommentItemView profileRecommentItemView = new ProfileRecommentItemView(context);\n\t\t\t\treturn profileRecommentItemView;\n\t\t\t}\n\t\t};\n\t\tbaseAdapter.clear();\n\t\tbaseAdapter.addAllItems(baseItemsCreditMain);\n\t\tbaseAdapter.notifyDataSetChanged();\n\t\tlistview.setOnItemClickListener(new OnItemClickListener() {\n\t\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tBaseItem baseItem = (BaseItem) parent.getItemAtPosition(position);\n//\t\t\t\tfinishEC(baseItem.getString(\"id_card\"));\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tlistview.setAdapter(baseAdapter);\n\t}", "private void initList() {\n\t\t\r\n\t\tpointArrayAdapter = new WastePointsAdapter(mContext, R.layout.list_feeds_item, mWastePointController.getWastePointsList());\r\n\t\tsetListAdapter(pointArrayAdapter);\r\n\t\ttry {\r\n\t\t\tgetListView().setDivider(null);\r\n\t\t\temptyText.setVisibility(View.GONE);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tgetListView().setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tmWastePointController.setCurrentWastePoint(mWastePointController.getWastePointsList().get(arg2));\r\n\t\t\t\t((MainActivity)PointsListFragment.this.getActivity()).showPointDetails();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void fillData() {\n adapter = new ListViewAdapter();\n listview01.setAdapter(adapter);\n }", "private void populateListView() {\n String[] myItems = {\"Blue\", \"green\", \"Purple\", \"red\"};\n\n //creating listviewadapter which is an array for storing the data and linking it according to the\n //custom listview\n\n ArrayAdapter<String> listViewAdapter = new ArrayAdapter<String>(this, R.layout.da_items, myItems);\n //linking the listview with our adapter to present data\n ListView Lv = (ListView)findViewById(R.id.listView_data);\n Lv.setAdapter(listViewAdapter);\n }", "public void displayDataUpListView() {\n\t\ttry {\n\t\t\t// lay tat ca cac du lieu trong sqlite\n\t\t\talNews = qlb.getAllNewsDaTa();\n\t\t\tmListView.setAdapter(new AdapterListNewsSaved(\n\t\t\t\t\tActivity_News_Saved_List.this));\n\t\t} catch (Exception e) {\n\t\t\tmListView.setAdapter(null);\n\t\t}\n\n\t}", "private void populateListView() {\n\t\tappList = getPackages();\n\t\tListView lv = (ListView) findViewById(R.id.TheListView);\n\t\tList<String> appNames = new ArrayList<String>();\n\t\tList<Drawable> appIcons = new ArrayList<Drawable>();\n\t\tfor(PInfo pi : appList){\n\t\t\tappNames.add(pi.getAppname());\n\t\t\tappIcons.add(pi.getIcon());\n\t\t}\n\t\tCustomListViewAdapter adapter = new CustomListViewAdapter(this, R.layout.app_name_icon, appNames.toArray(new String[appNames.size()]),appIcons.toArray(new Drawable[appIcons.size()]));\n\t\tlv.setAdapter(adapter);\n\t\tlv.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong id) {\n\t\t\t\tToast.makeText(GetAppActivity.this, \"You Chose\"+appList.get(position).appname, Toast.LENGTH_SHORT).show();\n\t\t\t\tif(appList.get(position).toOpen!=null){\n\t\t\t\tgridModel.addIntent(appList.get(position).toOpen);\n\t\t\t\tstartActivity(appList.get(position).toOpen);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public void updateListView(){\n mAdapter = new ListViewAdapter(getActivity(),((MainActivity)getActivity()).getRockstarsList());\n mRockstarsListView.setAdapter(mAdapter);\n }", "private void refreshListView() {\n\t\tSQLiteDatabase db = dbh.getReadableDatabase();\n\t\tsharedListView.setAdapter(null);\n\t\tCursor c1 = db.rawQuery(\"SELECT _id, title, subtitle, content, author, otheruser FROM todos WHERE otheruser = '\" + author + \"'\", null);\n\t\tListAdapter adapter2 = new SimpleCursorAdapter(this, R.layout.activity_items, c1, from, to, 0);\n\t\tsharedListView.setAdapter(adapter2);\n\t\tadapter.notifyDataSetChanged();\n\t}", "private void displayListView() {\n\t\tArrayList<FillterItem> fillterList = new ArrayList<FillterItem>();\n\n\t\tfor (int i = 0; i < province.length; i++) {\n\t\t\tLog.i(\"\", \"province[i]: \" + province[i]);\n\t\t\tFillterItem fillter = new FillterItem();\n\t\t\tfillter.setStrContent(province[i]);\n\t\t\tfillter.setSelected(valueList[i]);\n\t\t\t// add data\n\t\t\tfillterList.add(fillter);\n\t\t}\n\n\t\t// create an ArrayAdaptar from the String Array\n\t\tdataAdapter = new MyCustomAdapter(getContext(),\n\t\t\t\tR.layout.item_fillter_header, fillterList);\n\n\t\t// Assign adapter to ListView\n\t\tlistView.setAdapter(dataAdapter);\n\n\t}", "private void updateUi (){\n //get the first list item postion\n int currentPosition =listView.getFirstVisiblePosition();\n //append the new recipes to listview\n RecipeAdapter adapter = new RecipeAdapter(this , recipesList);\n listView.setAdapter(adapter);\n // Setting new scroll position to continue\n listView.setSelectionFromTop(currentPosition + 1, 0);\n }", "private void updateListView() {\n adapter = new TableItemAdapter(this, tableItems);\n this.listView.setAdapter(adapter);\n }", "void onPrepareListView(ListView listView);", "private void setupListView() {\n //Main and Description are located in the strings.xml file\n String[] title = getResources().getStringArray(R.array.Main);\n String[] description = getResources().getStringArray(R.array.Description);\n SimpleAdapter simpleAdapter = new SimpleAdapter(this, title, description);\n listview.setAdapter(simpleAdapter);\n\n listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n switch(position){\n case 0: {\n //Intent means action (communication between two components of the app)\n Intent intent = new Intent(MainActivity.this, WeekActivity.class);\n startActivity(intent);\n break;\n }\n case 1: {\n Intent intent = new Intent(MainActivity.this, SubjectActivity.class);\n startActivity(intent);\n break;\n }\n case 2: {\n Intent intent = new Intent(MainActivity.this, FacultyActivity.class);\n startActivity(intent);\n break;\n }\n case 3: {\n break;\n }\n default:{\n break;\n }\n }\n }\n });\n }", "private void initListView() {\n listView = (ListView) findViewById(R.id.lv_pingpai_listview);\r\n pingpaiList = new ArrayList<>();\r\n adapter = new PingpaiAdapter(this, pingpaiList);\r\n listView.setAdapter(adapter);\r\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n Pingpai pingpai = (Pingpai) adapter.getItem(position);\r\n Intent intent = new Intent(PingpaiActivity.this, XinghaoActivity.class);\r\n intent.putExtra(\"pingpai\", pingpai);\r\n startActivity(intent);\r\n finish();\r\n\r\n }\r\n });\r\n// sortListView.setmOnTouchListener(new SortListView.OnTouchListener() {\r\n// @Override\r\n// public void onTouch(String s) {\r\n// Integer index = adapter.getPosition(s);\r\n// if (index != null) {\r\n// listView.setSelection(index);\r\n// }\r\n// }\r\n// });\r\n// listView.setAdapter(adapter);\r\n }", "@Override\n\tpublic void initView() {\n\t\totherFee = new ArrayList<OtherFee>();\n\t\tMyApplication.addActivity(this);\n\t\trl_back_otherfee = (RelativeLayout) findViewById(R.id.rl_back_otherfee);\n\t\tlv_otherfee = (PullToRefreshListView) findViewById(R.id.lv_otherfee);\n\t\tlv_otherfee.setOnRefreshListener(this);\n\t\tlv_otherfee.setMode(Mode.BOTH);\n\t\tlvadapter = new MylVAdapter();\n\t\tlv_otherfee.setAdapter(lvadapter);\n\t\tgetData(1, pageSize);\n\t}", "private void populateIngredientView() {\n\t\tListView ingredientsLV = (ListView) findViewById(R.id.lv_Ingredients);\n\t\tregisterForContextMenu(ingredientsLV);\n\n\t\tArrayList<String> combined = RecipeView\n\t\t\t\t.formCombinedArray(currentRecipe);\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(this,\n\t\t\t\tR.layout.list_item, combined);\n\t\tingredientsLV.setAdapter(adapter);\n\t\tsetListViewHeightBasedOnChildren(ingredientsLV);\n\t}", "private void createListView()\n {\n itens = new ArrayList<ItemListViewCarrossel>();\n ItemListViewCarrossel item1 = new ItemListViewCarrossel(\"Guilherme Biff\");\n ItemListViewCarrossel item2 = new ItemListViewCarrossel(\"Lucas Volgarini\");\n ItemListViewCarrossel item3 = new ItemListViewCarrossel(\"Eduardo Ricoldi\");\n\n\n ItemListViewCarrossel item4 = new ItemListViewCarrossel(\"Guilh\");\n ItemListViewCarrossel item5 = new ItemListViewCarrossel(\"Luc\");\n ItemListViewCarrossel item6 = new ItemListViewCarrossel(\"Edu\");\n ItemListViewCarrossel item7 = new ItemListViewCarrossel(\"Fe\");\n\n ItemListViewCarrossel item8 = new ItemListViewCarrossel(\"iff\");\n ItemListViewCarrossel item9 = new ItemListViewCarrossel(\"Lucini\");\n ItemListViewCarrossel item10 = new ItemListViewCarrossel(\"Educoldi\");\n ItemListViewCarrossel item11 = new ItemListViewCarrossel(\"Felgo\");\n\n itens.add(item1);\n itens.add(item2);\n itens.add(item3);\n itens.add(item4);\n\n itens.add(item5);\n itens.add(item6);\n itens.add(item7);\n itens.add(item8);\n\n itens.add(item9);\n itens.add(item10);\n itens.add(item11);\n\n //Cria o adapter\n adapterListView = new AdapterLsitView(this, itens);\n\n //Define o Adapter\n listView.setAdapter(adapterListView);\n //Cor quando a lista é selecionada para ralagem.\n listView.setCacheColorHint(Color.TRANSPARENT);\n }", "public void setListView() {\n arr = inSet.toArray(new String[inSet.size()]);\n adapter = new ArrayAdapter(SetBlock.this, android.R.layout.simple_list_item_1, arr);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n adapter.notifyDataSetChanged();\n listView.setAdapter(adapter);\n }\n });\n }", "private void initview() {\n\t\tmtvWorkerListTitle=(MyTitleView) findViewById(R.id.worker_list_title);\n\t\tzlvWorkerList=(ZListView) findViewById(R.id.worker_list_zlistview);\n\t\t\n\t\tmtvWorkerListTitle.setOnLeftClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void populateListView() {\n ((MovieAdapter)((HeaderViewListAdapter)myListView.getAdapter()).getWrappedAdapter()).notifyDataSetChanged();\n\n // Check if the user selected a specific movie and start a new activity with only that movie's information.\n myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Movie selectedMovie = movies.get(position);\n\n Intent intent = new Intent(MovieListActivity.this, MovieOverviewActivity.class);\n intent.putExtra(TITLE_KEY, selectedMovie.getTitle());\n intent.putExtra(RELEASE_DATE_KEY, selectedMovie.getReleaseDate());\n intent.putExtra(RATING_KEY, selectedMovie.getRating());\n intent.putExtra(OVERVIEW_KEY, selectedMovie.getOverview());\n intent.putExtra(POSTER_PATH_KEY, selectedMovie.getPosterURL());\n startActivity(intent);\n }\n });\n }", "public void populateListView() {\n Cursor scores = myDb.getAllData();\n\n String[] columns = new String[]{\n myDb.COL_2,\n myDb.COL_3,\n myDb.COL_4,\n myDb.COL_5\n };\n\n int[] boundTo = new int[]{\n R.id.topScore,\n R.id.topCount,\n R.id.bottomScore,\n R.id.bottomCount\n };\n\n simpleCursorAdapter = new SimpleCursorAdapter(this,\n R.layout.history_list,\n scores,\n columns,\n boundTo,\n 0);\n scoreHistory.setAdapter(simpleCursorAdapter);\n\n// topScore.setTypeface(numberFont);\n// topCount.setTypeface(numberFont);\n// bottomScore.setTypeface(numberFont);\n// bottomCount.setTypeface(numberFont);\n\n\n }", "@Override\n\tprotected void setupListView() {\n\t\tfinal int elementLayout = R.layout.image_selectable_list_item;\n\t\tfinal int imageView = R.id.imageView1;\n\t\tfinal int textView = R.id.textView1;\n\n\t\tmQueryListener = new QueryListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onError() {\n\t\t\t\tmAdapter = null;\n\t\t\t\tsetListAdapter(null);\n\t\t\t\tgetListView().invalidateViews();\n\t\t\t\tsetEmptyText(getString(R.string.retrievalError));\n\t\t\t\tmProgressBar.setVisibility(View.GONE);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(double data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(boolean data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(ObjectPrx data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(QueryModel data, boolean saved) {\n\t\t\t\tif (saved) {\n\t\t\t\t\tmQueryModel = data;\n\t\t\t\t\tArrayList<UserTypPrx> adapterData = new ArrayList<UserTypPrx>(\n\t\t\t\t\t\t\tdata.data.size());\n\t\t\t\t\tfor (ObjectPrx oprx : data.data)\n\t\t\t\t\t\tadapterData.add(UserTypPrxHelper.checkedCast(oprx));\n\t\t\t\t\tif (mAdapter == null) {\n\t\t\t\t\t\tmAdapter = new UserListAdapter(MyMessagesActivity.this,\n\t\t\t\t\t\t\t\telementLayout, imageView, textView, adapterData);\n\t\t\t\t\t\tsetListAdapter(mAdapter);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmAdapter.addAll(adapterData);\n\t\t\t\t\t}\n\t\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\t\tmProgressBar.setVisibility(View.GONE);\n\t\t\t\t\tif (mAdapter.getCount() <= 0)\n\t\t\t\t\t\tsetEmptyText(getString(R.string.noMessagesFound));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "public void setDatatoList() {\n swipeRefreshLayout.setRefreshing(true);\n DatabaseHandler databaseHandler = new DatabaseHandler(getApplicationContext());\n locationDetailsList = databaseHandler.getAllLocationDetails();\n if (locationDetailsList.size() > 0) {\n\n recyclerView.setVisibility(View.VISIBLE);\n emptyListText.setVisibility(View.GONE);\n\n mAdapter = new LocationDetailsAdapter(locationDetailsList, this);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(mAdapter);\n } else {\n recyclerView.setVisibility(View.GONE);\n emptyListText.setVisibility(View.VISIBLE);\n emptyListText.setText(this.getResources().getString(R.string.no_list_items));\n }\n swipeRefreshLayout.setRefreshing(false);\n }", "private void initializeList() {\n findViewById(R.id.label_operation_in_progress).setVisibility(View.GONE);\n adapter = new MapPackageListAdapter();\n listView.setAdapter(adapter);\n listView.setVisibility(View.VISIBLE);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n \n @Override\n public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) {\n List<DownloadPackage> childPackages = searchByParentCode(currentPackages.get(position).getCode());\n if (childPackages.size() > 0) {\n currentPackages = searchByParentCode(currentPackages.get(position).getCode());\n adapter.notifyDataSetChanged();\n }\n }\n });\n }", "private void updateListView() {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.textview, geofences);\n ListView list = (ListView) findViewById(R.id.listView);\n list.setAdapter(adapter);\n }", "@Override\n public void initViews() {\n adapter = new PaymentAdapter(context, MainActivity.os.getPayments());\n ((ListView)views.get(\"LIST_VIEW\")).setAdapter(adapter);\n (views.get(\"ADD_BUTTON\")).setOnClickListener(this);\n }", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif(failureFlag!=0){\r\n\t\t\t\tsetContentView(R.layout.main);\r\n\t\t\t\ttitle=(ListView)findViewById(R.id.listView);\r\n\t\t\tadapter=new LazyAdapter(context, titleList, imageList, title);\r\n\t\t\ttitle.setAdapter(adapter);\r\n\t\t\ttitle.setOnItemClickListener(context);\r\n\t\t\ttitle.setOnScrollListener(new ListAdapterScrollListener(adapter));\r\n\t\t\ttitle.setOnItemLongClickListener(context);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsetContentView(R.layout.background);\r\n\t\t\t\tLog.i(\"TAG\", error);\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"No Intenet conection found\", 2).show();\r\n\t\t\t}\r\n\t\t}", "private void initView(){\n recordData = NewDataManager.getIntance(this).getRecordData();\n Log.w(\"zsbin\",\"recordData size= \"+recordData.size());\n objects = recordData.keySet().toArray();\n for(Object tmp: objects){\n long time = (long)tmp;\n mTopStrings.add((time/100000000)+\"年\"+\n (time%100000000/1000000)+\"月\"+\n (time%1000000/10000)+\"日\"+\n (time%10000/100)+\":\"+\n (time%100));\n }\n Log.w(\"zsbin\",\"mTopStrings= \"+mTopStrings.toString());\n HeadLIstViewAdapter topAdapter = new HeadLIstViewAdapter(this,mTopStrings);\n mTopListView.setAdapter(topAdapter);\n setListViewHeightBasedOnChildren(mTopListView);\n mTopListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n long object = (long) objects[position];\n Intent intent = new Intent(ShowDataActivity.this,ChengbenActivity2.class);\n intent.putExtra(\"time\",object);\n startActivity(intent);\n }\n });\n\n }", "private void setOnListView() {\n\t\tlist.setItems(obs);\n\t\tlist.setCellFactory(new Callback<ListView<User>, ListCell<User>>(){\n\n\t\t\t@Override\n\t\t\tpublic ListCell<User> call(ListView<User> p) {\n\t\t\t\t\n\t\t\t\tListCell<User> cell = new ListCell<User>() {\n\t\t\t\t\t\n\t\t\t\t\t@Override \n\t\t\t\t\tprotected void updateItem(User s, boolean bln) {\n\t\t\t\t\t\tsuper.updateItem(s, bln);\n\t\t\t\t\t\tif(s != null) {\n\t\t\t\t\t\t\tsetText(s.getUserName());\n\t\t\t\t\t\t}else\n\t\t\t\t\t\t\tsetText(\"\");\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\treturn cell;\n\t\t\t}\n\t\t});\n\t}", "private void refreshListView() {\n\t\t\tisEnd=false;\n\t\t\tlistView.setMode(Mode.PULL_FROM_START);\n\t\t\tjsonArray=new JSONArray();\n\t\t\tcurrentPage=0;\n\t\t\tgetSharePage(++currentPage);\n\t\t\t\n\t\t}", "private void populateQuestionListView(){\n questionList = (ListView) findViewById(R.id.question_list);\n qla = new QuizListAdapter(this);\n for(int i = 0; i < questions.getSize(); i++)\n qla.add(questions.getNext(Question.class));\n\n //sets the adapter for all the list items\n if(questionList != null){\n questionList.setAdapter(qla);\n }\n }", "@Override\n\t\tpublic void initList() {\n\t\t\tadapter = new MsgItemAdapter(context);\n\t\t\tArrayList<MsgBean> datas = getData();\n\t\t\tadapter.setData(datas);\n\t\t\tmListView.setAdapter(adapter);\n\t\t\tmListView.setViewMode(true, true);\n\t\t\tif(!DataValidate.checkDataValid(datas)){\n\t\t\t\tpageView.setDefaultPage().setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}", "private void loadEntryList() {\n EntryAdapter adapter = new EntryAdapter(MainActivity.this, db.selectAll());\n listView.setAdapter(adapter);\n }", "private void initView() {\n listView = (ListView)findViewById(R.id.phonesListView);\n listView.setEmptyView(findViewById(R.id.emptyElement));\n adapter = new PhonesCursorAdapter(this,cursor,false);\n listView.setAdapter(adapter);\n listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL);\n listView.setMultiChoiceModeListener(new AbsListView.MultiChoiceModeListener() {\n @Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\n }\n\n @Override\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n MenuInflater menuInflater = mode.getMenuInflater();\n menuInflater.inflate(R.menu.list_menu,menu);\n return true;\n }\n\n @Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }\n\n @Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n switch (item.getItemId()){\n case R.id.deletePhones:\n deletePhones();\n return true;\n }\n return false;\n }\n\n @Override\n public void onDestroyActionMode(ActionMode mode) {\n\n }\n });\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Pobierz dane z bazy na temat wybranego obiektu i przekazuje do\n //kolejnej aktywnosci\n\n //pobieramy dane wybranego telefonu\n Cursor cursor = ResolverHelper.getData((int) id, MainListaActivity.this.getContentResolver());\n Bundle bundle = new Bundle();\n while(cursor.moveToNext()){\n bundle.putString(Constants._ID,cursor.getString(0));\n bundle.putString(Constants.PRODUCENT,cursor.getString(1));\n bundle.putString(Constants.MODEL_NAME,cursor.getString(2));\n bundle.putString(Constants.ANDR_VER,cursor.getString(3));\n bundle.putString(Constants.WWW,cursor.getString(4));\n }\n cursor.close();\n Intent intent = new Intent(MainListaActivity.this,PhoneActivity.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }\n });\n }", "private void initListView() {\n\t\trefreshListItems();\n\n\t\t/* Add Context-Menu listener to the ListView. */\n\t\tlv.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCreateContextMenu(ContextMenu menu, View v,\n\t\t\t\t\tContextMenu.ContextMenuInfo menuInfo) {\n\t\t\t\tmenu.setHeaderTitle(((TextView) ((AdapterView.AdapterContextMenuInfo) menuInfo).targetView)\n\t\t\t\t\t\t.getText());\n\t\t\t\tmenu.add(0, CONTEXTMENU_EDITITEM, 0, \"Edit this VDR!\");\n\t\t\t\tmenu.add(0, CONTEXTMENU_DELETEITEM, 0, \"Delete this VDR!\");\n\t\t\t\t/* Add as many context-menu-options as you want to. */\n\n\t\t\t}\n\t\t});\n\t}", "private void initView() {\n\n lv_functions= (ListView) findViewById(R.id.lv_functions);\n MultLayoutAdapter multLayoutAdapter=new MultLayoutAdapter(this,R.layout.function_list_item0,functions);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// swingBottomInAnimationAdapter.setListView(lv_functions);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// SwingRightInAnimationAdapter swingRightInAnimationAdapter = new SwingRightInAnimationAdapter(swingBottomInAnimationAdapter);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// SwingRightInAnimationAdapter swingRightInAnimationAdapter = new SwingRightInAnimationAdapter(swingBottomInAnimationAdapter);\n// SwingLeftInAnimationAdapter swingLeftInAnimationAdapter = new SwingLeftInAnimationAdapter(multLayoutAdapter);\n// swingLeftInAnimationAdapter.setListView(lv_functions);\n // swingRightInAnimationAdapter.setListView(lv_functions);\n lv_functions.setAdapter(multLayoutAdapter);\n\n }", "@Override\n\tpublic void initView() {\n\t\tIntent intent=getIntent();\n\t\tString title=intent.getStringExtra(\"title\");\n\t\tcontext=intent.getStringExtra(\"context\");\n\t\tsetTitle(title);\n\t\tsetGone();\n\t\tsetBack();\n\t\tlist=new ArrayList<GameFighterBean>();\n\t\ttopNewsMoreLV = (LoadListViewnews) findViewById(R.id.lv_more_topnew);\n\t\txuanshou_quanbu_wu = (Button) findViewById(R.id.xuanshou_quanbu_wu);\n\t\txuanshou_quanbu_wu.setVisibility(View.VISIBLE);\n\t\tinitNetwork(context);\n\n\t}", "private void initData() {\n contents.clear();\n images.clear();\n contents.add(\"荣誉殿堂\");\n contents.add(getResources().getString(R.string.mine_item1));\n contents.add(getResources().getString(R.string.mine_item2));\n contents.add(getResources().getString(R.string.mine_item4));\n contents.add(getResources().getString(R.string.mine_item3));\n\n String sex = SPHelper.getDetailMsg(getActivity(), Cons.USER_INFO, getString(R.string.appsex_man));\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n images.add(BGHelper.setButtonNotify(getActivity(), sex));\n images.add(BGHelper.setButtonReport(getActivity(), sex));\n images.add(sex.equals(\"M\") ? R.drawable.ioc_mine_que_blue : R.drawable.ioc_mine_que_red);\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n\n\n adapter = new MineAdapter(getActivity(), contents, images, this);\n lv_mine.setAdapter(adapter);\n }", "private void initData() {\n mTopListView = (ListView) findViewById(R.id.lv_list);\n// mDataListView = (HorizontalListView) findViewById(R.id.ls_top);\n }", "private void setViews() {\n lv.setAdapter(adapter);\n\n dialog2 = new MiddleDialog2(INSTANCE, getResources().getString(R.string.title), getResources().getString(R.string.value), new MiddleDialog2.onBottonListener() {\n @Override\n public void onOk() {\n\n finish();\n }\n },R.style.registDialog);\n }", "private void showList() {\n try {\n swipeRefreshLayout.setVisibility(View.VISIBLE);\n tvMessage.setVisibility(View.GONE);\n\n /* to void duplicate data*/\n Set<NewsDetail> newsDetailSet = new HashSet<NewsDetail>(newsList);\n\n newsList.clear();\n newsList = new ArrayList<NewsDetail>(newsDetailSet);\n if (adapter == null) {\n adapter = new NewsListAdapter(mContext, newsList);\n listView.setAdapter(adapter);\n } else {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tprotected void initUI(){\n\t\tsuper.initUI();\n\t\tinitRefreshView();\n\t\tholder.gridView = (GridView) findViewById(R.id.gridview);\n\t\tinitGridViewData();\n\t\tonlyUpRefresh();\n\t\tmPullRefreshListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent,View view,int position,long id){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGoods goods = list.get(position - 1);\n\t\t\t\tIntent intent = new Intent(SaleActivity.this, PayActivity.class);\n\t\t\t\tintent.putExtra(\"tradeName\", goods.getTableName());\n\t\t\t\tintent.putExtra(\"price\", goods.getPrice());\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tView v = inflater.inflate(R.layout.layout_listview, null);\n\t\tlv = (ListView) v.findViewById(R.id.lv);\n\n\t\t// ColorDrawable color_divider = new ColorDrawable(R.color.transparent);\n\t\t// lv.setDivider(color_divider);\n\t\tlv.setDividerHeight(1);\n\n//\t\tArrayList<RowData_Program> datanya = new ArrayList<RowData_Program>();\n//\t\tdatanya.add(new RowData_Program(\"\", \"Beasiswa Fakultas Teknik\", \"Rp 17.000.000/~\", \"\", \"\",\n//\t\t\t\t\"Beasiswa untuk para mahasiswa berprestasi yang kurang mampu\",\n//\t\t\t\t\"http://128.199.176.5/UI/admin/files/original/55e6c977b6d8d.jpg\"));\n//\t\tdatanya.add(new RowData_Program(\"\", \"Perpustakaan Keliling\", \"Rp 3.000.000/Rp 800.000.000\", \"\", \"\",\n//\t\t\t\t\"Perpustakaan keliling untuk anak anak\",\n//\t\t\t\t\"http://128.199.176.5/UI/admin/files/original/55d5a3f122e4a.jpg\"));\n//\t\tdatanya.add(new RowData_Program(\"\", \"Pembangunan Bangunan Baru\", \"Rp 90.500.000/Rp 780.000.000\", \"\", \"\",\n//\t\t\t\t\"Bangunan baru untuk perkuliahan\", \"http://128.199.176.5/UI/admin/files/original/55d5a3e18ce07.png\"));\n//\n//\t\tadapter = new CustomAdapter_Program(getActivity(), 0, datanya);\n//\t\tlv.setAdapter(adapter);\n\n\n//\t\tnew AsyncTask_AllProgram().execute();\n\t\tnew AsyncTask_AllProgram().execute();\n\n\t\treturn v;\n\t}", "@Override\n\tprotected void setViews() {\n\t\tlv = (XListView) findViewById(R.id.activity_fund_history_lv_content);\n\t\tlv.setPullRefreshEnable(false);\n\t\tlv.setPullLoadEnable(false);\n\t\tlv.setAdapter(adapter);\n\t\tgetMoneyChageRequest();\n\t}", "private void initListView()\n {\n\n listViewHospital.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>()\n {\n public void changed(ObservableValue<? extends String> ov, String old_val, String new_val)\n {\n if (new_val != null)\n {\n //when a row in the listview is clicked, the listViewSelectedGeneral will be set as the content of that row\n listViewSelectedHospital = new_val;\n\n\n }\n }\n });\n\n listViewDoctor.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>()\n {\n public void changed(ObservableValue<? extends String> ov, String old_val, String new_val)\n {\n if (new_val != null)\n {\n listViewSelectedDoctor = new_val;\n\n }\n }\n });\n\n }", "private void initListView(View view)\n {\n\n theListView = (ListView) view.findViewById(R.id.ml_list_view);\n theListAdapter = new TextAdapter(layoutInflater);\n theListView.setAdapter((ListAdapter) theListAdapter);\n\n }", "private void initView(){\n\n btnBack = (ImageView)findViewById(R.id.btnBack);\n btnQuit = (ImageView)findViewById(R.id.btnQuit);\n btnQuit.setVisibility(View.GONE);\n\n title = (TextView)this.findViewById(R.id.title);\n title.setText(R.string.assetInquire);\n barCode = (EditText)findViewById(R.id.barCode);\n\n loadAssetData = (ListView)findViewById(R.id.loadAssetData);\n\n hs_ledger_hslist = (HorizontalScrollView)findViewById(R.id.hs_ledger_hslist);\n initListViewHead(R.id.tv_list_table_tvhead1, false, rowName[0]);\n initListViewHead(R.id.tv_list_table_tvhead2, false, rowName[1]);\n initListViewHead(R.id.tv_list_table_tvhead3, false, rowName[2]);\n initListViewHead(R.id.tv_list_table_tvhead4, false, rowName[3]);\n initListViewHead(R.id.tv_list_table_tvhead5, false, rowName[4]);\n\n lvx = (ListViewEx)findViewById(R.id.lv_table_lvLedgerList);\n\n lvx.inital(R.layout.list_table_inquire, row, new int[]{\n R.id.tv_list_table_tvhead1,\n R.id.tv_list_table_tvhead2,\n R.id.tv_list_table_tvhead3,\n R.id.tv_list_table_tvhead4,\n R.id.tv_list_table_tvhead5\n });\n\n if (barCodeStr!=null&&!barCodeStr.trim().equals(\"\")){\n barCode.setText(barCodeStr);\n selBarCode();\n }\n }", "private void initDate() {\n\t\t\n mlistview.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tChemicals chemicals=mDatas.get(arg2);\n\t\t\t\t\tif(chemicals!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tBundle bundle = new Bundle(); \n\t\t\t\t\t\tbundle.putSerializable(\"Chemicals\", chemicals); \n\t\t\t\t\t\tIntent intent=new Intent(ChemicalsDirectoryActivity.this, ChemicalsDatilShowActivity.class);\n\t\t\t \t\tintent.putExtras(bundle);\n\t\t\t \t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n \n mlistview.setIClickLoadListListener(new IClickLoadListListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onLoad(Handler handler) {\n\t\t\t\tSqlOperate<Chemicals> opetaterChemicals=new SqlOperate<Chemicals>(ChemicalsDirectoryActivity.this, Chemicals.class);\n\t\t\t\tfinal List<Chemicals> data=opetaterChemicals.SelectOffsetEntitysBySqlCondition(mSqlStr, pangSize, pageCount);\n\t\t\t\tpageCount++;\n\t\t opetaterChemicals.close();\n\t\t\t\t\n\t\t\t\tif(data!=null&&data.size()>0)\n\t\t {\n\t\t\t\t\thandler.post(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmDatas.addAll(data);\n\t\t\t\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\t\t\t\tif(data.size()<pangSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmlistview.hindLoadView(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t }\n\t\t else\n\t\t {\n\t\t \tmlistview.hindLoadView(true);\n\t\t }\n\t\t\t}\n\t\t});\n\t}", "private void setupListView() {\n viewModel.getPeriodString().observe(this, (string) -> {\n if(string != null) {\n TextView periodTextView = findViewById(R.id.tvTimeFrame);\n periodTextView.setText(string);\n }\n });\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n int size = prefs.getInt(\"hourSize\", getResources().getInteger(R.integer.hourSizeDefault));\n viewModel.getAppointments().observe(this, (appointments) -> {\n if(appointments != null) {\n for(int day = 0; day < appointments.size(); day++) {\n AppointmentAdapter adapter = new AppointmentAdapter(this, size, popup, viewModel);\n adapter.setList(appointments.get(day));\n listViews.get(day).setAdapter(adapter);\n }\n }\n });\n HourAdapter adapter = new HourAdapter(this, this, size);\n viewModel.getTimeSlots().observe(this, adapter::setList);\n timeSlotView.setAdapter(adapter);\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n adapter.notifyDataSetChanged();\n handler.postDelayed(this, 60*1000);\n }\n }, 60*1000);\n }", "private void showList() {\n select();\n //create adapter\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, studentInfo);\n //show data list\n listView.setAdapter(adapter);\n }", "private void populateList(){\n //Build name list\n this.names = new String[] {\"Guy1\",\"Guy2\",\"Guy3\",\"Guy4\",\"Guy5\",\"Guy6\"};\n //Get adapter\n //ArrayAdapter<String>(Context, Layout to be used, Items to be placed)\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.list_items, names);\n //Filling the list view\n ListView list = findViewById(R.id.transaction_list);\n list.setAdapter(adapter);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView( R.layout.main );\n\n ListView list = (ListView)findViewById( R.id.ListView01 );\n\n store = new MainStore( this );\n store.add(\"Xperia\");\n store.add(\"NexusOne\");\n store.add(\"desire\");\n data = store.loadAll();\n store.close();\n \n ArrayAdapter<String> arrayAdapter\n = new ArrayAdapter<String>(this, R.layout.rowitem, data);\n\n list.setAdapter(arrayAdapter);\n }", "private void initUI(){\n\t\tfooterView = getLayoutInflater().inflate(R.layout.ent_refresh_footer,null);\n\t\tlistView = (ListView) findViewById(R.id.check_list);\n\t\tlistView.addFooterView(footerView);\n\t\tfooterView.setVisibility(View.GONE);\n\t\tlistView.setOnScrollListener(new ScrollListener());\n\t\tlistView.setOnItemClickListener(this);\n\t\tbtn_cricle_edit = (ImageButton) findViewById(R.id.btn_cricle_edit);\n\t\tbtn_cricle_option = (ImageButton) findViewById(R.id.btn_cricle_option);\n\t\tbtn_cricle_edit.setVisibility(View.INVISIBLE);\n\t\tbtn_cricle_option.setVisibility(View.GONE);\n\t\tactivity_bar_title = (TextView) findViewById(R.id.activity_bar_title);\n\t\tactivity_bar_title.setText(\"我的申请记录\");\n\t\tpbHelper = new ProgressBarHelper(this, findViewById(R.id.ll_data_loading));\n\t}", "private void populateTimes() {\n\n int trackID = preferences.getInt(\"Track\", -1);\n int reverse = preferences.getInt(\"Reverse\", -1);\n Cursor topTimes = DBQueries.getTopTimes(trackID, reverse, \"liststring\", 3, database);\n Cursor latestTimes = DBQueries.getLatestTimes(trackID, reverse, \"liststring\", 3, database);\n\n ListView latestTimeList = (ListView) findViewById(R.id.latestTimes);\n ListView topTimesList = (ListView) findViewById(R.id.topTimes);\n\n ListAdapter topTimesAdapter = new SimpleCursorAdapter(\n this,\n R.layout.custom_listview_item,\n topTimes,\n new String[]{topTimes.getColumnName(topTimes.getColumnIndex(\"liststring\"))},\n new int[]{android.R.id.text1},\n 0);\n ListAdapter latestTimesAdapter = new SimpleCursorAdapter(\n this,\n R.layout.custom_listview_item,\n latestTimes,\n new String[]{latestTimes.getColumnName(latestTimes.getColumnIndex(\"liststring\"))},\n new int[]{android.R.id.text1},\n 0);\n\n topTimesList.setAdapter(topTimesAdapter);\n latestTimeList.setAdapter(latestTimesAdapter);\n\n Utilities.setListViewHeightFromContent(topTimesList);\n Utilities.setListViewHeightFromContent(latestTimeList);\n }", "private void updateUI() {\n ArrayList<String> taskList = new ArrayList<>();\n SQLiteDatabase db = mHelper.getReadableDatabase();\n Cursor cursor = db.query(Task.TaskEntry.TABLE,new String[] {Task.TaskEntry.COL_TASK_TITLE},null,null,null,null,null);\n listItems.clear();\n\n while (cursor.moveToNext()){\n int index = cursor.getColumnIndex(Task.TaskEntry.COL_TASK_TITLE);\n taskList.add(cursor.getString(index));\n ListItems item = new ListItems(cursor.getString(index));\n listItems.add(item);\n }\n\n\n R_adapter = new RecyclerAdapterGoals(this.getContext(), listItems);\n mTaskListView.setAdapter(R_adapter);\n cursor.close();\n db.close();\n }", "private void initLsitData() {\n\t\tlist = new ArrayList<View>();\n\n\t\tlist.add(new NewsMenupagerItem(Mactivity,TY).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,YL).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,QW).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,MV).initView());\n\n\n\t}", "private void showListView()\n {\n SimpleCursorAdapter adapter = new SimpleCursorAdapter(\n this,\n R.layout.dataview,\n soldierDataSource.getCursorALL(), //\n _allColumns,\n new int[]{ R.id.soldierid, R.id.username, R.id.insertedphone, R.id.password},\n 0);\n\n table.setAdapter(adapter);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view =inflater.inflate(R.layout.fragment_center_things, null);\n\t\tlv_things = (PullToRefreshListView) view.findViewById(R.id.lv_mycenter_things);\n\t\tfor(int i=0;i<5;i++){\n\t\t\tHashMap<String,Object> map =new HashMap<String, Object>();\n\t\t\tmap.put(\"test\", \"test\"+i);\n\t\t\tdata.add(map);\n\t\t}\n\t\tString[] from={};\n\t\tint[] to={};\n\t\tSimpleAdapter adapter = new SimpleAdapter(getActivity(), data, R.layout.info_item, from, to);\n\t\tlv_things.setAdapter(adapter);\n\t\tlv_things.setOnItemClickListener(new OnItemClickListener() {\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\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tstartTalkActivity();\n\t\t\t}\n\t\t});\n\t\treturn view;\n\t}", "private void populateList(){\n listView = (ListView) findViewById(R.id.group_leader_list);\n // Build Adapter\n mAdapter = new GroupArrayAdapter(ChangeLeaderListActivity.this, groupList);\n listView.setAdapter(mAdapter);\n clickCallBack();\n }", "private void initListView() {\n viewPager.setAdapter(adapter);\n }", "private void genererListeView() {\n\n displayToast(\"Antall treff: \" + spisestedListe.size());\n\n //sorterer alfabetisk på navn\n Collections.sort(spisestedListe);\n\n spisestedAdapter = new SpisestedAdapter(this, spisestedListe);\n recyclerView.setAdapter(spisestedAdapter);\n\n //henter inn antall kolonner fra values, verdi 2 i landscape\n // https://stackoverflow.com/questions/29579811/changing-number-of-columns-with-gridlayoutmanager-and-recyclerview\n int columns = getResources().getInteger(R.integer.list_columns);\n recyclerView.setLayoutManager(new GridLayoutManager(this, columns));\n }", "private void initAdaptersAndViews() {\n final Context context = getContext();\n mListViewAdapter = new FlickrHomeAdapter();\n mListLayoutManager = new LinearLayoutManager(context);\n mListLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n\n mViews.listView.addItemDecoration(new DividerItemDecoration(context, DividerItemDecoration.VERTICAL_LIST));\n mViews.listView.setHasFixedSize(true);\n mViews.listView.setLayoutManager(mListLayoutManager);\n mViews.listView.setAdapter(mListViewAdapter);\n }", "@Override\n protected void initView() {\n super.initView();\n searchView = (SearchView) findViewById(R.id.search_view);\n searchView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n searchView.onActionViewExpanded();\n }\n });\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n mRunnersAdapter.setRunners(mRunners);\n mRunnersAdapter.notifyDataSetChanged();\n return false;\n }\n });\n searchView.setOnQueryTextListener(listenerSearch);\n searchView.setQueryRefinementEnabled(true);\n mListView = (ListView) findViewById(R.id.runners_you_may_know_list);\n\t\t/*final Dialog dialog = CustomLoadingDialog.show(RunnerActivity.this, \"\",\n\t\t\t\t\"\", false, false);*/\n\n // Set adpater for listview\n mRunners = new ArrayList<Runner>();\n mRunnersAdapter = new NewRunnerAdapter(RunnerActivity.this, mRunners,\n mImageLoader);\n\t\t/*mListView.setAdapter(mRunnersAdapter);\n\t\tmListView.setOnItemClickListener(this);*/\n if(mLoadingDialog == null) {\n mLoadingDialog = CustomLoadingDialog.show(RunnerActivity.this, \"\", \"\", false, false);\n }\n loadListRunner();\n\n\n }", "private void initView() {\n\t\tsetContentView(R.layout.activity_main);\n\t\tlv_showdatas = (ListView) findViewById(R.id.lv_datas);\n\t\t\n\t\tmyAdapter = new MyAdapter();\n\t\tlv_showdatas.setAdapter(myAdapter);\n\t\tbt_speak = (Button) findViewById(R.id.bt_speak);\n\t}", "private void loadListView(){\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n availabilities.clear();//Clear the array list\n ArrayList<String> myAvailabilities = new ArrayList<String>();\n\n availabilities.addAll(dbHandler.getAllAvailabilitiesFromSP(companyID));\n\n //Concatenate the availability\n for(Availability availability: availabilities)\n myAvailabilities.add(getDayName(availability.getDayID()) + \" at \" +\n availability.getStartDate() + \" to \" +\n availability.getEndDate());\n\n if(myAvailabilities.size()==0) {\n myAvailabilities.add(EMPTY_TEXT_LV1);\n }\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myAvailabilities);\n lv_availability.setAdapter(data);\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "public DataPenemuanListAdapter(Context context) { mInflater = LayoutInflater.from(context); }", "protected void updateDisplay() {\n BuildingAdapter adapter = new BuildingAdapter(this, R.layout.item_building, buildingList);\n setListAdapter(adapter);\n }", "public void update_list_view() {\n\n Collections.sort(mA.alarms);\n\n // make array adapter to bind arraylist to listview with new custom item layout\n AlarmsAdapter aa = new AlarmsAdapter(mA, R.layout.alarm_entry, mA.alarms);\n alarm_list_view.setAdapter(aa);\n registerForContextMenu(alarm_list_view);\n aa.notifyDataSetChanged(); // to refresh items in the list\n }", "public void setUpListSubReddits() {\n\n for (SubReddit s : db.getAllSubReddits()) {\n subReddits.add(s.getName());\n }\n\n adapter = new ArrayAdapter<String>(getActivity(),\n android.R.layout.simple_list_item_1, android.R.id.text1, subReddits);\n\n // Assign adapter to ListView\n lvSubRedditList.setAdapter(adapter);\n\n // ListView Item Click Listener\n lvSubRedditList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // ListView Clicked item index\n int itemPosition = position;\n\n // ListView Clicked item value\n String sub = (String) lvSubRedditList.getItemAtPosition(position);\n Toast toast = Toast.makeText(getContext(), sub, Toast.LENGTH_SHORT);\n toast.show();\n\n\n int opened = 1;\n\n if (db.getSubReddit(sub).getOpened() == 0) {\n db.openSubRedditFirstTime(sub);\n opened = 0;\n }\n\n Class fragClass = Fragment_Posts.class;\n try {\n Fragment frag = (Fragment) fragClass.newInstance();\n Bundle args = new Bundle();\n args.putString(\"subName\", sub);\n args.putInt(\"opened\", opened);\n frag.setArguments(args);\n switchFragment(frag);\n } catch (Exception e) {\n e.printStackTrace();\n Log.i(\"StartFrag\", \"Failed\");\n }\n\n\n }\n });\n }", "private void showVenuesOnListview() {\n if(venues == null || venues.isEmpty()) return;\n\n // Get the view\n View view = getView();\n venueListView = view.findViewById(R.id.venue_listView);\n\n // connecting the adapter to recyclerview\n VenueListAdapter venueListAdapter = new VenueListAdapter(getActivity(), R.layout.item_venue_list, venues);\n\n // Initialize ItemAnimator, LayoutManager and ItemDecorators\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());\n\n int verticalSpacing = 5;\n VerticalSpaceItemDecorator itemDecorator = new VerticalSpaceItemDecorator(verticalSpacing);\n\n // Set the LayoutManager\n venueListView.setLayoutManager(layoutManager);\n\n // Set the ItemDecorators\n venueListView.addItemDecoration(itemDecorator);\n venueListView.setAdapter(venueListAdapter);\n venueListView.setHasFixedSize(true);\n }", "private void refreshList() {\n ArrayAdapter<Plan> planAdapter = new PlanAdapter();\n mListView.setAdapter(planAdapter);\n\n }", "private void populateListView() {\n List<String> groupNames = new ArrayList<String>();\n for (Pair<String, Group> pair : savedGroups) {\n groupNames.add(pair.first);\n }\n if (groupsListAdapter != null) {\n groupsListAdapter.clear();\n groupsListAdapter.addAll(groupNames);\n groupsListAdapter.notifyDataSetChanged();\n }\n }", "private void showSimpleAdaptView() {\n\t\tList<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();\n\t\tfor (Person person : persons) {\n\t\t\tHashMap<String, Object> hashMap = new HashMap<String, Object>();\n\t\t\thashMap.put(\"name\", person.getNameString());\n\t\t\thashMap.put(\"phone\", person.getPhoneNum());\n\t\t\thashMap.put(\"amount\", person.getAmount());\n\t\t\thashMap.put(\"personid\", person.getId());\n\t\t\tdata.add(hashMap);\n\t\t}\n\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, data, R.layout.listview_item,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(simpleAdapter);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.my_list);\n\n Button btnBackMyList = (Button) findViewById(R.id.btnMyListBackx);\n\n btnBackMyList.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Intent goBack = new Intent(MyListActivity.this, ProfileActivity.class);\n startActivity(goBack);\n }\n });\n\n final ListView mainList = (ListView) findViewById(R.id.lvMyListx);\n\n\n /**\n * Playing with ListView\n */\n items3.add(new Item(\"3 Günlük ihtiyaç, kolonya doldurumu!!\", \"Yılmaz Tekstil\", \"350.00\"));\n\n\n // Setting the ArrayList adapters.\n final ItemAdapter adapter = new ItemAdapter(this, items3, getApplicationContext());\n\n mainList.setAdapter(adapter);\n\n\n\n\n\n\n }", "TaskukirjaListAdapter(Context context) { mInflater = LayoutInflater.from(context); }", "@Override\n\tprotected void setView() {\n\t\thttp = new HttpUtils();\n\t\thttp.configTimeout(5000);\n\t\thttp.configCurrentHttpCacheExpiry(1000); // 缓存时间\n\t\tif (null == list) {\n\t\t\tlist = new ArrayList<HashMap<String, String>>();\n\t\t}\n\t\tsetContentView(R.layout.activity_searchschedule);\n\t\tModifySysTitle.ModifySysTitleStyle(R.color.title_blue,\n\t\t\t\tSearchScheduleActivity.this);\n\t\tsw_lv_searchschedule = (PullToRefreshListView) findViewById(R.id.sw_lv_searchschedule);\n\t\trel_show = (RelativeLayout) findViewById(R.id.rel_show);\n\t\ttextView_show = (TextView) findViewById(R.id.textView_show);\n\t\tsw_lv_searchschedule.getRefreshableView().setDivider(null);\n\t\tsw_lv_searchschedule.getRefreshableView().setSelector(\n\t\t\t\tandroid.R.color.transparent);\n\t\tsw_lv_searchschedule.setMode(Mode.BOTH);\n\t\tsw_lv_searchschedule\n\t\t\t\t.setOnRefreshListener(new OnRefreshListener<ListView>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onRefresh(\n\t\t\t\t\t\t\tPullToRefreshBase<ListView> refreshView) {\n\t\t\t\t\t\tString label = DateUtils.formatDateTime(\n\t\t\t\t\t\t\t\tSearchScheduleActivity.this,\n\t\t\t\t\t\t\t\tSystem.currentTimeMillis(),\n\t\t\t\t\t\t\t\tDateUtils.FORMAT_SHOW_TIME\n\t\t\t\t\t\t\t\t\t\t| DateUtils.FORMAT_SHOW_DATE\n\t\t\t\t\t\t\t\t\t\t| DateUtils.FORMAT_ABBREV_ALL);\n\t\t\t\t\t\t// Update the LastUpdatedLabel\n\t\t\t\t\t\trefreshView.getLoadingLayoutProxy()\n\t\t\t\t\t\t\t\t.setLastUpdatedLabel(label);\n\t\t\t\t\t\t// Do work to refresh the list here.\n\t\t\t\t\t\tif (sw_lv_searchschedule.isHeaderShown()) {// 显示头部UI\n\t\t\t\t\t\t\t// 添加数据 网络请求\n\t\t\t\t\t\t\tmHandler.sendEmptyMessage(10);\n\t\t\t\t\t\t} else if (sw_lv_searchschedule.isFooterShown()) {// 显示底部UI\n\t\t\t\t\t\t\t// 加载更多\n\t\t\t\t\t\t\tmHandler.sendEmptyMessage(100);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// 网络请求\n\t\t\t\t\t\t\tLogUtils.d(\"初始化网络数据\");\n\t\t\t\t\t\t\tlist_size = 0;\n\t\t\t\t\t\t\tmHandler.sendEmptyMessage(10);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t// 设置自动刷新\n\t\tsw_lv_searchschedule.setRefreshing(true);\n\n\t}", "private void displayList(){\n\t\tmArrayAdapter.clear();\n\t\tBT.setupBT();\n\n\t\tListView newDevicesListView = (ListView)\n\t\t\t\tdialog.findViewById(R.id.device_list_display);\n\n\t\tnewDevicesListView.setAdapter(mArrayAdapter);\n\t\tnewDevicesListView.setClickable(true);\n\t}", "private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "@Override\n public int getCount() {\n return listInfo.size();\n }", "private void init() {\n listView = (ListView) findViewById(R.id.listView);\n listView.setOnItemClickListener(this);\n activityListAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, 0);\n listView.setAdapter(activityListAdapter);\n }", "@Override\n protected void iniView()\n {\n txtHead = (TextView) findViewById(R.id.txtHead);\n imgBack = (ImageView) findViewById(R.id.img_left);\n\n txtHead.setText(\"回复列表\");\n\n TopicID = this.getIntent().getExtras().getString(\"TopicID\").toString();\n LeftID = this.getIntent().getExtras().getString(\"LeftID\").toString();\n listview = (ListView) findViewById(R.id.listview_postlist);\n TopicType = this.getIntent().getExtras().getString(\"TopicType\").toString();\n }", "public void showAll()\n {\n String[] columns = new String[] { // The desired columns to be bound\n \"data\",\n \"tytul\",\n \"kasa\",\n \"szczegoly\",\n //\"parametry\"\n };\n\n // the XML defined views which the data will be bound to\n int[] to = new int[] {\n R.id.data,\n R.id.tytul,\n R.id.kwota,\n R.id.szczegoly,\n };\n\n db.open();\n\n // create the adapter using the cursor pointing to the desired data\n // as well as the layout information\n dataAdapter = new SimpleCursorAdapter(\n this, R.layout.activity_bilans_add_listview,\n db.getAllItems(),\n columns,\n to,\n 0); //flags\n\n ListView listView = (ListView) findViewById(R.id.bilans_list_view);\n listView.setAdapter(dataAdapter);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position_of_of_view_in_adapter, long id_clicked) {\n\n prepare_intent(0, id_clicked);\n }\n });\n listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n\n @Override\n public boolean onItemLongClick(final AdapterView<?> listView, final View v, int pos, final long id_clicked) {\n\n AlertDialog.Builder alert = new AlertDialog.Builder(BilansView.this);\n alert.setTitle(getString(R.string.delete_question));\n alert.setMessage(getString(R.string.delete_confirm) + pos);\n alert.setNegativeButton(getString(R.string.cancel), null);\n alert.setPositiveButton(getString(R.string.ok), new AlertDialog.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n DelItem(id_clicked);\n db.open();\n dataAdapter.changeCursor(db.getAllItems());\n db.close();\n dataAdapter.notifyDataSetChanged();\n refreshWealthStatus();\n }\n });\n alert.show();\n return true;\n }\n });\n\n db.close();\n refreshWealthStatus();\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tmParent = inflater.inflate(R.layout.layout_main, null);\n\t\tloading = (ProgressBar) mParent.findViewById(R.id.loading);\n\t\tlvListNew = (ListView) mParent.findViewById(R.id.lvListNews);\n\t\tlvListNew.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tItemNewFeed item = (ItemNewFeed) parent\n\t\t\t\t\t\t.getItemAtPosition(position);\n\t\t\t\tIntent intent = new Intent(getActivity(), DetailActivity.class);\n\t\t\t\tintent.putExtra(\"LINK\", item.getLink());\n\t\t\t\tintent.putExtra(\"TITLE\", item.getName());\n\t\t\t\tintent.putExtra(\"IMAGE\", item.getImage());\n\t\t\t\tintent.putExtra(\"DES\", item.getMessage());\n\t\t\t\tintent.putExtra(\"TITME\", item.getTime());\n\t\t\t\tintent.putExtra(\"POST_ID\", item.getPost_id());\n\t\t\t\tintent.putExtra(\"POS\", 2);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\treturn mParent;\n\t}", "@Override\n\tpublic void initialize() \n\t{\n\t\tllOrderSheet \t = (LinearLayout)inflater.inflate(R.layout.movementdetail, null);\n\t\tllBody.addView(llOrderSheet,LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);\n\t\tBundle bundle = getIntent().getExtras();\n\t\tif(bundle != null)\n\t\t{\n\t\t\tload_type\t \t= \tbundle.getInt(\"load_type\");\n\t\t\tloadRequestDO\t= \t(LoadRequestDO)bundle.get(\"object\");\n\t\t}\n\t\tintialiseControls();\n\t\ttvOrdersheetHeader.setText(tvOrdersheetHeader.getText().toString());\n\t\tlvItems.setVisibility(View.GONE);\n\t\ttvNoItemFoundBase.setVisibility(View.VISIBLE);\n\t\n\t\tlvItems.setVerticalScrollBarEnabled(false);\n\t\tlvItems.setDivider(getResources().getDrawable(R.drawable.saparetor));\n\t\tlvItems.setCacheColorHint(0);\n\t\tlvItems.setFadingEdgeLength(0);\n\t\tlvItems.setAdapter(ordersheetadapter = new ItemListAdapter(new ArrayList<VanLoadDO>()));\n\t\tloadData();\n\t\tllOrdersheetVerify.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) \n\t\t\t{\n\t\t\t\tbtnOrdersheetVerify.performClick();\n\t\t\t}\n\t\t});\n\t\tbtnOrdersheetVerify.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\tif(btnOrdersheetVerify.getText().toString().equalsIgnoreCase(\"Refresh\"))\n\t\t\t\t\tloadRequestStatus();\n\t\t\t\telse if(btnOrdersheetVerify.getText().toString().equalsIgnoreCase(\"Continue\"))\n\t\t\t\t{\n\t\t\t\t\tIntent intent = new Intent(MovementDetail.this, VerifyItemInVehicle.class);\n//\t\t\t\t\tintent.putExtra(\"updatededDate\", vecOrdProduct);\n\t\t\t\t\tintent.putExtra(\"movementId\", loadRequestDO.MovementCode);\n\t\t\t\t\tintent.putExtra(\"movementType\", loadRequestDO.MovementType);\n\t\t\t\t\tintent.putExtra(\"isMenu\", false);\n\t\t\t\t\tstartActivityForResult(intent, 1111);\n\t\t\t\t}\n\t\t\t\telse if(btnOrdersheetVerify.getText().toString().equalsIgnoreCase(\"Finish\"))\n\t\t\t\t{\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnPrint_stock_details.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif(vecOrdProduct!=null && vecOrdProduct.size()>0){\n\t\t\t\t\tIntent intent = new Intent(MovementDetail.this,WoosimPrinterActivity.class);\n\t\t\t\t\tintent.putExtra(\"CALLFROM\", CONSTANTOBJ.PRINT_STOCK_DETAILS);intent.putExtra(\"STOCK_DETAILS\", vecOrdProduct);\n\t\t\t\t\tintent.putExtra(\"MOVEMENT_STATUS\", StringUtils.getInt(loadRequestDO.MovementStatus));\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tif(vecOrdProduct == null)\n\t\t\tvecOrdProduct = new ArrayList<VanLoadDO>();\n\t\t\n\t\t\n\t\tbtnCheckOut.setVisibility(View.GONE);\n\t\tivLogOut.setVisibility(View.GONE);\n\t\tivSearchCross.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tetSearch.setText(\"\");\n\t\t\t\tivSearchCross.setVisibility(View.GONE);\n\t\t\t\tif(ordersheetadapter!=null){\n\t\t\t\t\tordersheetadapter.refreshList(vecOrdProduct);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tetSearch.addTextChangedListener(new TextWatcher()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\tif(!TextUtils.isEmpty(s))\n\t\t\t\t\tivSearchCross.setVisibility(View.VISIBLE);\n\t\t\t\telse\n\t\t\t\t\tivSearchCross.setVisibility(View.GONE);\n\t\t\t\tArrayList<VanLoadDO> vecVanLoadTemp = searchUnloadItems(s.toString());\n\t\t\t\tif(ordersheetadapter!=null){\n\t\t\t\t\tordersheetadapter.refreshList(vecVanLoadTemp);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsetTypeFaceRobotoNormal(llOrderSheet);\n\t\t\n\t\ttvOrdersheetHeader.setTypeface(AppConstants.Roboto_Condensed_Bold);\n\t\tbtnOrdersheetVerify.setTypeface(AppConstants.Roboto_Condensed_Bold);\n\t\ttvDescription.setTypeface(AppConstants.Roboto_Condensed_Bold);\n\t\ttvQty.setTypeface(AppConstants.Roboto_Condensed_Bold);\n\t\ttvApprovedQty.setTypeface(AppConstants.Roboto_Condensed_Bold);\n\t\ttvCollectedQty.setTypeface(AppConstants.Roboto_Condensed_Bold);\n\t\t\n\t}", "private void display()\n {\n tasksColumn.setCellValueFactory(new PropertyValueFactory<>(\"task\"));\n completionDateColumn.setCellValueFactory(new PropertyValueFactory<>(\"completionDate\"));\n completedColumn.setCellValueFactory(new PropertyValueFactory<>(\"completed\"));\n\n listView.getItems().add(Item.getToDoList().get(index));\n index++;\n }", "private void initViews() {\n\t\tcommentListView = (ListView) findViewById(R.id.list_comment);\n\t\tprogressDialog = new ProgressDialog(AvCommentActivity.this);\n\t\tprogressDialog.setMessage(\"读取评论中\");\n\n\t\tcommentListView.setOnScrollListener(listScrollListener);\n\t\tfootView = LayoutInflater.from(this).inflate(R.layout.list_foot, null);\n\n\t\tcommentListView.addFooterView(footView, null, false);\n\n\t\tfootView.setVisibility(View.GONE);\n\n\t}", "private void setupView()\n {\n mPullToRefreshView = (PullToRefreshView)\n findViewById(R.id.main_pull_refresh_view);\n\n mListView = (ListView) findViewById(R.id.xlistView);\n\n }", "public void plannerShoppingListSetup(){\n //Set the items of the shopping list.\n shoppingList.setItems(shoppingListIngredients);\n //Format the cells of the shopping List ListView\n Callback<ListView<Ingredient>, ListCell<Ingredient>> ingredientsMealFormat =\n new Callback<ListView<Ingredient>, ListCell<Ingredient>>() {\n @Override\n public ListCell<Ingredient> call(ListView<Ingredient> ingredientListView) {\n ListCell<Ingredient> cell = new ListCell<>(){\n @Override\n protected void updateItem(Ingredient ingredient, boolean empty) {\n super.updateItem(ingredient, empty);\n if (empty){\n setText(null);\n } else {\n String quantityName = ingredient.getQuantityName();\n double quantityInGrams = ingredient.getQuantityInGrams();\n double quantityRatio = (quantityInGrams / ingredient.getSingleQuantityInGrams());\n\n DecimalFormat df = new DecimalFormat(\"#.#\");\n DecimalFormat df2 = new DecimalFormat(\"#\");\n\n if (quantityRatio > 1){\n quantityName = quantityName + \"s\";\n }\n\n setText( ingredient.getName() + \" ( \" + df2.format(quantityInGrams) + \" grams / \" +\n df.format(quantityRatio) + \" \" + quantityName + \")\");\n }\n setFont(InterfaceStyling.textFieldFont);\n }\n };\n return cell;\n }\n };\n shoppingList.setCellFactory(ingredientsMealFormat);\n Label emptyLabel = new Label(\"Empty Shopping List\");\n emptyLabel.setFont(InterfaceStyling.textFieldFont);\n //Set the label placeholder for an empty listview.\n shoppingList.setPlaceholder(emptyLabel);\n }" ]
[ "0.7478514", "0.7389865", "0.73244035", "0.71981454", "0.7151979", "0.7112516", "0.70985067", "0.7098289", "0.70944965", "0.7069675", "0.705113", "0.70505685", "0.69927955", "0.69878834", "0.6986379", "0.69837415", "0.6964266", "0.6922877", "0.6899675", "0.6887426", "0.6868048", "0.6845531", "0.68447596", "0.68403786", "0.682884", "0.6810867", "0.68046385", "0.679149", "0.67742133", "0.6762034", "0.67595625", "0.6746438", "0.67371804", "0.67360216", "0.67314893", "0.6719778", "0.66897976", "0.66712385", "0.6662088", "0.664078", "0.66377264", "0.66293234", "0.66050124", "0.6601888", "0.6601768", "0.66008776", "0.6588853", "0.6578733", "0.6578445", "0.65700036", "0.6569818", "0.6561551", "0.6543072", "0.6540073", "0.6535963", "0.65326345", "0.65293306", "0.6526371", "0.6515924", "0.65142614", "0.6512706", "0.65018386", "0.64947003", "0.6494623", "0.64925545", "0.64824796", "0.64791524", "0.64766216", "0.6472821", "0.64713657", "0.64645827", "0.6462617", "0.64542466", "0.645285", "0.6449788", "0.6445705", "0.64420855", "0.64376074", "0.64368844", "0.64271146", "0.6425508", "0.6414171", "0.6410656", "0.64089864", "0.6405155", "0.6399766", "0.63833886", "0.63831806", "0.637831", "0.63707095", "0.6367607", "0.63653034", "0.6364019", "0.63515455", "0.6346974", "0.6344348", "0.63363653", "0.63329554", "0.63271457", "0.63226247", "0.63192385" ]
0.0
-1
Transitions elsewhere ... //
private void createCategory() { Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI; Intent i = new Intent(Intent.ACTION_INSERT, uri); startActivityForResult(i, ARC_CATEGORY_CREATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void doTransition() {\n\t\t\t\n\t\t}", "Transition createTransition();", "Transition createTransition();", "private void rerunAnimation() {\n transition.playFromStart();\r\n}", "void transit();", "public abstract Etat transition();", "public void readyToGoAnimation() {\n TranslateTransition leave = new TranslateTransition(Duration.millis(600), syncBox);\n leave.setByY(80.0);\n // Buttons slide in and clickable address appears simultaneously.\n TranslateTransition arrive = new TranslateTransition(Duration.millis(600), controlsBox);\n arrive.setToY(0.0);\n FadeTransition reveal = new FadeTransition(Duration.millis(500), addressControl);\n reveal.setToValue(1.0);\n ParallelTransition group = new ParallelTransition(arrive, reveal);\n // Slide out happens then slide in/fade happens.\n SequentialTransition both = new SequentialTransition(leave, group);\n both.setCycleCount(1);\n both.setInterpolator(Interpolator.EASE_BOTH);\n both.play();\n }", "@Override\n public void animate() {\n }", "private void setupWindowAnimations() {\n getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);\n getWindow().setBackgroundDrawable(new ColorDrawable(Color.BLACK));\n\n\n\n Slide slideTransition = new Slide();\n slideTransition.setSlideEdge(Gravity.BOTTOM);\n getWindow().setEnterTransition(slideTransition);\n\n\n Slide slideTransitionExit = new Slide();\n slideTransitionExit.setSlideEdge(Gravity.TOP);\n getWindow().setExitTransition(slideTransitionExit);\n\n\n\n }", "public void shake(){\n translateTransition.playFromStart();\n }", "public void readyToGoAnimation() {\n TranslateTransition arrive = new TranslateTransition(Duration.millis(1200), controlsBox);\n arrive.setInterpolator(new ElasticInterpolator(EasingMode.EASE_OUT, 1, 2));\n arrive.setToY(0.0);\n FadeTransition reveal = new FadeTransition(Duration.millis(1200), addressControl);\n reveal.setToValue(1.0);\n ParallelTransition group = new ParallelTransition(arrive, reveal);\n group.setDelay(NotificationBarPane.ANIM_OUT_DURATION);\n group.setCycleCount(1);\n group.play();\n }", "protected void overridePendingTransitionEnter() {\n overridePendingTransition(R.anim.slide_from_right, R.anim.slide_to_left);\n }", "protected void overridePendingTransitionExit() {\n overridePendingTransition(R.anim.slide_from_left, R.anim.slide_to_right);\n }", "public void transitionStates () {\n myCurrentState = myNextState;\n myNextState = null;\n }", "public void enterAnimation() {\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }", "public void finishTransition() {\n animTimer = 0;\n if (gameTransition) playTime = 0.0f;\n roomTransition = false;\n gameTransition = false;\n fadeToBlack = true;\n }", "@Override\n protected void animStart() {\n }", "public boolean isTransition() {\n/* 4839 */ return this.isTransition;\n/* */ }", "private void setupWindowsAnimations() {\n }", "@Override\n public void onItemClick(View view, int position) {\n setSharedElementReturnTransition(TransitionInflater.from(getActivity()).inflateTransition(R.transition.trans_move));\n setExitTransition(TransitionInflater.from(getActivity()).inflateTransition(android.R.transition.explode));\n\n View orange = view.findViewById(R.id.orange_bar);\n View blue = view.findViewById(R.id.blue_bar);\n\n SecondFragment secondFragment = new SecondFragment();\n // Set shared and scene transitions on 2nd fragment\n secondFragment.setSharedElementEnterTransition(TransitionInflater.from(getActivity()).inflateTransition(R.transition.trans_move));\n secondFragment.setEnterTransition(TransitionInflater.from(getActivity()).inflateTransition(android.R.transition.explode));\n\n // You need to make sure the transitionName is both unique to each instance of the view you\n // want to animate as well as known to the 2nd fragment. Since these views are inside\n // a RecyclerView or ListView, they can have many instances. In your adapter you need to\n // set a transitionName dynamically (I use the position), then pass that unique transitionName\n // to the 2nd fragment before you animate\n secondFragment.setBlueId(blue.getTransitionName());\n secondFragment.setOrangeId(orange.getTransitionName());\n android.app.FragmentTransaction trans = getFragmentManager().beginTransaction();\n trans.replace(R.id.main_container, secondFragment);\n trans.addToBackStack(null);\n trans.addSharedElement(blue, blue.getTransitionName());\n trans.addSharedElement(orange, orange.getTransitionName());\n trans.commit();\n }", "public animations(Node node){\n // to move back and front if an error occurs while login in\n translateTransition = new TranslateTransition(Duration.millis(60),node);\n translateTransition.setFromX(0f);\n translateTransition.setByX(15f);\n translateTransition.setCycleCount(2); // how many times the TF should move back and forth\n translateTransition.setAutoReverse(true); // made true so that it can move backwards\n\n }", "private void performTransition() {\r\n\t\t// Do something only if the time has been reached\r\n\t\tif (transitionTime <= System.currentTimeMillis()) {\r\n\t\t\t// Clear the transition time\r\n\t\t\ttransitionTime = Long.MAX_VALUE;\r\n\r\n\t\t\t// If there are no lives left, the game is over. Show the final\r\n\t\t\t// screen.\r\n\t\t\tif (lives <= 0) {\r\n\t\t\t\t// Updates the highScore\r\n\t\t\t\tif (numScore > highScore) {\r\n\t\t\t\t\thighScore = numScore;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Updates the HighScore label in enhanced mode\r\n\t\t\t\tif (enhanced == true) {\r\n\t\t\t\t\tdisplay.setHighScore(highScore);\r\n\t\t\t\t}\r\n\t\t\t\t// Brings up the final screen\r\n\t\t\t\tfinalScreen();\r\n\t\t\t\t// JOptionPane.showMessageDialog(null, numLiveUpdated);\r\n\t\t\t}\r\n\r\n\t\t\t// If the ship was destroyed, place a new one and continue\r\n\t\t\telse if (ship == null) {\r\n\t\t\t\tplaceShip();\r\n\t\t\t}\r\n\t\t\tif (pstate.countAsteroids() == 0) {\r\n\r\n\t\t\t\t// increase the level and speed markers\r\n\t\t\t\tnumLevel += 1;\r\n\t\t\t\tspeed += 0.5;\r\n\r\n\t\t\t\t// Update the level display\r\n\t\t\t\tdisplay.setLevel(numLevel);\r\n\t\t\t\tParticipant.expire(alien);\r\n\t\t\t\tplaceAsteroids();\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Place a new alien when one has been destroyed\r\n\t\t\tif (pstate.countAliens() == 0 && ship != null) {\r\n\t\t\t\tif (numLevel == 2) {\r\n\t\t\t\t\tplaceAlien(1);\r\n\r\n\t\t\t\t} else if (numLevel >= 3) {\r\n\t\t\t\t\tplaceAlien(0);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tclipAlienDestroyed.stop();\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public final void mo99825c() {\n finish();\n overridePendingTransition(0, R.anim.t);\n }", "@Override\r\n public void onAction(String name, boolean isPressed, float tpf)\r\n {\n mainPanel.addTransition(new DirectTransition(panel1, panel2));\r\n }", "private void transitionTo(Scene scene) {\n for (EmptyGraphBoardFX g : toAnimate)\n g.stopAnimating();\n toAnimate.clear();\n theStage.setScene(scene);\n if (scene == mainGame)\n toAnimate.add(mGSelfBoard);\n if (scene == attackScene) {\n toAnimate.add(ene1.b);\n toAnimate.add(ene2.b);\n }\n if (scene == setShips)\n toAnimate.add(sSboard);\n if (scene == AIScene) {\n toAnimate.add(selfvsAI);\n toAnimate.add(ai.b);\n }\n for (EmptyGraphBoardFX g : toAnimate)\n g.startAnimating();\n }", "@Override\n protected void incrementStates() {\n\n }", "public interface ViewTransition {\n\tpublic void in(final String name, final ViewController viewController);\n\n\tpublic void out(final String name, final ViewController viewController);\n}", "private void weakenPlayerAnimation(int player) {\n\t\t//red stat decrease arrow\n\t\tImage decreaseArrowImage = new Image(\"res/images/Red Down Arrow.png\");\n\t\tImageView decreaseArrow = new ImageView(decreaseArrowImage);\n\t\t\n\t\tdecreaseArrow.setTranslateX(100);\n\t\tdecreaseArrow.setTranslateY(100);\n\t\t\n\t\tdecreaseArrow.setFitWidth(40);\n\t\tdecreaseArrow.setPreserveRatio(true);\n\t\tdecreaseArrow.setSmooth(true);\n\t\t\n\t\tScaleTransition arrowScaleTrans = new ScaleTransition(Duration.millis(500),decreaseArrow);\n\t\tarrowScaleTrans.setToX(1.5f);\n\t\tarrowScaleTrans.setToY(1.5f);\n\t\tarrowScaleTrans.setCycleCount(1);\n\t\t\n\t\tFadeTransition arrowFadeTrans = new FadeTransition(Duration.millis(1000),decreaseArrow);\n\t\tarrowFadeTrans.setFromValue(1.0f);\n\t\tarrowFadeTrans.setToValue(0.0f);\n\t\tarrowFadeTrans.setCycleCount(1);\n\t\t\n\t\t//Left dust cloud\n\t\tImage dust1Image = new Image(\"res/images/Dust #1.png\");\n\t\tImageView dust1 = new ImageView(dust1Image);\n\t\t\n\t\tdust1.setTranslateX(50);\n\t\tdust1.setTranslateY(250);\n\t\t\n\t\tdust1.setFitWidth(20);\n\t\tdust1.setPreserveRatio(true);\n\t\tdust1.setSmooth(true);\n\t\t\n\t\tFadeTransition dust1transIn = new FadeTransition(Duration.millis(200),dust1);\n\t\tdust1transIn.setFromValue(0.0f);\n\t\tdust1transIn.setToValue(1.0f);\n\t\tdust1transIn.setCycleCount(1);\n\t\t\n\t\tFadeTransition dust1transOut = new FadeTransition(Duration.millis(500),dust1);\n\t\tdust1transOut.setFromValue(1.0f);\n\t\tdust1transOut.setToValue(0.0f);\n\t\tdust1transOut.setCycleCount(1);\n\t\t\n\t\tImage dust2Image = new Image(\"res/images/Dust #2.png\");\n\t\tImageView dust2 = new ImageView(dust2Image);\n\t\t\n\t\tdust2.setTranslateX(150);\n\t\tdust2.setTranslateY(250);\n\t\t\n\t\tdust2.setFitWidth(20);\n\t\tdust2.setPreserveRatio(true);\n\t\tdust2.setSmooth(true);\n\t\t\n\t\tFadeTransition dust2transIn = new FadeTransition(Duration.millis(200),dust2);\n\t\tdust2transIn.setFromValue(0.0f);\n\t\tdust2transIn.setToValue(1.0f);\n\t\tdust2transIn.setCycleCount(1);\n\t\t\n\t\tFadeTransition dust2transOut = new FadeTransition(Duration.millis(500),dust2);\n\t\tdust2transOut.setFromValue(1.0f);\n\t\tdust2transOut.setToValue(0.0f);\n\t\tdust2transOut.setCycleCount(1);\n\t\t\n\t\tif (player == LOCAL) {\n\t\t\tlocPane.getChildren().addAll(decreaseArrow,dust1,dust2);\n\t\t} else if (player == OPPONENT) {\n\t\t\toppPane.getChildren().addAll(decreaseArrow,dust1,dust2);\n\t\t}\n\t\t\n\t\tSequentialTransition sequencer = new SequentialTransition();\n\t\tsequencer.getChildren().addAll(arrowScaleTrans,\n\t\t\t\t\t\t\t\t\t dust1transIn,\n\t\t\t\t\t\t\t\t\t dust2transIn,\n\t\t\t\t\t\t\t\t\t dust1transOut,\n\t\t\t\t\t\t\t\t\t dust2transOut,\n\t\t\t\t\t\t\t\t\t arrowFadeTrans);\n\t\tsequencer.setCycleCount(1);\n\t\tsequencer.play();\n\t\t\n\t\t\n\t}", "@Override\n protected void animStop() {\n }", "public static /* synthetic */ void lambda$transitionFrom$5(View view, View view2) {\n view.setAlpha(0.0f);\n view.setVisibility(0);\n view.bringToFront();\n view.animate().cancel();\n view.animate().alpha(1.0f).setDuration(300).withEndAction(new Runnable(view2) { // from class: com.android.systemui.volume.ZenModePanel$$ExternalSyntheticLambda2\n public final /* synthetic */ View f$0;\n\n {\n this.f$0 = r1;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n this.f$0.setVisibility(4);\n }\n }).start();\n }", "private void prepareTransitions() {\n setExitTransition(TransitionInflater.from(getContext())\n .inflateTransition(R.transition.grid_exit_transition));\n\n // A similar mapping is set at the ImagePagerFragment with a setEnterSharedElementCallback.\n setExitSharedElementCallback(\n new SharedElementCallback() {\n @Override\n public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) {\n // Locate the ViewHolder for the clicked position.\n RecyclerView.ViewHolder selectedViewHolder = mPhotosListView\n .findViewHolderForAdapterPosition(MainActivity.currentPosition);\n if (selectedViewHolder == null) {\n return;\n }\n\n // Map the first shared element name to the child ImageView.\n sharedElements\n .put(names.get(0), selectedViewHolder.itemView.findViewById(R.id.ivPhoto));\n }\n });\n }", "@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t\tthis.overridePendingTransition(R.anim.slide_in_from_left, R.anim.slide_out_to_right);\n\t}", "@Override\r\n\tpublic void overridePendingTransition(int enterAnim, int exitAnim)\r\n\t{\n\t\tsuper.overridePendingTransition(enterAnim, exitAnim);\r\n\t}", "private void processStatesAnimation() {\n if(getState() == JUMPING_STATE || getState() == FALLING_STATE) {\n if(getDirection() == DIRECTION_RIGHT)\n setAnim(jumpingRight);\n else if(getDirection() == DIRECTION_LEFT)\n setAnim(jumpingLeft);\n }\n\n if(getState() == NORMAL_STATE) {\n if(getDirection() == DIRECTION_STOPPED_RIGHT)\n setAnim(standingRight);\n else if(getDirection() == DIRECTION_STOPPED_LEFT)\n setAnim(standingLeft);\n else if(getDirection() == DIRECTION_RIGHT)\n setAnim(walkingRight);\n else if(getDirection() == DIRECTION_LEFT)\n setAnim(walkingLeft);\n }\n\n if(getState() == DYING_STATE) \n setAnim(dying);\n }", "public void slideFragmentsToLeft();", "@Override\n public void restoreFromSeedAnimation() {\n TranslateTransition leave = new TranslateTransition(Duration.millis(1200), controlsBox);\n leave.setByY(80.0);\n leave.play();\n }", "private void initTransitions() {\n s0.addTransition(htThr, s1, startStep);\n\n s1.addTransition(htPosPeekThr, s2, null);\n s1.addTransition(ltThr, s4, null);\n\n s2.addTransition(ltNegPeekThr, s3, null);\n\n s3.addTransition(htNegPeekThr, s5, null);\n\n s4.addTransition(ltThr, s0, null);\n s4.addTransition(htThr, s1, null);\n\n s5.addTransition(ltNegPeekThr, s3, null);\n s5.addTransition(htNegThr, s6, endStep);\n\n s6.addTransition(ltThr, s0, null);\n }", "@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }", "private void setWindowTransitions() {\n Transition returnTrans = new Slide(Gravity.RIGHT);\n returnTrans.setDuration(250);\n getWindow().setReturnTransition(returnTrans);\n getWindow().setEnterTransition(returnTrans);\n }", "@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }", "@Override\r\n public void publishTransition(Publisher publisher) {\n }", "public void transitFragment(Fragment newFragment){\n Fragment oldFragment = getFragmentManager().findFragmentById(R.id.main_container);\n\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n\n Fade exitFade = new Fade();\n exitFade.setDuration(getResources().getInteger(R.integer.anim_duration_medium));\n oldFragment.setExitTransition(exitFade);\n\n Fade enterFade = new Fade();\n enterFade.setStartDelay(getResources().getInteger(R.integer.anim_duration_medium));\n enterFade.setDuration(getResources().getInteger(R.integer.anim_duration_medium));\n newFragment.setEnterTransition(enterFade);\n\n //oldFragment.setReenterTransition(enterFade);\n\n fragmentTransaction.replace(R.id.main_container, newFragment,newFragment.getClass().getName()).addToBackStack(newFragment.getClass().getName());\n fragmentTransaction.commitAllowingStateLoss();\n }", "public void exitAnimation() {\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }", "public native final Transition transition()/*-{\n\t\treturn this.transition();\n\t}-*/;", "@FXML\n private void move() {\n TranslateTransition transition = new TranslateTransition();\n transition.setNode(move);\n transition.setDuration(Duration.seconds(1.5));\n transition.setFromX(-1000);\n transition.setToX(1000);\n transition.setAutoReverse(true);\n transition.setCycleCount(Timeline.INDEFINITE);\n transition.play();\n }", "public void act() \n {\n gravity();\n animate();\n }", "private void animateDrawer(){\n int[] location = new int[2];\n int leftDelta;\n pageFontEl.getLocationOnScreen(location);\n if(switchState == \"off\"){\n leftDelta = 0;\n switchState = \"on\";\n } else{\n leftDelta = common.dip2px(HomeActivity.this, 130);\n switchState = \"off\";\n }\n pageFontEl.layout(leftDelta, 0, leftDelta + pageFontEl.getWidth(), 0 + pageFontEl.getHeight());\n }", "public final void easeIn() {\n float originX = phasesUI.getX();\n MoveToAction out = new MoveToAction();\n out.setPosition(phasesUI.getWidth() * -1, phasesUI.getY());\n out.setDuration(PhaseConstants.PANEL_EASE_DURATION / 3);\n\n VisibleAction show = new VisibleAction();\n show.setVisible(true);\n\n MoveToAction in = new MoveToAction();\n in.setPosition(originX, phasesUI.getY());\n in.setDuration(PhaseConstants.PANEL_EASE_DURATION);\n\n SequenceAction seq = new SequenceAction(out, show, in);\n phasesUI.addAction(seq);\n\n //phasesUI.setVisible(true);\n toggle = true;\n }", "protected abstract void animate(int anim);", "private void showTransition(int duration)\n {\n showMainView(TRANS_PANE_VIEW);\n Timer task = new Timer(duration, (ActionEvent e) ->\n {\n showMainView(VIEW_PANE);\n });\n \n task.setRepeats(false);\n task.start();\n }", "private void setupWindowAnimations() {\n Slide slideTransition = new Slide();\n slideTransition.setSlideEdge(Gravity.RIGHT);\n slideTransition.setDuration(getResources().getInteger(R.integer.anim_duration_long));\n getWindow().setReenterTransition(slideTransition);\n getWindow().setExitTransition(slideTransition);\n }", "private void setupWindowAnimations() {\n Slide slideTransition = new Slide();\n slideTransition.setSlideEdge(Gravity.RIGHT);\n slideTransition.setDuration(getResources().getInteger(R.integer.anim_duration_long));\n getWindow().setReenterTransition(slideTransition);\n getWindow().setExitTransition(slideTransition);\n }", "@Override\n public void finish() {\n super.finish();\n overridePendingTransition(R.anim.activity_slide_in_left, R.anim.activity_slide_out_right);\n }", "private void updateTransition(float delta) {\n if (roomTransition || gameTransition && !gameTransitionPause) {\n BLACK_BACKGROUND.setAlpha(Interpolation.pow4.apply(0, 1, animTimer / ANIM_TIME));\n\n if (fadeToBlack) {\n animTimer += delta;\n\n if (animTimer >= ANIM_TIME) {\n \tif (roomTransition) {\n\t game.player.moveRoom();\n\t currentNPCs = game.gameSnapshot.map.getNPCs(game.player.getRoom());\n\t getTileRenderer().setMap(game.player.getRoom().getTiledMap());\n\t getTileRenderer().clearPeople();\n\t getTileRenderer().addPerson((List<AbstractPerson>) ((List<? extends AbstractPerson>) currentNPCs));\n\t getTileRenderer().addPerson(game.player);\n \t} else {\n \tswitchGame();\n gameTransitionPause = true;\n \t}\n fadeToBlack = false;\n }\n } else {\n animTimer -= delta;\n\n if (animTimer <= 0f) {\n finishTransition();\n }\n }\n }\n\n if (game.player.roomChange) {\n initialiseRoomTransition();\n game.player.roomChange = false;\n }\n }", "public IBusinessObject doTransition(IRTransition trans)\n throws OculusException;", "@Override\r\n\tpublic void transitOut(BasicScene tScene) {\n\t\t\r\n\t}", "private void setWorkflowTransitions() {\n setDefaultWorkflowTransitions();\n addTransitionsToFailed();\n addWorkerLostTransitions();\n addRecoveringTransitions();\n addAbortedTransitions();\n }", "void setTarget(IWfnTransitionAndPlace elem);", "@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}", "protected abstract void animationLogicTemplate();", "@Override\n public void act(float delta) {\n }", "@Override\n\tprotected void enterEffect() {\n\t\t\n\t}", "void nextState();", "private void scheduleTransition(int m) {\r\n\t\ttransitionTime = System.currentTimeMillis() + m;\r\n\t}", "@Override public void onAnimationStart(Animator arg0) {\n\n }", "@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }", "void animate( LightCondition lights );", "private ObjectAnimator b(final c paramc)\n/* */ {\n/* 154 */ int i = getWidth();\n/* 155 */ ObjectAnimator localObjectAnimator = ObjectAnimator.ofFloat(paramc, \"translationX\", new float[] { i, 0.0F });\n/* 156 */ localObjectAnimator.addListener(new Animator.AnimatorListener()\n/* */ {\n/* */ public void onAnimationStart(Animator paramAnonymousAnimator) {\n/* 159 */ LogUtils.b(\"TTBannerAd\", \"SLIDE START\");\n/* */ }\n/* */ \n/* */ public void onAnimationEnd(Animator paramAnonymousAnimator)\n/* */ {\n/* 164 */ g= false;\n/* 165 */ j();\n/* 166 */ if (paramc != null) {\n/* 167 */ a( paramc.a());\n/* */ }\n/* */ \n/* 170 */ LogUtils.b(\"TTBannerAd\", \"SLIDE END\");\n/* 171 */ if (LogUtils.isDebug) {\n///* 172 */ Toast.makeText(LocationUtils.PhoneUtils(LocationUtils.this).getApplicationContext(), \"END\", 0).show();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public void onAnimationCancel(Animator paramAnonymousAnimator) {}\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public void onAnimationRepeat(Animator paramAnonymousAnimator) {}\n/* 185 */ });\n/* 186 */ return localObjectAnimator;\n/* */ }", "public abstract void nextAnimationStep();", "public double getTransition(){\n\t\treturn transition;\n\t}", "@Override\r\n public void drawExit()\r\n {\r\n\tdraw();\r\n\tif (_transition != null)\r\n\t _transition.draw();\r\n }", "public abstract void animationStarted();", "public void e()\n/* */ {\n/* 193 */ if (!this.g) {\n/* 194 */ AnimatorSet localAnimatorSet = new AnimatorSet();\n/* 195 */ localAnimatorSet.play(a(this.b)).with(b(this.c));\n/* 196 */ localAnimatorSet.setDuration(this.f).start();\n/* 197 */ this.c.setVisibility(View.VISIBLE);\n/* 198 */ this.g = true;\n/* */ }\n/* */ }", "public void animationTrans() {\n float unitAngle;\n if (type == CIRCLE) {\n unitAngle = (float) 360 / defaultCount;\n } else {\n unitAngle = 45f;\n }\n final float oldAngle = mAngle;\n float nAngle = mAngle % actualAngle;\n float gapAngle = (float) (nAngle / unitAngle) - (int) (nAngle / unitAngle);\n\n final float willAngle;\n if (type == CIRCLE) {\n willAngle = (float) ((0.5 - gapAngle) * unitAngle);\n } else {\n if (gapAngle < 0.5) {\n willAngle = (float) ((0 - gapAngle) * unitAngle);\n } else {\n willAngle = (float) ((1 - gapAngle) * unitAngle);\n }\n }\n Animation a = new Animation() {\n\n @Override\n protected void applyTransformation(float interpolatedTime, Transformation t) {\n\n mAngle = oldAngle + willAngle * interpolatedTime;\n\n requestLayout();\n }\n\n @Override\n public boolean willChangeBounds() {\n return true;\n }\n };\n\n a.setDuration(200);\n startAnimation(a);\n }", "@Override\n\tpublic void processTransition() {\n\t\tinit();\n\t\tMusicPlayer.playLoop(\"level2\");\n\n\t\t// show level title\n\t\taddPopup(levelPopup);\n\t\tsetAlpha(10 * 60 * 3 + 100);\n\t\tsetFadeRate(10);\n\n\t\t// show introduction text\n\t\tgameText.setText(\"Carnegie: Hmm... these tunnels were probably what \"\n\t\t\t\t+ \"the mayor was talking about. Maybe searching them will \"\n\t\t\t\t+ \"give me a lead as to where Sinclair is going! However, \"\n\t\t\t\t+ \"I have to be careful. Iím sure that Sinclair has left \"\n\t\t\t\t+ \"plenty of enemies and traps in my way, and if what the \"\n\t\t\t\t+ \"mayor said was correct, exploring wonít be easy!\"\n\t\t\t\t+ \"\\nInstructions: Explore the tunnels using the WASD or \"\n\t\t\t\t+ \"arrow keys for movement. Be careful to not fall \"\n\t\t\t\t+ \"into the lava. Press the space bar to shoot, \"\n\t\t\t\t+ \"and avoid being hit by enemies who will attack you on \"\n\t\t\t\t+ \"sight. But if you choose to confront these enemies \"\n\t\t\t\t+ \"and defeat them, they will ask you a question after \"\n\t\t\t\t+ \"they are defeated. Answering this question correctly \"\n\t\t\t\t+ \"results in a reward of of 10 gold, while other \"\n\t\t\t\t+ \"answers result in a reward of 5 gold. Click on \"\n\t\t\t\t+ \"the shop in this level to buy upgrades with the \"\n\t\t\t\t+ \"gold you have amassed.\");\n\t\tgameText.addFinishedListener(this);\n\t}", "@Override\n public void onClick(View v) {\n popupWindow.dismiss();\n //overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n }", "private void onTranslationClick() {\n Animator animator = AnimatorInflater.loadAnimator(getActivity(), R.animator.translation);\r\n animator.setTarget(animatedView);\r\n animator.start();\r\n }", "public abstract void animationStopped();", "@Override\r\n public void drawEntrance()\r\n {\r\n\tdraw();\r\n\tif (_transition != null)\r\n\t _transition.draw();\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "public abstract MoveTransition makeMove(Move move);", "@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n private void setupWindowAnimations() {\n\n Explode explode = new Explode();\n explode.setDuration(500);\n getWindow().setEnterTransition(explode);\n\n Fade fade = new Fade();\n fade.setDuration(500);\n getWindow().setReturnTransition(fade);\n }", "@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n private void setupWindowAnimations() {\n\n Slide slide = new Slide();\n slide.setDuration(350);\n getWindow().setReturnTransition(slide);\n }", "void animation() {\n LinearLayout linearLayout = findViewById(R.id.loginLinear);\n animationDrawable = (AnimationDrawable)linearLayout.getBackground();\n animationDrawable.setEnterFadeDuration(5000);\n animationDrawable.setExitFadeDuration(5000);\n\n }", "public interface OnTransitionClickListener {\n\n void onClick(View transitionOrigin, int positionOnAdapter);\n}", "@Override\n\tpublic void act(float dt){\n\t\t\n\t}", "private void strengthenPlayerAnimation(int player) {\n\t\t//blue stat increase arrow\n\t\tImage increaseArrowImage = new Image(\"res/images/Blue Up Arrow.png\");\n\t\tImageView increaseArrow = new ImageView(increaseArrowImage);\n\t\t\n\t\tincreaseArrow.setTranslateX(100);\n\t\tincreaseArrow.setTranslateY(100);\n\t\t\n\t\tincreaseArrow.setFitWidth(40);\n\t\tincreaseArrow.setPreserveRatio(true);\n\t\tincreaseArrow.setSmooth(true);\n\t\t\n\t\tScaleTransition arrowScaleTrans = new ScaleTransition(Duration.millis(500),increaseArrow);\n\t\tarrowScaleTrans.setToX(1.5f);\n\t\tarrowScaleTrans.setToY(1.5f);\n\t\tarrowScaleTrans.setCycleCount(1);\n\t\t\n\t\tFadeTransition arrowFadeTrans = new FadeTransition(Duration.millis(1000),increaseArrow);\n\t\tarrowFadeTrans.setFromValue(1.0f);\n\t\tarrowFadeTrans.setToValue(0.0f);\n\t\tarrowFadeTrans.setCycleCount(1);\n\t\t\n\t\t//top star position\n\t\tImage star1Image = new Image(\"res/images/Star #1.png\");\n\t\tImageView star1 = new ImageView(star1Image);\n\t\t\n\t\tstar1.setTranslateX(100);\n\t\tstar1.setTranslateY(50);\n\t\t\n\t\tstar1.setFitWidth(20);\n\t\tstar1.setPreserveRatio(true);\n\t\tstar1.setSmooth(true);\n\t\t\n\t\tFadeTransition star1trans = new FadeTransition(Duration.millis(200));\n\t\tstar1trans.setCycleCount(2);\n\t\tstar1trans.setAutoReverse(true);\n\t\t\n\t\t//left star position\n\t\tImage star2Image = new Image(\"res/images/Star #2.png\");\n\t\tImageView star2 = new ImageView(star2Image);\n\t\t\n\t\tstar2.setTranslateX(50);\n\t\tstar2.setTranslateY(100);\n\t\t\n\t\tstar2.setFitWidth(20);\n\t\tstar2.setPreserveRatio(true);\n\t\tstar2.setSmooth(true);\n\t\t\n\t\tFadeTransition star2trans = new FadeTransition(Duration.millis(200));\n\t\tstar2trans.setCycleCount(2);\n\t\tstar2trans.setAutoReverse(true);\n\t\t\n\t\t//right star position\n\t\tImage star3Image = new Image(\"res/images/Star #3.png\");\n\t\tImageView star3 = new ImageView(star3Image);\n\t\t\n\t\tstar3.setTranslateX(150);\n\t\tstar3.setTranslateY(100);\n\t\t\n\t\tstar3.setFitWidth(20);\n\t\tstar3.setPreserveRatio(true);\n\t\tstar3.setSmooth(true);\n\t\t\n\t\tFadeTransition star3trans = new FadeTransition(Duration.millis(200));\n\t\tstar3trans.setCycleCount(2);\n\t\tstar3trans.setAutoReverse(true);\n\t\t\n\t\tif (player == LOCAL) {\n\t\t\tlocPane.getChildren().addAll(increaseArrow,star1,star2,star3);\n\t\t} else if (player == OPPONENT) {\n\t\t\toppPane.getChildren().addAll(increaseArrow,star1,star2,star3);\n\t\t}\n\t\t\n\t\tSequentialTransition sequencer = new SequentialTransition();\n\t\tsequencer.getChildren().addAll(arrowScaleTrans,\n\t\t\t\t\t\t\t\t\t star2trans,\n\t\t\t\t\t\t\t\t\t star1trans,\n\t\t\t\t\t\t\t\t\t star3trans,\n\t\t\t\t\t\t\t\t\t arrowFadeTrans);\n\t\tsequencer.setCycleCount(1);\n\t\tsequencer.play();\n\t}", "@Override\n\tpublic void onAnimationStart(Animator arg0) {\n\t\tif (mState.getState() != 0) {\n\t\t\tGBTools.GBsetAlpha(bv, 0.0F);\n\t\t\tbv.setState(mState.getState());\n\t\t\tbv.setPressed(false);\n\t\t}\n\t\tbv.bringToFront();\n\t\tmBoardView.invalidate();\n\t}", "public interface TransitionAdapter extends TransitionManager {\n AdapterState getAdapterState();\n\n void setTransitionManager(TransitionManager transitionManager);\n\n TransitionManager getTransitionManager();\n}", "void onAnimationStart();", "public void animateOver(Duration duration)\n {\n if (timeline != null)\n {\n throw new IllegalStateException(\"Cannot animate SharedTransition more than one time\");\n }\n \n timeline = new Timeline(new KeyFrame(duration, e -> { \n if (!runStopped)\n {\n runStopped = true;\n onStopped.forEach(FXPlatformRunnable::run);\n }\n }, new KeyValue(progress, 1.0, Interpolator.EASE_BOTH)));\n timeline.play();\n }", "public final void slidePanel() {\n //Gdx.app.log(\"PhasesUISettings\", \"slidePanel executed\");\n if (!toggle) {\n easeIn();\n toggle = true;\n } else {\n easeOut();\n toggle = false;\n }\n }", "public abstract void animationReelFinished();", "public void f_restart() {\n\n result.setVisibility(View.GONE);\n request_button_content.setVisibility(View.VISIBLE);\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n pulsator_left.setVisibility(View.VISIBLE);\n pulsator_up.setVisibility(View.VISIBLE);\n pulsator_right.setVisibility(View.VISIBLE);\n\n visible = false;\n TransitionSet set_request = new TransitionSet()\n .addTransition(new Scale(0.7f))\n .addTransition(new Fade())\n .setInterpolator(visible ? new LinearOutSlowInInterpolator() :\n new FastOutLinearInInterpolator());\n\n TransitionManager.beginDelayedTransition(request_button_content, set_request);\n btnClick.setVisibility(visible ? View.GONE : View.VISIBLE);\n }\n }, 250);\n }", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "Animation getShowAnimation();", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "void startAnimation();", "@Override\n protected void onPause() {\n overridePendingTransition(R.anim.hold, R.anim.pull_out_to_left);\n super.onPause();\n }", "public interface MonsterStateTransitions {\n //state transitions\n void toVulnerableState();\n void toProtectedState();\n\n //actions\n void init();\n\n}" ]
[ "0.7918112", "0.7147673", "0.7147673", "0.7125459", "0.69257087", "0.6800732", "0.67305756", "0.66928804", "0.66348636", "0.66099626", "0.6583238", "0.65709037", "0.6542142", "0.65219486", "0.6517401", "0.64418715", "0.6419176", "0.6393356", "0.6366964", "0.6361136", "0.63521004", "0.63222826", "0.6312236", "0.6304215", "0.62775767", "0.6260985", "0.6239395", "0.62267447", "0.62171215", "0.6189101", "0.6153456", "0.6134895", "0.6129361", "0.61280245", "0.6113367", "0.6113167", "0.6087145", "0.60835266", "0.60799086", "0.6075345", "0.60725105", "0.60636735", "0.6056624", "0.60340595", "0.6018173", "0.60179156", "0.60179055", "0.60103375", "0.6006122", "0.6000905", "0.59792256", "0.59792256", "0.59754074", "0.5974816", "0.59616584", "0.5959674", "0.59515476", "0.5945956", "0.59411645", "0.5919703", "0.59162074", "0.5911711", "0.5903412", "0.5902103", "0.5895422", "0.58781415", "0.5868633", "0.58671194", "0.58583206", "0.584356", "0.58353007", "0.5834453", "0.58258283", "0.5821036", "0.58204436", "0.58189994", "0.58130485", "0.58023363", "0.580076", "0.57913893", "0.57913893", "0.578517", "0.5778298", "0.5775213", "0.57725155", "0.57723707", "0.57692873", "0.57679766", "0.57623965", "0.57578504", "0.5757053", "0.5748091", "0.5745536", "0.57324636", "0.5724001", "0.5723185", "0.57159376", "0.57043433", "0.5703275", "0.5703113", "0.5698696" ]
0.0
-1
Returns true if any string appears at least 3 times in the given list; false otherwise.
public static boolean contains3(List<String> list) { Map<String, Integer> map = new HashMap<>(); for (String str : list) { map.put(str, (map.containsKey(str) ? map.get(str) + 1 : 1)); } return map.containsValue(3); // throw new UnsupportedOperationException("Not implemented yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 3;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 3;\r\n\t\t\t}", "public static boolean hasAllUniqueChars3(String string) {\n String sorted = Stream.of(string.split(\"\")).sorted().collect(Collectors.joining());\n\n for(int i = 1; i < sorted.length(); i++) {\n if(sorted.charAt(i - 1) == sorted.charAt(i)) return false;\n }\n\n return true;\n }", "public static boolean haveThree(int[] nums) {\n\n\t\tint count = 0;\n\t\t\n\t\tfor (int i=0; i < nums.length; i++) {\n\t\t\tif (nums[i] == 3) {\n\t\t\t\tcount++;\t\n\t\t\t}\t\t\n\t\t}\n\n\n\t\tfor (int i=0; i < nums.length-1; i++) {\n\t\t\tif (nums[i] == 3 && nums[i+1] == 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\n\t\tif (count==3) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public static boolean hasThreeOfAKind(Card[] cards) {\n\t\tint counter = 0;\n\t\tfor(int i = 0; i< cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=3){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}", "private boolean anyOfSetInString(String inputStr, Set<String> items) {\n\n for (String s : items) {\n if (inputStr.contains(s)) {\n // Didn't use String.equals() as user can have the number saved with or without country code\n\n return true;\n }\n }\n\n return false;\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Integer counter : map.values()) {\n\t\t\t\tif (map.size() == 3 && counter == 3)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean isThreeFoldRepetition() {\n int repeatNum = 0;\n\n for (Board position : game.getPositionList()) {\n if (game.getCurrentPosition().equals(position)) {\n repeatNum++;\n }\n }\n\n return repeatNum >= 3;\n }", "private boolean hasNomeRepetido(String[] listaNomes) {\n for (int i = 0; i < listaNomes.length; i++) {\n for (int j = 0; j < listaNomes.length; j++) {\n if ((i != j) && (listaNomes[i].equals(listaNomes[j]))) {\n return true;\n }\n }\n }\n\n return false;\n }", "private boolean stringContainsList(String s, ArrayList<String> list){\n\t\tboolean flag = true;\n\t\tfor(String temp : list){\n\t\t\tif(!s.contains(temp)){\n\t\t\t\tflag = false;\n\t\t\t\treturn flag;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "public boolean hasSet(ArrayList<Card> cards) {\r\n\t\tCollections.sort(cards);\r\n\t\t/*Once the cards are sorted, then the third card can be\r\n\t\t * used to compare with others\r\n\t\t */\r\n\t\tint compare = cards.get(2).getValue();\r\n\t\tint counter = 0;\r\n\t\tfor(int i = 0; i < 5 ; i++) {\r\n\t\t\tif(cards.get(i).getValue() == compare) {\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (counter == 3);\r\n\t}", "public boolean searchList(List<String> list) {\r\n int count = 0;\r\n for (String subject : list) {\r\n if (currentLocation.searchEntities(subject) || currentPlayer.searchInventory(subject)\r\n || subject.equals(\"health\")) {\r\n count++;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n // If all subjects are found: true, if not all found: false\r\n return count == list.size();\r\n }", "public static boolean test (String s){\n\t\t// This pattern tests whether string s contains 3 numbers.\n\t Pattern pattern = Pattern.compile(\"\\\\d{3}\");\n\t Matcher matcher = pattern.matcher(s);\n\t if (matcher.find()){\n\t return true; \n\t } \n\t return false; \n\t }", "public static boolean goodRepeats(String sequence) {\n\t\tString repeat = sequence.substring(0, 2);\n\t\tint longestRepeat = 0;\n\t\tfor (int i = 2; i + 1 < sequence.length(); i+=2) {\n\t\t\tif (repeat.startsWith(sequence.substring(i, i + 2))) repeat += sequence.substring(i, i + 2);\n\t\t\telse {\n\t\t\t\tif (repeat.length() / 2 > longestRepeat) longestRepeat = repeat.length() / 2;\n\t\t\t\trepeat = sequence.substring(i, i + 2);\n\t\t\t}\n\t\t}\n\t\trepeat = sequence.substring(1, 3);\n\t\tfor (int i = 1; i + 1 < sequence.length(); i+=2) {\n\t\t\tif (repeat.startsWith(sequence.substring(i, i + 2))) repeat += sequence.substring(i, i + 2);\n\t\t\telse {\n\t\t\t\tif (repeat.length() / 2 > longestRepeat) longestRepeat = repeat.length() / 2;\n\t\t\t\trepeat = sequence.substring(i, i + 2);\n\t\t\t}\n\t\t}\n\t\treturn longestRepeat <= MAX_REPEATS;\n\t}", "public boolean isThreeOfAKind(){\n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < dice.length; i++){\n numbers.add(dice[i].getFaceValue());\n }\n int pairsOfThree = 0;\n int pairsOfTwo = 0;\n for(int i = 0; i < numbers.size(); i++){\n int numSame = 0;\n for(int j = 0; j < numbers.size(); j++){\n if(numbers.get(i).equals(numbers.get(j))){\n numSame++;\n }\n }\n if (numSame == 2){\n pairsOfTwo++;\n }\n if (numSame == 3){\n pairsOfThree++;\n }\n }\n if (pairsOfTwo > 0){\n return false;\n }\n return (pairsOfThree == 3);\n }", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 1;\r\n\t\t\t}", "public boolean check3sameNumbersMax(String password) {\n for (int i = 0; i < password.length() - 3; i++) {\n if (String.valueOf(password.charAt(i)).matches(\"\\\\d\")) { //next time: Character.isDigit(passtword.charAt(i))\n for (int j = i; j < i+3; j++) {\n if (password.charAt(j) != password.charAt(j + 1)) {\n break;\n } else if (j-i == 2) {\n return false;\n }\n }\n }\n }\n return true;\n }", "public boolean containsStrings(boolean ensureAllAreContained, String... strings) {\r\n\t\tboolean contains = false;\r\n\t\tif (this.strings != null && this.strings.size() > 0) {\r\n\t\t\tint numValidstrings = 0;\r\n\t\t\tint numContains = 0;\r\n\t\t\tfor (String string : strings) {\r\n\t\t\t\tif (string == null || string.trim().equals(\"\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tString stringTrimmedLowercase = string.trim().toLowerCase();\r\n\t\t\t\tboolean thisstringIncluded = this.containsString(stringTrimmedLowercase);\r\n\t\t\t\tif (thisstringIncluded) {\r\n\t\t\t\t\tif (!ensureAllAreContained) {\r\n\t\t\t\t\t\tcontains = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnumContains++;\r\n\t\t\t\t}\r\n\t\t\t\tnumValidstrings++;\r\n\t\t\t}\r\n\t\t\tcontains = numValidstrings > 0 && numValidstrings == numContains;\r\n\t\t}\r\n\t\treturn contains;\r\n\t}", "public boolean makeEqual(String[] words) {\n int[] counts = new int[26];\n Arrays.stream(words).flatMapToInt(String::chars).forEach(c -> counts[c - 'a']++);\n return Arrays.stream(counts).allMatch(count -> count % words.length == 0);\n }", "public boolean isThreeOfAKind() {\r\n\r\n return getHighestConsecutive() == 3;\r\n }", "public boolean morethanthreeletter(String sCheck) {\n\t\tint total=sCheck.length();\n\t\tint x=0;\n\t\tint begin=0;\n\t\tint end=0;\n\t\tchar ch;\n\t\tString sResult=\"\";\n\t\tint chcount=1;\n\t\twhile(x < total){\n\t\t\tch=sCheck.charAt(x);\n\t\t\tif(ch != ' ' && ch != '.' && ch != ','){\n\t\t\t\tif(x==total-1){\n\t\t\t\t\tend=x;\n\t\t\t\t\tif((end-begin+1) > 3){\n\t\t\t\t\t\tsResult=sCheck.substring(begin,end+1);\n\t\t\t\t\t\tSystem.out.println(sResult);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\tx++;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(x==total-1){\n\t\t\t\t\tend=x-1;\n\t\t\t\t\tif((end-begin+1) > 3){\n\t\t\t\t\t\tsResult=sCheck.substring(begin,end+1);\n\t\t\t\t\t\tSystem.out.println(sResult);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\tif(sCheck.charAt(x+1)==' ' || sCheck.charAt(x+1)=='.'\n\t\t\t\t\t\t\t||sCheck.charAt(x+1)==','){\n\t\t\t\t\t\tchcount++;\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tend=x-chcount;\n\t\t\t\t\t\tchcount=1;\n\t\t\t\t\t\tif((end-begin+1) > 3){\n\t\t\t\t\t\t\tsResult=sCheck.substring(begin,end+1);\n\t\t\t\t\t\t\tSystem.out.println(sResult);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tbegin=x;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private static boolean fun3(List<String> res, List<String> ac1) {\n\t\tHashSet<String> hs=new HashSet<String>();\r\n\t\tfor(int i=0;i<res.size();i++){\r\n\t\t\ths.add(res.get(i));\r\n\t\t}\r\n\t\tfor(int i=0;i<ac1.size();i++){\r\n\t\t\tif(hs.contains(ac1.get(i)))\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isThreeOfAKind(){\n \r\n List<PokerCard> threeCards;\r\n \r\n //First possibility: first three cards match\r\n threeCards = cards.subList(0, 3);\r\n if(haveSameValue(threeCards)){\r\n handValue = threeCards.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: middle three cards match\r\n threeCards = cards.subList(1, 4);\r\n if(haveSameValue(threeCards)){\r\n handValue = threeCards.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Third possibility: last three cards match\r\n threeCards = cards.subList(2, 5);\r\n if(haveSameValue(threeCards)){\r\n handValue = threeCards.get(0).getValue();\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean repeatedSubstringPattern(String s) {\n int len = s.length();\n for (int i = len / 2; i >= 1; i--) {\n if (len % i == 0) {\n int num = len / i;\n String substr = s.substring(0, i);\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < num; j++) {\n sb.append(substr);\n }\n if (sb.toString().equals(s)) {\n return true;\n }\n }\n }\n\n return false;\n }", "private boolean detectRepeat(String substring) {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tchar actual=substring.charAt(i);\n\t\t\t\n\t\t\tint j=i+1;\n\t\t\t//Los anteriores ya se han comprobado\n\t\t\tfor (; j < substring.length() && actual!=substring.charAt(j) ; j++);\n\t\t\t\n\t\t\tif (j<substring.length()) return true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean checkInvalid3(String x) {\n for (int i = 0; i < x.length(); i++) {\n int temp = 0;\n if (!consonants.contains(String.valueOf(x.charAt(i)))) {\n temp = i;\n for (int j = i + 1; j < x.length(); j++) {\n if (!consonants.contains(String.valueOf(x.charAt(j)))) {\n temp++;\n if (j - temp > 0) {\n return true;\n }\n }\n }\n }\n }\n return false;\n }", "public boolean repeatedSubstringPattern(String s) {\n char[] ch = s.toCharArray();\n int[] pi = new int[ch.length];\n pi[0] = 0;\n int matched = 0;\n for (int i = 1; i < pi.length; i++) {\n while (matched > 0 && ch[matched] != ch[i])\n matched = pi[matched-1];\n if (ch[matched] == ch[i])\n matched++;\n pi[i] = matched;\n }\n return pi[pi.length-1] != 0 && pi.length % (pi.length - pi[pi.length-1]) == 0;\n }", "public static boolean hasAllUniqueChars4(String string) {\n if(string.length() > ALPHABET_SIZE) return false;\n\n boolean[] characters = new boolean[ALPHABET_SIZE];\n for(int i = 0; i < string.length(); i++) {\n int ascii_code = (int) string.charAt(i);\n\n if(characters[ascii_code]) return false;\n else characters[ascii_code] = true;\n }\n\n return true;\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint counter = 0;\n\t\t\tif (map.size() == 3) {\n\n\t\t\t\tfor (Integer key : map.keySet()) {\n\t\t\t\t\tif (map.get(key) == 2) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\tif (map.get(key) == 1) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn counter == 3;\n\t\t}", "public boolean containsAll(String c) {\r\n int[] elements = new int[(c.length() / 2) + 1];\r\n for (int i = 0; i < elements.length; i++) {\r\n elements[i] = Integer.parseInt(c.substring(0, c.indexOf(\",\")));\r\n if (!contains(elements[i])) {\r\n return false;\r\n }\r\n c = c.substring((c.indexOf(\",\") + 1));\r\n }\r\n return true;\r\n }", "public static boolean Q3(String test) {\n\t\tSystem.out.println(Pattern.matches(\".*[abc]{2,3}.*\",test));\n\t\treturn Pattern.matches(\".*[abc]{2,3}.*\",test);\n\t}", "public boolean firstThree( String[] values )\n {\n boolean found = false;\n if( !values[0].equals(values[1]) )\n {\n if( !values[0].equals(values[2]) )\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(1)\")).click();\n found = true;\n }\n else\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(2)\")).click();\n found = true;\n }\n }\n else if( !values[0].equals(values[2]) )\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(3)\")).click();\n found = true;\n }\n\n return found;\n }", "public static boolean containTwoOrThree(int[] numbers)\r\n {\r\n if (numbers[0] == 2 || numbers[1] == 2)\r\n {\r\n return true;\r\n }\r\n else if(numbers[0]==3 || numbers[1]==3)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "public boolean stringE(String str) {\n int count = 0;\n \n for (int i=0; i < str.length(); i++) {\n if (str.charAt(i) == 'e') count++;\n }\n \n return (count >= 1 && count <=3);\n}", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Integer counter : map.values()) {\n\t\t\t\tif (map.size() == 2 && counter == 4)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public static boolean hasAllUniqueChars6(String string) {\n if(string.length() > LAST_LETTER - FIRST_LETTER + 1) return false;\n\n int vector = 0;\n\n for(int i = 0; i < string.length(); i++) {\n int value = string.charAt(i) - FIRST_LETTER;\n\n if((vector & (1 << value)) > 0) return false;\n else vector |= (1 << value);\n }\n\n return true;\n }", "public static boolean containsMatch(List<String> list, String str) {\n boolean strAvailable = false;\n final Pattern pattern = Pattern.compile(str, Pattern.CASE_INSENSITIVE | Pattern.CANON_EQ);\n if (list != null) {\n for (String s : list) {\n final Matcher matcher = pattern.matcher(s);\n if (matcher.find()) {\n strAvailable = true;\n break;\n }\n }\n }\n return strAvailable;\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint counter = 0;\n\t\t\tif (map.size() == 2) {\n\t\t\t\tfor (Integer key : map.keySet()) {\n\t\t\t\t\tif (map.get(key) == 3) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\tif (map.get(key) == 2) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn counter == map.size();\n\t\t}", "public boolean hasQuads(ArrayList<Card>cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tint compare = cards.get(2).getValue();\r\n\t\tint counter = 0;\r\n\t\tfor(int i = 0; i < 5 ; i++) {\r\n\t\t\tif(cards.get(i).getValue() == compare) {\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (counter == 4);\r\n\t\t\r\n\t\t\r\n\t}", "static boolean isFour(ArrayList<Card> c)\n {\n if(c.size() < 4)\n {\n return false;\n }\n \n for(int x = 0 ; x < c.size() - 3 ; x++)\n {\n if(c.get(x).getRank() == c.get(x+1).getRank() && c.get(x+1).getRank() == c.get(x+2).getRank() && c.get(x+2).getRank() == c.get(x+3).getRank())\n {\n return true;\n }\n } \n return false;\n }", "public static boolean hasAllUniqueChars1(String string) {\n for(int i = 0; i < string.length(); i++) {\n for(int j = i + 1; j < string.length(); j++) {\n if(string.charAt(i) == string.charAt(j)) return false;\n }\n }\n\n return true;\n }", "static boolean m22727a(String str) {\n if (TextUtils.isEmpty(str)) {\n return false;\n }\n for (String contains : f20300a.f20309c) {\n if (str.contains(contains)) {\n return true;\n }\n }\n return false;\n }", "private static boolean collectionHasRepeat(List<Integer> square) {\n\t\tfor(int index = 1; index <= BOUNDARY; index++) {\n\t\t\tif(Collections.frequency(square, index) > 1) return true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean findDoubledStrings(String text) {\n Set<String> setStrings = new HashSet<>();\n String[] stringArray = text.split(\" \");\n IntStream.range(0, stringArray.length).forEach(t-> setStrings.add(stringArray[t]));\n return setStrings.size()!=stringArray.length;\n }", "private static boolean areAdjoining(List<Integer> list) {\r\n if (list.isEmpty()) {\r\n return false;\r\n }\r\n int check = list.get(0);\r\n for (int value : list) { // (use iterator for efficiency)\r\n if (value != check) {\r\n return false;\r\n }\r\n check += 1;\r\n }\r\n return true;\r\n }", "public static boolean isUnique(String s){\n\n\t\tint length = s.length();\n\t\tboolean count[] = new boolean[256];\n\t\tArrays.fill(count, false);\n\n\n\t\tint i = 0;\n\t\twhile (i < length){\n\t\t\tint num = Character.toLowerCase(s.charAt(i)) - 'a';\n\n\t\t\tif (count[num]){\n\t\t\t\treturn false;\n\t\t\t}else{\n\t\t\t\tcount[num] = true;\n\t\t\t}\n\t\t\ti += 1;\n\t\t}\n\t\treturn true;\n\n\n\t\t// in the end of the loop, return true\n\t}", "public boolean getSequenceOf3Char(String str) {\n\t\t// TO DO\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tif (isVowel(str.charAt(i)) && isVowel(str.charAt(i + 1)) && isVowel(str.charAt(i + 2))) {\n\t\t\t\treturn true;\n\t\t\t} else if (!isVowel(str.charAt(i)) && !isVowel(str.charAt(i + 1)) && !isVowel(str.charAt(i + 2))) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\n\t}", "public boolean isThreeOfAKind() {\n\t\treturn this.sameSet.size() == 1;\n\t}", "public boolean checkDuplicates(String chars) {\n char[] check = chars.toCharArray();\n for (int i = 0; i < chars.length(); i++) {\n for (int j = i + 1; j < chars.length(); j++) {\n if (check[i] == check[j]) {\n return true;\n }\n }\n }\n return false;\n }", "public static boolean itContains(ArrayList<Integer> list, int n) {\r\n\t\tfor (Integer broj : list) {\r\n\t\t\tif (n == broj) {\r\n\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Ako ga nema vraca se false\r\n\t\treturn false;\r\n\t}", "public int countAllStringAppearances(List<String> stringsToCheck, String stringToContain) {\n int counter = 0;\n Pattern patternToMatch = Pattern.compile(stringToContain.toLowerCase());\n for (String currentString : stringsToCheck) {\n Matcher matcher = patternToMatch.matcher(currentString.toLowerCase());\n while (matcher.find()) {\n counter ++;\n }\n }\n return counter;\n }", "public boolean checkInvalid4(String x) {\n int temp = x.length();\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i))))\n temp--;\n }\n return temp > 3;\n }", "private static boolean hasUniqueChars(String str) {\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tfor(int j = i+1; j < str.length(); j++) {\n\t\t\t\tif( str.charAt(i) == str.charAt(j) )\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean checkUniqueness(char[] input, int length){\n //check to see if they are all digits\n for(int i = 0; i < length; i++){\n if(Character.isDigit(input[i]) == false)\n return false;\n }\n\n //check for uniqueness\n for(int i = 0; i < length; i++){\n int numOccurrences = 0;\n for(int j = 0; j < length; j++){\n if(Character.getNumericValue(input[j]) == i){\n numOccurrences++;\n if(numOccurrences > 1)\n return false;\n }\n }\n }\n\n return true;\n }", "public static void main(String[] args) {\n String[] strings = new String[100];\n for (int i = 0; i < strings.length; i++) {\n strings[i] = randomStrings(2);\n }\n// for (String s : strings) {\n// System.out.println(s);\n// }\n ArrayList<String> appeared = new ArrayList<>();\n for (String s : strings) {\n if (!appeared.contains(s)) {\n appeared.add(s);\n }\n }\n System.out.println(appeared.size());\n\n }", "public static boolean containsString (char[] letters, String word){\n int numberOfSameLetters = 0;\n word.toCharArray();\n for(char charInWord : word.toCharArray()) {\n for (char letter : letters) {\n if(charInWord == letter){\n// System.out.println(\"letter \" + letter);\n numberOfSameLetters ++;\n break;\n }\n }\n }\n if(numberOfSameLetters == word.length()){\n// System.out.println(true);\n return true;\n }\n// System.out.println(\"false\");\n return false;\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint counter = 0;\n\t\t\tif (map.size() == 4) {\n\n\t\t\t\tfor (Integer key : map.keySet()) {\n\t\t\t\t\tif (map.get(key) == 2) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\tif (map.get(key) == 1) {\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn counter == 4;\n\t\t}", "public boolean areThreeOrMorePossible(final Field[] line) {\n\t\t// Empty means interested generally\n\t\treturn this.areThreeOrMorePossible(line, Symbol.EMPTY);\n\t}", "public static boolean isUnique1(String str) {\n HashSet<Character> set = new HashSet<>();\n for (int i = 0; i < str.length(); i++) {\n if (set.contains(str.charAt(i)))\n return false;\n set.add(str.charAt(i));\n }\n return true;\n }", "public static boolean validateInputLength(String[] args) {\n return args.length == 3;\n }", "private static boolean Ncontains(String word, char a) \n {\n \t// return true of false if the String match char a\n for(int x = 0; x < word.length(); x++)\n {\n if(word.charAt(x) == a)\n return false;\n }\n return true;\n }", "public boolean checkIfDublicate(String testPart){\n\t\t\n\t\tchar[] characters = testPart.toCharArray();\n // build HashMap with character and number of times they appear in String\n Map<Character, Integer> charMap = new HashMap<Character, Integer>();\n for (Character ch : characters) {\n if (charMap.containsKey(ch)) {\n charMap.put(ch, charMap.get(ch) + 1);\n } else {\n charMap.put(ch, 1);\n }\n }\n\n\n // Iterate through HashMap and return true if duplicates\n Set<Map.Entry<Character, Integer>> entrySet = charMap.entrySet();\n \n for (Map.Entry<Character, Integer> entry : entrySet) {\n if (entry.getValue() > 1) {\n return false;\n }\n }\n return true;\n\n//Read more: http://www.java67.com/2014/03/how-to-find-duplicate-characters-in-String-Java-program.html#ixzz4KEbZ7fhC\t\n\t}", "public static boolean isPermutation(String str) {\n if (str == null || str.equals(\"\")) {\n return false;\n }\n char[] characters = new char[256];\n for (int i = 0; i < str.length(); i++) {\n characters[str.charAt(i)]++;\n }\n int count = 0;\n for (char c : characters) {\n if (!(c == 0 || c % 2 == 0)) {\n if (count == 0) {\n count++;\n } else {\n return false; // allow only one character to occur once\n }\n }\n }\n return true;\n }", "protected boolean hasKeywords(List<KeyValuePair> keywords, String... values) {\n\t\tList<String> keywordStrings = new ArrayList<String>();\r\n\t\tfor (KeyValuePair keyValuePair : keywords) {\r\n\t\t\tkeywordStrings.add(keyValuePair.getKey());\r\n\t\t}\r\n\t\tfor (String value : values) {\r\n\t\t\tif (!keywordStrings.contains(value)) {\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 testAllUniqueInplace(String string) {\n\t\tif (string.length() > 128) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tfor (int j = i + 1; j < string.length(); j++) {\n\t\t\t\tchar ith = string.charAt(i);\n\t\t\t\tchar jth = string.charAt(j);\n\n\t\t\t\tif (ith == jth) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isAllUnique(String string) {\n\n // Let's create a new HashSet to cache the characters.\n HashSet<Character> set = new HashSet<>();\n\n for (char c : string.toCharArray()) {\n if (set.contains(c)) {\n return false;\n } else {\n set.add(c);\n }\n }\n\n return true;\n }", "public static boolean hasAllUniqueChars5(String string) {\n if(string.length() > ALPHABET_SIZE) return false;\n\n BitSet vector = new BitSet(ALPHABET_SIZE);\n for(int i = 0; i < string.length(); i++) {\n int ascii_code = (int) string.charAt(i);\n\n if(vector.get(ascii_code)) return false;\n else vector.set(ascii_code);\n }\n\n return true;\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\n\t\t\tint counter = 0;\n\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\tif (i + 1 < hand.size()) {\n\t\t\t\t\tif (hand.get(i + 1).getCardValue().getValue()\n\t\t\t\t\t\t\t- hand.get(i).getCardValue().getValue() == 1)\n\t\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//if not straight, then do a final check of 5 unique cards\n\t\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\tif (counter != 4) {\n\t\t\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\t\t\tif (!map.containsKey(hand.get(i).getCardValue().getValue())) {\n\t\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(), 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.put(hand.get(i).getCardValue().getValue(),\n\t\t\t\t\t\t\t\tmap.get(hand.get(i).getCardValue().getValue()) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn map.size() == 5;\n\t\t}", "public Boolean findUniqueness(final String inp) {\n boolean flag = true;\n for (int i = 0; i < inp.length(); i++) {\n for (int j = i + 1; j < inp.length(); j++) {\n if (inp.charAt(i) == inp.charAt(j)) {\n flag = false;\n }\n }\n }\n return flag;\n }", "private static boolean m879a(Set<String> set) {\n return set.isEmpty() || (set.size() == 1 && set.contains(\"\"));\n }", "public static boolean allUnique2(String s ){\n\t\tint value = 0;\n\t\tchar[] chars = s.toCharArray();\n\t\tfor(char c : chars) \n\t\t{\t\n\t\t\tint i = c -'a';\n\t\t\tif(((1<<i+1)&value)>0)\n\t\t\t\treturn false;\n\t\t\tvalue = value | (1<<i+1);\n\t\t}\n\t\treturn true;\n\t}", "public boolean phoneLengthThree(String chkstr){\r\n\t\tchkstr = chkstr.trim().replaceAll(\" \", \"\");\r\n\t\tif(chkstr.length() != 3){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public static boolean hasFourOfAKind(Card[] cards) {\n\t\tint counter = 0;\n\t\tfor(int i = 0; i< cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter==6){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean passwordDigitCheck (String password){\n int numberOfDigits = 0;\n for (int i = 0; i < password.length(); i++){\n if (Character.isDigit(password.charAt(i))){\n numberOfDigits++;\n }\n if (numberOfDigits >=3){\n return true;\n }\n }\n return false;\n }", "public static boolean checkPermutation3 (String input1, String input2) {\n\t\t\n\t\tint[] asciiVal = new int[256];\n\t\t\n\t\tfor (int i = 0; i < input1.length(); i++) {\n\t\t\tasciiVal[(int) input1.charAt(i)] += 1;\n\t\t}\n\t\t\n\t\tfor (int j = 0; j < input2.length(); j++) {\n\t\t\tif (asciiVal[(int) input2.charAt(j)] <= 0) return false;\n\t\t\tasciiVal[(int) input2.charAt(j)] -= 1;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private boolean hasAnyRepeatedElement(List<Integer> row) {\n List<Integer> copyRow = new ArrayList<>(row);\n Collections.sort(copyRow);\n for (int i = 0; i < copyRow.size(); i++) {\n if(!isLastElement(i, copyRow)) {\n int current = copyRow.get(i);\n int next = copyRow.get(i+1);\n // If current is equals to next means that a repeated element has been found\n if(current == next) return true;\n }\n }\n return false;\n }", "private boolean haveThree(String[][] board, String ch) {\n // Check all rows\n for(int i = 0; i < 3; ++i)\n {\n boolean haveARow = true;\n for(int j = 0; j < 3; ++j)\n {\n if(!board[i][j].equals(ch))\n haveARow = false;\n }\n if(haveARow)\n return true;\n }\n \n // Check all cols\n for(int j = 0; j < 3; ++j)\n {\n boolean haveACol = true;\n for(int i = 0; i < 3; ++i)\n {\n if(!board[i][j].equals(ch))\n haveACol = false;\n }\n if(haveACol)\n return true;\n }\n \n // Check the two diagonals\n boolean haveAForwardDiagonal = true;\n boolean haveABackwardsDiagonal = true;\n for(int i = 0; i < 3; ++i) {\n if(!board[i][i].equals(ch))\n haveAForwardDiagonal = false;\n if(!board[i][2 - i].equals(ch))\n haveABackwardsDiagonal = false;\n }\n if(haveAForwardDiagonal || haveABackwardsDiagonal)\n return true;\n return false;\n }", "@Test\n\tpublic void testContainsSomePrefix() {\n\n\t\tString[] prefixes = {\"ne\", \"ned\", \"nes\", \"ning\", \"st\", \"sted\", \"sting\", \"sts\"};\n\t\tList<String> listPrefixes = Arrays.asList(prefixes);\n\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"stedadsdf\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"neasdsadfa\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"ningsdfsf\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"nasfds\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"abdsfsd\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"ninsdfdsf\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"swerwrw\", listPrefixes), equalTo(false));\n\t}", "public static long count (List<String> lst, String pattern) {\n\t\t\n\t\tlong cpt = 0;\n\t\tfor(String st : lst) {\n\t\t\tif(st.equals(pattern)) {\n\t\t\t//if(st.contains(pattern)) {\n\t\t\t\tcpt++;\n\t\t\t}\n\t\t}\n\t\treturn cpt;\n\t\n\t}", "public static boolean containsIgnoreCase(List<String> list, String str) {\n boolean strAvailable = false;\n if (list != null) {\n for (String s : list) {\n if (s.equalsIgnoreCase(str)) {\n strAvailable = true;\n break;\n }\n }\n }\n return strAvailable;\n }", "boolean isThreeOfAKind();", "public static boolean goodRuns(String sequence) {\n\t\tString run = sequence.charAt(0) + \"\";\n\t\tint longestRun = 0;\n\t\tfor (int i = 1; i < sequence.length(); i++) {\n\t\t\tif (run.contains(sequence.charAt(i) + \"\")) run += sequence.charAt(i);\n\t\t\telse {\n\t\t\t\tif (longestRun < run.length()) longestRun = run.length();\n\t\t\t\trun = sequence.charAt(i) + \"\";\n\t\t\t}\n\t\t}\n\t\treturn longestRun <= MAX_RUN;\n\t}", "private static boolean containsAddivelySameNumber(Card card, ArrayList<Card> list){\n if(card.getRank().getValue()<3 || card.getRank().getValue()>7){\n for(int i=0; i<list.size(); i++){\n for(int j=i; j<list.size(); j++){\n if(list.get(i).getRank().getValue()+list.get(j).getRank().getValue() == card.getRank().getValue())\n return true;\n }\n }\n return false;\n }\n else\n return false;\n }", "private static boolean isUniqueM1(String str) {\n boolean isUnique = true;\n\n for (int i = 0; i < str.length(); i++) {\n\n for (int j = i + 1; j < str.length(); j++) {\n if (str.charAt(i) == str.charAt(j)) {\n isUnique = false;\n }\n }\n }\n return isUnique;\n }", "boolean any(String collection);", "private boolean mapContainsList(HashMap<String,String[]> map, List<String> list){\n\t\tboolean flag = true;\n\t\tSet<String> mapKeys = map.keySet();\n\t\tfor(String temp : list){\n\t\t\tif(!mapKeys.contains(temp)){\n\t\t\t\tflag = false;\n\t\t\t\treturn flag;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "private static boolean isUnique(String str) {\n\t\tfor(char c: str.toCharArray()) {\n\t\t\tif(str.indexOf(c) == str.lastIndexOf(c))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static <T> boolean hasDuplicates(final List<T> elements) {\n\t\tfor (int i = 0; i < elements.size() - 1; i++) {\n\t\t\tfinal T element = elements.get(i);\n\t\t\tfor (int j = i + 1; j < elements.size(); j++) {\n\t\t\t\tif (elements.get(j).equals(element))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\r\n void not_matches() {\n assertMatcherFalse(asList(\"1\", \"2\"), size(3));\r\n }", "public static boolean isUnique(String s) {\n if (s.length() > 128) return false;\n\n // we dont need to check the last element\n for (int i = 0; i < s.length() - 1; i++){\n String current = \"\";\n current += s.charAt(i);\n// System.out.println(current);\n if (s.substring(i + 1).contains(current))\n return false;\n }\n return true;\n }", "public static boolean charsOccurIn(final String string, final String sub) {\n final int sl = string.length(), tl = sub.length();\n int t = 0;\n for(int s = 0; s < sl && t < tl; s++) {\n if(equals(string.charAt(s), sub.charAt(t))) t++;\n }\n return t == tl;\n }", "@Test\n\tpublic void testIsContainedInSomeWord() {\n\n\t\tString[] words = {\"ne\", \"ned\", \"nes\", \"ning\", \"st\", \"sted\", \"sting\", \"sts\"};\n\t\tList<String> listWords = Arrays.asList(words);\n\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"sti\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"ne\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"ni\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"s\"), equalTo(true));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"sta\"), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"a\"), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"no\"), equalTo(false));\n\t}" ]
[ "0.73494935", "0.73494935", "0.69769824", "0.6728841", "0.64332855", "0.6401019", "0.6401019", "0.6401019", "0.6401019", "0.6401019", "0.6401019", "0.6245614", "0.6217498", "0.62044984", "0.6192438", "0.61269724", "0.6092685", "0.60858274", "0.60637116", "0.6033925", "0.59970665", "0.595929", "0.595929", "0.595929", "0.59401286", "0.5883666", "0.58795786", "0.58769953", "0.58740675", "0.5844129", "0.5812729", "0.57701784", "0.5752154", "0.57455903", "0.5722555", "0.5716986", "0.57111764", "0.5691004", "0.5683312", "0.5676914", "0.562763", "0.5615267", "0.5609922", "0.5599569", "0.5585154", "0.55779266", "0.55774707", "0.5576829", "0.5568409", "0.55681324", "0.5550114", "0.5507018", "0.54943496", "0.54939616", "0.5493893", "0.54900134", "0.5474349", "0.54648256", "0.546271", "0.5451224", "0.54295987", "0.5428855", "0.54245013", "0.54125416", "0.54061806", "0.5403449", "0.5391852", "0.5387424", "0.53804475", "0.5371779", "0.53644276", "0.5362264", "0.5361363", "0.53553706", "0.5354879", "0.5354806", "0.53326935", "0.530388", "0.5303173", "0.53020555", "0.5293178", "0.52879363", "0.52856034", "0.52816105", "0.52770275", "0.5270209", "0.5269466", "0.5255787", "0.52522737", "0.52506804", "0.52411336", "0.52313566", "0.5230551", "0.5227924", "0.52242464", "0.52234495", "0.52217644", "0.5220618", "0.52102596", "0.5195741" ]
0.78609884
0
Returns a map containing the intersection of the two input maps. A keyvalue pair exists in the output iff the same keyvalue pair exists in both input maps.
public static Map<String, Integer> intersect(Map<String, Integer> m1, Map<String, Integer> m2) { Map<String, Integer> intersect = new HashMap<>(); for (String key : m1.keySet()) { if (m2.containsKey(key)) { Integer i = m1.get(key); if (m2.get(key).equals(i)) { intersect.put(key, i); } } } return intersect; //throw new UnsupportedOperationException("Not implemented yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static HashMap merge(Map map1, Map map2) {\r\n\t\tHashMap retval = new HashMap(calcCapacity(map1.size() + map2.size()));\r\n\r\n\t\tretval.putAll(map1);\r\n\t\tretval.putAll(map2);\r\n\r\n\t\treturn retval;\r\n\t}", "private static Set<String> getIntersection(final Map<String, Integer> leftVector,\n final Map<String, Integer> rightVector) {\n final Set<String> intersection = new HashSet<String>(leftVector.keySet());\n intersection.retainAll(rightVector.keySet());\n return intersection;\n }", "public static synchronized TreeMap intersect(TreeMap left, TreeMap right)\n\t throws IcofException {\n\n\tString funcName = new String(\"intersect(TreeMap, TreeMap)\");\n\n\tTreeMap intersection = new TreeMap();\n\n\ttry {\n\n\t // the third parm 'false' means that not only are keys but olso\n\t // values are\n\t // compared to determine sameness for inclusion in the intersection.\n\t intersection = intersect(left, right, false);\n\n\t} catch (Exception e) {\n\t IcofException ie = new IcofException(CLASS_NAME, funcName,\n\t\t IcofException.SEVERE,\n\t\t \"Error creating intersection of TreeMaps \", \"\");\n\t throw (ie);\n\t}\n\n\treturn intersection;\n }", "public static synchronized TreeMap intersect(TreeMap left, TreeMap right,\n\t boolean keysOnly) throws IcofException {\n\n\tString funcName = new String(\"Intersect(TreeMap, TreeMap, boolean)\");\n\n\tTreeMap intersection = new TreeMap();\n\n\ttry {\n\n\t Set keySetLeft = left.keySet();\n\t Iterator lIter = keySetLeft.iterator();\n\n\t while (lIter.hasNext()) {\n\n\t\tObject keyLeft = (Object) lIter.next();\n\t\tObject valueLeft = (Object) left.get(keyLeft);\n\n\t\tif (right.containsKey(keyLeft)) {\n\t\t Object valueRight = (Object) right.get(keyLeft);\n\n\t\t if (keysOnly) {\n\t\t\tintersection.put(keyLeft, left.get(keyLeft));\n\t\t } else {\n\t\t\t// the keys AND values both must match for the\n\t\t\t// intersection\n\t\t\tif (valueLeft.equals(valueRight))\n\t\t\t intersection.put(keyLeft, left.get(keyLeft));\n\t\t }\n\t\t}\n\t }\n\n\t} catch (Exception e) {\n\t IcofException ie = new IcofException(CLASS_NAME, funcName,\n\t\t IcofException.SEVERE,\n\t\t \"Error creating intersection of TreeMaps \", \"\");\n\t throw (ie);\n\t}\n\n\treturn intersection;\n }", "private Set<String> getIntersection( Set<String> a, Set<String> b ) {\n\t\tSet<String> intersection = new HashSet<String>(a);\n\t\tintersection.retainAll(b);\n\t\treturn intersection;\n\t}", "private static Map<String, String> syncAttributes(Map<String, String> first, Map<String, String> second){\n Map<String, String> synced = new HashMap<>();\n\n for(String firstKey : first.keySet()){\n if(second.containsKey(firstKey)){\n //both contain the same key -> take from second\n synced.put(firstKey, second.get(firstKey));\n }else{\n //second doesn't contain this key -> take from first\n synced.put(firstKey, first.get(firstKey));\n }\n }\n\n for(String secondKey : second.keySet()){\n if(!synced.containsKey(secondKey)){\n //since first doesn't contain this key (or it would already be in syned) we take this key\n synced.put(secondKey, second.get(secondKey));\n }\n }\n return synced;\n }", "private Map mergeResults(Map first, Map second) {\n/* 216 */ Iterator verb_enum = second.keySet().iterator();\n/* 217 */ Map clonedHash = new HashMap(first);\n/* */ \n/* */ \n/* 220 */ while (verb_enum.hasNext()) {\n/* 221 */ String verb = verb_enum.next();\n/* 222 */ List cmdVector = (List)clonedHash.get(verb);\n/* 223 */ if (cmdVector == null) {\n/* 224 */ clonedHash.put(verb, second.get(verb));\n/* */ continue;\n/* */ } \n/* 227 */ List oldV = (List)second.get(verb);\n/* 228 */ cmdVector = new ArrayList(cmdVector);\n/* 229 */ cmdVector.addAll(oldV);\n/* 230 */ clonedHash.put(verb, cmdVector);\n/* */ } \n/* */ \n/* 233 */ return clonedHash;\n/* */ }", "public Set<V> computeIntersection(K1 key1, K2 key2) {\r\n Set<V> v1 = new HashSet<V>(index1.getValues(key1));\r\n Set<V> v2 = index2.getValues(key2);\r\n v1.retainAll(v2);\r\n return v1;\r\n }", "public static <KEY_1, KEY_2, VALUE> Map<KEY_1, Map<KEY_2, VALUE>> copyOf(\n Map<KEY_1, ? extends Map<KEY_2, VALUE>> map) {\n return new HashMap<>(Maps.transformValues(map, HashMap::new));\n }", "public static <T,S,V extends Object> void merge(Map<T, HashMap<S, V>> to, Map<T, HashMap<S, V>> from) {\r\n\t\tfor(Entry<T, HashMap<S, V>> entry : from.entrySet()) {\r\n\t\t\tif(to.containsKey(entry.getKey())) {\r\n\t\t\t\tto.get(entry.getKey()).putAll(entry.getValue());\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tto.put(entry.getKey(), entry.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static <K, V> Map<K, V> filterMap(Map<K, V> inputMap, Set<K> keysToReturn) {\n\t\tMap<K, V> returnMap = new HashMap<K, V>();\n\t\tfor (K key : keysToReturn) {\n\t\t\tif (inputMap.containsKey(key))\n\t\t\t\treturnMap.put(key, inputMap.get(key));\n\t\t}\n\t\treturn returnMap;\n\t}", "private Set<String> intersection(Set<String> s1, Set<String> s2) {\n Set<String> intersection = new HashSet<>(s1);\n intersection.retainAll(s2);\n return intersection;\n }", "public static <T> Set<T> intersection(final Set<T> a, final Set<T> b) {\n return new Set<T>() {\n public boolean has(final T n) {\n return a.has(n) && b.has(n);\n }\n };\n }", "MapComp<K, V> join(MapComp<K, V> m);", "public MapAssertion<K, V> containsAll(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n containsAll(expected);\n return this;\n }", "public static <K, V> Map<K, V> combineMaps(Map<K, V>... maps) {\n\t\tMap<K, V> combinedMap = new HashMap<K, V>();\n\t\tfor (Map<K, V> map : maps) {\n\t\t\tcombinedMap.putAll(map);\n\t\t}\n\t\treturn combinedMap;\n\t}", "protected <Ty> HashSet<Ty> intersection(HashSet<Ty> setA, HashSet<Ty> setB) {\n HashSet<Ty> retSet = new HashSet<>();\n for (Ty t : setA) {\n if (setB.contains(t)) {\n retSet.add(t);\n }\n }\n return retSet;\n }", "public static <K, V> Map<K, V> createMap(K key1, V value1, K key2, V value2) {\n\t\tif (key1.equals(key2))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Key1 = Key2, value1 will be overwritten! The createMap method requires unique keys.\");\n\t\tMap<K, V> map = new HashMap<K, V>();\n\t\tmap.put(key1, value1);\n\t\tmap.put(key2, value2);\n\t\treturn map;\n\t}", "public static Map mapFrom(Object[][] keyValueSets) {\r\n\t\tMap map = new HashMap(keyValueSets.length);\r\n\t\tfor (int i=0; i<keyValueSets.length; i++) {\r\n\t\t\tmap.put(keyValueSets[i][0], keyValueSets[i][1]);\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}", "@Override\n\tpublic IPredicate intersection(final IPredicate state1, final IPredicate state2) {\n\n\t\tfinal Set<HcPredicateSymbol> state1PredSymbols = new HashSet<>();\n\t\tstate1PredSymbols.addAll(((HCPredicate) state1).getHcPredicateSymbols());\n//\t\tassert state1PredSymbols.size() == 1 : \"what does this mean??\";\n\n//\t\tfinal Term conjoinedFormula = mSimplifier.getSimplifiedTerm(\n//\t\t\t\tSmtUtils.and(mBackendSmtSolverScript.getScript(), state1.getFormula(), state2.getFormula()));\n\t\tfinal IPredicate conjoinedPred = mPredicateFactory.and(state1, state2);\n\n\t\tif (mPredicateFactory.isDontCare(conjoinedPred)) {\n\t\t\treturn mPredicateFactory.newPredicate(state1PredSymbols, conjoinedPred.getFormula(),\n\t\t\t\tCollections.emptyList());\n//\t\t\treturn conjoinedPred;\n\t\t}\n\n\t\tfinal Term conjoinedFormula = new CommuhashNormalForm(mServices, mMgdScript.getScript())\n\t\t\t\t.transform(conjoinedPred.getFormula());\n\n//\t\tfinal Set<IPredicate> ps = new HashSet<>();\n//\t\tps.add(state1);\n//\t\tps.add(state2);\n\n\t\treturn mPredicateFactory.newPredicate(state1PredSymbols, conjoinedFormula,\n\t\t\t\tArrays.asList(state1.getFormula().getFreeVars()));\n\t}", "protected void merge(Object in1, Object in2, Object out) {\n\t\tFlowSet inSet1 = (FlowSet) in1, inSet2 = (FlowSet) in2, outSet = (FlowSet) out;\n\n\t\tinSet1.intersection(inSet2, outSet);\n\t}", "private HashMap<ComparableExpression, HashSet<ComparableExpression>> composition(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rel1,\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rel2) {\n\n HashMap<ComparableExpression, HashSet<ComparableExpression>> newRel = new HashMap<>();\n // (a,b) in rel1, (b,c) in rel2 => put (a,c) into newRel\n for (Map.Entry<ComparableExpression, HashSet<ComparableExpression>> r1 : rel1.entrySet()) {\n ComparableExpression key = r1.getKey();\n for (ComparableExpression oldValue : r1.getValue()) {\n // transitive relation?\n if (rel2.containsKey(oldValue)) {\n HashSet<ComparableExpression> newValues = rel2.get(oldValue);\n newRel.putIfAbsent(key, new HashSet<>());\n newRel.get(key).addAll(newValues);\n }\n }\n }\n return newRel;\n }", "public Formula intersect(Formula a, Formula b) {\n Set<Variable> variables = Collections.emptySet();\n\n if (!a.equals(Utils.trueConst())) {\n VariableExtractorVisitor visitor = new VariableExtractorVisitor();\n a.accept(visitor);\n variables = visitor.getResult();\n }\n FormulaEvaluatorVisitor evaluator = new FormulaEvaluatorVisitor(variables);\n b.accept(evaluator);\n return evaluator.isCurrentValue() ? a : null;\n }", "public static int[] intersection(int[] nums1, int[] nums2) {\n if(nums1 == null || nums2 == null){\n return null;\n }\n HashSet<Integer> set = new HashSet<>();\n for (int aNubs1 : nums1) {\n set.add(aNubs1);\n }\n HashSet<Integer> result = new HashSet<>();\n for (int aNubs2 : nums2) {\n if (set.contains(aNubs2) && !result.contains(aNubs2)) {\n result.add(aNubs2);\n }\n }\n int [] intersection = new int[result.size()];\n int index = 0;\n for(int temp : result){\n intersection[index++] = temp;\n }\n return intersection;\n }", "private static HashMap<Integer, ArrayList<String>> checkAndMergeIntersectedPoints(HashMap<Integer, ArrayList<String>> boundedRegionPointsMap) {\n\n\t\t// Iterate over regions one by one, to validate with rest of the regions iteratively.\n\t for(Integer key1 : boundedRegionPointsMap.keySet()) {\n\t ArrayList<String> list1 = boundedRegionPointsMap.get(key1);\n\n\t for (Integer key2 : boundedRegionPointsMap.keySet()) {\n\t \t// Only need to check for keys (region counters) incrementally\n\t if (key1 < key2) {\n\t ArrayList<String> list2 = boundedRegionPointsMap.get(key2);\n\t for(String point : list2) {\n\t \t// If there is an intersecting point in two regions, merge them.\n\t if (list1.contains(point)) {\n\t list1.addAll(list2);\n\t // Just to make sure there won't be any duplicate points introduced after the merge.\n\t Set<String> uniquePoints = new HashSet<String>(list1);\n\t boundedRegionPointsMap.put(key1, new ArrayList<String>(uniquePoints));\n\t break;\n\t }\n\t }\n\t }\n\t }\n\n\t }\n\t return boundedRegionPointsMap;\n\t}", "public int[] intersection1(int[] nums1, int[] nums2) {\n Set<Integer> nums1Set = new HashSet<>();\n Set<Integer> nums2Set = new HashSet<>();\n\n for (int i = 0; i < nums1.length; i++) {\n nums1Set.add(nums1[i]);\n }\n for (int i = 0; i < nums2.length; i++) {\n nums2Set.add(nums2[i]);\n }\n\n nums1Set.retainAll(nums2Set);\n\n int[] res = new int[nums1Set.size()];\n int i = 0;\n for (int s: nums1Set) {\n res[i++] = s;\n }\n return res;\n }", "Multimap<String, String> intersects(Polygon bounds);", "Boolean same(MapComp<K, V> m);", "public static IIntersectInExistentLayerParameters createIntersectParameters( \n final ILayer firstLayer, \n final FeatureCollection<SimpleFeatureType, SimpleFeature> featuresInFirstLayer, \n final ILayer secondLayer, \n final FeatureCollection<SimpleFeatureType, SimpleFeature> featuresInSecondLayer, \n final ILayer targetLayer ) {\n \n \n \n IIntersectInExistentLayerParameters params = new IntersectInExistenLayerParameters(\n firstLayer, featuresInFirstLayer,\n secondLayer, featuresInSecondLayer,\n targetLayer);\n \n return params;\n }", "Multimap<String, String> intersects(RectangleLatLng bounds);", "public MapAssertion<K, V> containsAny(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n containsAny(expected);\n return this;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static <K, V> Map<K, V> mapWith(Object...keysAndValues) {\n \tif(keysAndValues.length % 2 !=0) throw new IllegalArgumentException(\"Debe haber igual cantidad de claves y valores.\");\n \tMap<K, V> ret = new HashMap<K, V>(); \n \tfor(int i=0; i<keysAndValues.length;i++) {\n \t\tK k = (K) keysAndValues[i++];\n \t\tV v = (V) keysAndValues[i];\n \t\tret.put(k, v);\n \t}\n \treturn ret;\n }", "Multimap<String, String> intersects(PointLatLng point);", "public int[] intersect(int[] nums1, int[] nums2) {\n if(nums2.length > nums1.length) return intersect(nums2,nums1);\n\n\n Map<Integer,Integer> hash = new HashMap<>();\n\n\n for(int j=0; j<nums1.length;j++){\n\n if(hash.containsKey(nums1[j])) hash.put(nums1[j], hash.get(nums1[j]) + 1);\n else hash.put(nums1[j], 1);\n\n }\n\n List<Integer> intersection = new ArrayList<>();\n\n for(int k=0;k<nums2.length;k++){\n\n int count = hash.getOrDefault(nums2[k],0);\n\n if(count > 0){\n intersection.add(nums2[k]);\n hash.put(nums2[k], hash.get(nums2[k]) - 1);\n }\n }\n\n\n int[] result = new int[intersection.size()];\n int count = 0;\n\n for(Integer i:intersection){\n result[count] = i;\n count++;\n }\n\n\n return result;\n\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 }", "private void merge(Map<String, NodeT> source, Map<String, NodeT> target) {\n for (Map.Entry<String, NodeT> entry : source.entrySet()) {\n String key = entry.getKey();\n if (!target.containsKey(key)) {\n target.put(key, entry.getValue());\n }\n }\n }", "public static ArrayList<Integer> getIntersection(int[] array1,int[] array2){\n HashMap<Integer,Boolean> map=new HashMap<>();\n ArrayList<Integer> list=new ArrayList<>();\n for(int i=0;i<array1.length;i++){\n map.put(array1[i],false);\n }\n for(int j=0;j<array2.length;j++){\n if(map.containsKey(array2[j])){\n map.put(array2[j],true); \n }\n }\n Set<Map.Entry<Integer,Boolean>> entries=map.entrySet();\n for(Map.Entry<Integer,Boolean> entry:entries){\n if(entry.getValue()){\n list.add(entry.getKey());\n }\n }\n\n return list;\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 }", "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 Map<String, String> a(Map<String, String> map, @Nullable Map<String, String> map2) {\n LinkedHashMap linkedHashMap = new LinkedHashMap(map);\n if (map2 == null) {\n return linkedHashMap;\n }\n for (Entry entry : map2.entrySet()) {\n String str = (String) entry.getKey();\n String str2 = (String) linkedHashMap.get(str);\n linkedHashMap.put(str, a(str).a(str2, (String) entry.getValue()));\n }\n return linkedHashMap;\n }", "public <T> Set<T> intersect(Set<T> set1, Set<T> set2) {\n\t\tSet<T> intersection = new HashSet<T>(set1);\n\t\tintersection.retainAll(set2);\n\t\treturn intersection;\n\t}", "public boolean isIntersection( Set<String> a, Set<String> b ) {\n\t\tfor ( String v1 : a ) {\n\t\t\tif ( b.contains( v1 ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public int[] intersect1(int[] nums1, int[] nums2) {\n Map<Integer, Integer> map1 = createHashMap(nums1);\n List<Integer> intersect = new ArrayList<>();\n for(int a: nums2) {\n if(map1.containsKey(a)) {\n int val = map1.get(a);\n if(val == 1) {map1.remove(a);}\n else {map1.put(a, val-1);}\n intersect.add(a);\n }\n }\n return intersect.stream().mapToInt(x->x).toArray();\n }", "public void sensibleMatches1() \n { \n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection ;\n\n Map<String, Set<String>> mapWithoutHal = new HashMap<>(clientMap);\n mapWithoutHal.remove(\"Hal\");\n for (String eachClient : mapWithoutHal.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString);\n }\n }", "Map<String, String> getCombinedMap() {\n Map<String, String> all = new HashMap<String, String>(plainProps);\n all.putAll(xProps);\n all.putAll(xxProps);\n all.putAll(sysProps);\n return all;\n }", "public static List<String> findAndAppendkeyWithValue(Map<String, String> with_key_and_values, Map<String, String> with_values) {\n logger.info(\"Streaming two different maps to find and append key with value\");\n return with_values.entrySet().stream().filter(valueSet -> isContainskeyInMap(valueSet.getKey(), with_key_and_values))\n .map(valueSet -> compareValueWithKeyValMap(valueSet,with_key_and_values))\n .flatMap(list -> list.stream()).collect(Collectors.toList());\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 }", "@Override\n Map<String, Integer> apply(Map<String, Integer> x, Map<String, Integer> y)\n {\n y.entrySet().forEach(e->x.merge(e.getKey(),e.getValue(),(v,w)->v+w));\n return x;\n\n }", "public static void main(String[] args) {\n\t\tString a=\"HeyDearHowareyou\"; \n\t\tString b=\"Howareyou\";\n\t\tHashMap<Character,Integer>map1=new HashMap<Character,Integer>();\n\t\tHashMap<Character,Integer>map2=new HashMap<Character,Integer>();\n\t\t\n\t\tmap1=getCharCount(a);\n\t\tmap2=getCharCount(b);\n\t\t\n\t\t//System.out.print(map1);\n\t\t\n\t\tint result=compareMaps(map1,map2);\n\t\t\n\t\t\tSystem.out.println(result);\n\t}", "Map<String, String> findAllInMap();", "public Set Intersection(Set secondSet) {\n\t\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> intersectionOfBoth = 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)) && intersectionOfBoth.contains(firstArray.get(i)) == false) {\n\t\t\t\tintersectionOfBoth.add(firstArray.get(i));\n\t\t\t\t// If our second array contains that same element from our first array, and the final ArrayList\n\t\t\t\t// does not already contain that element, then add it to our final ArrayList\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tSet intersectionReturn = new Set(intersectionOfBoth); // Initiate a Set object from our final ArrayList\n\t\t\n\t\treturn intersectionReturn; // Return our Set Object\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 <T, S> List<Map<T, S>> mergeListsOfMap(List<Map<T, S>> target,\n List<Map<T, S>> source) {\n List<Map<T, S>> retList = new ArrayList<>();\n if (Objects.nonNull(target)) {\n retList.addAll(target);\n }\n\n if (Objects.nonNull(source)) {\n for (Map<T, S> sourceMap : source) {\n for (Map.Entry<T, S> entry : sourceMap.entrySet()) {\n mergeEntryInList(entry.getKey(), entry.getValue(), retList);\n }\n }\n }\n return retList;\n }", "public static <T> List<T> intersection(List<T> a, List<T> b) {\n\t\tList<T> acc = new ArrayList<T>();\n\t\tfor (T t : a)\n\t\t\tif (b.contains(t))\n\t\t\t\tacc.add(t);\n\t\treturn acc;\n\t}", "public MapAssertion<K, V> containsAllInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n containsAllInOrder(expected);\n return this;\n }", "private Map<String,Integer> maxCountsMapMerge(Map<String,Integer> map1, Map<String,Integer> map2) {\n\t\tfor (String name : map1.keySet()) {\n\t\t\t// If name is already in map, then just take the higher count.\n\t\t\tInteger map1Count = map1.get(name);\n\t\t\tif (map2.containsKey(name)) {\n\t\t\t\tInteger map2Count = map2.get(name);\n\t\t\t\tif (map1Count > map2Count) {\n\t\t\t\t\tmap2.put(name,map1Count);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmap2.put(name,map1Count);\n\t\t\t}\n\t\t}\t\n\t\treturn map2;\n\t}", "public static <K, V> Map<K, Set<V>> combineUniqueMaps(Map<K, Set<V>>... maps) {\n\t\tMap<K, Set<V>> combinedMap = new HashMap<K, Set<V>>();\n\t\tfor (Map<K, Set<V>> inputMap : maps) {\n\t\t\tfor (Entry<K, Set<V>> entry : inputMap.entrySet()) {\n\t\t\t\tfor (V value : entry.getValue())\n\t\t\t\t\taddToOne2ManyUniqueMap(entry.getKey(), value, combinedMap);\n\t\t\t}\n\t\t}\n\t\treturn combinedMap;\n\t}", "public static Arguments mergeMapWithAnOverrideMap(Map<String,String> baseMap, Map<String, String> additionalEntriesMap) {\n\t\tArguments jmeterArguments = new Arguments();\n\t\tMap<String, String> jmeterArgumentsMap = new LinkedHashMap<String,String>();\n\t\tMap<String,String> baseMapMergedWithAdditionalEntriesMap = new LinkedHashMap<String,String>(); \n\t\t\n\t\tfor (Map.Entry<String, String> defaultEntry : baseMap.entrySet()) {\n\t\t\tif (additionalEntriesMap.containsKey(defaultEntry.getKey())){\n\t\t\t\tbaseMapMergedWithAdditionalEntriesMap.put(defaultEntry.getKey(), additionalEntriesMap.get(defaultEntry.getKey()));\n\t\t\t\tadditionalEntriesMap.remove(defaultEntry.getKey());\n\t\t\t} else {\n\t\t\t\tbaseMapMergedWithAdditionalEntriesMap.put(defaultEntry.getKey(), baseMap.get(defaultEntry.getKey()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tjmeterArgumentsMap.putAll(additionalEntriesMap);\n\t\tjmeterArgumentsMap.putAll(baseMapMergedWithAdditionalEntriesMap);\n\t\t\n\t\tfor (Map.Entry<String, String> parameter : jmeterArgumentsMap.entrySet()) {\n\t\t\tjmeterArguments.addArgument(parameter.getKey(), parameter.getValue());\n\t\t}\n\t\t\n\t\tif (LOG.isDebugEnabled()){LOG.debug(\"jmeter arguments at end of mergeMapWithAnOverrideMap : \" + Arrays.toString(jmeterArguments.getArgumentsAsMap().entrySet().toArray()));} \n\t\treturn jmeterArguments;\n\t}", "public MapAssertion<K, V> containsAll(final Map<K, V> expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n checkArgumentIsNotEmpty(expected.isEmpty(), \"expected\", true);\n List<K> actualKeysCopy = new ArrayList<>(getActual().keySet());\n for (K key : expected.keySet()) {\n int idx = actualKeysCopy.indexOf(key);\n if (idx >= 0 && isValuesEqual(expected, key)) {\n actualKeysCopy.remove(idx);\n } else {\n throw getAssertionErrorBuilder().addMessage(Messages.Fail.Actual.CONTAINS_ALL).addActual().addExpected(expected).build();\n }\n }\n return this;\n }", "public int[] intersect(int[] nums1, int[] nums2) {\n Arrays.sort(nums1);\n Arrays.sort(nums2);\n List<Integer> li = new ArrayList<>();\n int index=0;\n for(int num : nums1){\n int bsIndex = binarySearch(nums2, num, index, nums2.length-1);\n if(bsIndex!=-1){\n li.add(num);\n index=bsIndex+1;\n }\t\n }\n int []ar = new int[li.size()];\n for(int i=0;i<ar.length;i++){\n ar[i]=li.get(i);\n }\n return ar;\n }", "public void matchesDemo() \n {\n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection;\n\n for (String eachClient : clientMap.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString) ;\n }\n }", "private static boolean union(Map<String, Integer> map, String c1, String c2){\n if(!map.containsKey(c1) && !map.containsKey(c2)){\n map.put(c1, counter);\n map.put(c2, counter);\n counter++;\n return true;\n }\n\n if(!map.containsKey(c1) && map.containsKey(c2)) {\n int newValue = map.get(c2);\n map.put(c1 , newValue);\n return true;\n }\n\n\n if(map.containsKey(c1) && !map.containsKey(c2)) {\n int newValue = map.get(c1);\n map.put(c2 , newValue);\n return true;\n }\n\n\n //If different unions, Make the second oen to be the first one\n if(map.containsKey(c1) && map.containsKey(c2)){\n int newValue = map.get(c1);\n int oldValue = map.get(c2);\n\n if(newValue == oldValue){\n return false;\n }\n\n for(String city : map.keySet()){\n if(map.get(city) == oldValue){\n map.put(city , newValue);\n }\n return true;\n }\n }\n\n return true;\n }", "public Map<Integer, Boolean> getIntersects(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeIntersectsStatement(geom), BOOLEAN);\n }", "public MapAssertion<K, V> containsAll(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n containsAll(expected);\n return this;\n }", "public static IIntersectInNewLayerParameters createIntersectParameters( \n final ILayer firstLayer, \n final FeatureCollection<SimpleFeatureType, SimpleFeature> featuresInFirstLayer, \n final ILayer secondLayer, \n final FeatureCollection<SimpleFeatureType, SimpleFeature> featuresInSecondLayer, \n final SimpleFeatureType targetFeatureType ) {\n\n \n \n IIntersectInNewLayerParameters params = new IntersectInNewLayerParameters(\n firstLayer, featuresInFirstLayer,\n secondLayer, featuresInSecondLayer,\n targetFeatureType);\n \n return params;\n }", "<K extends Object, V extends Object> Map<K, V> getMap(String mapName);", "@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\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "public static void main(String[] args) {\n\t\tint [] a = {3,4,5,6};\n\t\tint [] b = {1,2,3};\t\n\t\tint [] c = {7,8,9};\t\n\t\tint [] d = {};\n\t\tSystem.out.println(intersection(a,b)); //true\n\t\tSystem.out.println(intersection(b,c)); //false\n\t\tSystem.out.println(intersection(a,c)); //false\n\t\tSystem.out.println(intersection(a,d)); //false\n\t\t}", "public static void main(String[] args) {\n\t\tHashMap<Integer,String> map=new HashMap<Integer,String>();//Creating HashMap \n\t\t map.put(1,\"Mango\"); //Put elements in Map \n\t\t map.put(2,\"Apple\"); \n\t\t map.put(3,\"Banana\"); \n\t\t map.put(4,\"Grapes\"); \n\t\t \n\t\t System.out.println(\"Iterating Hashmap...\"); \n\t\t for(Map.Entry m : map.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t System.out.println(\"*************no duplicate keys*********************\");\n\t\t \n\t\t HashMap<Integer,String> map1=new HashMap<Integer,String>();//Creating HashMap \n\t\t map1.put(1,\"Mango\"); //Put elements in Map \n\t\t map1.put(2,\"Apple\"); \n\t\t map1.put(3,\"Banana\"); \n\t\t map1.put(1,\"Grapes\"); //trying duplicate key \n\t\t \n\t\t System.out.println(\"Iterating Hashmap...\"); \n\t\t for(Map.Entry m : map1.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t System.out.println(\"**********adding elements********************\");\n\t\t \n\t\t HashMap<Integer,String> hm=new HashMap<Integer,String>(); \n\t\t System.out.println(\"Initial list of elements: \"+hm); \n\t\t hm.put(100,\"Amit\"); \n\t\t hm.put(101,\"Vijay\"); \n\t\t hm.put(102,\"Rahul\"); \n\t\t \n\t\t System.out.println(\"After invoking put() method \"); //{}\n\t\t for(Map.Entry m:hm.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t \n\t\t hm.putIfAbsent(103, \"Gaurav\"); \n\t\t System.out.println(\"After invoking putIfAbsent() method \"); \n\t\t for(Map.Entry m:hm.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t HashMap<Integer,String> map2=new HashMap<Integer,String>(); \n\t\t map2.put(104,\"Ravi\"); \n\t\t map2.putAll(hm); \n\t\t System.out.println(\"After invoking putAll() method \"); \n\t\t for(Map.Entry m:map2.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t map2.remove(100);\n\t\t System.out.println(map2);\n\t\t map2.remove(102,\"Rahul\");\n\t\t System.out.println(map2);\n\t\t System.out.println(\"**********replace elements********************\");\n\t\t map2.replace(103, \"rupom\");\n\t\t System.out.println(map2);\n\t\t map2.replace(101, \"Vijay\", \"roy\");\n\t\t System.out.println(map2);\n\t\t \n\t\t\t \n\t\t \n\n\t\t \n\t\t \n\n\t}", "public int[] intersect(int[] nums1, int[] nums2) {\n int i = 0, j =0;\n int len1 = nums1.length;\n int len2 = nums2.length;\n\n List<Integer> output = new ArrayList<>();\n\n while(i < len1 && j < len2) {\n if(nums1[i] > nums1[j]) {\n j++;\n } else if (nums1[i] < nums1[j]) {\n i++;\n } else {\n output.add(nums1[i]);\n i++;\n j++;\n }\n }\n return output.stream().mapToInt(Integer:: intValue).toArray();\n }", "public static void main(String[] args) {\n\t\tInteger[] firstArray = {0,2,4,6,8};\n\t Integer[] secondArray = {1,3,10,4,7,8,9};\n\t \n\t intersectionUsingSet(firstArray, secondArray);\n\n\t System.out.println();\n\t \n\t // Array with duplicate elements in the array\n\t Integer[] firstArray1 = {0,2,2,4,6,6,8};\n\t Integer[] secondArray2 = {1,3,10,10,4,7,8,9};\n\t \n\t intersectionUsingSet(firstArray1, secondArray2);\n\t}", "public static MyLinkedList getIntersection(MyLinkedList list1, MyLinkedList list2)\n {\n HashSet<Integer> set = new HashSet<>();\n Node temp = list1.getStart();\n while(temp != null)\n {\n set.add(temp.key);\n temp = temp.next;\n }\n\n temp = list2.getStart();\n MyLinkedList intersection = (temp == null) ? null : new MyLinkedList();\n\n while(temp != null)\n {\n if(set.contains(temp.key))\n {\n Node temp1 = new Node();\n temp1.key = temp.key;\n intersection.addNode(temp1);\n }\n temp = temp.next;\n }\n return intersection;\n }", "Multimap<String, String> intersects(Circle bounds);", "static String intersectionOfBothArrays(final int[] arr1, final int[] arr2) {\n\t\tString res = \"\";\n\t\tfor (int i = 0; i < arr1.length; i++) {\n\t\t\tint count = 0;\n\t\t\tfor (int j = 0; j < arr2.length; j++) {\n\t\t\t\tif (arr1[i] == arr2[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count != 0) {\n\t\t\t\tres += arr1[i] + \" \";\n\t\t\t}\n\t\t}\n\t\treturn res.trim();\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}", "public ArrayList<Integer> intersect(final List<Integer> a, final List<Integer> b) {\n\t ArrayList<Integer> res = new ArrayList<>();\n\t \n\t int i1 = 0, i2 = 0;\n\t while (i1 < a.size() && i2 < b.size()) {\n\t //System.out.println(i1 + \" \" + i2 + \" \" + a.get(i1) + \" \" + b.get(i2));\n\t if (a.get(i1).equals(b.get(i2))) {\n\t res.add(a.get(i1));\n\t i1++;\n\t i2++;\n\t } else if (a.get(i1) < b.get(i2)) {\n\t i1++;\n\t } else if (a.get(i1) > b.get(i2)) {\n\t i2++;\n\t }\n\t }\n\t \n\t return res;\n\t}", "public static void intersectionUsingSet(Integer[] firstArray, Integer[] secondArray)\n\t{\n\t LinkedHashSet<Integer> set = new LinkedHashSet<Integer>();\n\t \n\t set.addAll(Arrays.asList(firstArray));\n\t \n\t set.retainAll(Arrays.asList(secondArray));\n\t \n\t Integer[] intersectionArray = set.toArray(new Integer[set.size()]);\n\t \n\t System.out.println(\"Intersection of two arrays using set is : \");\n\t \n\t for(int i=0; i<intersectionArray.length; i++)\n\t {\n\t \tSystem.out.print(intersectionArray[i]+\" \");\n\t }\n\t}", "public int[] intersect(int[] nums1, int[] nums2) {\n Arrays.parallelSort(nums1);\n Arrays.parallelSort(nums2);\n\n List<Integer> intersect = nums1.length < nums2.length ?\n intersectSorted(nums2, nums1) : intersectSorted(nums1, nums2);\n\n return intersect.stream().mapToInt(e -> e).toArray();\n }", "public PostingsList intersect(PostingsList l1, PostingsList l2){\n\n PostingsList intersection = new PostingsList();\n\n // Counters to iterate docIDs\n int count1 = 0;\n int count2 = 0;\n\n // First posting\n PostingsEntry p1 = l1.get(0);\n PostingsEntry p2 = l2.get(0);\n\n while(true){\n // Match - EUREKA! //\n if (p1.docID == p2.docID){\n // Add match\n intersection.insert(p1.docID);\n // Increase counters\n count1++;\n count2++;\n // Go to next postings (check for nullpointer)\n if (count1<l1.size() && count2<l2.size()){\n p1 = l1.get(count1);\n p2 = l2.get(count2);\n }\n else\n break;\n }\n // No match\n else if (p1.docID < p2.docID){\n count1++;\n if (count1<l1.size())\n p1 = l1.get(count1);\n else\n break;\n }\n // No match\n else{\n count2++;\n if (count2<l2.size())\n p2 = l2.get(count2);\n else\n break;\n }\n }\n\n return intersection;\n }", "public boolean equal (MapIterator other)\n {\n if(this.MapItr.element.Key == other.MapItr.element.Key)//*****Value or Key?\n return true;\n \n else\n return false;\n }", "public static Map invertedMapFrom(Map source) {\r\n\t\tMap map = new HashMap(source.size());\r\n\t\tIterator iter = source.entrySet().iterator();\r\n\t\tEntry entry;\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tentry = (Entry)iter.next();\r\n\t\t\tmap.put(entry.getValue(), entry.getKey());\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "private static boolean intersect(\n\t\tDateTime start1, DateTime end1,\n\t\tDateTime start2, DateTime end2)\n\t{\n\t\tif (DateTime.op_LessThanOrEqual(end2, start1) || DateTime.op_LessThanOrEqual(end1, start2))\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public static <K, V> Map<K, V> createMap(K key1, V value1, K key2, V value2, K key3, V value3) {\n\t\tMap<K, V> map = new HashMap<K, V>();\n\t\tmap.put(key1, value1);\n\t\tmap.put(key2, value2);\n\t\tmap.put(key3, value3);\n\t\treturn map;\n\t}", "public static List<String> compareValueWithKeyValMap(Map.Entry<String,String> valueSet, Map<String,String> with_key_values){\n return with_key_values.entrySet().stream().filter(keyVal -> keyVal.getValue().equalsIgnoreCase(valueSet.getKey()))\n .map(keyVal -> keyVal.getKey().concat(\"=\").concat(valueSet.getValue()))\n .collect(Collectors.toList());\n }", "public static MapConfiguration merge(Configuration ... configs) {\n MapConfiguration mergedConfig = new MapConfiguration();\n for (Configuration c : configs) {\n for (String key : c.getKeys()) {\n if (!mergedConfig.containsKey(key)) {\n mergedConfig.setProperty(key, c.getProperty(key));\n }\n }\n }\n return mergedConfig;\n }", "static void prediacteDiffHelper(HashMap<String, ArrayList<String>> first, \n\t\t\t\t\t\t\t\t\t\t\t\t\t HashMap<String, ArrayList<String>> second, Role role,\n\t\t\t\t\t\t\t\t\t\t\t\t\t HashMap<String, ActionRoles> output) {\n\t\tHashMap<String, ArrayList<String>> copy = new HashMap<>();\n\t\tfor (Entry<String, ArrayList<String>> entry : second.entrySet()) {\n\t\t\tcopy.put(entry.getKey(), new ArrayList<String>(entry.getValue()));\n\t\t}\n\t\tSet<String> actions = first.keySet();\n\t\tfor (String action : actions) {\n\t\t\tArrayList<String> firstPredicates = first.get(action);\n\t\t\tArrayList<String> secondPredicates = copy.get(action);\n\t\t\t// find the difference\n\t\t\tsecondPredicates.removeAll(firstPredicates);\n\t\t\t// update the HashMap\n\t\t\tfor (String predicate: secondPredicates) {\n\t\t\t\tif (output.get(predicate) == null) {\n\t\t\t\t\toutput.put(predicate, new ActionRoles());\n\t\t\t\t}\n\t\t\t\toutput.get(predicate).add(action, role);\n\t\t\t}\n\t\t}\n\t}", "protected abstract Map<String, Object> _getMulti(Set<String> keys);", "private double intersection(HardClustering hard1, int comm1,\n HardClustering hard2, int comm2) {\n final TIntArrayList duplicate = new TIntArrayList(hard1.members(comm1));\n duplicate.retainAll(hard2.members(comm2));\n\n return duplicate.size();\n }", "public void sensibleMatches2() \n { \n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection ;\n\n for (String eachClient : clientMap.keySet()) \n {\n if (!eachClient.equals(\"Hal\")) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString);\n }\n }\n }", "public static Map<String, Set<String>> collectStringMapByValue(Map<String, String> aToB) {\n\t\t// The reversed list to return\n\t\tMap<String, Set<String>> bToAList = new HashMap<>();\n\n\t\t// Fore every entry in the input map\n\t\tfor (Entry<String, String> entry : aToB.entrySet()) {\n\t\t\t// Get the value\n\t\t\tString b = entry.getValue();\n\t\t\t// Check if the value is already a key.\n\t\t\tif (!bToAList.containsKey(b)) {\n\t\t\t\t// If not add it as a key to a hashset (there can be more than one key for this\n\t\t\t\t// value)\n\t\t\t\tbToAList.put(b, new HashSet<>());\n\t\t\t}\n\t\t\t// Add the key to the set\n\t\t\tbToAList.get(b).add(entry.getKey());\n\t\t}\n\n\t\treturn bToAList;\n\t}", "public Map<String, Object> getResult(List<String> keys, List<Object> values) throws Exception {\n if (keys.size() != values.size()) {\n throw new Exception(\"keys and values must be the same size\");\n }\n Map<String, Object> mapResult = new HashMap<>();\n for (int i = 0; i < keys.size(); i++) {\n mapResult.put(keys.get(i), values.get(i));\n }\n return mapResult;\n }", "public MapAssertion<K, V> containsAll(final K expectedKey1, final V expectedValue1) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n containsAll(expected);\n return this;\n }", "@SafeVarargs\n public static <K, V> Map<K, V> mapOf(Map.Entry<K, V>... entries) {\n Map<K, V> map = new LinkedHashMap<>();\n\n for (Map.Entry<K, V> entry : entries) {\n map.put(entry.getKey(), entry.getValue());\n }\n\n return java.util.Collections.unmodifiableMap(map);\n }", "public static <E> boolean intersects(Set<E> a, Set<E> b) {\n if (!(a.size() < b.size())) {\n // The documentation for Sets.intersection() suggests that it's best that the first set be smaller.\n // Hopefully they actually tested that! :D\n // (Could just use that. But, uh, this code is already written...)\n Set<E> c = a;\n a = b;\n b = c;\n }\n for (E e : a) {\n if (b.contains(e)) return true;\n }\n return false;\n }", "public static ArrayList<Integer> intersection(int[] l1, int[] l2) {\n //use a hashset to get intersection\n Set<Integer> set = new HashSet<>();\n\n ArrayList<Integer> intersection = new ArrayList<>();\n\n\n int[] smaller = l1.length <= l2.length ? l1 : l2;\n int[] larger = l1.length > l2.length ? l1 : l2;\n\n //iterate through smaller first to avoid adding all elements of larger in the set\n for (int i = 0; i < smaller.length; i++) {\n if (!set.contains(smaller[i])) { set.add(smaller[i]); }\n }\n\n //iterate through second array and find intersection\n for (int i = 0; i < larger.length; i++) {\n if (set.contains(larger[i])) {\n intersection.add(larger[i]);\n set.remove(larger[i]);\n }\n }\n\n return intersection;\n\n //runs in O(n) time and uses up to O(y) space, where y is the length of smallest array.\n\n //can we improve the space complexity? we can iterate by values together using a while loop and\n\n }", "private double intersect(double start0, double end0, double start1, double end1)\n {\n double length = Double.min(end0, end1) - Double.max(start0, start1);\n return Double.min(Double.max(0, length), 1.0);\n }", "public MapAssertion<K, V> containsExactly(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n containsExactly(expected);\n return this;\n }", "public HashMap<String, ActionRoles> predicateDiff(Predicates other) {\n\t\t// finds the difference between first and second, returns results\n\t\tHashMap<String, ActionRoles> diff = new HashMap<>();\n\t\tprediacteDiffHelper(this.preconditions, other.preconditions, Role.PRECONDITION, diff);\n\t\tprediacteDiffHelper(this.addEffects, other.addEffects,Role.ADD_EFFECT, diff);\n\t\tprediacteDiffHelper(this.delEffects, other.delEffects, Role.DELETE_EFFECT, diff);\n\t\treturn diff;\n\t}" ]
[ "0.62267846", "0.59100175", "0.5639089", "0.5594736", "0.5592611", "0.5500843", "0.54057115", "0.5402703", "0.53827053", "0.5369979", "0.5356696", "0.5354159", "0.53221935", "0.50875545", "0.5085103", "0.5064973", "0.49147147", "0.49125537", "0.48737168", "0.48734376", "0.48147675", "0.48026523", "0.4802391", "0.47803324", "0.47676507", "0.47622955", "0.47466627", "0.4738668", "0.4738501", "0.47095674", "0.47005403", "0.46976134", "0.46970132", "0.4695715", "0.46956924", "0.4679446", "0.46778128", "0.46750042", "0.46508786", "0.46503165", "0.46454018", "0.4645272", "0.46276173", "0.46275407", "0.4618296", "0.4597983", "0.45758796", "0.45617807", "0.45419383", "0.4512298", "0.45098576", "0.45093077", "0.4507355", "0.45049888", "0.45017427", "0.44987836", "0.44692808", "0.44576406", "0.44568485", "0.44050837", "0.43956324", "0.43941578", "0.43880853", "0.43753362", "0.43654048", "0.43623343", "0.43591505", "0.43583453", "0.434852", "0.43424028", "0.43422154", "0.43379247", "0.43364298", "0.43347976", "0.43342087", "0.43259645", "0.43257117", "0.4324838", "0.4321862", "0.43070978", "0.4303144", "0.42905292", "0.42773739", "0.42749456", "0.4271775", "0.42659813", "0.42649677", "0.4245673", "0.42242074", "0.42207935", "0.42194772", "0.42184654", "0.4213466", "0.42133445", "0.4212377", "0.42095262", "0.42069134", "0.42011374", "0.42002678", "0.41995874" ]
0.7421478
0
Constructs an attribute info object
public AttribInfo(){ m_deprecated = false; m_hidden = false; m_multipleSelection = false; m_attributeValues = null; m_attributeValueMap = null; m_description = null; m_labelName = null; m_defaultValue = null; m_propertyMapKeyName = null; m_mapComponentClassName = null; m_preferredType = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Attribute createAttribute();", "Attribute createAttribute();", "protected abstract void createAttributes();", "public XmlAttributeInfo (String name)\r\n {\r\n this(name,XmlSpecialForm.value());\r\n }", "public XmlAttributeInfo (String name, XmlSpecialForm form)\r\n {\r\n _name = name;\r\n _value = new XmlTextInfo(form);\r\n }", "public XmlAttributeInfo (String name,\r\n\t\t\t int child,\r\n\t\t\t IntArrayList path,\r\n\t\t\t String attribute)\r\n {\r\n _name = name;\r\n _value = new XmlTextInfo(child,path,attribute);\r\n }", "TAttribute createTAttribute();", "public XmlAttributeInfo (String name,\r\n\t\t\t int child,\r\n\t\t\t int[] path,\r\n\t\t\t String attribute)\r\n {\r\n _name = name;\r\n _value = new XmlTextInfo(child,path,attribute);\r\n }", "public AttributeInfo getAttributeInfo() {\r\n\r\n String newAttrName = this.nameTextField.getText();\r\n\r\n if (newAttrName == null || newAttrName.length() == 0) {\r\n newAttrName = \"NEW_ATTRIBUTE\";\r\n }\r\n\r\n AttributeInfo attrInfo = new AttributeInfo((AttributeType) this.typeDropDown.getSelectedItem(), newAttrName);\r\n\r\n if (this.needDefaultValue) {\r\n attrInfo.setNullValue(this.getDefaultValue());\r\n }\r\n\r\n return attrInfo;\r\n }", "private Attribute createAttribute() {\n\t\t\tAttribute att = AttributeFactory.createAttribute(getName(), getValueType());\n\t\t\tatt.getAnnotations().clear();\n\t\t\tatt.getAnnotations().putAll(getAnnotations());\n\t\t\tattribute = att;\n\t\t\treturn att;\n\t\t}", "private XmlAttributeInfo (String name, String text, byte kind)\r\n {\r\n _name = name;\r\n switch (kind)\r\n\t{\r\n\tcase _ISATTRIBUTE:\r\n\t // in this case text is an attribute name reference:\r\n\t _value = new XmlTextInfo(text);\r\n\t break;\r\n\r\n\tcase _LITERAL_SYM:\r\n\t // in this case text is a literal string:\r\n\t (_value = new XmlTextInfo()).setText(text);\r\n\t break;\r\n\r\n\tcase _ELT_CONTENT:\r\n\t // in this case text is null and the value is initialized\r\n\t // to an empty XML tree path ...\r\n\t _value = new XmlTextInfo(new XmlTreePath());\r\n\t break;\r\n\t}\r\n }", "Attributes getAttributes();", "public XmlAttributeInfo (String name, XmlTextInfo value)\r\n {\r\n _name = name;\r\n _value = value;\r\n }", "@Function Attr createAttribute(String name);", "public Attr() {\n\t\t\tsuper();\n\t\t}", "AttributeDeclarations createAttributeDeclarations();", "public IdentityInfo(final String name,\n final FieldMemberAndAccessorFactory memberAndAccessorFactory) {\n super(new XSId(), name, memberAndAccessorFactory);\n if (hasNature(XMLInfoNature.class.getName())) {\n XMLInfoNature xmlNature = new XMLInfoNature(this);\n xmlNature.setNodeType(NodeType.ATTRIBUTE);\n }\n }", "static Attribute createAttribute(String name) {\n\t\treturn createAttribute(name, new IntegerFieldWrapper());\n\t}", "IAttributes getAttributes();", "protected Attribute createAttribute(DapAttribute dapattr) {\n return createAttribute(null, dapattr);\n }", "public XmlAttributeInfo (String name, XmlTreePath path)\r\n {\r\n _name = name;\r\n _value = new XmlTextInfo(path);\r\n }", "public Attribute(String title) {\n \t\tthis.title = title;\n \t\tconflictMagnitude = 0;\n \t}", "public Attribute_New(String _name, String _value)\n {\n name = _name;\n\n List singleAttributList = new ArrayList<String>();\n singleAttributList.add(_value);\n\n }", "AtomicDataAttributes createAtomicDataAttributes();", "A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );", "Information createInformation();", "static public XmlAttributeInfo eltXmlAttributeInfo (String name)\r\n {\r\n return new XmlAttributeInfo(name,null,_ELT_CONTENT);\r\n }", "public abstract Map<String, Object> getAttributes();", "public abstract Map getAttributes();", "Map getGenAttributes();", "Atributo createAtributo();", "public ModuleObjectAttributeItem() {}", "AttributeLayout createAttributeLayout();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, String> getAttributes();", "ShipmentAttribute createShipmentAttribute();", "public IRAttribute ( ) {\n\t\tsuper();\n\t}", "public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public Attribute(String name, Type type, int ID, int length){\r\n\t\tthis.name = name;\r\n\t\tthis.type = type;\r\n\t\tthis.ID = ID;\r\n\t\tthis.length = length;\r\n\t\tvalues = new ArrayList();\r\n\t}", "static Attribute createAttribute(String name, Field field) {\n\t\tAttribute attribute = new Attribute(name, field);\n\t\tattribute.setKind(Attribute.NONE);\n\t\tattribute.setPreferenceType(Attribute.GAIN);\n\t\treturn attribute;\n\t}", "protected Attribute createAttribute(Field field) {\n return pkg.add(new Attribute(field));\n }", "public AttributesInfo(NodeInfo parent,\n\tMap<String, String> attrs, String scope, ConditionImpl cond) {\n\t\tthis(parent, attrs, scope, null, cond);\n\t}", "final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public Attribute(String name, int metricFactor, int priority){\n this.name = name;\n this.maxOccurance = 0;\n this.metric = 0.0;\n subGrps = new Vector<SubGroup>();\n this.maxSubGroups = new Vector<SubGroup>();\n this.metricFactor = metricFactor;\n this.priority = priority;\n this.isDominating = true;\n}", "public GetAttributesDefinitionV2() {}", "private void readAttributes() throws IOException, ClassFormatException {\n final int attributes_count = dataInputStream.readUnsignedShort();\n attributes = new Attribute[attributes_count];\n for (int i = 0; i < attributes_count; i++) {\n attributes[i] = Attribute.readAttribute(dataInputStream, constant_pool);\n }\n }", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "private void buildAttributeComponent(\n\t\t\tBuilder classBuilder, \n\t\t\tcom.squareup.javapoet.MethodSpec.Builder constructorBuilder,\n\t\t\tString attrName,\n\t\t\tClassName attrType){\n\t\t// Add an private attr which is build by \"thisField\" to the class\n\t\tFieldSpec field = FieldSpec.builder(attrType, attrName, Modifier.PRIVATE).build();\n\t\tclassBuilder.addField(field);\n\t\t// An attr is always followed by a constructor, a getter and a setter\n\t\t// Add the attr's construct part to the constructor of the class\n\t\tconstructorBuilder.addParameter(attrType, attrName)\n\t\t\t\t\t\t.addModifiers(Modifier.PUBLIC)\n\t\t\t\t\t\t.addStatement(\"this.$N = $N\", attrName, attrName);\n\t\t\n\t\t// generate getter and setter for the attr\n\t\tString capitalizedAttrName = capitalizeFirstLetter(attrName);\n\t\tMethodSpec getter = MethodSpec.methodBuilder(\"get\" + capitalizedAttrName)\n\t\t\t\t.returns(attrType)\n\t\t\t\t.addModifiers(Modifier.PUBLIC)\n\t\t\t\t.addStatement(\"return $N\", attrName).build();\n\t\t\n\t\tMethodSpec setter = MethodSpec.methodBuilder(\"set\" + capitalizedAttrName)\n\t\t\t\t.addModifiers(Modifier.PUBLIC)\n\t\t\t\t.addParameter(attrType, attrName)\n\t\t\t\t.addStatement(\"this.$N = $N\", attrName, attrName).build();\n\t\tclassBuilder.addMethod(setter).addMethod(getter);\n\t\n\t}", "public PDDeviceNAttributes(COSDictionary attributes) {\n/* 53 */ this.dictionary = attributes;\n/* */ }", "@Override\n protected void allocateAttributes() {\n super.allocateAttributes();\n\n owner = new ByteArrayAttribute(Attribute.OWNER);\n acIssuer = new ByteArrayAttribute(Attribute.AC_ISSUER);\n serialNumber = new ByteArrayAttribute(Attribute.SERIAL_NUMBER);\n attrTypes = new ByteArrayAttribute(Attribute.ATTR_TYPES);\n value = new ByteArrayAttribute(Attribute.VALUE);\n\n putAttributesInTable(owner, acIssuer, serialNumber, attrTypes, value);\n }", "private AbstractAttributeMetaInfo getAMI(String fieldName)\r\n\t{\r\n\t AbstractAttributeMetaInfo ami = amiMap.get(fieldName);\r\n\t if (ami == null)\r\n\t {\r\n\t\tfinal Attribute attr = attributes.getAttribute(fieldName);\r\n\t\tif (attr instanceof AttributeCategorical)\r\n\t\t ami = new AttributeCategoricalMetaInfo((AttributeCategorical)attr, attributes, Graph.this);\r\n\t\telse\r\n\t\t ami = new AttributeMetaInfo(attr, attributes, Graph.this);\r\n\t\t \r\n\t\tamiMap.put(fieldName, ami);\r\n\t }\r\n\t return ami;\r\n\t}", "public AttributeDescriptor(Class<?> objectType, int extractionMode, String[] attrInfo)\r\n throws IllegalDescriptorException {\r\n this.extractionMode = extractionMode;\r\n databaseFieldName = attrInfo[FIELDNAME];\r\n revisioning = (attrInfo.length > REVISIONINGFLAG) ?\r\n ! FLAG_IS_NOT_REVISIONED.equals(attrInfo[REVISIONINGFLAG]) : true;\r\n\r\n fieldAccess = new GetterSetterPair(objectType, attrInfo[GETMETHOD], attrInfo[SETMETHOD]);\r\n\r\n Class<?> attributeType = null;\r\n\r\n try {\r\n attributeType = (attrInfo.length > FIELDTYPE && attrInfo[FIELDTYPE] != null) ?\r\n Class.forName(attrInfo[FIELDTYPE]) : fieldAccess.type();\r\n isPrimitive = attributeType.isPrimitive();\r\n databaseGetByIndexMethod =\r\n ResultSetAccess.getIndexAccessMethod(attributeType);\r\n databaseGetByNameMethod =\r\n ResultSetAccess.getAccessMethod(attributeType);\r\n databaseSetMethod =\r\n PreparedStatementAccess.getAccessMethod(attributeType);\r\n }\r\n catch(ClassNotFoundException x) {\r\n throw new IllegalDescriptorException(\"Unknown class \" + attrInfo[FIELDTYPE]);\r\n }\r\n catch(NoSuchMethodException x) {\r\n x.printStackTrace();\r\n throw new IllegalDescriptorException(\"Error in method retrieval for \" +\r\n attributeType.getName() + \"/\" +\r\n attrInfo[GETMETHOD] + \": \" + x.toString());\r\n }\r\n }", "private void buildAttributeComponent(\n\t\t\tBuilder classBuilder, \n\t\t\tcom.squareup.javapoet.MethodSpec.Builder constructorBuilder,\n\t\t\tString attrName,\n\t\t\tClass<?> attrType) {\n\t\t// Add an private attr which is build by \"thisField\" to the class\n\t\tFieldSpec field = FieldSpec.builder(attrType, attrName, Modifier.PRIVATE).build();\n\t\tclassBuilder.addField(field);\n\t\t// An attr is always followed by a constructor, a getter and a setter\n\t\t// Add the attr's construct part to the constructor of the class\n\t\tconstructorBuilder.addParameter(attrType, attrName)\n\t\t\t\t\t\t.addModifiers(Modifier.PUBLIC)\n\t\t\t\t\t\t.addStatement(\"this.$N = $N\", attrName, attrName);\n\t\t\n\t\t// generate getter and setter for the attr\n\t\tString capitalizedAttrName = capitalizeFirstLetter(attrName);\n\t\tMethodSpec getter = MethodSpec.methodBuilder(\"get\" + capitalizedAttrName)\n\t\t\t\t.returns(attrType)\n\t\t\t\t.addModifiers(Modifier.PUBLIC)\n\t\t\t\t.addStatement(\"return $N\", attrName).build();\n\t\t\n\t\tMethodSpec setter = MethodSpec.methodBuilder(\"set\" + capitalizedAttrName)\n\t\t\t\t.addModifiers(Modifier.PUBLIC)\n\t\t\t\t.addParameter(attrType, attrName)\n\t\t\t\t.addStatement(\"this.$N = $N\", attrName, attrName).build();\n\t\tclassBuilder.addMethod(setter).addMethod(getter);\n\n\t}", "public AttributeDescriptorDTO()\n\t{\n\t\tsuper();\n\t}", "public Map<String, String> getAttributes();", "private void createAttributes(String type, String unit, Dataset dataset) throws HDF5Exception\n\t{\n\t\t// One piece of information per attribute, e.g. one for\n\t\t// unit and one for metatype\n\t\tlong[] attrDims = { 1 };\n\t\t// create attribute holding metatype (parameternode or variablenode)\n\t\tif(type != null)\n\t\t{\n\t\t\tif(!type.equals(\"\"))\n\t\t\t{\n\t\t\t\tString[] classValue = { type };\n\t\t\t\tDatatype attrType = new H5Datatype(Datatype.CLASS_STRING, classValue[0].length() + 1, -1, -1);\n\t\t\t\tAttribute attr = new Attribute(\"metatype\", attrType, attrDims);\n\t\t\t\tattr.setValue(classValue);\n\t\t\t\trecordingsH5File.writeAttribute(dataset, attr, false);\n\t\t\t}\n\t\t}\n\n\t\t// create attribute holding unit of measurement\n\t\tif(unit != null)\n\t\t{\n\t\t\tif(!unit.equals(\"\"))\n\t\t\t{\n\t\t\t\tString[] classValue2 = { unit };\n\t\t\t\tDatatype attrType2 = new H5Datatype(Datatype.CLASS_STRING, classValue2[0].length() + 1, -1, -1);\n\t\t\t\tAttribute attr2 = new Attribute(\"unit\", attrType2, attrDims);\n\t\t\t\tattr2.setValue(classValue2);\n\t\t\t\trecordingsH5File.writeAttribute(dataset, attr2, false);\n\t\t\t}\n\t\t}\n\t}", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "public Attribute( Element eleAttr ) {\n strClass = eleAttr.getAttributeValue( \"class\" );\n strAttrName = eleAttr.getAttributeValue( \"name\" );\n strName = Utils.formatAttrName( strAttrName );\n String strDecimal = eleAttr.getAttributeValue( \"decimal\" );\n if( strDecimal != null && strDecimal.length() > 0 ) {\n bDecimal = Byte.parseByte( strDecimal );\n }\n String strLength = eleAttr.getAttributeValue( \"length\" );\n if( strLength != null && strLength.length() > 0 ) {\n lLength = Long.parseLong( strLength );\n }\n strJavaClass = javaClass();\n bID = strClass.equals( \"com.space.core.model.feature.attr.IdType\" );\n bNullable = !Boolean.parseBoolean( eleAttr.getAttributeValue( \"mandatory\" ) );\n String strIndex = eleAttr.getAttributeValue( \"index\" );\n if( strIndex != null ) {\n if( strIndex.equals( \"unique\" ) ) {\n bIndexType = INDEX_UNIQUE;\n } else if( strIndex.equals( \"duplicate\" ) ) {\n bIndexType = INDEX_DUPLICATE;\n }\n }\n }", "public interface Attribute {\n\n /**\n * The id of the attribute. This will be unique for all attributes in a\n * graph. However, if an attribute is removed from the graph, future\n * attributes may (and probably will) reuse this id.\n *\n * @return the id of the attribute.\n */\n public int getId();\n\n /**\n * Sets the id of this attribute.\n *\n * @param id the new id of this attribute.\n */\n public void setId(final int id);\n\n /**\n * Returns the element type that this attribute is associated with.\n *\n * @return the element type that this attribute is associated with.\n */\n public GraphElementType getElementType();\n\n /**\n * Sets the element type of this attribute.\n *\n * @param elementType the new element type of this attribute.\n */\n public void setElementType(final GraphElementType elementType);\n\n /**\n * The type of this attribute.\n * <p>\n * This is a String as returned by\n * {@link au.gov.asd.tac.constellation.graph.attribute.AttributeDescription#getName()}\n * from one of the registered AttributeDescription instances.\n *\n * @return The type of this attribute.\n */\n public String getAttributeType();\n\n /**\n * Sets the type of this attribute.\n *\n * @param attributeType the new type of the attribute.\n */\n public void setAttributeType(final String attributeType);\n\n /**\n * Return the name of the attribute. This name will be unique for all\n * attributes associated with the same element type in a graph. This is the\n * value that is presented to the user in the UI and the most common way in\n * which attributes are looked up in the graph.\n *\n * @return the name of the attribute.\n */\n public String getName();\n\n /**\n * Sets a new name for this attribute.\n *\n * @param name the new name for the attribute.\n * @see Attribute#getName()\n */\n public void setName(final String name);\n\n /**\n * Returns the description of an attribute. The description provides more\n * detailed information about the attribute such as how it is being used or\n * and constraints that should be observed.\n *\n * @return the description of an attribute.\n */\n public String getDescription();\n\n /**\n * Sets a new description of an attribute.\n *\n * @param description the new description of the attribute.\n * @see Attribute#getDescription()\n */\n public void setDescription(final String description);\n\n /**\n * Returns the current default value for this attribute. This is the value\n * that new elements will get when they are created.\n *\n * @return the current default value for this attribute.\n */\n public Object getDefaultValue();\n\n /**\n * Sets the new default value for this attribute. This will not change the\n * values of any existing elements but rather the value that new elements\n * will get given when they are created.\n *\n * @param defaultValue the new default value for the attribute.\n */\n public void setDefaultValue(final Object defaultValue);\n\n /**\n * Returns the class of the attribute description that defines this\n * attribute.\n *\n * @return the class of the attribute description that defines this\n * attribute.\n */\n public Class<? extends AttributeDescription> getDataType();\n\n /**\n * Sets the data type of this attribute.\n *\n * @param dataType the new datatype of this attribute.\n */\n public void setDataType(final Class<? extends AttributeDescription> dataType);\n\n /**\n * Returns the attribute merger for this attribute.\n *\n * @return the attribute merger for this attribute.\n */\n public GraphAttributeMerger getAttributeMerger();\n\n /**\n * Sets the attribute merger for this attribute.\n *\n * @param attributeMerger the attribute merger for this attribute.\n */\n public void setAttributeMerger(final GraphAttributeMerger attributeMerger);\n}", "public AttributeContainer() {\n super();\n }", "public interface IAttributes {\n\n\t/***\n\t * Integer index of the attribute. Should be used with defined public static final int values.\n\t * Chosen because of better extensibility (an enum cannot extend another enum).\n\t * More specific object attribute definitions should extend the ObjectAttributesBase class in order\n\t * to have access to all derived attributes.\n\t * \n\t * @param attribute integer index of attribute\n\t * @return\n\t */\n\tObject getAttribute(int attribute);\n\t\n\tvoid setAttribute(int attribute, Object value);\n}", "protected LPDMODOMAttribute() {\n }", "public Attribute(String attributeName, short htmlVersions, AttrCheck check)\n {\n this.name = attributeName;\n this.versions = htmlVersions;\n this.attrchk = check;\n }", "@Override\n\tpublic void buildAttributes(JDefinedClass cls) {\n\n\t}", "static public XmlAttributeInfo refXmlAttributeInfo (String name, String ref)\r\n {\r\n return new XmlAttributeInfo(name,ref,_ISATTRIBUTE);\r\n }", "public ModelInfo generateInfo() { \n ModelInfo info = new ModelInfo();\n \n // Store basic info\n info.author = Author;\n info.citation = Citation;\n info.description = Description;\n info.property = Property;\n info.training = Model.TrainingStats.NumberTested + \" entries: \" + TrainingSet;\n info.notes = Notes;\n info.trainTime = new SimpleDateFormat(\"dMMMyy HH:mm z\").format(Model.getTrainTime());\n \n // Store units or class names\n if (Model instanceof AbstractClassifier) {\n info.classifier = true;\n info.units = \"\";\n AbstractClassifier clfr = (AbstractClassifier) Model;\n boolean started = false;\n for (String name : clfr.getClassNames()) {\n if (started) {\n info.units += \";\";\n }\n info.units += name;\n started = true;\n }\n } else {\n info.classifier = false;\n info.units = Units;\n }\n \n // Store names of models\n info.dataType = Dataset.printDescription(true);\n info.modelType = Model.printDescription(true);\n \n // Store validation performance data\n info.valMethod = Model.getValidationMethod();\n if (Model.isValidated()) {\n info.valScore = Model.ValidationStats.getStatistics();\n }\n \n return info;\n }", "private static Attribute parseAttribute(String line, int attributeNumber) {\n line = line.trim();\n ArrayList<String> values = new ArrayList<>();\n\n int space1 = line.indexOf(\" \");\n int space2 = line.indexOf(\" \", space1 + 1);\n\n String attributename = line.substring(space1 + 1, space2);\n String symbol = line.substring(space2 + 1);\n\n symbol = symbol.replace(\"{\", \"\");\n symbol = symbol.replace(\"}\", \"\");\n symbol = symbol.replace(\" \", \"\");\n\n String[] tmpValues = symbol.split(\",\");\n\n for (int i = 0; i < tmpValues.length; i++) {\n values.add(tmpValues[i]);\n }\n\n Attribute attribute = new Attribute(attributename, values, attributeNumber);\n return attribute;\n\n }", "public abstract ImportAttributes getAttributes();", "public AttributeField(Field field){\n this.field = field;\n }", "@GET\r\n\t@Path(\"/imageattribs\")\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic ImageAttribute getAttribute() {\r\n\t\tString directoryPath = ROOT_PATH_ON_MAC + \"/\" + AuxiliaryHelper.loadServerProperties().getProperty(\"image.folder\") + \"/\" ;\r\n\t\tFile folder = new File(directoryPath);\r\n\t\tFile[] files = folder.listFiles();\r\n\t\tString name = \"\";\r\n\t\tlong space = 0l;\r\n\t\tif(files.length > 0) {\r\n\t\t\tname = files[0].getName();\r\n\t\t\tspace = files[0].getTotalSpace();\r\n\t\t}\r\n\t\tImageAttribute imageAttribute = new ImageAttribute();\r\n\t\timageAttribute.setName(name);\r\n\t\timageAttribute.setSize(space);\r\n\t\treturn imageAttribute;\r\n\r\n\t}", "public NodeInfo(String name, String attr, int lo, int hi, int size) {\n this.name = name;\n this.attributes = attr;\n this.lo = lo;\n this.hi = hi;\n this.size = size;\n }", "public Attributes(int n, int m) {\n\t\tnominalAttributes = new Object[n];\n\t\trealValuedAttributes = new double[m];\n\t}", "QuoteAttribute createQuoteAttribute();", "private void readAttribute(final CyAttributes attributes,\n \t\t\tfinal String targetName, final Att curAtt) {\n \n \t\t// check args\n \t\tfinal String dataType = curAtt.getType();\n \t\tif (dataType == null) {\n \t\t\treturn;\n \t\t}\n \n \t\t// null value only ok when type is list or map\n \t\tif (!dataType.equals(LIST_TYPE) && !dataType.equals(MAP_TYPE)\n \t\t\t\t&& curAtt.getValue() == null) {\n \t\t\treturn;\n \t\t}\n \n \t\t// string\n \t\tif (dataType.equals(STRING_TYPE)) {\n \t\t\tattributes.setAttribute(targetName, curAtt.getName(), curAtt\n \t\t\t\t\t.getValue());\n \t\t}\n \t\t// integer\n \t\telse if (dataType.equals(INT_TYPE)) {\n \t\t\tattributes.setAttribute(targetName, curAtt.getName(), new Integer(\n \t\t\t\t\tcurAtt.getValue()));\n \t\t}\n \t\t// float\n \t\telse if (dataType.equals(FLOAT_TYPE)) {\n \t\t\tattributes.setAttribute(targetName, curAtt.getName(), new Double(\n \t\t\t\t\tcurAtt.getValue()));\n \t\t}\n \t\t// boolean\n \t\telse if (dataType.equals(BOOLEAN_TYPE)) {\n \t\t\tattributes.setAttribute(targetName, curAtt.getName(), new Boolean(\n \t\t\t\t\tcurAtt.getValue()));\n \t\t}\n \t\t// list\n \t\telse if (dataType.equals(LIST_TYPE)) {\n \t\t\tfinal ArrayList listAttr = new ArrayList();\n \t\t\tfinal Iterator listIt = curAtt.getContent().iterator();\n \t\t\twhile (listIt.hasNext()) {\n \t\t\t\tfinal Object listItem = listIt.next();\n \t\t\t\tif (listItem != null && listItem.getClass() == AttImpl.class) {\n \t\t\t\t\tfinal Object itemClassObject = createObjectFromAttValue((AttImpl) listItem);\n \t\t\t\t\tif (itemClassObject != null)\n \t\t\t\t\t\tlistAttr.add(itemClassObject);\n \t\t\t\t}\n \t\t\t}\n \t\t\tattributes.setAttributeList(targetName, curAtt.getName(), listAttr);\n \t\t}\n \t\t// map\n \t\telse if (dataType.equals(MAP_TYPE)) {\n \t\t\tfinal HashMap mapAttr = new HashMap();\n \t\t\tfinal Iterator mapIt = curAtt.getContent().iterator();\n \t\t\twhile (mapIt.hasNext()) {\n \t\t\t\tfinal Object mapItem = mapIt.next();\n \t\t\t\tif (mapItem != null && mapItem.getClass() == AttImpl.class) {\n \t\t\t\t\tfinal Object mapClassObject = createObjectFromAttValue((AttImpl) mapItem);\n \t\t\t\t\tif (mapClassObject != null) {\n \t\t\t\t\t\tmapAttr.put(((AttImpl) mapItem).getName(),\n \t\t\t\t\t\t\t\tmapClassObject);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tattributes.setAttributeMap(targetName, curAtt.getName(), mapAttr);\n \t\t}\n \t\t// complex type\n \t\telse if (dataType.equals(COMPLEX_TYPE)) {\n \t\t\tfinal String attributeName = curAtt.getName();\n \t\t\tfinal int numKeys = Integer.valueOf((String) curAtt.getValue())\n \t\t\t\t\t.intValue();\n\t\t\tdefineComplexAttribute(attributeName, attributes, curAtt, null, 0,\n\t\t\t\t\tnumKeys);\n \t\t\tcreateComplexAttribute(attributeName, attributes, targetName,\n \t\t\t\t\tcurAtt, null, 0, numKeys);\n \t\t}\n \t}", "public com.vodafone.global.er.decoupling.binding.request.UsageAttributesType createUsageAttributesType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.UsageAttributesTypeImpl();\n }", "EAttribute createEAttribute();", "private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }", "public AttributeDiscretization() {\n\n }", "static public XmlAttributeInfo literalXmlAttributeInfo (String name, String literal)\r\n {\r\n return new XmlAttributeInfo(name,literal,_LITERAL_SYM);\r\n }", "java.util.Map<java.lang.String, java.lang.String> getAttributesMap();", "@Override\n public BaseAttrInfo getAttrInfo(Long attrId) {\n BaseAttrInfo baseAttrInfo = baseAttrInfoMapper.selectById(attrId);\n // 给 attrValueList 赋值\n baseAttrInfo.setAttrValueList(getAttrValueList(attrId));\n return baseAttrInfo;\n }", "public ProAddAttrRecord() {\n super(ProAddAttr.PRO_ADD_ATTR);\n }", "public CateInfo() {\r\n \tid = -1;\r\n \tname = \"\";\r\n }", "public MemoryEntryInfo createMemoryEntryInfo() {\n\t\tMemoryEntryInfo info = new MemoryEntryInfo(new HashMap<String, Object>(this.info.getProperties()));\n\t\tinfo.getProperties().put(MemoryEntryInfo.FILE_MD5, md5);\n\t\tinfo.getProperties().put(MemoryEntryInfo.FILENAME, fileName);\n\t\tinfo.getProperties().put(MemoryEntryInfo.OFFSET, fileoffs);\n\t\treturn info;\n\t}", "private FastVector getAccInstanceAttributes() {\n Attribute x_mean = new Attribute(\"x-axis mean\");\n Attribute x_var = new Attribute(\"x-axis var\");\n Attribute y_mean = new Attribute(\"y-axis mean\");\n Attribute y_var = new Attribute(\"y-axis var\");\n Attribute z_mean = new Attribute(\"z-axis mean\");\n Attribute z_var = new Attribute(\"z-axis var\");\n\n // Declare the class attribute along with its values\n FastVector fvClassVal = new FastVector(2);\n fvClassVal.addElement(\"none\");\n fvClassVal.addElement(\"tap\");\n Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n // Declare the feature vector\n FastVector fvWekaAttributes = new FastVector(7);\n\n fvWekaAttributes.addElement(x_mean);\n fvWekaAttributes.addElement(x_var);\n fvWekaAttributes.addElement(y_mean);\n fvWekaAttributes.addElement(y_var);\n fvWekaAttributes.addElement(z_mean);\n fvWekaAttributes.addElement(z_var);\n fvWekaAttributes.addElement(classAttribute);\n\n// // Declare the numeric attributes\n// Attribute x_var = new Attribute(\"var_x\");\n// Attribute x_var_delta = new Attribute(\"delta_var_x\");\n// Attribute y_var = new Attribute(\"var_y\");\n// Attribute y_var_delta = new Attribute(\"delta_var_y\");\n// Attribute z_var = new Attribute(\"var_z\");\n// Attribute z_var_delta = new Attribute(\"delta_var_z\");\n//\n// // Declare the class attribute along with its values\n// FastVector fvClassVal = new FastVector(3);\n// fvClassVal.addElement(\"none\");\n// fvClassVal.addElement(\"motion\");\n// fvClassVal.addElement(\"tap\");\n// Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n// // Declare the feature vector\n// FastVector fvWekaAttributes = new FastVector(7);\n//\n// fvWekaAttributes.addElement(x_var);\n// fvWekaAttributes.addElement(x_var_delta);\n// fvWekaAttributes.addElement(y_var);\n// fvWekaAttributes.addElement(y_var_delta);\n// fvWekaAttributes.addElement(z_var);\n// fvWekaAttributes.addElement(z_var_delta);\n// fvWekaAttributes.addElement(classAttribute);\n\n return fvWekaAttributes;\n }", "public Vector getAttributes(boolean create) {\n\treturn attributeFields;\n }", "private List<JCTree> makeAttributeFields(DiagnosticPosition diagPos, List<? extends AttributeInfo> attrInfos) {\n ListBuffer<JCTree> fields = ListBuffer.lb();\n for (AttributeInfo ai : attrInfos) {\n if (ai.needsCloning()) {\n JCVariableDecl var = make.at(diagPos).VarDef(\n make.Modifiers(Flags.PUBLIC | Flags.FINAL | (ai.getFlags() & Flags.STATIC)),\n ai.getName(),\n toJava.makeTypeTree(ai.getMorphedType(), diagPos),\n typeMorpher.makeLocationAttributeVariable(ai.getVMI(), diagPos));\n fields.append(var);\n }\n }\n return fields.toList();\n }", "public J3DAttribute () {}", "private JCVariableDecl makeAttributeListField(DiagnosticPosition diagPos, List<AttributeInfo> attrInfos) {\n ListBuffer<JCExpression> attrs = ListBuffer.lb();\n \n for (AttributeInfo ai : attrInfos) {\n if (ai.needsCloning()) {\n attrs.append(make.at(diagPos).Ident(ai.getName()));\n }\n }\n \n return make.at(diagPos).VarDef(make.Modifiers(Flags.PRIVATE), \n defs.attributesFieldName, \n make.TypeArray( toJava.makeTypeTree(abstractVariableType, diagPos) ), \n make.NewArray(toJava.makeTypeTree(abstractVariableType, diagPos), \n List.<JCExpression>nil(), attrs.toList()));\n }", "public Attributes getAttributes() { return this.attributes; }", "private AttributeTypeHome( )\n {\n }", "Pair<String, String> getAdditionalAttribute();", "com.google.protobuf.ByteString getAttributeBytes();", "public InspectionAttributes() {\n }", "public GoogleUserInfo(Map<String, Object> attributes) {\n this.attributes = attributes;\n }", "public SolutionAttributes(String name, String type, double lbound,double ubound, \n\t\t\tdouble granularity, double rateOfEvolution, double value, String dfault, String flag, String unit){\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tthis.lbound = lbound;\n\t\tthis.ubound = ubound;\n\t\tthis.granularity = granularity;\n\t\tthis.rateOfEvolution = rateOfEvolution;\n\t\tthis.value = value;\n\t\tthis.dfault = dfault;\n\t\tthis.flag = flag;\n\t\tthis.unit = unit;\n\t}" ]
[ "0.74782896", "0.74782896", "0.69643223", "0.6904638", "0.68961406", "0.67545354", "0.6749799", "0.6722072", "0.6632483", "0.66068083", "0.65780866", "0.6489301", "0.64799106", "0.64656276", "0.6455549", "0.6362255", "0.63559043", "0.6325147", "0.6319416", "0.62798876", "0.622317", "0.6164625", "0.61461866", "0.6136208", "0.6097047", "0.6086107", "0.60793304", "0.6062128", "0.60618305", "0.60588586", "0.6057591", "0.6028975", "0.59983474", "0.59894675", "0.59894675", "0.59894675", "0.5953042", "0.59276897", "0.59254915", "0.5913567", "0.58900213", "0.5876285", "0.58732384", "0.5840489", "0.5837333", "0.583432", "0.5831381", "0.58086765", "0.5791196", "0.578555", "0.578555", "0.5771055", "0.5759023", "0.5757855", "0.57495123", "0.5747953", "0.57317996", "0.5725872", "0.572088", "0.5708914", "0.56935924", "0.56846404", "0.5681197", "0.56674755", "0.56650203", "0.56623423", "0.5661978", "0.5660741", "0.56446767", "0.56316453", "0.56201893", "0.56138414", "0.56068873", "0.5606538", "0.5600324", "0.5599396", "0.5596402", "0.5588303", "0.55852616", "0.55789196", "0.55731547", "0.5572387", "0.5567129", "0.55544764", "0.5548902", "0.5539445", "0.5532193", "0.5530421", "0.55233276", "0.5519402", "0.55186033", "0.5508207", "0.5504279", "0.5502289", "0.5497579", "0.54920554", "0.5473596", "0.5467114", "0.5463574", "0.54612374" ]
0.70841855
2
Gets the attribute values
public String[] getAttributeValues() { return m_attributeValues; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ProbeValue> getValues() {\n\treturn attributes;\n }", "public java.util.Collection getAttributes();", "default List<Object> getAttributeValues(T instance) {\n\t\tList<Object> attrValues = new ArrayList<>();\n\t\tfor (Attribute<T, ?> fld : getAttributes()) {\n\t\t\tattrValues.add(fld.getValue(instance));\n\t\t}\n\t\treturn attrValues;\n\t}", "public final String[] getAttributes() {\n return this.attributes;\n }", "ArrayList getAttributes();", "public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}", "Attributes getAttributes();", "public Attribute[] getAttributes()\n {\n return _attrs;\n }", "Map<String, String> getAttributes();", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "@Override\n\tpublic ArrayList<Object> getAttributeList() {\n\t\tArrayList<Object> attributes = new ArrayList<Object>();\n//\t\tattributes.add(\"s2014_age\");\n//\t\tattributes.add(\"s2014_prog_skill\");\n//\t\tattributes.add(\"s2014_uni_yrs\");\n//\t\tattributes.add(\"s2014_os\");\n//\t\tattributes.add(\"s2014_progLangs\");\n//\t\tattributes.add(\"s2014_engSkill\");\n\t\tattributes.add(\"s2014_favAnimal\");\n\t\tattributes.add(\"s2014_MoreMtns\");\n//\t\tattributes.add(\"s2014_winter\");\n\t\tattributes.add(\"s2014_favColor\");\n//\t\tattributes.add(\"s2014_neuralNetwork\");\n//\t\tattributes.add(\"s2014_vectorMachine\");\n//\t\tattributes.add(\"s2014_sql\");\n//\t\tattributes.add(\"s2014_favSQLServ\");\n//\t\tattributes.add(\"s2014_apriori\");\n\t\treturn attributes;\n\t}", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "private List<String> getAttributeValues(final Attribute attribute) {\n\t\tfinal List<String> values = new ArrayList<String>();\n\t\tfor (final XMLObject attributeValue : attribute.getAttributeValues()) {\n\t\t\tfinal Element element = attributeValue.getDOM();\n\t\t\tif (element.hasChildNodes()) {\n\t\t\t final Text text = (Text)element.getFirstChild();\n\t\t\t values.add(text.getData().trim());\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}", "public List<Attribute> getAttributes() {\r\n return attributes;\r\n }", "public Map<String, Object> getAttributeValues()\n\t{\n\t\tMap<String, Object> retval = new TreeMap<>();\n\t\t\n\t\tfor (ClassAttribute attribute : attributes.keySet())\n\t\t{\n\t\t\tretval.put(attribute.shortName, attributes.get(attribute));\n\t\t}\n\t\t\n\t\treturn retval;\n\t}", "AttributeValues getAttributeValues(Constraint constraint, Object context, EAttribute attribute);", "public List<TLAttribute> getAttributes();", "public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}", "public Map<String, String> getAttributes();", "public String[] getRelevantAttributes();", "public String[] getAttributeArray() {\n\t\treturn url.getAttributeArray();\n }", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "public VAttribute[] getAttributes() throws VlException \n {\n return getAttributes(getAttributeNames());\n }", "public final native JsArray<Attribute> getAttributes() /*-{\n\t\t\treturn this.attributes;\n\t\t}-*/;", "@Override\r\n\tpublic ArrayList<Object> getAttributesValues() {\n\t\tArrayList<Object> listValeur = super.getAttributesValues();\r\n\t\tlistValeur.add(nombreMaxPassagers);\r\n\t\treturn listValeur;\r\n\t}", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "IAttributes getAttributes();", "@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}", "public ArrayList<Attribute> getAttributeList(){\n\t\treturn child.getAttributeList();\n\t}", "public Map<String, Set<String>> getAttributes() {\n return attributes;\n }", "public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }", "public List<String> attributes() {\n return this.attributes;\n }", "public Attributes getAttributes() { return this.attributes; }", "public Set<String> getAttributes() {\r\n return attributeMap.keySet();\r\n }", "public ArrayList<Attribute> getAttributeList(){\n\t\t\n\t\treturn(child.getAttributeList());\n\t}", "public ArrayList<Attribute> getAttributeList(){\n\t\t\n\t\treturn(child.getAttributeList());\n\t}", "public List<Attribute> getAttribute() {\n\t if (attribute==null) {\n\t attribute = new ArrayList<>();\n\t }\n\n\t return attribute;\n\t}", "public abstract Map<String, Object> getAttributes();", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public FactAttribute[] getAttribute() {\r\n return localAttribute;\r\n }", "public String[] getAllAttributes() {\n\t\treturn allAttributes;\n\t}", "public List<GenericAttribute> getAttributes() {\n return attributes;\n }", "public BasicAttributesGrammarAccess.ArrayValueElements getArrayValueAccess() {\n\t\treturn gaBasicAttributes.getArrayValueAccess();\n\t}", "public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}", "@Override\n public ArrayList<SCANAttributesXML> getAttributes() {\n return mesoCfgXML.getAttributesData();\n }", "public AttributeValues getAttrValsForOID(int oid) {\n return getAttrValsForOID(oid, null);\n }", "java.util.List<tendermint.abci.EventAttribute> \n getAttributesList();", "public abstract Map getAttributes();", "public List<Attribute> getAttributes() {\n return Collections.unmodifiableList(attributes);\n }", "public String [] getNames () { \n return this.listAttributes(); \n }", "List<Attribute<T, ?>> getAttributes();", "static FastVector attributeValues(Instances instances,Attribute attribute){\n\t\t\t\n\t\tFastVector rvals = new FastVector();\n\n\t\tif (attribute.isNumeric()){\n\t\t\tdouble[] rdouble = instances.attributeToDoubleArray(attribute.index());\n\t\t\tfor(int i = 0;i < rdouble.length;i++){\n\t\t\t\trvals.addElement(rdouble[i]);\n\t\t\t}\n\t\t}else if (attribute.isNominal()){\n\t\t\tfor(int i = 0;i < instances.numInstances();i++){\n\t\t\t\tInstance instance = instances.instance(i);\n\t\t\t\tString value = instance.toString(attribute);\n\t\t\t\trvals.addElement(value);\n\t\t\t}\n\t\t}else if (attribute.isString()){\n\t\t\tfor(int i = 0;i < instances.numInstances();i++){\t\t\n\t\t\t\tInstance instance = instances.instance(i);\n\t\t\t\tString value = instance.stringValue(attribute); \n\t\t\t\trvals.addElement(value);\n\t\t\t}\n\t\t}\n\t\treturn(rvals); \n\t}", "public ConcurrentHashMap<String, Attribute> getAttributes() {\n\t\treturn list;\n\t}", "public java.lang.Integer getAttributes() {\r\n return attributes;\r\n }", "private ArrayList<Attribute> getAttributes() {\n\t\tif (attributes != null && attributes instanceof ArrayList)\n\t\t\treturn ((ArrayList<Attribute>) attributes);\n\t\telse {\n\t\t\tArrayList<Attribute> tmp = new ArrayList<Attribute>();\n\t\t\tif (attributes != null)\n\t\t\t\ttmp.addAll(attributes);\n\t\t\tattributes = tmp;\n\t\t\treturn tmp;\n\t\t}\n\t}", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public Object[] getAttributes() {\n\t\treturn new Object[] {true}; //true for re-init... \n\t}", "public Map getAttributeValueMap() {\n return m_attributeValueMap;\n }", "public List<Attribute<?>> getAttributes() {\r\n\t\treturn Collections.unmodifiableList(attributes);\r\n\t}", "public Vector<HibernateAttribute> getAttributes() {\n\t\treturn attributes;\n\t}", "public WSLAttributeList getAttributes() {return attributes;}", "default List<String> getAttributeNames() {\n\t\treturn getAttributes().stream().map(v -> v.getName()).collect(Collectors.toList());\n\t}", "public Enumeration getAttributes() {\n\t\treturn url.getAttributes();\n }", "public FactAttributes getAttributes() {\r\n return localAttributes;\r\n }", "public ArrayList getAttributeLists() {\n return attributeLists;\n }", "public Map<String, Set<String>> getMapAttrValue() {\n\t\treturn mapAttrValue;\n\t}", "@java.lang.Override\n public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n return attributes_;\n }", "public Map<String, Object> getAttrs();", "public Collection<HbAttributeInternal> attributes();", "public String getAttribute_value() {\n return attribute_value;\n }", "private String getDataAttributes() {\n StringBuilder sb = new StringBuilder();\n\n dataAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "public String[] getValues()\n {\n return values;\n }", "public String[] getAttributeNames()\n {\n return attributeNames;\n }", "@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }", "private String getCustomAttributes() {\n StringBuilder sb = new StringBuilder();\n\n customAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "public List<String> getAttributeNames() {\n\t\treturn new ArrayList<>(attributes.keySet());\n\t}", "public Vector getAttributeFields() {\n\treturn attributeFields;\n }", "@Override\n\tpublic IAttributeValue value() { return value; }", "public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n if (attributesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(attributes_);\n } else {\n return attributesBuilder_.getMessageList();\n }\n }", "@Override\r\n\tpublic Map<String, Object> getAttributes() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic AttributeMap getAttributes() {\n\t\treturn defaultEdgle.getAttributes();\n\t}", "PreferenceEntryValuesAttribute getEntryValues();", "@Override\n public int[] getAttributeIndexToRead()\n {\n java.util.ArrayList<Integer> attributes = new java.util.ArrayList<Integer>();\n //LN is static and read only once.\n if (LogicalName == null || LogicalName.compareTo(\"\") == 0)\n {\n attributes.add(1);\n }\n //ScalerUnit\n if (!isRead(3))\n {\n attributes.add(3);\n }\n //Value\n if (canRead(2))\n {\n attributes.add(2);\n } \n return toIntArray(attributes);\n }", "public Map<String, String> getAttributes() {\n return Collections.unmodifiableMap(attributes);\n }", "@Override\r\n\tpublic List<String> getDomAttributeList() {\r\n\t\tlogger.debug(\"SilktestWebElement|getDomAttributeList\");\r\n\t\treturn getDomElement().getDomAttributeList();\r\n\t}", "public List<Attribute> list() {\n String sql = \"select * from attributes \" +\n \"order by value\";\n List<Attribute> attributes =\n (List<Attribute>) this.getSession().createSQLQuery(sql)\n .addEntity(Attribute.class)\n .list();\n return attributes;\n }", "@java.lang.Override\n public google.maps.fleetengine.v1.VehicleAttribute getAttributes(int index) {\n return attributes_.get(index);\n }", "java.lang.String getAttribute();", "public HashSet<String> getUsefulAttributes() {\n\t\t \n\t\tHashSet<String> attr = new HashSet<>();\n\t\tQuery firstQ = this.rset.get(1); // get first query on rewriting set 'rset'.\n\t\t\n\t\tGrouping gPart = firstQ.getQueryTriple()._1();\n\t attr.addAll(gPart.getUsefulAttributes());\n\t \n\t Measuring mPart = firstQ.getQueryTriple()._2();\n\t attr.addAll(mPart.getMeasuringAttributes());\n\t \n\t\treturn attr;\n\t}", "Iterable<? extends XomNode> attributes();", "public abstract String[] getValues();", "public String getAttributesetarray() {\r\n return attributesetarray;\r\n }", "public Attribute[] getTargetAttributes();", "public List<AttributeDef> getAttributeDefs () {\n return attributeDefs;\n }", "@Override\n public synchronized Set<AttributeType> getAttributes() {\n return attributes = nonNullSet(attributes, AttributeType.class);\n }" ]
[ "0.7870714", "0.7588422", "0.74948263", "0.7483245", "0.7479759", "0.73997194", "0.73695713", "0.7337034", "0.727734", "0.72746754", "0.72282344", "0.72123003", "0.72123003", "0.72123003", "0.7209267", "0.7205637", "0.71978694", "0.7193296", "0.71871954", "0.7176738", "0.7152086", "0.714433", "0.71385986", "0.7103618", "0.7103618", "0.71023744", "0.71023744", "0.70963746", "0.7090655", "0.7090222", "0.708826", "0.7078965", "0.7076295", "0.70491683", "0.7028241", "0.70255697", "0.7020114", "0.6989546", "0.6985818", "0.6975552", "0.6975552", "0.6972954", "0.6963427", "0.69527525", "0.6945643", "0.69379187", "0.6923525", "0.6859052", "0.6858463", "0.6858369", "0.68434703", "0.6810835", "0.68043095", "0.6775801", "0.6744226", "0.6739881", "0.67195755", "0.67037505", "0.670102", "0.66999", "0.66942614", "0.6693862", "0.668615", "0.666217", "0.6647549", "0.6641393", "0.66362345", "0.66155964", "0.6577403", "0.656494", "0.6559997", "0.6525766", "0.6508308", "0.65047455", "0.64768285", "0.6460941", "0.64483654", "0.6442044", "0.64262223", "0.6418551", "0.6400987", "0.63969684", "0.6391139", "0.63870287", "0.63747746", "0.6369178", "0.6366553", "0.6365674", "0.6364043", "0.63583755", "0.6353941", "0.63228", "0.63225555", "0.6318277", "0.6312728", "0.6307851", "0.6307522", "0.62992185", "0.62976485", "0.62934625" ]
0.8272779
0
Sets the attribute values
public void setAttributeValues(String[] attributeValues){ m_attributeValues = attributeValues; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setAttributes(String attributeName, String attributeValue);", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttrib(String name, String value);", "@Override\npublic void setAttributes() {\n\t\n}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInt(int attributeValue);", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "final void setAttributes(int param1, int param2) {\n }", "public void setAttributes(String values) {\n\t\tString[] tokens = values.split(TYPE_DELIMITER);\n\t\tif (tokens.length > 1) {\n\t\t\tsetAttributes(tokens[0], tokens[1]);\n\t\t} else {\n\t\t\tsetNominalAttributes(tokens[0]);\n\t\t\trealValuedAttributes = new double[0];\n\t\t}\n\t}", "public void setAttributes(Attributes atts) {\n _length = atts.getLength();\n if (_length > 0) {\n \n if (_length >= _algorithmData.length) {\n resizeNoCopy();\n }\n \n int index = 0;\n for (int i = 0; i < _length; i++) {\n _data[index++] = atts.getURI(i);\n _data[index++] = atts.getLocalName(i);\n _data[index++] = atts.getQName(i);\n _data[index++] = atts.getType(i);\n _data[index++] = atts.getValue(i);\n index++;\n _toIndex[i] = false;\n _alphabets[i] = null;\n }\n }\n }", "public void setAttribute(String name, Object value);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public Attributes(String values) {\n\t\tsetAttributes(values);\n\t}", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public void setAttribute(FactAttribute[] param) {\r\n\r\n validateAttribute(param);\r\n\r\n localAttributeTracker = true;\r\n\r\n this.localAttribute = param;\r\n }", "protected abstract void setContextAttribute(String name, Object value);", "public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "void setProperty(String attribute, String value);", "public synchronized void setAttributes(final Set<? extends AttributeType> newValues) {\n attributes = copySet(newValues, attributes, AttributeType.class);\n }", "public void setAttribute(Object key, Object value);", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "private void setAttribute(ASTAttrSpecNode attrSpec)\n {\n ASTArraySpecNode arraySpec = attrSpec.getArraySpec();\n ASTAccessSpecNode accessSpec = attrSpec.getAccessSpec();\n \n if (arraySpec != null)\n setArraySpec(arraySpec);\n else if (accessSpec != null)\n setVisibility(accessSpec);\n else if (attrSpec.isParameter())\n setParameter();\n\n // TODO: Intent, etc.\n }", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "@Override\n\tpublic void setAttribute(String name, Object value) {\n super.setAttribute(name, value);\n Enumeration<Figure> k = figures();\n while (k.hasMoreElements())\n k.nextElement().setAttribute(name, value);\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "@Generated\n @Selector(\"setAttributes:\")\n public native void setAttributes(@NUInt long value);", "void setGenAttributeValues(\n String realm, \n String fedId, \n Map idpStdValues, \n String role, \n String location\n ) throws AMConsoleException;", "public abstract void setData(Map attributes, Iterator accessPoints);", "void setAttribute( String attrName, Object value ) throws FileSystemException;", "public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public void setAttribute(Execution exec, String name, Object value);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public void setAttribute(List<Attribute> attribute) {\n\t\tthis.attribute = attribute;\n\t}", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\r\n\t\tsuper.setAttribute(name, value, objectList);\r\n\t\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\r\n\t\t\tif (name.equals(\"x\"))\t\t{ m_pos.setX(val); }\r\n\t\t\tif (name.equals(\"y\"))\t\t{ m_pos.setY(val); }\r\n\t\t\tif (name.equals(\"radius\")) \t{ m_r=val; }\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t\r\n\t}", "void setString(String attributeValue);", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "String attributeToSetter(String name);", "final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}", "void setAttributes(String path, Map<String, Object> newValue) throws IOException;", "public synchronized void setAttributeInstances(final Set<? extends AttributeType> newValues) {\n attributeInstances = copySet(newValues, attributeInstances, AttributeType.class);\n }", "public setAttribute_args(setAttribute_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetOptions()) {\n this.options = new SetAttributeTOptions(other.options);\n }\n }", "void setAttribute(String key, Object value)\n throws ProcessingException;", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "@Override\n\tpublic void setAttributeIndices(String value) {\n\t\t\n\t}", "private void setAllAttributesFromController() {\n obsoData.setSupplier(supplier);\n \n obsoData.setEndOfOrderDate(endOfOrderDate);\n obsoData.setObsolescenceDate(obsolescenceDate);\n \n obsoData.setEndOfSupportDate(endOfSupportDate);\n obsoData.setEndOfProductionDate(endOfProductionDate);\n \n obsoData.setCurrentAction(avlBean.findAttributeValueListById(\n ActionObso.class, actionId));\n obsoData.setMtbf(mtbf);\n \n obsoData.setStrategyKept(avlBean.findAttributeValueListById(\n Strategy.class,\n strategyId));\n obsoData.setContinuityDate(continuityDate);\n \n obsoData.setManufacturerStatus(avlBean.findAttributeValueListById(\n ManufacturerStatus.class, manufacturerStatusId));\n obsoData.setAirbusStatus(avlBean.findAttributeValueListById(\n AirbusStatus.class, airbusStatusId));\n \n obsoData.setLastObsolescenceUpdate(lastObsolescenceUpdate);\n obsoData.setConsultPeriod(avlBean.findAttributeValueListById(\n ConsultPeriod.class, consultPeriodId));\n \n obsoData.setPersonInCharge(personInCharge);\n obsoData.setCommentOnStrategy(comments);\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "private void setAttributes() {\n mAuth = ServerData.getInstance().getMAuth();\n user = ServerData.getInstance().getUser();\n sharedpreferences = getSharedPreferences(GOOGLE_CALENDAR_SHARED_PREFERENCES, Context.MODE_PRIVATE);\n walkingSharedPreferences = getSharedPreferences(ACTUAL_WALK, Context.MODE_PRIVATE);\n\n notificationId = 0;\n requestCode = 0;\n fragmentManager = getSupportFragmentManager();\n\n context = this;\n }", "public void set(Object key, Object value) {\n if(attributes == null)\n attributes = new HashMap<>();\n attributes.put(key, value);\n }", "public void setAttributes (List<GenericAttribute> attributes) {\n this.attributes = attributes;\n }", "private void setValues() {\n //Calls for new assessment\n Assessment assessment = new Assessment();\n //Updates the local db assessmentDao with courseID and assessment ID\n assessment = db.assessmentDao().getAssessment(courseID, assessmentID);\n //Gets the assessment details name\n String name = assessment.getAssessment_name();\n //Gets the assessment details type\n String type = assessment.getAssessment_type();\n //Gets the assessment details status\n String status = assessment.getAssessment_status();\n //Gets the assessment details date\n String dDate = DateFormat.format(\"MM/dd/yyyy\", assessment.getAssessment_due_date()).toString();\n boolean alert1 = assessment.getAssessment_alert();\n //Gets the assessment details alert bar\n String alert = \"Off\";\n if (alert1) {\n alert = \"On\";\n }\n //Sets assessment details Name\n adName.setText(name);\n //Sets assessment details type\n adType.setText(type);\n //Sets assessment details status\n adStatus.setText(status);\n //Sets assessment details due date\n adDueDate.setText(dDate);\n //Sets assessment details alert\n adAlert.setText(alert);\n }", "public void setAttributes(String nominalValues, String realValues) throws IllegalArgumentException {\n\t\tsetNominalAttributes(nominalValues);\n\t\tsetRealValuedAttributes(realValues);\n\t}", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setAttributes(Vector attributes)\n\tthrows SdpException {\n\tthis.attributeFields = attributes;\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttribute(String string, ArrayList<Product> products) {\n\t\t\n\t}", "public final void setAttributes(final String[] newAttributes) {\n this.attributes = newAttributes;\n }", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public boolean setAttributes(Set<String> foundAttributes);", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public final void setAttributes(final String newAttributes) {\n this.attributes = newAttributes.split(\"\\\\|\");\n }", "public void setValue(final List<String> attrValue) {\r\n if (attrValue != null) {\r\n this.value = attrValue;\r\n }\r\n }", "public AttributeList setAttributes(AttributeList attributes) {\n if (attributes == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"AttributeList attributes cannot be null\"),\n \"Cannot invoke a setter of \" + dClassName);\n }\n AttributeList resultList = new AttributeList();\n\n if (attributes.isEmpty())\n return resultList;\n\n for (Iterator i = attributes.iterator(); i.hasNext();) {\n Attribute attr = (Attribute) i.next();\n try {\n setAttribute(attr);\n String name = attr.getName();\n Object value = getAttribute(name); \n resultList.add(new Attribute(name,value));\n } catch(Exception e) {\n e.printStackTrace();\n }\n }\n return resultList;\n }", "public void setValues(List values) {\n/* 115 */ super.setValues(values);\n/* 116 */ for (Iterator<ConfigurableEffect.Value> iter = values.iterator(); iter.hasNext(); ) {\n/* 117 */ ConfigurableEffect.Value value = iter.next();\n/* 118 */ if (value.getName().equals(\"Wavelength\")) {\n/* 119 */ this.wavelength = ((Float)value.getObject()).floatValue(); continue;\n/* 120 */ } if (value.getName().equals(\"Amplitude\")) {\n/* 121 */ this.amplitude = ((Float)value.getObject()).floatValue();\n/* */ }\n/* */ } \n/* */ }", "public void setAttributes(org.xml.sax.Attributes r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void\");\n }", "public void setAttributes(TableAttributes attrs) {\n\tthis.attrs = attrs;\n }", "@Override\n\tpublic void setAttributes(AttributeMap arg0) {\n\t\tdefaultEdgle.setAttributes(arg0);\n\t}", "void setElementValue(SetElementValue cmd);", "public void setAttribute(NameValue a) {\n\t\tattribute = a;\n\t\tattribute.setSeparator(Separators.COLON);\n\t}", "public void setHints(String[] attrHints, String[] attrHintValues) {\n \t\tfAttrHints = attrHints;\n \t\tfAttrHintValues = attrHintValues;\n \t}", "public void setRealValuedAttributes(String values) throws IllegalArgumentException {\n\t\tif (values.isEmpty()) {\n\t\t\trealValuedAttributes = new double[0];\n\t\t\treturn;\n\t\t}\n\t\tString[] tokens = values.split(VALUE_DELIMITER);\n\t\trealValuedAttributes = new double[tokens.length];\n\t\tint i = 0;\n\t\tfor (String t : tokens) {\n\t\t\trealValuedAttributes[i++] = Double.valueOf(t);\n\t\t}\n\t}", "@Override\n\t\tprotected void resetAttribute() {\n\t\t}", "public abstract void set(DataType x, DataType y, DataType z);", "public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "public void setAttributeDefs (List<AttributeDef> attributeDefs) {\n this.attributeDefs = attributeDefs;\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void changeAttrName() {\r\n }", "public void setAttributeFields(Vector a) {\n\tattributeFields = a;\n }", "public void setAttributes(java.lang.Integer attributes) {\r\n this.attributes = attributes;\r\n }", "public void setAttributes(Map<String, String> attributes) {\n if (attributes != null && this.attributes != attributes) {\n this.attributes.putAll(attributes);\n }\n }", "public void set(int index, double value) {\n\t\tattrs.set(index, value);\n\t}", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public void setValues(){\r\n int k=0;\r\n String[] var;\r\n String evar;\r\n \r\n //Set Values \r\n for (int i=0; i<linkVector.size(); i++){\r\n var= (String[]) linkVector.elementAt(i);\r\n evar=var[1];\r\n try { \r\n varContextField= varContextFields[linkIndex[k]]; \r\n switch (linkType[k++]){\r\n case DOUBLE: setValue(evar,varContextField.getDouble(varContextObject)); break;\r\n case ARRAYDOUBLE: setValue(evar,(double[])varContextField.get(varContextObject)); break;\r\n case ARRAYDOUBLE2D: setValue(evar,(double[][])varContextField.get(varContextObject)); break;\r\n case STRING: setValue(evar,(String)varContextField.get(varContextObject)); break; \r\n }\r\n \r\n } catch (java.lang.IllegalAccessException e) {\r\n System.out.println(\"Error Step: setting a value \" + e);\r\n } \r\n } \r\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setAttributes(Map<String, String> attributes){\r\n\t\t\tif (attributes == null){\r\n\t\t\t\tthis.attributes = Collections.emptyMap();\r\n\t\t\t}\r\n\t\t\tthis.attributes = Collections.unmodifiableMap(attributes);\r\n\t\t}", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }", "protected abstract void setValues(double[] values);", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}" ]
[ "0.7503548", "0.7138013", "0.6871436", "0.68381965", "0.6807062", "0.67660874", "0.6728695", "0.6728695", "0.6654602", "0.66510236", "0.6623247", "0.6604495", "0.6573663", "0.65567803", "0.6532954", "0.64799404", "0.64674115", "0.64458865", "0.64214873", "0.6415754", "0.636585", "0.6364464", "0.6308509", "0.63067394", "0.6302675", "0.6284426", "0.6255828", "0.62513053", "0.6249752", "0.6230476", "0.62262285", "0.6211983", "0.6188184", "0.61873084", "0.617292", "0.61693037", "0.61640525", "0.6135548", "0.613458", "0.6120193", "0.6117506", "0.6114476", "0.61141026", "0.6102422", "0.6101335", "0.6100253", "0.61001587", "0.6092532", "0.6074639", "0.60665566", "0.60351986", "0.6018213", "0.60084105", "0.60009986", "0.59944624", "0.5961421", "0.595492", "0.5938559", "0.5936237", "0.5934291", "0.59341085", "0.59330434", "0.59324783", "0.59206533", "0.59202534", "0.5916607", "0.5911879", "0.5910462", "0.5908564", "0.5897923", "0.5896069", "0.5894624", "0.58883214", "0.5887927", "0.588063", "0.58723027", "0.5855895", "0.5844792", "0.58416057", "0.5836427", "0.58361334", "0.5835427", "0.58297676", "0.58205837", "0.58183116", "0.5817742", "0.5817082", "0.58143926", "0.58091074", "0.5804783", "0.5796157", "0.57932776", "0.57889587", "0.57675266", "0.57617974", "0.5757481", "0.5747438", "0.5746859", "0.57444566", "0.57436836" ]
0.71265906
2
Gets the attribute values map
public Map getAttributeValueMap() { return m_attributeValueMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, String> getAttributes();", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public Map<String, Set<String>> getMapAttrValue() {\n\t\treturn mapAttrValue;\n\t}", "public Map<String,Object> getAttributeMap() {\r\n return Maps.newHashMap(attributeMap);\r\n }", "java.util.Map<java.lang.String, java.lang.String> getAttributesMap();", "public abstract Map<String, Object> getAttributes();", "public abstract Map getAttributes();", "Map<String, String> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "public Map<String, Object> getAttributeValues()\n\t{\n\t\tMap<String, Object> retval = new TreeMap<>();\n\t\t\n\t\tfor (ClassAttribute attribute : attributes.keySet())\n\t\t{\n\t\t\tretval.put(attribute.shortName, attributes.get(attribute));\n\t\t}\n\t\t\n\t\treturn retval;\n\t}", "public final Map<String, DomAttr> getAttributesMap() {\n return attributes_;\n }", "public Map<String, Object> getAttributesMap() {\n\t\treturn this.staticAttributes;\n\t}", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}", "public Map<String, Object> getAttrs();", "public Map<String, Set<String>> getAttributes() {\n return attributes;\n }", "public Map<String, String> getAttributes() {\n return Collections.unmodifiableMap(attributes);\n }", "public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}", "@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}", "@Override\n\tpublic Map<String, Object> getAttributeMap() {\n\t\treturn null;\n\t}", "public Map<String, ZAttrHandler> getVarMap() {\r\n if (attrMap==null) attrMap = new ZAttrHandlerMapper(this).map();\r\n return attrMap;\r\n }", "Map getGenAttributes();", "private Map<String, String> toMap(final Attributes atts) {\r\n\t\tfinal Map<String, String> values = Maps.newLinkedHashMap();\r\n\t\t\r\n\t\tfor (int index = 0; index < atts.getLength(); index++) {\r\n\t\t\tvalues.put(atts.getLocalName(index), atts.getValue(index));\r\n\t\t}\r\n\t\t\r\n\t\treturn values;\r\n\t}", "public Set<String> getAttributes() {\r\n return attributeMap.keySet();\r\n }", "public String[] getAttributeValues() {\n return m_attributeValues;\n }", "@Override\r\n\tpublic Map<String, Object> getAttributes() {\n\t\treturn null;\r\n\t}", "public Map<TextAttribute,?> getAttributes(){\n return (Map<TextAttribute,?>)getRequestedAttributes().clone();\n }", "public Map getAttributes() {\n Map common = channel.getAttributes();\n \n if(map == null) {\n map = new HashMap(common);\n }\n return map;\n }", "public Map<String, Object> attributes() {\n Map<String, Object> attributes = new HashMap<String, Object>();\n for (Column column : getColumns()) {\n String name = Strings.camelize(column.getName(), true);\n attributes.put(name, attribute(name));\n }\n return attributes;\n }", "public java.util.Collection getAttributes();", "protected Map<String, String> getElementAttributes() {\n // Preserve order of attributes\n Map<String, String> attrs = new HashMap<>();\n\n if (this.getName() != null) {\n attrs.put(\"name\", this.getName());\n }\n if (this.getValue() != null) {\n attrs.put(\"value\", this.getValue());\n }\n\n return attrs;\n }", "public HashMap<String, String> GetRawAttributes();", "public Map<String, String> getValueData(){\n\t\treturn valueCache;\n\t}", "@Override\n\tpublic AttributeMap getAttributes() {\n\t\treturn defaultEdgle.getAttributes();\n\t}", "BidiMap<String, DictionarySimpleAttribute> getUnmodifiableAttributes() {\n\t\treturn UnmodifiableBidiMap.unmodifiableBidiMap(this.attributes);\n\t}", "public List<ProbeValue> getValues() {\n\treturn attributes;\n }", "public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}", "public final Map<String, Object> getInternalMap() {\n\t\treturn values;\n\t}", "public ConcurrentHashMap<String, Attribute> getAttributes() {\n\t\treturn list;\n\t}", "Attributes getAttributes();", "public final String[] getAttributes() {\n return this.attributes;\n }", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "@Nullable\n public Map<String, Object> getCustomAttributes() {\n return mCustomAttributes;\n }", "public void getOrgUnitAttributeValueMap()\n {\n orgUnitAttributeValueMap = new HashMap<Integer, String>();\n try\n {\n String query = \"SELECT org.organisationunitid, attvalue.value from attributevalue attvalue \" +\n \"INNER JOIN organisationunitattributevalues org ON org.attributevalueid = attvalue.attributevalueid \" + \n \"Where attvalue.attributeid = 1\";\n \n //System.out.println( \"data-set-Query - \" + query );\n SqlRowSet rs = jdbcTemplate.queryForRowSet( query );\n while ( rs.next() )\n {\n Integer orgUnitId = rs.getInt( 1 );\n String orgUnitAttribueValue = rs.getString( 2 );\n \n //System.out.println( orgUnitId + \" : \" + orgUnitAttribueValue );\n \n if ( orgUnitId != null && orgUnitAttribueValue != null )\n {\n orgUnitAttributeValueMap.put( orgUnitId, orgUnitAttribueValue );\n }\n }\n //return orgUnitAttributeValueMap;\n }\n catch ( Exception e )\n {\n throw new RuntimeException( \"Illegal OrgUnitIds \", e );\n }\n }", "AttributeValues getAttributeValues(Constraint constraint, Object context, EAttribute attribute);", "public Map<String, Map<String, String>> getUserAttributes() {\n return m_userAttributes;\n }", "@Override\n public ArrayList<SCANAttributesXML> getAttributes() {\n return mesoCfgXML.getAttributesData();\n }", "ArrayList getAttributes();", "IAttributes getAttributes();", "Map<String, Object> getAttributes(String path) throws IOException;", "public Map getProperties() {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return new HashMap();\n }\n HashMap properties = new HashMap();\n Enumeration enuAttributes = session.getAttributeNames();\n while (enuAttributes.hasMoreElements()) {\n String nextAttribute = (String) enuAttributes.nextElement();\n Object value = session.getAttribute(nextAttribute);\n properties.put(nextAttribute, value);\n }\n return properties;\n }", "public List<Attribute> getAttributes() {\r\n return attributes;\r\n }", "Map getPassThroughAttributes();", "@Override\n\tpublic Map<String, Object> getAttributeMap(int arg0) {\n\t\treturn null;\n\t}", "public Attribute[] getAttributes()\n {\n return _attrs;\n }", "default List<Object> getAttributeValues(T instance) {\n\t\tList<Object> attrValues = new ArrayList<>();\n\t\tfor (Attribute<T, ?> fld : getAttributes()) {\n\t\t\tattrValues.add(fld.getValue(instance));\n\t\t}\n\t\treturn attrValues;\n\t}", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "public Object[] getAttributes() {\n\t\treturn new Object[] {true}; //true for re-init... \n\t}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }", "public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }", "Map<String, IAttribute> getConnectedAttributes();", "public Collection<HbAttributeInternal> attributes();", "public Map getProperties();", "PreferenceEntryValuesAttribute getEntryValues();", "List<Attribute<T, ?>> getAttributes();", "Map<String, ?> attributesWithQuotes() {\n return attributesWithQuotes(true);\n }", "public Map<String, Object> getTagMap();", "@Override\r\n\tpublic ArrayList<Object> getAttributesValues() {\n\t\tArrayList<Object> listValeur = super.getAttributesValues();\r\n\t\tlistValeur.add(nombreMaxPassagers);\r\n\t\treturn listValeur;\r\n\t}", "public Vector<HibernateAttribute> getAttributes() {\n\t\treturn attributes;\n\t}", "private static Map<String,String> getStringAttributes(Node node) {\r\n Map<String,String> ret = new HashMap<String,String>();\r\n \r\n NodeList children = node.getChildNodes();\r\n for (int j = 0; j < children.getLength(); j++) {\r\n Node attr = children.item(j); // an \"attr\" element which is a child\r\n // of the node\r\n if( attr.getNodeName().equals(\"attr\") ) {\r\n String key = getAttribute(attr, \"name\");\r\n NodeList values = attr.getChildNodes(); // a \"string\" element\r\n // which is a child of\r\n // attr\r\n for (int k = 0; k < values.getLength(); k++) {\r\n if (values.item(k).getNodeName().equals(\"string\")) {\r\n Node labelNode = values.item(k).getFirstChild();\r\n if (labelNode != null)\r\n ret.put(key, labelNode.getNodeValue());\r\n }\r\n }\r\n }\r\n }\r\n \r\n return ret;\r\n }", "public String[] getRelevantAttributes();", "@Override\n\tpublic ArrayList<Object> getAttributeList() {\n\t\tArrayList<Object> attributes = new ArrayList<Object>();\n//\t\tattributes.add(\"s2014_age\");\n//\t\tattributes.add(\"s2014_prog_skill\");\n//\t\tattributes.add(\"s2014_uni_yrs\");\n//\t\tattributes.add(\"s2014_os\");\n//\t\tattributes.add(\"s2014_progLangs\");\n//\t\tattributes.add(\"s2014_engSkill\");\n\t\tattributes.add(\"s2014_favAnimal\");\n\t\tattributes.add(\"s2014_MoreMtns\");\n//\t\tattributes.add(\"s2014_winter\");\n\t\tattributes.add(\"s2014_favColor\");\n//\t\tattributes.add(\"s2014_neuralNetwork\");\n//\t\tattributes.add(\"s2014_vectorMachine\");\n//\t\tattributes.add(\"s2014_sql\");\n//\t\tattributes.add(\"s2014_favSQLServ\");\n//\t\tattributes.add(\"s2014_apriori\");\n\t\treturn attributes;\n\t}", "public Attributes[] getAllAttributes() \r\n {\r\n\tfinal Attributes[] array = new Attributes[ntMap.size()];\r\n\tint i=0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t array[i++] = nt.getAttributes();\r\n\treturn array;\r\n }", "public static Map<String, String> getMapping() {\r\n\t\treturn data.get();\r\n\t}", "public AttributeValues getAttrValsForOID(int oid) {\n return getAttrValsForOID(oid, null);\n }", "public static Map<String, String> getAllAttributes(Node aNode) throws BaseException\r\n\t{\r\n\t\tMap<String, String> attributesMap = new HashMap<String, String>();\r\n\t\tif (aNode.hasAttributes())\r\n\t\t{\r\n\t\t\tNamedNodeMap attrList = aNode.getAttributes();\r\n\t\t\tint numAttr = attrList.getLength();\r\n\t\t\tfor (int counter = 0; counter < numAttr; counter++)\r\n\t\t\t{\r\n\t\t\t\tattributesMap.put(attrList.item(counter).getNodeName(), attrList.item(counter).getNodeValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn attributesMap;\r\n\t}", "public Attributes getAttributes() { return this.attributes; }", "public final native JsArray<Attribute> getAttributes() /*-{\n\t\t\treturn this.attributes;\n\t\t}-*/;", "public List<String> attributes() {\n return this.attributes;\n }", "public Map getValues() {\r\n return this.params;\r\n }", "public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}", "public Map<QName, String> getOtherAttributes() {\r\n return otherAttributes;\r\n }", "public Map<String, MongoDbKeyAttributeMapper> getKeyAttributeMap() {\n return keyAttributeMap;\n }", "public Collection values() {\n return map.values();\n }", "public List<Attribute> getAttributes() {\n return Collections.unmodifiableList(attributes);\n }", "Map<String, String> getAttr(NodeKey key);", "public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }", "private Map<String, AttributeInfo> getUserSchemaMap() {\n if (userSchemaMap == null) {\n schema();\n }\n return userSchemaMap;\n }", "public List<TLAttribute> getAttributes();", "public List<Attribute<?>> getAttributes() {\r\n\t\treturn Collections.unmodifiableList(attributes);\r\n\t}", "public Map<QName, String> getOtherAttributes() {\n\t\treturn otherAttributes;\n\t}", "public Map<QName, String> getOtherAttributes() {\n\t\treturn otherAttributes;\n\t}", "public Map<QName, String> getOtherAttributes() {\n\t\treturn otherAttributes;\n\t}", "public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }", "public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }" ]
[ "0.8146013", "0.8115017", "0.8115017", "0.8075765", "0.8000212", "0.79898536", "0.79892135", "0.79789394", "0.79703087", "0.79043245", "0.79043245", "0.79043245", "0.7810331", "0.7661922", "0.7580891", "0.7576498", "0.750571", "0.7477832", "0.74108243", "0.7369104", "0.7338531", "0.7278186", "0.72294426", "0.7215725", "0.71339494", "0.7121991", "0.7081488", "0.70737576", "0.7029439", "0.69772696", "0.6955016", "0.69123363", "0.69027996", "0.6878712", "0.68489933", "0.6813482", "0.6744123", "0.67167795", "0.6659562", "0.66497386", "0.65359104", "0.6534918", "0.65191805", "0.6498469", "0.648741", "0.6466165", "0.6430145", "0.6421299", "0.64027697", "0.6368111", "0.634992", "0.6327268", "0.632382", "0.6319806", "0.63050157", "0.63021785", "0.62926286", "0.6287463", "0.6272146", "0.6271705", "0.6271705", "0.62694335", "0.6259908", "0.6252416", "0.6248526", "0.62269026", "0.62251306", "0.62034583", "0.6202758", "0.6181093", "0.61804795", "0.61753136", "0.6165226", "0.616324", "0.61563325", "0.6146241", "0.61315256", "0.61267406", "0.61180687", "0.6113146", "0.6110381", "0.6107701", "0.6104329", "0.6099462", "0.60885614", "0.6086047", "0.60808975", "0.60748184", "0.6073469", "0.6073376", "0.6068394", "0.60652024", "0.6051794", "0.6043618", "0.6039015", "0.6038337", "0.6038337", "0.6038337", "0.6037047", "0.6037047" ]
0.80680645
4
Sets the attribute values map
public void setAttributeValueMap(Map attributeValueMap){ m_attributeValueMap = attributeValueMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setData(Map attributes, Iterator accessPoints);", "void setAttributes(String attributeName, String attributeValue);", "public void setAttributes(Map<String, String> attributes){\r\n\t\t\tif (attributes == null){\r\n\t\t\t\tthis.attributes = Collections.emptyMap();\r\n\t\t\t}\r\n\t\t\tthis.attributes = Collections.unmodifiableMap(attributes);\r\n\t\t}", "public void setAttributesMap(Map<String, ?> attributes) {\n\t\tif (attributes != null) {\n\t\t\tthis.staticAttributes.putAll(attributes);\n\t\t}\n\t}", "@Override\n\tpublic void setAttributes(AttributeMap arg0) {\n\t\tdefaultEdgle.setAttributes(arg0);\n\t}", "void setGenAttributeValues(\n String realm, \n String fedId, \n Map idpStdValues, \n String role, \n String location\n ) throws AMConsoleException;", "public void setAttributes(Map<String, String> attributes) {\n if (attributes != null && this.attributes != attributes) {\n this.attributes.putAll(attributes);\n }\n }", "void setAttributes(String path, Map<String, Object> newValue) throws IOException;", "public void setAttributeValues(String[] attributeValues){\n m_attributeValues = attributeValues;\n }", "public BladeController setAttrs(Map<String, Object> attrMap) {\n\t\tfor (Map.Entry<String, Object> entry : attrMap.entrySet())\n\t\t\trequest.setAttribute(entry.getKey(), entry.getValue());\n\t\treturn this;\n\t}", "public void set(Object key, Object value) {\n if(attributes == null)\n attributes = new HashMap<>();\n attributes.put(key, value);\n }", "public void setAttribute(Object key, Object value);", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public <T> void putAll(Map<String,T> attr) {\r\n attributeMap.putAll(attr);\r\n fireStateChanged();\r\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public void setUserAttributes(Map<String, Map<String, String>> mUserAttributes) {\n m_userAttributes = mUserAttributes;\n }", "public abstract Map getAttributes();", "public synchronized void setAttributes(final Set<? extends AttributeType> newValues) {\n attributes = copySet(newValues, attributes, AttributeType.class);\n }", "void setMap(Map aMap);", "@Override\npublic void setAttributes() {\n\t\n}", "public void setValues(HashMap<String,String> values) {\n\t }", "public void setAttrib(String name, String value);", "public void setValues(Map map)\n\t\t{\n\t\t\tm_structuredArtifact = map;\n\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}", "public void setKeyAttributeMap(Map<String, MongoDbKeyAttributeMapper> map) {\n keyAttributeMap = map;\n }", "public Attributes(String values) {\n\t\tsetAttributes(values);\n\t}", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public Map getAttributeValueMap() {\n return m_attributeValueMap;\n }", "public void setAttributes(Attributes atts) {\n _length = atts.getLength();\n if (_length > 0) {\n \n if (_length >= _algorithmData.length) {\n resizeNoCopy();\n }\n \n int index = 0;\n for (int i = 0; i < _length; i++) {\n _data[index++] = atts.getURI(i);\n _data[index++] = atts.getLocalName(i);\n _data[index++] = atts.getQName(i);\n _data[index++] = atts.getType(i);\n _data[index++] = atts.getValue(i);\n index++;\n _toIndex[i] = false;\n _alphabets[i] = null;\n }\n }\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public void setIsmap(Boolean ismap) {\n attributes.put(\"ismap\", ismap);\n }", "@Override\n\tpublic Map changeAttributes(Map arg0) {\n\t\treturn defaultEdgle.changeAttributes(arg0);\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void setAttributes(String values) {\n\t\tString[] tokens = values.split(TYPE_DELIMITER);\n\t\tif (tokens.length > 1) {\n\t\t\tsetAttributes(tokens[0], tokens[1]);\n\t\t} else {\n\t\t\tsetNominalAttributes(tokens[0]);\n\t\t\trealValuedAttributes = new double[0];\n\t\t}\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public void setValues(Map<String, Object> values) {\n this.values = values;\n }", "public JbootVoModel set(Map<String, Object> map) {\n super.putAll(map);\n return this;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }", "public abstract Map<String, Object> getAttributes();", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setValues (String values)\n {\n List<Character> valueList = values.chars().mapToObj(c -> (char)c).collect(Collectors.toList());\n for (State state : this.stateMap.values()) {\n state.values(valueList);\n }\n }", "@ZAttr(id=153)\n public Map<String,Object> setGalLdapAttrMap(String[] zimbraGalLdapAttrMap, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalLdapAttrMap, zimbraGalLdapAttrMap);\n return attrs;\n }", "java.util.Map<java.lang.String, java.lang.String> getAttributesMap();", "void setHashMap();", "void setIDPExtAttributeValues(\n String realm, \n String fedId, \n Map idpExtValues,\n String location\n ) throws AMConsoleException;", "void setIDPSTDAttributeValues(\n String entityName,\n Map idpStdValues,\n String realm,\n Map idpExtValues,\n String location\n ) throws AMConsoleException;", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "public synchronized void setAttributeInstances(final Set<? extends AttributeType> newValues) {\n attributeInstances = copySet(newValues, attributeInstances, AttributeType.class);\n }", "final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}", "final void setAttributes(int param1, int param2) {\n }", "@Override\n\tpublic void initializeValues() {\n\n\t}", "public void setAttribute(String key, String value) {\n attributes.put(key, value);\n }", "void setSPExtAttributeValues(\n String realm, \n String fedId, \n Map spExtvalues,\n String location\n ) throws AMConsoleException;", "public void setAttribute(String name, Object value);", "public boolean setAttributes(Set<String> foundAttributes);", "public Map<String,Object> getAttributeMap() {\r\n return Maps.newHashMap(attributeMap);\r\n }", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public Map<String, Set<String>> getMapAttrValue() {\n\t\treturn mapAttrValue;\n\t}", "public void setAllCustomFields(final Map<String,String> value)\n\t{\n\t\tsetAllCustomFields( getSession().getSessionContext(), value );\n\t}", "public Map<String, String> getAttributes();", "public void setMetaData(HashMap pMetaData) ;", "public static void setElementsValues(final Document doc, final Map<String, String> valueMap) throws XMLException {\n\t\tfor(final Entry<String, String> entry : valueMap.entrySet()){\n\t\t\tXMLHelper.setElementValue(doc, entry.getKey(), entry.getValue());\n\t\t}\n\t}", "void setParameters(Map<String, Object> propertyValues);", "private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "Map getGenAttributes();", "public void addAttribute(String key, String value) {\r\n this.mapAttributes.put(key, value);\r\n }", "public void setAll(Map<String, String> values)\r\n/* 360: */ {\r\n/* 361:532 */ for (Map.Entry<String, String> entry : values.entrySet()) {\r\n/* 362:533 */ set((String)entry.getKey(), (String)entry.getValue());\r\n/* 363: */ }\r\n/* 364: */ }", "private void setStyleAttributes(Fig fig, Map<String, String> attributeMap) {\n\n for (Map.Entry<String, String> entry : attributeMap.entrySet()) {\n final String name = entry.getKey();\n final String value = entry.getValue();\n\n if (fig instanceof FigCompartmentBox) {\n FigCompartmentBox fcb = (FigCompartmentBox) fig;\n if (\"operationsVisible\".equals(name)) {\n fcb.showCompartment(Model.getMetaTypes().getOperation(),\n value.equalsIgnoreCase(\"true\"));\n } else if (\"attributesVisible\".equals(name)) {\n fcb.showCompartment(Model.getMetaTypes().getAttribute(),\n value.equalsIgnoreCase(\"true\"));\n } else if (\"enumerationLiteralsVisible\".equals(name)) {\n fcb.showCompartment(Model.getMetaTypes()\n .getEnumerationLiteral(), value\n .equalsIgnoreCase(\"true\"));\n } else if (\"extensionPointVisible\".equals(name)) {\n fcb.showCompartment(Model.getMetaTypes()\n .getExtensionPoint(), value\n .equalsIgnoreCase(\"true\"));\n }\n }\n if (\"stereotypeVisible\".equals(name)) {\n ((StereotypeContainer) fig).setStereotypeVisible(value\n .equalsIgnoreCase(\"true\"));\n } else if (\"visibilityVisible\".equals(name)) {\n ((VisibilityContainer) fig).setVisibilityVisible(value\n .equalsIgnoreCase(\"true\"));\n } else if (\"pathVisible\".equals(name)) {\n ((PathContainer) fig).setPathVisible(value\n .equalsIgnoreCase(\"true\"));\n }\n }\n }", "private void setAttributesIntoStrategy() {\n ResolverStrategy strategy = _resolverStrategy;\n strategy.setProperty(\n ResolverStrategy.PROPERTY_LOAD_PACKAGE_MAPPINGS, \n _loadPackageMappings);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_USE_INTROSPECTION, _useIntrospector);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_MAPPING_LOADER, _mappingLoader);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_INTROSPECTOR, _introspector);\n }", "@Override\n\tpublic void setAttributeIndices(String value) {\n\t\t\n\t}", "public void updateAttributes(Map<String, String> attributes, String accessToken) {\n\t AnonymousAWSCredentials awsCreds = new AnonymousAWSCredentials();\n AWSCognitoIdentityProvider cognitoIdentityProvider = AWSCognitoIdentityProviderClientBuilder\n .standard()\n .withCredentials(new AWSStaticCredentialsProvider(awsCreds))\n .withRegion(Regions.fromName(jwtConfiguration.getREGION()))\n .build();\n UpdateUserAttributesRequest updateAttrRequest = new UpdateUserAttributesRequest();\n updateAttrRequest.setAccessToken(accessToken);\n Set<String> keys = attributes.keySet();\n List<AttributeType> attributeTypeList = new ArrayList<AttributeType>();\n for(String key : keys) {\n \tattributeTypeList.add(createAttributeType(key, attributes.get(key)));\t \t\n }\n updateAttrRequest.setUserAttributes(attributeTypeList);\n cognitoIdentityProvider.updateUserAttributes(updateAttrRequest);\n\t }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "private Map<String, String> toMap(final Attributes atts) {\r\n\t\tfinal Map<String, String> values = Maps.newLinkedHashMap();\r\n\t\t\r\n\t\tfor (int index = 0; index < atts.getLength(); index++) {\r\n\t\t\tvalues.put(atts.getLocalName(index), atts.getValue(index));\r\n\t\t}\r\n\t\t\r\n\t\treturn values;\r\n\t}", "Map<String, String> getAttributes();", "public ValuesInContext( final List<AttributeInContext> attributes, int step ) //throws GeneratorException\r\n\t{\r\n\t\t_values = new HashMap<String, String>();\r\n\t\t_attributeNames = new LinkedList<String>();\r\n\t\t\r\n\t\tfor ( AttributeInContext attrib : attributes ) {\r\n\t\t\t//_values.put ( attrib.getName() , generateValue(attrib, step) ) ;\r\n\t\t\t_values.put ( attrib.getName() , generateJavaLiteralValue(attrib, step) ) ;\r\n\t\t\t\r\n\t\t\t_attributeNames.add( attrib.getName() );\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic Map<String, Object> getAttributeMap() {\n\t\treturn null;\n\t}", "public Pair<String, String> mapAttributeValue(String value);", "void setInt(int attributeValue);", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }", "private void initValues() {\n \n }", "protected void setAttributeCache(ShibbolethResolutionContext resolutionContext, String query, Map<String,BaseAttribute> resolvedAttributes) {\n String principal = resolutionContext.getAttributeRequestContext().getPrincipalName();\n Map<String, Map<String, BaseAttribute>> cache = dataCache.get(principal);\n if (cache == null) {\n cache = new HashMap<String, Map<String, BaseAttribute>>();\n dataCache.put(principal, cache);\n }\n cache.put(query, resolvedAttributes);\n }", "public void setAttribute(String key, Object value)\n {\n final IAttributeEditor editor = editors.get(key);\n if (editor != null)\n {\n editor.setValue(value);\n }\n }", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "protected abstract boolean populateAttributes();", "@Test\n public void testSet() {\n Assert.assertTrue(map.set(\"key-1\", \"value-1\", 10));\n Assert.assertTrue(map.set(\"key-1\", \"value-2\", 10));\n Assert.assertTrue(map.set(\"key-2\", \"value-1\", 10));\n }", "public void setAttributeMapEntry(Integer rangeAttribute,\n\t\t\t\t String domainAttributeName,\n\t\t\t\t ValueMapper mapper) {\n\tif (rangeAttribute != null && domainAttributeName != null\n\t && mapper != null) {\n\t rangeToDomainName.put(rangeAttribute,domainAttributeName);\n\t rangeToValueMapper.put(rangeAttribute,mapper);\n\t}\n }", "public void setHints(String[] attrHints, String[] attrHintValues) {\n \t\tfAttrHints = attrHints;\n \t\tfAttrHintValues = attrHintValues;\n \t}", "public void setAttributes (List<GenericAttribute> attributes) {\n this.attributes = attributes;\n }", "public void addAttributeMap(PropertyMap propMap)\n throws XMLMiddlewareException\n {\n checkState();\n super.addAttributeMap(propMap);\n }", "public final Map<String, DomAttr> getAttributesMap() {\n return attributes_;\n }" ]
[ "0.69667774", "0.6767889", "0.6725697", "0.6683022", "0.66620433", "0.66353196", "0.6556244", "0.65130526", "0.64834344", "0.6470081", "0.63712674", "0.6342982", "0.63289493", "0.61719304", "0.61338097", "0.6132064", "0.60791934", "0.6020743", "0.6000936", "0.59987843", "0.59948283", "0.59835345", "0.5967967", "0.59323883", "0.59224075", "0.59033674", "0.5897434", "0.58861536", "0.5879558", "0.5872042", "0.58683664", "0.5849913", "0.58405924", "0.5836506", "0.5826566", "0.58240616", "0.58207315", "0.58096313", "0.580939", "0.58053046", "0.5805138", "0.57991797", "0.57936907", "0.5780163", "0.5780163", "0.5770551", "0.5763401", "0.57524306", "0.57506996", "0.5747776", "0.57421803", "0.5739162", "0.5733222", "0.5716488", "0.57025343", "0.56944114", "0.5693594", "0.5690912", "0.56902796", "0.5683876", "0.5674138", "0.567355", "0.567355", "0.5667984", "0.5657003", "0.56487566", "0.56354517", "0.56245303", "0.5623661", "0.56121135", "0.5587892", "0.558336", "0.55812246", "0.55658495", "0.55379814", "0.5533301", "0.5531229", "0.5522847", "0.5522515", "0.5511368", "0.5497339", "0.549454", "0.54886234", "0.547905", "0.54784006", "0.5463734", "0.5463734", "0.5463734", "0.5462798", "0.54575276", "0.54560614", "0.54537505", "0.54379874", "0.5430364", "0.54215777", "0.54178685", "0.5411061", "0.5410984", "0.54035556", "0.540208" ]
0.72218466
0
Gets whether this attribute is deprecated
public Boolean isDeprecated() { return m_deprecated; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDeprecated()\n {\n ensureLoaded();\n return m_tblAttribute.contains(ATTR_DEPRECATED);\n }", "public Boolean getDeprecated()\n {\n return deprecated;\n }", "public Boolean getIsDeprecated() {\n return isDeprecated;\n }", "Boolean getDeprecated();", "public boolean isDeprecated()\n {\n if (m_deprecated.equals(\"yes\"))\n return true;\n\n return false;\n }", "public boolean isDeprecated() {\n\n return isDeprecated;\n }", "String getDeprecated();", "default boolean isDeprecated() {\n return false;\n }", "boolean hasDeprecatedHadithNo();", "public void setIsDeprecated(Boolean deprecated) {\n isDeprecated = deprecated;\n }", "public static final int getDeprecated();", "@JsonProperty(\"deprecated\")\n public Deprecated getDeprecated() {\n return deprecated;\n }", "public void setDeprecated(Boolean deprecated){\n m_deprecated = deprecated;\n }", "public static boolean isUsingDeprecatedConfigSettings() {\n return isUsingDeprecatedConfigSettings.get();\n }", "@Deprecated\n public boolean isEnable() {\n return !skip;\n }", "public void setDeprecated(boolean fDeprecated)\n {\n if (fDeprecated)\n {\n addAttribute(ATTR_DEPRECATED);\n }\n else\n {\n removeAttribute(ATTR_DEPRECATED);\n }\n }", "public void setDeprecated( Boolean pDeprecated )\n {\n deprecated = pDeprecated;\n }", "@Deprecated\n\tpublic boolean hasAttribute(String attributeName);", "@Deprecated\n public boolean isRequestCorrect(){\n\treturn true;\n }", "boolean hasDeprecatedBookNo();", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Deprecated\r\n\tpublic boolean isHDCPBurned(){\r\n\t\treturn mFactoryBurnUtil.isHDCPBurned();\r\n\t}", "public boolean isWarning() {\n\t\t\treturn false;\n\t\t}", "@Deprecated\n public static boolean getBooleanAttributeValue(StartElement startElement, String tag) {\n return getBooleanAttributeValue(startElement, tag, false);\n }", "public String getDeprecatedReplacementName()\n {\n return m_deprecatedReplacement;\n }", "@JsonProperty(\"deprecated\")\n public void setDeprecated(Deprecated deprecated) {\n this.deprecated = deprecated;\n }", "@Deprecated\n public boolean estObligatoire(final Element refAttribut) {\n final String presence = refAttribut.getAttribute(\"presence\");\n return(\"obligatoire\".equals(presence));\n }", "boolean isWarnEnabled();", "public boolean getEffdatedOnly()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(EFFDATEDONLY$20);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "public boolean isAttribute() {\n\t\treturn false;\n\t}", "public final boolean isDisabled() {\n return isAttributeDefined(\"disabled\");\n }", "public boolean isDowngrade( )\n {\n return _bDowngrade;\n }", "@Deprecated\n\tpublic boolean isHuman() {\n\t\treturn human;\n\t}", "boolean isDegraded();", "@Deprecated\n public boolean isEnterpriseBoundaryVisible() {\n return enterpriseBoundaryVisible;\n }", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "@Deprecated\n public static boolean cacheDisabled() {\n return false;\n }", "public Integer getIsUseful() {\n return isUseful;\n }", "public abstract boolean hasWarning();", "@Override\n public final boolean hasLandspeedAttribute() {\n return true;\n }", "@Deprecated\n String getName();", "final public boolean isGradientsUsed()\n {\n return ComponentUtils.resolveBoolean(getProperty(GRADIENTS_USED_KEY), true);\n }", "public boolean hasWarning() {\n\t\treturn !fdpVisaAgentBool() || !fdpVisaDirecBool() || !fdpVisaRespBool();\n\t}", "public synchronized Boolean getWarningFlag(String category) {\n return (Boolean)fWarningTable.get(category);\n }", "public boolean getItemState(){\n\t\treturn this.isWarningOn;\n\t}", "public final boolean mo44057f() {\n Boolean b = mo44050b(\"firebase_analytics_collection_deactivated\");\n return b != null && b.booleanValue();\n }", "public boolean isWarningLoggable() {\n return logger.isLoggable(Level.WARNING);\n }", "boolean isAttribute();", "@Override\n public boolean apply(Image input) {\n return !(input.deprecated() != null && input.deprecated().state() != null);\n }", "public boolean isUnstable() {\n return this.unstable;\n }", "public boolean getWarning(@Nonnull Warning w) {\r\n return warnings.contains(w);\r\n }", "public final boolean hasAttribute ()\r\n {\r\n return _value.hasAttribute();\r\n }", "public Boolean getIsDiscourseDataset() {\n return isDiscourseDataset;\n }", "public Boolean hasWarnings() {\n if ((this.hasWarnings == null)) {\n this.hasWarnings = Boolean.valueOf(this.hasIssuesOfSeverity(Severity.WARNING));\n }\n return this.hasWarnings;\n }", "public boolean isSetEffdatedOnly()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(EFFDATEDONLY$20) != null;\r\n }\r\n }", "public String getIsRecommended() {\n return isRecommended;\n }", "public boolean isUpgrade( )\n {\n return _bUpgrade;\n }", "public static boolean isWarnEnabled() {\n\n return debugLogger.isWarnEnabled();\n }", "public boolean isShowToolTip()\n {\n return showToolTip;\n }", "public boolean isDelicious() {\n\t\treturn delicious;\n\t}", "private static /* synthetic */ boolean[] m5631a() {\n boolean[] zArr = f3814a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(-2921565739953886628L, \"android/support/compat/R$styleable\", 2);\n f3814a = probes;\n return probes;\n }", "@Override\n @Deprecated\n public final String toString() {\n return asFormattedString();\n }", "public boolean isWarnEnabled()\n/* */ {\n/* 290 */ return getLogger().isWarnEnabled();\n/* */ }", "@Override\n\tpublic boolean isWarnEnabled() {\n\t\treturn false;\n\t}", "public boolean isDangerous() {\r\n\t\treturn isDangerous;\r\n\t}", "public final Boolean mo44059g() {\n return mo44050b(\"firebase_analytics_collection_enabled\");\n }", "public java.lang.Boolean getMarkAsSsdSupported() {\r\n return markAsSsdSupported;\r\n }", "public PropertySpecBuilder<T> deprecatedName(String deprecatedName)\n {\n Preconditions.checkArgument(this.deprecatedName == null, \"deprecatedName already set\");\n this.deprecatedShortName = deprecatedName;\n this.deprecatedName = prefix + deprecatedName;\n\n return this;\n }", "protected String getFalse() {\n return \"false\";\n }", "@SuppressWarnings(\"restriction\")\n\tpublic boolean getOldValue() {\n\t\treturn invokeWithoutInvocationException(boolean.class, \"getOldValue\");\n\t}", "public boolean getAvailability(){\n return availabile;\n }", "public Boolean getDropCacheOnUpdate() {\r\n return getAttributeAsBoolean(\"dropCacheOnUpdate\");\r\n }", "public boolean isSupportDtd() {\n\t\treturn this.supportDtd;\n\t}", "boolean hasCompatibilityState();", "public boolean getUsageWeighted() {\n return usageWeighted; \n }", "@Deprecated\r\n public String getFont()\r\n {\r\n return this.font;\r\n }", "@Override\r\n\t\tpublic boolean hasAttribute(String name)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public boolean isProvidesLocomotion() {\n\t\treturn providesLocomotion;\n\t}", "protected boolean isTelemetryEnabled() {\n if(!this.telemetryEnabled){\n InternalLogging.warn(TAG, \"Could not track telemetry item, because telemetry \" +\n \"feature is disabled.\");\n }\n return this.telemetryEnabled;\n }", "public boolean isOppsatt() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean getCheckOlderVersion()\n\t{\n\t\treturn false;\n\t}", "public boolean isUpdateDelayed() {\n return (Boolean) getProperty(\"isUpdateDelayed\");\n }", "public boolean getRefuse() {\n return instance.getRefuse();\n }", "private static String deprecationStyle(final JPPFProperty<?> property, final String value) {\n return property.isDeprecated() ? \"<span class=\\\"deprecated\\\">\" + value + \"</span>\" : value;\n }", "public boolean hasWarnings() {\n return !warnings.isEmpty();\n }", "public static boolean has20() {\n return getVersion() >= 20;\n }", "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "@Override\n public boolean isOutdated() {\n return false;\n }", "@ApiModelProperty(value = \"Gets or sets if Legacy Number Format.\")\n public Boolean getLegacyNumberFormat() {\n return legacyNumberFormat;\n }", "public boolean getMustUnderstand();", "boolean isInfoEnabled();", "public final String getWarningString() {\n return warningString;\n }", "final public boolean isTooltipsVisible()\n {\n return ComponentUtils.resolveBoolean(getProperty(TOOLTIPS_VISIBLE_KEY), true);\n }", "public final String getDisabledAttribute() {\n return getAttributeValue(\"disabled\");\n }", "boolean hasFeaturesUsed();", "@Override\n public final boolean hasForfeitAttribute() {\n return true;\n }", "public String getIsNostroUpdateEnabled() {\n return (isNostroUpdateEnabled ? YES : NO);\n }", "public boolean getRefuse() {\n return refuse_;\n }", "public boolean getUseTimings()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(USETIMINGS$22);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "public Boolean getNotHasPermission()\r\n {\r\n return notHasPermission;\r\n }" ]
[ "0.83948505", "0.82519513", "0.81926274", "0.81914437", "0.8082944", "0.7933144", "0.73542446", "0.7111983", "0.6940603", "0.68791443", "0.6738149", "0.6712998", "0.6674336", "0.657795", "0.65472084", "0.6486189", "0.64852643", "0.6314568", "0.6270428", "0.61685234", "0.61187136", "0.599746", "0.5972414", "0.5892266", "0.58066064", "0.5746494", "0.57210976", "0.5718247", "0.5701008", "0.5681938", "0.5678939", "0.56755036", "0.5664274", "0.55780154", "0.55303514", "0.55276954", "0.5506728", "0.5500463", "0.5497805", "0.548173", "0.54547673", "0.54538995", "0.54245985", "0.54231", "0.5411401", "0.5406497", "0.5399035", "0.538848", "0.5380661", "0.5379509", "0.5359775", "0.5351703", "0.5346756", "0.5346518", "0.53349584", "0.5307075", "0.530597", "0.52979934", "0.5285811", "0.52831525", "0.52534324", "0.5249612", "0.5244032", "0.5243359", "0.52433044", "0.5236309", "0.5226948", "0.5217158", "0.52165717", "0.5198561", "0.5197674", "0.519149", "0.5184832", "0.5184079", "0.5182845", "0.5178929", "0.51744425", "0.51584274", "0.5147379", "0.5140167", "0.5132435", "0.5127099", "0.51249623", "0.5114221", "0.51140535", "0.5105341", "0.5098917", "0.509092", "0.50810957", "0.5080657", "0.50769365", "0.5076119", "0.5068198", "0.50680876", "0.50660825", "0.50655013", "0.50594884", "0.50582576", "0.50581235", "0.50539243" ]
0.82306707
2
Sets whether this attribute is deprecated
public void setDeprecated(Boolean deprecated){ m_deprecated = deprecated; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIsDeprecated(Boolean deprecated) {\n isDeprecated = deprecated;\n }", "public void setDeprecated( Boolean pDeprecated )\n {\n deprecated = pDeprecated;\n }", "public void setDeprecated(boolean fDeprecated)\n {\n if (fDeprecated)\n {\n addAttribute(ATTR_DEPRECATED);\n }\n else\n {\n removeAttribute(ATTR_DEPRECATED);\n }\n }", "Boolean getDeprecated();", "public Boolean getDeprecated()\n {\n return deprecated;\n }", "public boolean isDeprecated()\n {\n if (m_deprecated.equals(\"yes\"))\n return true;\n\n return false;\n }", "public Boolean getIsDeprecated() {\n return isDeprecated;\n }", "public Boolean isDeprecated() {\n return m_deprecated;\n }", "public boolean isDeprecated() {\n\n return isDeprecated;\n }", "public boolean isDeprecated()\n {\n ensureLoaded();\n return m_tblAttribute.contains(ATTR_DEPRECATED);\n }", "@JsonProperty(\"deprecated\")\n public void setDeprecated(Deprecated deprecated) {\n this.deprecated = deprecated;\n }", "default boolean isDeprecated() {\n return false;\n }", "String getDeprecated();", "void setDeprecated(Operation operation, Method method);", "@Deprecated\n public boolean isEnable() {\n return !skip;\n }", "@JsonProperty(\"deprecated\")\n public Deprecated getDeprecated() {\n return deprecated;\n }", "public PropertySpecBuilder<T> deprecatedName(String deprecatedName)\n {\n Preconditions.checkArgument(this.deprecatedName == null, \"deprecatedName already set\");\n this.deprecatedShortName = deprecatedName;\n this.deprecatedName = prefix + deprecatedName;\n\n return this;\n }", "@Deprecated\n\tpublic void setBoolean(String fieldname, boolean value) {\n\t\tsetField(fieldname, (value ? \"1\" : \"0\"));\n\t}", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Deprecated\n public void setIsDefault(Boolean isDefault) {\n this.isDefault = isDefault;\n }", "@Deprecated\n public void setEnable(boolean enable) {\n this.skip = !enable;\n }", "public static boolean isUsingDeprecatedConfigSettings() {\n return isUsingDeprecatedConfigSettings.get();\n }", "public void setForua(boolean newValue);", "public static final int getDeprecated();", "boolean hasDeprecatedHadithNo();", "@Deprecated\n public boolean isRequestCorrect(){\n\treturn true;\n }", "@Deprecated // use #maybeWarnOnOptions(ClientState) instead\n public void maybeWarnOnOptions()\n {\n }", "@Deprecated\n\tpublic <K> void setAttribute(String attributeName, K value);", "protected void addDeprecatedPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Bean_deprecated_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_deprecated_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__DEPRECATED,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "private static String deprecationStyle(final JPPFProperty<?> property, final String value) {\n return property.isDeprecated() ? \"<span class=\\\"deprecated\\\">\" + value + \"</span>\" : value;\n }", "@Deprecated\n final Method setter() {\n return this.setter;\n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "@Deprecated\n\tpublic boolean hasAttribute(String attributeName);", "public void setUsageWeighted(boolean aUsageWeighted) {\n usageWeighted = aUsageWeighted; \n }", "@Deprecated\n public void _internalSetVisibility(@Nullable String visibility) {\n this.visibility = visibility;\n }", "public synchronized Boolean setWarningFlag(String category,\n\t\t\t\t\t boolean newFlag) {\n return (Boolean)fWarningTable.put(category, new Boolean(newFlag));\n }", "@Deprecated\n public static boolean cacheDisabled() {\n return false;\n }", "@Override\n\tpublic boolean isWarnEnabled() {\n\t\treturn false;\n\t}", "@Deprecated\n @Override\n public boolean disableNotify(IDragSource source, IDropTarget target, IDataObject data) {\n return false;\n }", "void addDeprecatedHadithNo(Object newDeprecatedHadithNo);", "@Override\n\tpublic void setUgly(boolean newUgly) {\n\t\t\n\t}", "@Deprecated\n\tpublic boolean isHuman() {\n\t\treturn human;\n\t}", "public void setEffdatedOnly(boolean effdatedOnly)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EFFDATEDONLY$20);\r\n }\r\n target.setBooleanValue(effdatedOnly);\r\n }\r\n }", "public static void setProvideFeedback(boolean b){\n\t\tprovideFeedback = b;\t \n\t}", "void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\r\n\tpublic boolean isHDCPBurned(){\r\n\t\treturn mFactoryBurnUtil.isHDCPBurned();\r\n\t}", "public boolean isWarning() {\n\t\t\treturn false;\n\t\t}", "public void setSecure(boolean secure) {\n m_Secure = secure;\n }", "private void setRefuse(boolean value) {\n \n refuse_ = value;\n }", "public synchronized boolean setGenericWarningFlag(boolean newValue) {\n boolean oldValue = fWarningAll;\n fWarningAll = newValue;\n return oldValue;\n }", "public RestClientBuilder setStrictDeprecationMode(boolean strictDeprecationMode) {\n this.strictDeprecationMode = strictDeprecationMode;\n return this;\n }", "public static void hideWarnings() {\n\t\tenableWarn = false;\n\t}", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "@Override\n public boolean isOutdated() {\n return false;\n }", "void setAllowFriendlyFire(boolean allowFriendlyFire);", "@Deprecated\ninterface HasMenuDaoSetter {\n\n /**\n * Sets MenuDao\n * \n * @param dao\n * new MenuDao to be set\n */\n @Deprecated\n void setMenuDao(MenuDao dao);\n\n}", "public void setAchieved(Boolean newValue);", "void setFalseColor(boolean falseColor);", "public String getDeprecatedReplacementName()\n {\n return m_deprecatedReplacement;\n }", "public void setTallied(java.lang.Boolean value);", "@Override\n public final boolean hasLandspeedAttribute() {\n return true;\n }", "@Override\n @Deprecated\n public void configureTableJobProperties(TableDesc tableDesc, Map<String, String> jobProperties) {\n throw new AssertionError(\"Shouldn't be called.\");\n }", "public void setNotVisibleIfNotBlockedAndReplaced() {\n\t\tif (!isBlocked && getReplacementAttribute() == null) {\n\t\t\tthis.isVisible = false;\n\t\t}\n\t}", "@Override\n\tpublic boolean isWarnEnabled(Marker marker) {\n\t\treturn false;\n\t}", "@Deprecated\n public static boolean getBooleanAttributeValue(StartElement startElement, String tag) {\n return getBooleanAttributeValue(startElement, tag, false);\n }", "@Deprecated\n public final void setY(int y){\n this.y = y;\n }", "@Deprecated\n public static boolean startCacheTransaction() {\n return false;\n }", "public void setIsDiscourseDataset(Boolean isDiscourseDataset) {\n this.isDiscourseDataset = isDiscourseDataset;\n }", "boolean hasDeprecatedBookNo();", "public void setDedicatedWriter(boolean value)\n {\n dedicatedWriter = value;\n }", "public void setNotSupplied(final boolean value) {\n this.notSupplied = value;\n }", "public void setSecure(boolean secure)\n {\n this.secure = secure;\n }", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "@Deprecated\n public void setEnterpriseBoundaryVisible(boolean enterpriseBoundaryVisible) {\n this.enterpriseBoundaryVisible = enterpriseBoundaryVisible;\n }", "public final void setDisabled(boolean value)\n {\n myDisabledProperty.set(value);\n }", "@Deprecated\n public boolean estObligatoire(final Element refAttribut) {\n final String presence = refAttribut.getAttribute(\"presence\");\n return(\"obligatoire\".equals(presence));\n }", "@Deprecated\n\t@Override\n\tpublic void setText(String text) {\n\t\tif (!StringUtils.isEmpty(getText())) {\n\t\t\tMsg.warn(this,\n\t\t\t\t\"Trying to set text on an immutable label! Current text: [\" + getText() +\n\t\t\t\t\t\"], new text: [\" + text + \"]\",\n\t\t\t\tReflectionUtilities.createJavaFilteredThrowable());\n\t\t\treturn;\n\t\t}\n\t\tsuper.setText(text);\n\t}", "public final void setDataUsage(java.lang.Boolean datausage)\r\n\t{\r\n\t\tsetDataUsage(getContext(), datausage);\r\n\t}", "BooleanProperty noValueWarningProperty();", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "public boolean setEnabled(boolean enable);", "void setCanSeeFriendlyInvisibles(boolean canSeeFriendlyInvisibles);", "public void setProtection(boolean value);", "public static void attribute(String name, boolean value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public boolean setDangerous() {\r\n\t\tif(!isDangerous && isCovered) {\r\n\t\t\tisDangerous=true;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected void toggleLaser() {\n laserOn = !laserOn;\n }", "void setCredentialsNonExpired(boolean credentialsNonExpired);", "public void buildDeprecationInfo() {\n\t\twriter.writeClassDeprecationInfo();\n\t}", "boolean setOffline(boolean b);", "public void securityOff()\n {\n m_bSecurity = false;\n }", "public static void showWarnings() {\n\t\tenableWarn = true;\n\t}", "@Deprecated\n\tprotected void editablePropertyChanged(PropertyChangeEvent e) {\n\t}", "public final native void toggleAttribute(String name, boolean b, Element node) /*-{ this.toggleAttribute(name, b, node); }-*/;", "public void setIsNegative(String isNegative) {\r\n this.isNegative = isNegative;\r\n }", "@JsonProperty(\"blacklistUnsafeTokens\")\n public void setBlacklistUnsafeTokens(Boolean blacklistUnsafeTokens) {\n this.blacklistUnsafeTokens = blacklistUnsafeTokens;\n }", "@Deprecated\n public boolean isEnterpriseBoundaryVisible() {\n return enterpriseBoundaryVisible;\n }", "@java.lang.Deprecated\n public A withNewReason(java.lang.String arg0);" ]
[ "0.81838405", "0.8076886", "0.7977576", "0.75005907", "0.743885", "0.7295343", "0.72895354", "0.7116907", "0.70118773", "0.6980045", "0.68862635", "0.66831654", "0.63358533", "0.6258132", "0.6180589", "0.6123578", "0.6106345", "0.6082497", "0.59524846", "0.5940644", "0.5756337", "0.5746014", "0.5706884", "0.5688825", "0.56765664", "0.5667069", "0.5622483", "0.5614944", "0.54932123", "0.5452023", "0.54204375", "0.5396043", "0.5377423", "0.5377115", "0.5326819", "0.53112096", "0.5303634", "0.52830267", "0.5271202", "0.5241926", "0.52155244", "0.5213056", "0.520555", "0.51777065", "0.5173579", "0.5143941", "0.51433367", "0.5083649", "0.5076998", "0.50679976", "0.5059911", "0.5046019", "0.5023005", "0.5017314", "0.5014224", "0.50115955", "0.50090224", "0.5005771", "0.50023395", "0.5000673", "0.49925724", "0.4985268", "0.4984601", "0.49707353", "0.49630186", "0.4958166", "0.49434054", "0.49374193", "0.49293396", "0.49107707", "0.49096274", "0.49089456", "0.4895057", "0.4895057", "0.4895057", "0.4895057", "0.48940825", "0.48885727", "0.48871982", "0.48850164", "0.48800358", "0.48762956", "0.48728207", "0.48705456", "0.48614573", "0.48609757", "0.48468667", "0.48437226", "0.48433983", "0.48430166", "0.4841686", "0.4840797", "0.48398563", "0.48377347", "0.48359713", "0.48296162", "0.48276383", "0.48217306", "0.48212746", "0.4821171" ]
0.8233593
0
Gets whether this attribute is hidden
public Boolean isHidden() { return m_hidden; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHiddenAttribute() {\n return hiddenAttribute;\n }", "public boolean isHidden() {\r\n return hidden;\r\n }", "public final boolean isHidden() {\n\t\treturn m_info.isHidden();\n\t}", "public boolean isHidden();", "public boolean isHidden() {\n\t\treturn false;\n\t}", "public boolean isHidden() {\n return false;\n }", "public boolean isShowHidden() {\n\t\treturn showHidden;\n\t}", "public boolean isShowHidden() {\n\t\t\treturn showHidden;\n\t\t}", "public Boolean getHideOnClick () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.hideOnClick);\r\n\t}", "public boolean getIsIshidden() {\n return ishidden;\n }", "public boolean shouldHide() {\n\t\treturn hide;\n\t}", "public boolean isHidden()\n {\n // return hidden state of node associated with\n // menu option if defined\n if (getNode() != null)\n {\n return getNode().isHidden();\n }\n return false;\n }", "public boolean isHidden() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"isHidden()\");\n Via via=(Via)sipHeader;\n return via.isHidden();\n }", "public void setHiddenAttribute(boolean hiddenAttribute) {\n this.hiddenAttribute = hiddenAttribute;\n }", "public Integer getHidden() {\n return hidden;\n }", "public Integer getHidden() {\n return hidden;\n }", "@DataClass.Generated.Member\n public boolean isHiddenUntilInstalled() {\n return hiddenUntilInstalled;\n }", "public final native boolean getShowHidden() /*-{\n return this.getShowHidden();\n }-*/;", "public boolean isHideFields() {\n\t\treturn hideFields;\n\t}", "public native boolean isHidden(GInfoWindow self)/*-{\r\n\t\treturn self.isHidden();\r\n\t}-*/;", "boolean isHiddenFromList();", "public boolean isHiddenFromMenu()\n {\n return m_hideFromMenu;\n }", "public void setHidden(boolean value) {\r\n this.hidden = value;\r\n }", "public boolean getVisible() {\r\n return visible;\r\n }", "public boolean getVisible() {\n\t\treturn visible;\n\t}", "public boolean getVisible() {\n\t\treturn visible;\n\t}", "public boolean isMouseHidden() {\n return mouseHidden.get();\n }", "public boolean hideSetting() {\n return isImageCaptureIntent();\n }", "public boolean getVisibility() {\n return GtkEntry.getVisibility(this);\n }", "public boolean isVisible(){\n\t\treturn this.visible;\n\t}", "public boolean isSetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWNARRATION$18) != null;\n }\n }", "private boolean show(AttributeModel am) {\n\t\t// never show invisible or LOB attributes\n\t\tif (!am.isVisible() || AttributeType.LOB.equals(am.getAttributeType())) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// show multiple value attributes only if they would normally show up in a table\n\t\tif (AttributeType.DETAIL.equals(am.getAttributeType())\n\t\t || AttributeType.ELEMENT_COLLECTION.equals(am.getAttributeType())) {\n\t\t\treturn am.isVisibleInTable();\n\t\t}\n\t\treturn true;\n\t}", "public boolean isAttribute() {\n\t\treturn false;\n\t}", "public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }", "boolean isHiddenNeuron();", "boolean isAttribute();", "public boolean onlyVisible()\n\t{\n\t\treturn visible;\n\t}", "public boolean isPrintHiddenFields()\n\t{\n\t\treturn printHiddenFields;\n\t}", "boolean isVisible() {\r\n return this.isVisible;\r\n }", "public final boolean hasAttribute ()\r\n {\r\n return _value.hasAttribute();\r\n }", "public final boolean isDisabled() {\n return isAttributeDefined(\"disabled\");\n }", "public java.lang.Boolean getIsVisible();", "public boolean isDnAttributes()\n {\n return dnAttributes;\n }", "public boolean isHiddenOnReports() {\n return hiddenOnReports;\n }", "public boolean attributeIsDensityValue ()\n\t{\n\t\n\t\treturn mAttributeTypeDensityButton.isSelected();\n\t\n\t}", "public boolean isVisible() { return _visible; }", "@Override\n public boolean whetherHidden(Where where) {\n return false;\n }", "public void setHidden(Boolean hidden){\n m_hidden = hidden;\n }", "public boolean getShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWNARRATION$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWNARRATION$18);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}", "public boolean isVisible() {\r\n return visible;\r\n }", "public boolean isHideMethods() {\n\t\treturn hideMethods;\n\t}", "public boolean isShowing() {\n return visible;\n }", "public void hide() {\n hidden = true;\n }", "public Boolean getIsShow () {\r\n\t\treturn isShow;\r\n\t}", "public boolean isVisible()\n {\n return visible;\n }", "public void getApHideColumn(){\r\n\t\tString showHide = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(WsrdConstants.HIDESHOWCOLUMN);\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.SHOW_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setApShowHide(WsrdConstants.HIDE_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(true);\r\n\t\t}\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.HIDE_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setApShowHide(WsrdConstants.SHOW_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(false);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public boolean isVisible()\n {\n return visible;\n }", "public Expression getHiddenField() {\n\t\treturn hiddenField;\n\t}", "public boolean isVisible() {\n\t\treturn visible;\n\t}", "public Boolean getIsShow() {\n return isShow;\n }", "public boolean isVisible () {\n return visible;\n }", "boolean hasAttributes();", "boolean hasAttributes();", "public boolean getIsVisible();", "public final boolean isVisible() {\n return visible;\n }", "public boolean isVisible(){\n \t\treturn visible;\n \t}", "@Override\n public int getVisibility() {\n if (hideWhenNoAd && (hasAd() == false)) {\n return GONE;\n } else {\n return super.getVisibility();\n }\n }", "@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}", "public boolean isLabeledFieldEmptyOrHidden() {\n return labeledFieldEmptyOrHidden;\n }", "boolean isCanSeeFriendlyInvisibles();", "public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}", "public void hide() {\n\t\thidden = true;\n\t}", "protected boolean isHidden(int x, int y) {\r\n \treturn !revealed[x][y] && !flag[x][y];\r\n }", "@Contract(pure = true)\r\n public boolean isVisible() {\r\n return visible;\r\n }", "public boolean isVisible(){ return visible; }", "public Boolean getBooleanAttribute();", "public boolean isVisible() {\n\t\treturn true;\n\t}", "public boolean isSetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWANIMATION$20) != null;\n }\n }", "public void setIshidden(boolean ishidden) {\n this.ishidden = ishidden;\n }", "public boolean visible() {\n \treturn model.isVisible();\n }", "public boolean isSetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(DESC$10) != null;\r\n }\r\n }", "@ApiModelProperty(value = \"Whether an event should be hidden from the calendar view or not\")\n public Boolean isHideFromListings() {\n return hideFromListings;\n }", "public boolean hideClosedPorts(){\n return hideClosedP.isSelected();\n }", "public static native boolean _isVisible(Element elem) /*-{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (elem.style.display != 'none');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}-*/;", "public boolean getEffdatedOnly()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(EFFDATEDONLY$20);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "public boolean hasDynamicAttributes();", "public boolean isShown(){\r\n return shown;\r\n }", "public boolean isHiddenValue(long millis) { return !this.timeline.containsDomainValue(new Date(millis)); }", "public boolean isPrivate() {\n return (this.mDisplay.getFlags() & 4) != 0;\n }", "@Override\r\n\tpublic boolean isVisible() {\n\t\treturn false;\r\n\t}", "public boolean isShowDescAsValue()\n\t{\n\t\treturn showDescAsValue;\n\t}", "public boolean getLblVisible() {\n return lblVisible;\n }", "@XmlAttribute\n public Boolean isPrivateSpaceRestricted() {\n return privateSpaceRestricted;\n }", "public boolean isHideNav() {\n return mHideNav;\n }", "public static aVisibility getVisibility()\n {\n read_if_needed_();\n \n return _get_visibility;\n }", "public boolean isVisible() {\n return true;\n }", "boolean isNilAttributeTypeDisplayName();", "public int getVisibility() {\n return visibility;\n }", "final public int getHidden() {\r\n \treturn this.width * this.height - this.squaresRevealed;\r\n }" ]
[ "0.832486", "0.780993", "0.7698545", "0.761349", "0.73382545", "0.73106605", "0.73029137", "0.7253277", "0.7201132", "0.71514654", "0.7055314", "0.70068324", "0.70004755", "0.69048584", "0.6805271", "0.6805271", "0.67876726", "0.6786245", "0.67767924", "0.6749545", "0.66132045", "0.6551971", "0.65070474", "0.65004504", "0.6483391", "0.6483391", "0.64638156", "0.6445746", "0.63615644", "0.6335911", "0.6305151", "0.6284032", "0.6281569", "0.6265351", "0.62548083", "0.6245885", "0.6233455", "0.62174314", "0.62153554", "0.6199271", "0.6190258", "0.6091608", "0.6081852", "0.60761446", "0.6064834", "0.60548323", "0.6048416", "0.6044599", "0.60407114", "0.60251", "0.60212547", "0.6017111", "0.5997549", "0.5994167", "0.5994057", "0.5992223", "0.59833246", "0.59830457", "0.59793925", "0.5973233", "0.5961898", "0.5957181", "0.59488744", "0.59488744", "0.5932099", "0.5922492", "0.5912685", "0.59031403", "0.5882086", "0.58799654", "0.58791274", "0.58616424", "0.5860083", "0.5852201", "0.5841427", "0.5839408", "0.58347744", "0.5831319", "0.58243304", "0.58221257", "0.5806", "0.5799458", "0.5799338", "0.57928365", "0.57915145", "0.57867754", "0.57636726", "0.57525283", "0.57448786", "0.574356", "0.5742633", "0.57315266", "0.5728718", "0.57185763", "0.5718468", "0.5712497", "0.57103384", "0.5702347", "0.57014996", "0.5693507" ]
0.78481466
1
Sets whether this attribute is hidden
public void setHidden(Boolean hidden){ m_hidden = hidden; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHidden(boolean value) {\r\n this.hidden = value;\r\n }", "public void setHiddenAttribute(boolean hiddenAttribute) {\n this.hiddenAttribute = hiddenAttribute;\n }", "public boolean isHiddenAttribute() {\n return hiddenAttribute;\n }", "public void setHidden(boolean arg0) {\n\n\t}", "public void hide() {\n hidden = true;\n }", "public void setIshidden(boolean ishidden) {\n this.ishidden = ishidden;\n }", "public void setHidden(Integer hidden) {\n this.hidden = hidden;\n }", "public void setHidden(Integer hidden) {\n this.hidden = hidden;\n }", "public void setInvisible(boolean b)\n\t{\n\t\t_invisible = b;\n\t}", "public void setHidden(boolean hidden) {\n\tif (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setHidden() \" + hidden);\n Via via=(Via)sipHeader;\n if (hidden) {\n if ( ! this.hasParameter(Via.HIDDEN) ) \n via.setParameter(Via.HIDDEN,\"hidden\");\n }\n else via.removeParameter(Via.HIDDEN); \n }", "public void hide() {\n\t\thidden = true;\n\t}", "public void setVisible(boolean val);", "public boolean isHidden() {\r\n return hidden;\r\n }", "public void setVisible(boolean v) {\n }", "public Boolean isHidden() {\n return m_hidden;\n }", "public void setVisible(boolean b) {\n\t\t\n\t}", "public void setVisible(boolean visible);", "public void setVisible(Boolean isVisible);", "@SuppressWarnings(\"unused\")\n void setVisible(boolean visible);", "public boolean isHidden() {\n return false;\n }", "public final native void setShowHidden(boolean showHidden) /*-{\n this.setShowHidden(showHidden);\n }-*/;", "public void setVisible(Boolean visible);", "public void setHide()\n\t{\n\t\tMainController.getInstance().setVisible(name, false);\n\t}", "public void setHideOnClick ( Boolean hideOnClick ) {\r\n\t\tgetStateHelper().put(PropertyKeys.hideOnClick, hideOnClick);\r\n\t\thandleAttribute(\"hideOnClick\", hideOnClick);\r\n\t}", "void setVisible(boolean visible);", "void setVisible(boolean visible);", "public boolean isHidden();", "public void setVisible(boolean value) {\n\t\tvisible = value;\n\t}", "public void hide() {\n visible=false;\n }", "public abstract void setVisible(boolean visible);", "public boolean isHidden() {\n\t\treturn false;\n\t}", "public boolean shouldHide() {\n\t\treturn hide;\n\t}", "@Override\n\tpublic void setVisible(boolean b) {\n\t\t\n\t}", "public void setInvisible ( boolean invisible ) {\n\t\texecute ( handle -> handle.setInvisible ( invisible ) );\n\t}", "public void setHiddenOrReadOnly() {\n if(getField_type().toLowerCase().matches(\"view|vfunction\")) {\n if(!getType().toLowerCase().matches(\"hidden\")){\n setSaveRequired(\"read\");\n }\n }\n }", "public boolean getIsIshidden() {\n return ishidden;\n }", "public void setVisible(boolean a){\n \t\tvisible = a;\n \t}", "public void setVisible( boolean v) {\r\n visible = v;\r\n }", "public DiscoveryItem setHiddenByDefault(boolean state) {\n this.hiddenByDefault = state;\n return this;\n }", "public void show() {\n hidden = false;\n }", "@Override\n public void setVisible(boolean arg0)\n {\n \n }", "@Override\n\tpublic void setVisible(boolean visibility) {\n\t\t//do nothing\n\t}", "private void setVis(boolean b) {\n this.setVisible(b);\n }", "public void setIsVisible(boolean isVisible);", "public void setVisible(boolean val)\r\n\t{\r\n\t\t_isOn = val;\r\n\t}", "public void setVisible(boolean visible){\r\n\t\tthis.visible = visible;\r\n\t}", "public void setNotVisibleIfNotBlockedAndReplaced() {\n\t\tif (!isBlocked && getReplacementAttribute() == null) {\n\t\t\tthis.isVisible = false;\n\t\t}\n\t}", "protected void hideElement(Element element, boolean hide) {\n if (hide) {\n element.setAttributeNS(null, SVGConstants.CSS_VISIBILITY_PROPERTY, SVGConstants.CSS_HIDDEN_VALUE);\n } else {\n element.setAttributeNS(null, SVGConstants.CSS_VISIBILITY_PROPERTY, SVGConstants.CSS_VISIBLE_VALUE);\n }\n }", "public boolean isShowHidden() {\n\t\treturn showHidden;\n\t}", "public boolean isShowHidden() {\n\t\t\treturn showHidden;\n\t\t}", "public void setVisible(boolean visible)\n {\n this.visible = visible;\n }", "@Override\n public void setVisible (boolean f)\n { \n }", "public boolean hideSetting() {\n return isImageCaptureIntent();\n }", "public final boolean isHidden() {\n\t\treturn m_info.isHidden();\n\t}", "private boolean setVisible(boolean b) {\n\t\treturn b;\n\t}", "protected void addHiddenPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_hidden_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_hidden_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__HIDDEN,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_ModelPropertyCategory\"),\n\t\t\t\t null));\n\t}", "public void setVisible(boolean visible) {\r\n this.visible = visible;\r\n }", "void setCanSeeFriendlyInvisibles(boolean canSeeFriendlyInvisibles);", "public void setVisible (boolean visible) {\n this.visible = visible;\n }", "@JSProperty(\"visible\")\n void setVisible(boolean value);", "public void setIsVisible(java.lang.Boolean isVisible);", "public void hideIt(){\n this.setVisible(false);\n }", "@Override\n\tpublic void setVisible(boolean vis) {\n\t\t\n\t}", "public void setVisible(boolean b) {\n // Not supported for MenuComponents\n }", "public void hide() {\n isVisible = false;\n this.saveBorderColor(Color.BLACK);\n this.setBorderColor(Color.BLACK);\n }", "public final native boolean getShowHidden() /*-{\n return this.getShowHidden();\n }-*/;", "public void setMouseHidden(boolean hidden) {\n mouseHidden.set(hidden);\n }", "@Override\n public void wasHidden() {\n hide();\n }", "public Boolean getHideOnClick () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.hideOnClick);\r\n\t}", "public void setVisibility(int value) {\n this.visibility = value;\n }", "public void getGroupHideColumn() {\r\n\t\tString showHide = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(WsrdConstants.HIDESHOWCOLUMN);\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.SHOW_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setGroupShowHide(WsrdConstants.HIDE_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(true);\r\n\t\t}\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.HIDE_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setGroupShowHide(WsrdConstants.SHOW_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(false);\r\n\t\t\t\r\n\t\t}\r\n\t}", "final void setVisible(boolean visible) {\n this.visible = visible;\n }", "public Integer getHidden() {\n return hidden;\n }", "public Integer getHidden() {\n return hidden;\n }", "public static void setInvisible() {\r\n\t\tfrmMfhEmailer.setVisible(false);\r\n\t}", "public void setVisible(boolean newVal) {\n if (newVal != visible) {\n visible = newVal;\n listeners.firePropertyChange(PROPERTY_VISIBLE, !visible, visible);\n }\n }", "public boolean setVisible(boolean visible) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}", "public void onHidden(boolean hidden) {\n // When hidden, we need to disable CAB.\n if (hidden == mDisableCab) {\n return;\n }\n mDisableCab = hidden;\n updateSelectionMode();\n }", "@Override\r\n\tpublic DTextArea setHtmlHidden(final boolean hidden) {\r\n\t\tsuper.setHtmlHidden(hidden);\r\n\t\treturn this ;\r\n\t}", "public void show() {\n\t\thidden = false;\n\t}", "public static native void _setVisible(Element elem, boolean visible) /*-{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telem.style.display = visible ? '' : 'none';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}-*/;", "@Override\r\n\tpublic DTextArea setHtmlHidden(final String hidden) {\r\n\t\tsuper.setHtmlHidden(hidden);\r\n\t\treturn this ;\r\n\t}", "public void setDisplayed(boolean show);", "public boolean isHidden() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"isHidden()\");\n Via via=(Via)sipHeader;\n return via.isHidden();\n }", "@JSProperty(\"visible\")\n void setVisible(String value);", "public native boolean isHidden(GInfoWindow self)/*-{\r\n\t\treturn self.isHidden();\r\n\t}-*/;", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}" ]
[ "0.8243088", "0.8176629", "0.7663049", "0.74803525", "0.74041665", "0.7396699", "0.736369", "0.736369", "0.7302224", "0.7262066", "0.7158295", "0.71570176", "0.7097079", "0.7023242", "0.6937423", "0.69278514", "0.69094723", "0.69017255", "0.689505", "0.68935204", "0.68741935", "0.68314266", "0.682744", "0.68222857", "0.6817731", "0.6817731", "0.6813039", "0.6803817", "0.6801252", "0.6792191", "0.6773504", "0.6741271", "0.6730379", "0.670156", "0.6674421", "0.66645455", "0.6623605", "0.6618456", "0.66180915", "0.6580617", "0.6578153", "0.6576602", "0.6533256", "0.65176684", "0.6492394", "0.6487288", "0.6477553", "0.6476566", "0.6474754", "0.647445", "0.6450116", "0.64346415", "0.6423831", "0.64093757", "0.6408454", "0.6391379", "0.6387825", "0.638341", "0.6362548", "0.63312215", "0.6315503", "0.63148034", "0.6278223", "0.6270286", "0.6268268", "0.62584335", "0.621551", "0.6201354", "0.61935765", "0.61871344", "0.61821395", "0.6155659", "0.61525834", "0.61525834", "0.61392206", "0.61349714", "0.611633", "0.61064464", "0.6102939", "0.6101009", "0.6098339", "0.60743016", "0.60683453", "0.6045228", "0.6012431", "0.60034376", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151", "0.5987151" ]
0.7972716
2
Gets whether this attribute can have multiple values
public Boolean isMultipleSelection() { return m_multipleSelection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isMultiple() {\r\n return multiple;\r\n }", "public boolean isMultiple() {\n return multiple;\n }", "public boolean isMultiple() {\n\t\treturn (tipo != null && DocumentosUtils.esTipoMultiple(tipo));\n\t}", "boolean getMultiple();", "boolean isSetMultiple();", "public boolean hasMultiple() {\n/* 99 */ return this.multiple;\n/* */ }", "public boolean isMulti() {\n return getElement().isMulti();\n }", "public Boolean getCanSelectValues() {\r\n return getAttributeAsBoolean(\"canSelectValues\");\r\n }", "boolean isMultiple(String val) {\n\t\tif (val == null) return false;\n\t\treturn val.indexOf(VcfEntry.WITHIN_FIELD_SEP) >= 0;\n\t}", "org.apache.xmlbeans.XmlBoolean xgetMultiple();", "@Override\n\tpublic boolean hasValue(Attribute attribute) {\n\t\treturn false;\n\t}", "public abstract boolean supportsMultipleInputs();", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "public boolean isSingleValued(String attrName) {\n return (getTypes(attrName).size() == 1);\n }", "public final boolean hasAttribute ()\r\n {\r\n return _value.hasAttribute();\r\n }", "@Override\n public boolean isDefined()\n {\n return getValue() != null || getChildrenCount() > 0\n || getAttributeCount() > 0;\n }", "public boolean isAllValues() { return this.isAll; }", "public boolean isValue() {\n switch(this.getType()) {\n case CONSTANT_INTEGER : \n case CONSTANT_FLOAT :\n case CONSTANT_DOUBLE : \n case CONSTANT_LONG : \n case CONSTANT_STRING:\n return true ;\n default :\n return false;\n }\n }", "public boolean isMultivalueRequestsSupported() {\n return multivalueRequestsSupported;\n }", "public int getMultiple() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getMultiple();\n } else {\n // @todo Replace with real Builder object if possible\n final String value = childBuilderElement.getAttributeValue(\"multiple\");\n final int retVal;\n if (getTime() != NOT_SET) {\n // can't use both time and multiple\n retVal = NOT_SET;\n } else if (value == null) {\n // no multiple attribute is set\n // use default multiple value\n retVal = 1;\n } else {\n retVal = Integer.parseInt(value);\n }\n return retVal;\n }\n }", "Boolean isSingleValueOrArray();", "public boolean isSetInt_vals() {\n return this.int_vals != null;\n }", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "boolean isUniqueAttribute();", "public boolean HasOneValueInTheSpace()\n {\n return _valuesToPut.size() == 1;\n }", "boolean hasAttributes();", "boolean hasAttributes();", "public boolean needsValueField() {\n/* 227 */ for (CEnumConstant cec : this.members) {\n/* 228 */ if (!cec.getName().equals(cec.getLexicalValue()))\n/* 229 */ return true; \n/* */ } \n/* 231 */ return false;\n/* */ }", "public boolean hasValues()\r\n\t{\r\n\t\t\r\n\t\tif ((this.criteriaType != null && !this.criteriaType.trim().equals(\"\"))\r\n\t\t\t\t&& (this.criteriaValues != null && !this.criteriaValues.isEmpty()))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "public boolean isMultiple()\n {\n \tif (questionNumber == 0) {\n \t\treturn false;\n \t}\n int counter = 0;\n List<Answer> answers = test.getQuestions().get(questionNumber-1).getAnswers();\n for (Answer answer : answers) {\n if (answer.getCorrect()) {\n ++counter;\n if (counter > 1) {\n return true;\n }\n }\n }\n return false;\n }", "boolean hasAabbValue();", "private boolean isWrappedListOfValues(FieldAccessor fieldAccessor) {\n\t\treturn false;\n\t}", "boolean isAttribute();", "private boolean isVal() {\n\t\treturn look.type == Tag.BOOLEAN || look.type == Tag.NUMBER\n\t\t\t\t|| look.type == Tag.STRING || look.type == Tag.NULL;\n\n\t}", "public boolean containsSurrogatePairs() {\r\n //noinspection SimplifiableConditionalExpression\r\n return (noSurrogates ? false : getStringLength() != value.length());\r\n }", "public boolean isThreeOfAKind() {\n\t\treturn this.sameSet.size() == 1;\n\t}", "public boolean hasValidValues() {\r\n\t\treturn hasValidValues;\r\n\t}", "public boolean hasValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn false;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t}\n\t}", "public List<Boolean> getValues() {\r\n\t\treturn values;\r\n\t}", "public boolean isValuesSet() {\n\t\t\treturn valuesSet;\n\t\t}", "boolean hasPredefinedValues();", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isNotNullSupportsMultiPayToken() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsMultiPayToken);\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean sequenceRangeExpressionMultiplicity() {\r\n SequenceRange self = this.getSelf();\r\n Expression rangeLower = self.getRangeLower();\r\n Expression rangeUpper = self.getRangeUpper();\r\n return rangeLower != null && rangeLower.getUpper() == 1 &&\r\n rangeUpper != null && rangeUpper.getUpper() == 1;\r\n }", "public boolean effectiveBooleanValue() {\r\n return value.length() > 0;\r\n }", "public boolean hasValue(String value) {\r\n\t\tfor(Attribute curAttr: valInstances) {\r\n\t\t\tif(value.equals(curAttr.getVal())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasValue() {\n return valueBuilder_ != null || value_ != null;\n }", "protected boolean isMultiplePropertiesChanging() {\n return multiplePropertiesChanging;\n }", "boolean isMany();", "abstract protected boolean hasCompatValueFlags();", "public boolean isValue() {\n return value;\n }", "public boolean isPair() {\r\n\r\n return getHighestConsecutive() == 2;\r\n }", "public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }", "public boolean isValue() {\n return value;\n }", "private boolean checkMultipleUnitEdit() {\r\n\t\tboolean flag=false;\r\n\t\tfor(UIUnitType model:uiUnitType.getUnitValueList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "public String[] getValidValues();", "public String[] getValidValues();", "public boolean canBeSet() {\n if (this.equals(SquareType.CORRIDOR))\n return true;\n else\n return false;\n }", "public boolean hasValueCharacteristicId() {\n return valueCharacteristicIdBuilder_ != null || valueCharacteristicId_ != null;\n }", "boolean hasValueCharacteristicId();", "public boolean isSetCustomValues() {\n return this.customValues != null;\n }", "public boolean isSetCustomValues() {\n return this.customValues != null;\n }", "public boolean isSetCustomValues() {\n return this.customValues != null;\n }", "public boolean isSetLong_vals() {\n return this.long_vals != null;\n }", "public final boolean isRadioValueSetted() {\n\t\treturn engine.isPropertySetted(Properties.RADIO_VALUE);\n\t}", "public Boolean allowMultipleLines() {\n return this.allowMultipleLines;\n }", "public boolean isValue() {\n return false;\n }", "public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }", "public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }", "public boolean matchesAny() {\n return value == ANY;\n }", "public boolean canSplit() {\r\n if (cards.size() == 2 && cards.get(0).getValue().equals(cards.get(1).getValue())) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean isSetString_vals() {\n return this.string_vals != null;\n }", "public boolean canAdd() {\r\n int temp = 0;\r\n for (int i = 0; i < elem.length; i++) {\r\n if (elem[i] == null) {\r\n temp++;\r\n }\r\n }\r\n if (temp > 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean isCValueValid();", "public boolean isMultiStatus() {\n\t\treturn adaptee.isMultiStatus();\n\t}", "public boolean existsInputMissingValues(){\r\n\t\treturn anyMissingValue[0];\r\n\t}", "public boolean isAssocProperty();", "boolean isValue();", "public boolean existsAnyMissingValue(){\r\n\t\treturn (anyMissingValue[0] || anyMissingValue[1]);\r\n\t}", "private static boolean testGetAllowedValues(boolean a[]) {\r\n return a[0] && a[1] && a[2] && a[3] && !a[4] && a[5] && a[6] && a[7] && !a[8];\r\n }", "public boolean areThreeOrMorePossible(final Field[] line) {\n\t\t// Empty means interested generally\n\t\treturn this.areThreeOrMorePossible(line, Symbol.EMPTY);\n\t}", "public boolean requireAllPresenceValues() throws android.os.RemoteException;", "public final native void setAllowMultiple(boolean allowMultiple) /*-{\r\n\t\tthis.allowMultiple = allowMultiple;\r\n\t}-*/;", "public final boolean isValueLockedSetted() {\n\t\treturn engine.isPropertySetted(Properties.VALUE_LOCKED);\n\t}", "boolean getIsIndexOnValues();", "@Override\n public boolean hasNext() {\n return (this.index != values.length) && (values[index] != null);\n }", "public final boolean hasResponseValues()\n\t{\n\t\treturn m_responseValues != null ? true : false;\n\t}", "public boolean isPair() {\n \t\n return (rankSet().size() ==4);\n }", "boolean isSetValue();", "boolean isSetValue();", "public boolean hasPredefinedValues() {\n return predefinedValuesBuilder_ != null || predefinedValues_ != null;\n }", "public boolean hasValueCharacteristicId() {\n return valueCharacteristicId_ != null;\n }", "public boolean isMultiSelect() {\r\n return multiSelect;\r\n }", "public final boolean isManyResultsMessageSetted() {\n\t\treturn engine.isPropertySetted(Properties.MANY_RESULTS_MESSAGE);\n\t}", "boolean hasConditionList();", "public boolean isSetExhaustvalue() {\n return __isset_bit_vector.get(__EXHAUSTVALUE_ISSET_ID);\n }", "static boolean attribute_arg_value_array_item(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"attribute_arg_value_array_item\")) return false;\n boolean r;\n r = attribute_arg_value_scalar(b, l + 1);\n if (!r) r = attribute_arg_value_array(b, l + 1);\n return r;\n }", "static boolean attribute_arg_value_array(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"attribute_arg_value_array\")) return false;\n if (!nextTokenIs(b, L_BRACKET)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, L_BRACKET);\n r = r && attribute_arg_value_array_1(b, l + 1);\n r = r && consumeToken(b, R_BRACKET);\n exit_section_(b, m, null, r);\n return r;\n }" ]
[ "0.678967", "0.673259", "0.66573024", "0.66441447", "0.66176635", "0.6453886", "0.64226604", "0.623822", "0.60137546", "0.59720415", "0.59043175", "0.5822727", "0.5772472", "0.57114726", "0.5668393", "0.5645779", "0.56194615", "0.56156707", "0.5614303", "0.5601033", "0.5599159", "0.55730563", "0.55613005", "0.5533415", "0.55156785", "0.5502665", "0.5502665", "0.54820967", "0.5479217", "0.5478735", "0.5456644", "0.54356563", "0.5429107", "0.54283816", "0.54114264", "0.54074526", "0.5398012", "0.53937167", "0.5384754", "0.5375795", "0.53726876", "0.5356793", "0.5350212", "0.5344782", "0.5338337", "0.5330848", "0.53238636", "0.52932966", "0.52615607", "0.5253352", "0.52250254", "0.521335", "0.51930916", "0.5184905", "0.51803994", "0.5169985", "0.5167207", "0.51646525", "0.51646525", "0.5161063", "0.51559657", "0.5144031", "0.5139458", "0.5139458", "0.5139458", "0.5121086", "0.51137805", "0.5112053", "0.5102785", "0.5096722", "0.5096722", "0.5079233", "0.50780785", "0.50760597", "0.50676996", "0.5065903", "0.5057092", "0.50502235", "0.50426745", "0.5037444", "0.50327766", "0.50317293", "0.5030399", "0.5028843", "0.5025549", "0.5024171", "0.50218225", "0.5016626", "0.5014674", "0.5011564", "0.50065434", "0.50065434", "0.5004356", "0.49899763", "0.49867386", "0.49827152", "0.49807838", "0.4980193", "0.4979532", "0.49768102" ]
0.5541788
23
Sets whether this attribute can have multiple values
public void setMultipleSelection(Boolean multipleSelection){ m_multipleSelection = multipleSelection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setMultiple(boolean multiple);", "public void setMulti(boolean value) {\n getElement().setMulti(value);\n }", "public final native void setAllowMultiple(boolean allowMultiple) /*-{\r\n\t\tthis.allowMultiple = allowMultiple;\r\n\t}-*/;", "public void setMultiple(boolean isMultiple) {\n this.multiple = isMultiple;\n }", "public boolean isMultiple() {\r\n return multiple;\r\n }", "public boolean isMultiple() {\n return multiple;\n }", "boolean isSetMultiple();", "void xsetMultiple(org.apache.xmlbeans.XmlBoolean multiple);", "boolean getMultiple();", "public boolean isMultiple() {\n\t\treturn (tipo != null && DocumentosUtils.esTipoMultiple(tipo));\n\t}", "public boolean hasMultiple() {\n/* 99 */ return this.multiple;\n/* */ }", "public boolean isMulti() {\n return getElement().isMulti();\n }", "public abstract boolean supportsMultipleInputs();", "public Boolean getCanSelectValues() {\r\n return getAttributeAsBoolean(\"canSelectValues\");\r\n }", "boolean isMultiple(String val) {\n\t\tif (val == null) return false;\n\t\treturn val.indexOf(VcfEntry.WITHIN_FIELD_SEP) >= 0;\n\t}", "public void setAttributeValues(String[] attributeValues){\n m_attributeValues = attributeValues;\n }", "public void setValue(final List<String> attrValue) {\r\n if (attrValue != null) {\r\n this.value = attrValue;\r\n }\r\n }", "@Override\n\tpublic boolean hasValue(Attribute attribute) {\n\t\treturn false;\n\t}", "protected boolean isMultiplePropertiesChanging() {\n return multiplePropertiesChanging;\n }", "public void set(boolean[] abol);", "public void setAllowableValues(List<ValueDefinition> allowableValues) {\n this.allowableValues = allowableValues;\n }", "public AllowedValues(final Collection<String> values){\n \n this.valueOrRange = new ArrayList<>();\n for (String value: values){\n valueOrRange.add(new ValueType(value));\n }\n }", "org.apache.xmlbeans.XmlBoolean xgetMultiple();", "public void setValue(ArrayList<String> value) {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tString id = field.getText(row, 1);\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\tif (cb == null) {Window.alert(\"MultilistField setValue null at \" + row);}\n\t\t\tif (value == null) {cb.setValue(false);}\n\t\t\telse {cb.setValue(value.contains(id));}\n\t\t}\n\t\tsuper.setChanged();\n\t}", "public Boolean allowMultipleLines() {\n return this.allowMultipleLines;\n }", "public JSONObject buildMultivalueAttribute(Set<Attribute> multiValueAttribute, JSONObject json) {\n\n\t\tString mainAttributeName = \"\";\n\n\t\tList<String> checkedNames = new ArrayList<String>();\n\n\t\tSet<Attribute> specialMlAttributes = new HashSet<Attribute>();\n\t\tfor (Attribute i : multiValueAttribute) {\n\t\t\tString attributeName = i.getName();\n\t\t\tString[] attributeNameParts = attributeName.split(DELIMITER); // e.g.\n\t\t\t// name.givenName\n\n\t\t\tif (checkedNames.contains(attributeNameParts[0])) {\n\t\t\t} else {\n\t\t\t\tJSONObject jObject = new JSONObject();\n\t\t\t\tmainAttributeName = attributeNameParts[0];\n\t\t\t\tcheckedNames.add(mainAttributeName);\n\t\t\t\tfor (Attribute j : multiValueAttribute) {\n\t\t\t\t\tString secondLoopAttributeName = j.getName();\n\t\t\t\t\tString[] secondLoopAttributeNameParts = secondLoopAttributeName.split(DELIMITER); // e.g.\n\t\t\t\t\t// name.givenName\n\t\t\t\t\tif (secondLoopAttributeNameParts[0].equals(mainAttributeName)\n\t\t\t\t\t\t\t&& !mainAttributeName.equals(SCHEMA)) {\n\t\t\t\t\t\tjObject.put(secondLoopAttributeNameParts[1], AttributeUtil.getSingleValue(j));\n\t\t\t\t\t} else if (secondLoopAttributeNameParts[0].equals(mainAttributeName)\n\t\t\t\t\t\t\t&& mainAttributeName.equals(SCHEMA)) {\n\t\t\t\t\t\tspecialMlAttributes.add(j);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (specialMlAttributes.isEmpty()) {\n\t\t\t\t\tjson.put(attributeNameParts[0], jObject);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\telse {\n\t\t\t\t\tString sMlAttributeName = \"No schema type\";\n\t\t\t\t\tBoolean nameWasSet = false;\n\n\t\t\t\t\tfor (Attribute specialAtribute : specialMlAttributes) {\n\t\t\t\t\t\tString innerName = specialAtribute.getName();\n\t\t\t\t\t\tString[] innerKeyParts = innerName.split(DELIMITER); // e.g.\n\t\t\t\t\t\t// name.givenName\n\t\t\t\t\t\tif (innerKeyParts[1].equals(TYPE) && !nameWasSet) {\n\t\t\t\t\t\t\tsMlAttributeName = AttributeUtil.getAsStringValue(specialAtribute);\n\t\t\t\t\t\t\tnameWasSet = true;\n\t\t\t\t\t\t} else if (!innerKeyParts[1].equals(TYPE)) {\n\n\t\t\t\t\t\t\tjObject.put(innerKeyParts[1], AttributeUtil.getSingleValue(specialAtribute));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (nameWasSet) {\n\n\t\t\t\t\t\tjson.put(sMlAttributeName, jObject);\n\t\t\t\t\t\tspecialMlAttributes.removeAll(specialMlAttributes);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLOGGER.error(\n\t\t\t\t\t\t\t\t\"Schema type not speciffied {0}. Error ocourance while translating user object attribute set: {0}\",\n\t\t\t\t\t\t\t\tsMlAttributeName);\n\t\t\t\t\t\tthrow new InvalidAttributeValueException(\n\t\t\t\t\t\t\t\t\"Schema type not speciffied. Error ocourance while translating user object attribute set\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn json;\n\t}", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "public int getMultiple() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getMultiple();\n } else {\n // @todo Replace with real Builder object if possible\n final String value = childBuilderElement.getAttributeValue(\"multiple\");\n final int retVal;\n if (getTime() != NOT_SET) {\n // can't use both time and multiple\n retVal = NOT_SET;\n } else if (value == null) {\n // no multiple attribute is set\n // use default multiple value\n retVal = 1;\n } else {\n retVal = Integer.parseInt(value);\n }\n return retVal;\n }\n }", "public void setCanSelectValues(Boolean canSelectValues) {\r\n setAttribute(\"canSelectValues\", canSelectValues, true);\r\n }", "public boolean setAttributes(Set<String> foundAttributes);", "public boolean isSetValue() {\n return this.value != null;\n }", "public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }", "private boolean isWrappedListOfValues(FieldAccessor fieldAccessor) {\n\t\treturn false;\n\t}", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isMultivalueRequestsSupported() {\n return multivalueRequestsSupported;\n }", "public PropertyBoolean(String uid, String value) {\n super(uid, value);\n setFixedValues(new HashSet<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)));\n }", "public void setValues(boolean[] values) {\n\t\tthis.values = Arrays.copyOf(values, values.length);\n\t\tstart();\n\t}", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "public void setMultipleInd(Short multipleInd) {\n\t\tthis.multipleInd = multipleInd;\n\t}", "public boolean canBeSet() {\n if (this.equals(SquareType.CORRIDOR))\n return true;\n else\n return false;\n }", "public void testSetOnlyStoresAllowableTypes() {\n MetaDataFactory f = MetaDataFactory.getDefaultInstance();\n MutableBooleanValue allowableObject = (MutableBooleanValue) f.getValueFactory()\n .createBooleanValue().createMutable();\n allowableObject.setValue(Boolean.TRUE);\n\n NumberValue unallowableObject = (NumberValue) f.getValueFactory()\n .createNumberValue();\n\n TypedSet typedSet = new TypedSet(new HashSet(), BooleanValue.class);\n\n try {\n typedSet.add(allowableObject);\n } catch (IllegalArgumentException e) {\n fail(\"Adding a \" + allowableObject.getClass() + \" should be permitted.\");\n }\n\n // check that the mutable list will not allow a forbiden type\n try {\n typedSet.add(unallowableObject);\n fail(\"Adding any thing other than a \" + allowableObject.getClass() +\n \" should throw an IllegalArgumentException.\");\n } catch (IllegalArgumentException e) {\n // expected.\n }\n }", "public AllowedValues(final RangeType range){\n \n valueOrRange = new ArrayList<>();\n valueOrRange.add(range);\n }", "@Override\n public <E> void configurePermissibleValues(List<E> values, Class<E> type)\n {\n }", "public boolean isAllValues() { return this.isAll; }", "public void permittedValues(BooleanExpression permitted) {\n\t\tthis.setOperator(new DBPermittedValuesOperator(permitted));\n\t}", "public void permittedValues(Boolean permitted) {\n\t\tthis.setOperator(new DBBooleanPermittedValuesOperator(permitted));\n\t}", "public void setValues(List<Object> values);", "public boolean canModify(Object element, String property) {\r\n\t // Allow editing of all values\r\n\t return true;\r\n\t }", "public void experimental_allowMultipleAdaptiveSelections() {\n this.allowMultipleAdaptiveSelections = true;\n }", "public void setValueSet(List<String> valueSet){\n mValueSet = valueSet;\n }", "public void setValid(boolean value)\r\n {\r\n //Override this method in MediaItem object\r\n getSemanticObject().setBooleanProperty(swb_valid, value,false);\r\n }", "public boolean isSetInt_vals() {\n return this.int_vals != null;\n }", "public void setJurisdictions(entity.AppCritJurisdiction[] value);", "public boolean isSetString_vals() {\n return this.string_vals != null;\n }", "boolean isSetValueCodeableConcept();", "boolean isSetValue();", "boolean isSetValue();", "public void setArgumentValues(boolean argumentValues)\r\n {\r\n this.argumentValues = argumentValues;\r\n }", "public void setAttribute(List<Attribute> attribute) {\n\t\tthis.attribute = attribute;\n\t}", "public Value restrictToSetter() {\n checkNotPolymorphicOrUnknown();\n if (setters == null)\n return theNone;\n Value r = new Value();\n r.setters = setters;\n return canonicalize(r);\n }", "public boolean isSingleValued(String attrName) {\n return (getTypes(attrName).size() == 1);\n }", "public void setStringArray(String[] value);", "@JsonIgnore\r\n\tpublic Integer getMultivalue() {\r\n\t\treturn multivalue;\r\n\t}", "private void setMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(true);\r\n checkShaffer.setEnabled(true);\r\n checkBergman.setEnabled(true);\r\n\r\n checkIman.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "boolean isSetValueRatio();", "public void setRealValuedAttributes(String values) throws IllegalArgumentException {\n\t\tif (values.isEmpty()) {\n\t\t\trealValuedAttributes = new double[0];\n\t\t\treturn;\n\t\t}\n\t\tString[] tokens = values.split(VALUE_DELIMITER);\n\t\trealValuedAttributes = new double[tokens.length];\n\t\tint i = 0;\n\t\tfor (String t : tokens) {\n\t\t\trealValuedAttributes[i++] = Double.valueOf(t);\n\t\t}\n\t}", "public boolean isSetType() {\n return (this.type != null ? this.type.isSetValue() : false);\n }", "public boolean isValuesSet() {\n\t\t\treturn valuesSet;\n\t\t}", "void setIfCanRemove(boolean set);", "public void setIntersection(java.lang.Boolean value);", "@Override\n\tpublic ArrayList<String> setValues() {\n\t\tList<String> str = new ArrayList<String>();\n\t\tstr.add(\"PcMan\");\n\t\tstr.add(\"gcMan\");\n\t\tstr.add(\"ycMan\");\n\t\tstr.add(\"kcMan\");\n\t\tstr.add(\"NoMan\");\n\t\treturn (ArrayList<String>) str;\n\t\t\n\t}", "@Override\n public void setValues(int arg0, List<? extends Value> arg1, int arg2, int arg3) throws InvalidTypeException, ClassNotLoadedException {\n throw new UnsupportedOperationException();\n }", "public Builder setValueSet(List<String> valueSet){\n mValueSet = valueSet;\n return this;\n }", "public abstract void setValues(String[] pValues);", "@Override\n public final boolean hasSpecialDefenseValueAttribute() {\n return true;\n }", "public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }", "public List<Boolean> getValues() {\r\n\t\treturn values;\r\n\t}", "@Override\r\n\tprotected Set<String>[] getForbidSetArray() {\n\t\treturn null;\r\n\t}", "public ResponseHeaderDefinition allowableValues(String allowableValues) {\n List<ValueDefinition> list = new ArrayList<>();\n for (String av : allowableValues.split(\",\")) {\n list.add(new ValueDefinition(av));\n }\n setAllowableValues(list);\n return this;\n }", "public void setPropertyValidValues(List<PropertyValidValue> propertyValidValues)\r\n\t{\r\n\t\tthis.propertyValidValues = propertyValidValues;\r\n\t}", "public boolean isMultiSelect() {\r\n return multiSelect;\r\n }", "private void toggleMultiple(final Set<Long> selectedSet, final MultiToggleHelper helper) {\n final Cursor c = mListAdapter.getCursor();\n if (c == null || c.isClosed()) {\n return;\n }\n\n final HashMap<Long, Boolean> setValues = Maps.newHashMap();\n boolean allWereSet = true;\n\n c.moveToPosition(-1);\n while (c.moveToNext()) {\n long id = c.getInt(MessagesAdapter.COLUMN_ID);\n if (selectedSet.contains(id)) {\n boolean value = helper.getField(c);\n setValues.put(id, value);\n allWereSet = allWereSet && value;\n }\n }\n\n if (!setValues.isEmpty()) {\n final boolean newValue = !allWereSet;\n c.moveToPosition(-1);\n // TODO: we should probably put up a dialog or some other progress indicator for this.\n EmailAsyncTask.runAsyncParallel(new Runnable() {\n @Override\n public void run() {\n for (long id : setValues.keySet()) {\n if (setValues.get(id) != newValue) {\n helper.setField(id, newValue);\n }\n }\n }});\n }\n }", "public Value restrictToAttributes() {\n Value r = new Value(this);\n r.num = null;\n r.str = null;\n r.var = null;\n r.flags &= ATTR | ABSENT | UNKNOWN;\n if (!isUnknown() && isMaybePresent())\n r.flags |= UNDEF; // just a dummy value, to satisfy the representation invariant for PRESENT\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }", "public void setIsSetPriceList (boolean IsSetPriceList);", "public ResponseHeaderDefinition allowableValues(String... allowableValues) {\n List<ValueDefinition> list = new ArrayList<>();\n for (String av : allowableValues) {\n list.add(new ValueDefinition(av));\n }\n setAllowableValues(list);\n return this;\n }", "public void setOR(boolean value) {\n this.OR = value;\n }", "public Encoding setExplode(Boolean value) {\n\t\texplode = value;\n\t\treturn this;\n\t}", "public void setRatebooks(entity.ImpactTestingRateBook[] value);", "protected void setMultiplePropertiesChanging(boolean multiplePropertiesChanging) {\n this.multiplePropertiesChanging = multiplePropertiesChanging;\n }", "@Override\n public boolean isKeywordMultiField() {\n return !isKeyword() && fieldMap.containsKey(ES_MAPPING_TYPE_KEYWORD)\n && fieldMap.get(ES_MAPPING_TYPE_KEYWORD).isKeyword();\n }", "public ResponseHeaderDefinition allowableValues(List<String> allowableValues) {\n List<ValueDefinition> list = new ArrayList<>();\n for (String av : allowableValues) {\n list.add(new ValueDefinition(av));\n }\n setAllowableValues(list);\n return this;\n }", "public Element.Builder setValues(final List<Sample> value) {\n _values = value;\n return this;\n }", "public boolean isValue() {\n return false;\n }", "public void setTallied(java.lang.Boolean value);", "public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "public void setMatchAny() {\n this.value = ANY;\n }", "@Override\n public void setValues(List<? extends Value> values) throws InvalidTypeException, ClassNotLoadedException {\n throw new UnsupportedOperationException();\n }", "public boolean requireAllPresenceValues() throws android.os.RemoteException;" ]
[ "0.69734895", "0.6626543", "0.6612694", "0.646565", "0.63993704", "0.63519025", "0.6217555", "0.60917443", "0.6029318", "0.59618336", "0.573947", "0.57120746", "0.56623495", "0.5608204", "0.5545861", "0.55169356", "0.54862744", "0.54437363", "0.54284304", "0.5413758", "0.54036415", "0.53922355", "0.5369719", "0.5352146", "0.5285882", "0.5277786", "0.52775246", "0.525349", "0.5241269", "0.52389336", "0.5237304", "0.52232224", "0.52139986", "0.52076906", "0.5202241", "0.5196651", "0.51904535", "0.5142331", "0.51279837", "0.5125328", "0.51235205", "0.51041603", "0.51029676", "0.51001555", "0.5092827", "0.5081907", "0.50770545", "0.5068695", "0.50611943", "0.5059342", "0.49952558", "0.49847567", "0.49798706", "0.49639112", "0.49612895", "0.4953462", "0.4953462", "0.4952786", "0.49326116", "0.49197423", "0.49121252", "0.49050847", "0.4903435", "0.489806", "0.48713753", "0.4863607", "0.4862032", "0.48538122", "0.4848894", "0.48479095", "0.48360887", "0.4831285", "0.48255134", "0.48085508", "0.48018888", "0.4798988", "0.47955355", "0.4793556", "0.4782678", "0.4780637", "0.47678712", "0.4766666", "0.47630292", "0.47597295", "0.47582752", "0.47562686", "0.47466713", "0.47374973", "0.47349676", "0.47298443", "0.4729122", "0.47031853", "0.46959415", "0.46920636", "0.4690072", "0.46886557", "0.46864995", "0.46845317", "0.46823734", "0.4670316" ]
0.5578714
14
Gets the name of the label of this attribute
public String getLabelName() { return m_labelName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "@Nonnull\n\tGenericAttributeValue<String> getLabel();", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI();\n\t }\n\t return name;\n }", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public String getLabel() {\n\t\treturn this._label;\n\t}", "public String getLabel() {\n\t\treturn label;\n\t}", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getLabel() {\r\n return lbl;\r\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public java.lang.String getLabel();", "public String getLabel(){\n\t\treturn label;\n\t}", "public String label() {\n return this.label;\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\n {\n return m_label;\n }", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "java.lang.String getLabel();", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "public String getName()\n {\n return (String)getAttributeInternal(NAME);\n }", "String nameLabel();", "public IfcLabel getName()\n\t{\n\t\treturn this.Name;\n\t}", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\n return label;\n }", "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel()\n { \n return label;\n }", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public String getStrLabelName() {\r\n\t\treturn strLabelName;\r\n\t}", "String getLabel() {\n return label;\n }", "private String getLabel() {\n return this.label;\n }", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getLabel(){\n return label;\n }", "public String getName() {\n\t\treturn this.toString();\n\t}", "public Object getLabel() \n {\n return label;\n }", "public double getLabel() {\n\t\treturn label;\n\t}", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "public int getLabel() {\n\t\treturn label;\n\t}", "public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public final String aoy() {\n return this.label;\n }", "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public String getName() {\n return (String) getValue(NAME);\n }", "public Label getLabel() {\n return this.label;\n }", "String getLabel();", "String getLabel();", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getName();", "public String getLabel() {\r\n return layout.label;\r\n }", "public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }", "public AXValue getName() {\n return name;\n }", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "String getAttributeName(Object attr);", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }", "public String getName() {\n return getProperty(Property.NAME);\n }", "public String getLabel(){\n\t\treturn sAnzeige;\n\t}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.8037653", "0.8013077", "0.7789598", "0.7560592", "0.7499951", "0.74634415", "0.74279606", "0.74279606", "0.74279606", "0.74279606", "0.7423476", "0.7423415", "0.7422783", "0.74126345", "0.7408823", "0.73697436", "0.73681337", "0.73681337", "0.73681337", "0.73664796", "0.7363467", "0.7360048", "0.7358296", "0.7357542", "0.73571277", "0.73571277", "0.73571277", "0.73551244", "0.73551244", "0.73551244", "0.73551244", "0.7348177", "0.73475635", "0.733533", "0.7334644", "0.7334644", "0.73257583", "0.73252666", "0.73232925", "0.7317557", "0.7308182", "0.7298105", "0.7296359", "0.7289983", "0.7273761", "0.7256566", "0.7254141", "0.7246731", "0.7219884", "0.72097975", "0.72052085", "0.7197721", "0.7174419", "0.71240026", "0.7103304", "0.7103304", "0.7103304", "0.7081906", "0.70771885", "0.70753133", "0.70678294", "0.70609504", "0.7052386", "0.70503473", "0.7029509", "0.7029509", "0.7025576", "0.70169127", "0.70169127", "0.70169127", "0.70169127", "0.7012899", "0.7010704", "0.6999618", "0.6973689", "0.6966109", "0.69276476", "0.69276476", "0.69085467", "0.69048053", "0.6902033", "0.6900468", "0.68955165", "0.68901587", "0.68854636", "0.6867421", "0.6863544", "0.6863148", "0.68573886", "0.6842226", "0.68378663", "0.6833519", "0.6833382", "0.68236685", "0.68233454", "0.6813432", "0.67997336", "0.67997336", "0.67997336", "0.67997336" ]
0.7798535
2
Sets the name of the label of this attribute
public void setLabelName(String labelName){ m_labelName = labelName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNameLabel(String nameLabel) {\r\n this.nameLabelText = nameLabel;\r\n this.nameLabel.setText(this.nameLabelText);\r\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(String val) {\n name = val;\n }", "public void setName(String val) {\n this.name = val;\n }", "public void setName(String name) {\n\t\tthis.name = name;\n\t\tthis.setText(name);\n\t}", "public void setName(AXValue name) {\n this.name = name;\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}", "public void setName(IfcLabel Name)\n\t{\n\t\tthis.Name = Name;\n\t\tfireChangeEvent();\n\t}", "public void setName (String n) {\n name = n;\n }", "public void setName(String n) {\n this.name = n;\n }", "@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }", "public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(String nm){\n\t\tname = nm;\n\t}", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "void setLabel(String label);", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name) {\n \t\tthis.name = name;\n \t}", "public static void setLabel(Label labelName) {\n emitf(\"%s:\\n\", labelName.toString());\n }", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$26);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\r\r\n\t\tthis.name = name;\r\r\n\t}", "public void setName(String name) {\n\t this.name = name;\n\t }", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$8);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(java.lang.String name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$4);\n }\n target.setStringValue(name);\n }\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}", "public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "public void setName( String name ) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }" ]
[ "0.75628775", "0.73826903", "0.7341314", "0.7268763", "0.7244969", "0.72123194", "0.7200446", "0.7192236", "0.71888095", "0.71839035", "0.7181959", "0.71575284", "0.7148564", "0.71387583", "0.71328115", "0.7105223", "0.7065761", "0.7064853", "0.7064853", "0.7064853", "0.7061836", "0.7061836", "0.7061836", "0.7060232", "0.7057781", "0.7048016", "0.7048016", "0.7048016", "0.7042579", "0.7034543", "0.7034543", "0.7030049", "0.7015274", "0.70141006", "0.7009445", "0.70003355", "0.69994956", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.69979894", "0.69948864", "0.6990398", "0.6990398", "0.69896793", "0.698943", "0.698943", "0.698943", "0.69882655", "0.6987665", "0.6984795", "0.6977842", "0.6977842", "0.6977842", "0.69760823", "0.69741356", "0.69735116", "0.69735116", "0.6972791", "0.6971767", "0.6971767", "0.6971767", "0.6971767", "0.6971767", "0.6967474", "0.69651437", "0.69632155", "0.6951481", "0.69507647", "0.6949517", "0.6945151", "0.6942427" ]
0.7373045
2
Gets the name of the Property Map Key of this attribute
public String getPropertyMapKeyName() { return m_propertyMapKeyName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "public String getKeyMapName() {\r\n return keyMapName;\r\n }", "public String propKey() {\n return propKey;\n }", "public String getKeyName() {\n\t\treturn this.attributeName;\r\n\t}", "protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }", "public String getNameKey() {\n return getName();\n }", "public K getName() {\n return key;\n }", "public Object getKey() { return name; }", "private String loadAttributeName() {\n return parseMapField().getKey();\n }", "public String getPropKey() {\n return propKey;\n }", "public String getKeyName(){\n\n //returns the value of the keyName field\n return this.keyName;\n }", "default String getKey() {\n return key(getClassName(), getName());\n }", "public java.lang.String getKeyName() {\n return keyName;\n }", "public java.lang.String getKeyName() {\n return keyName;\n }", "public String getKeyName() {\n return keyName;\n }", "public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}", "public String getProperty(String key) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n return this.attributes.getProperty(key);\n }", "public String getKey() {\r\n return getAttribute(\"id\");\r\n }", "String getPropertyName();", "public String getKey()\r\n {\r\n return getValue().toString();\r\n }", "@Override\n\tpublic String getKey() {\n\t\treturn key;\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 String getKey() {\r\n\t\treturn key;\r\n\t}", "@ApiModelProperty(required = true, value = \"The Name of the configuration parameter.\")\n public String getKeyName() {\n return keyName;\n }", "public String getKey(){\n\t\treturn key;\n\t}", "public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}", "public String getMapNm() {\n\t\treturn this.mapNm;\n\t}", "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 String getName() {\n return getProperty(Property.NAME);\n }", "public String name() {\n return getString(FhirPropertyNames.PROPERTY_NAME);\n }", "PropertyName getName();", "public static Object getStaticAttributeKey(final Object key) {\n return key.getClass().getName() + \".\" + key.toString();\n }", "public String getKey()\n\t{\n\t\treturn key;\n\t}", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public java.lang.String getAttributeKey() {\r\n return localAttributeKey;\r\n }", "@XmlAttribute(name = \"key\")\r\n public String getKey()\r\n {\r\n return key;\r\n }", "public String getMapName() {\n return mapName;\n }", "public String getMapName() {\n return mapName;\n }", "public String getMapName() {\n return mapName;\n }", "public String naturalKeyName() {\n return idName();\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "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 }", "public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }", "public String getMapName() {\n return mapName;\n }", "public String getPropName() {\n return m_propName;\n }", "public StructuredQName getKeyName() {\n try {\r\n if (getObjectName() == null) {\r\n // allow for forwards references\r\n String nameAtt = getAttributeValue(\"\", StandardNames.NAME);\r\n if (nameAtt != null) {\r\n setObjectName(makeQName(nameAtt));\r\n }\r\n }\r\n return getObjectName();\r\n } catch (NamespaceException err) {\r\n return null; // the errors will be picked up later\r\n } catch (XPathException err) {\r\n return null;\r\n }\r\n }", "public String getKey() {\r\n return key;\r\n }", "public String getName() {\n\t\treturn getNonVisualProperties().getName();\n\t}", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public java.lang.String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n return key;\n }", "public String getKey()\n\t{\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public final 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 return key;\n }", "@Override\n public String getKey() {\n return key;\n }", "public String getKey() {\n return element == null ? null : element.getKey();\n }", "@BeanTagAttribute\r\n public String getPropertyName() {\r\n return propertyName;\r\n }", "public String getPropertyName();", "public String getKey_() {\n return key_;\n }", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "String getShortNameKey();", "public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}", "public Object getAlternateKeyName() {\n return this.alternateKeyName;\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 }", "public String getKey() {\n return this.key;\n }", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public StringKey getName() {\n return ModelBundle.SHIP_NAME.get(name);\n }", "public String getKey() {\n\treturn key;\n }", "public String getKey() {\n\n return this.key;\n }" ]
[ "0.7349577", "0.7343312", "0.72993994", "0.7284375", "0.71482694", "0.71111923", "0.71079683", "0.7053334", "0.700985", "0.6989422", "0.69190544", "0.6795822", "0.6751268", "0.6737479", "0.6729698", "0.67017186", "0.6556188", "0.65209055", "0.65183926", "0.65023834", "0.64846146", "0.6459376", "0.6459376", "0.6459376", "0.64533275", "0.6452638", "0.64482975", "0.64441377", "0.64207715", "0.64207715", "0.64207715", "0.64085656", "0.6398699", "0.63952273", "0.63797617", "0.63731855", "0.63665533", "0.63638794", "0.6362034", "0.63545537", "0.63545537", "0.63545537", "0.63512474", "0.6347694", "0.6345361", "0.6345361", "0.6345361", "0.6340305", "0.63357544", "0.6330788", "0.6317214", "0.63080716", "0.63031274", "0.6295493", "0.6295493", "0.6288889", "0.628701", "0.62867963", "0.6278333", "0.6278333", "0.6278333", "0.6275421", "0.62659764", "0.62659764", "0.62659764", "0.62659764", "0.62659764", "0.62659764", "0.62659764", "0.62659764", "0.62659764", "0.62659764", "0.6250572", "0.62402815", "0.6238258", "0.6237032", "0.62228733", "0.62219274", "0.62219274", "0.62219274", "0.62219274", "0.62219274", "0.62219274", "0.6211878", "0.6208575", "0.6206959", "0.6199976", "0.6184326", "0.6184326", "0.6184326", "0.6184326", "0.6184326", "0.6184326", "0.6183295", "0.6183295", "0.6183295", "0.6183295", "0.6179968", "0.61710644", "0.6162709" ]
0.7838719
0
Sets the name of the Property Map Key of this attribute
public void setPropertyMapKeyName(String propertyMapKeyName){ m_propertyMapKeyName = propertyMapKeyName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setKeyName(String newName){\n\n //assigns the value newName to the keyName field\n this.keyName = newName;\n }", "public void setAttributeKey(java.lang.String param) {\r\n localAttributeKeyTracker = true;\r\n\r\n this.localAttributeKey = param;\r\n\r\n\r\n }", "public final void setNameProperty(String nameProperty) {\n\t\tif(nameProperty == null) throw new IllegalArgumentException(\"A field name must be specified\");\n\t\tthis.nameProperty = nameProperty;\n\t}", "public String getPropertyMapKeyName() {\n return m_propertyMapKeyName;\n }", "public void addProperty(String key,\n Object value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, value.toString());\n }", "private String loadAttributeName() {\n return parseMapField().getKey();\n }", "public void setName(final String attrName) {\r\n this.name = attrName;\r\n }", "public void setMapName(String mapName) {\n this.mapName = mapName;\n }", "public String getKeyMapName() {\r\n return keyMapName;\r\n }", "public Object getKey() { return name; }", "public void setPropKey(String propKey) {\n this.propKey = propKey;\n }", "void setKey(java.lang.String key);", "public void setKey(String aKey) {\n\t\tthis.key = aKey;\n\t}", "public void setPropName(String name) {\n m_propName = name;\n }", "private void setKey(String key) {\n this.key = key;\n }", "public void setMapName(String mapname) {\n this.mapName = mapname;\n }", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyName(java.lang.String value) {\n validate(fields()[0], value);\n this.keyName = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "protected void setKey(String key) {\r\n this.key = key;\r\n }", "public void setMapName(String mapName) {\n this.mapName = mapName;\n }", "public void setMapName(String mapName) {\n this.mapName = mapName;\n }", "public void setKey(String key) {\n this.key = key;\n }", "@ApiModelProperty(required = true, value = \"The Name of the configuration parameter.\")\n public String getKeyName() {\n return keyName;\n }", "@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }", "public String getKeyName() {\n\t\treturn this.attributeName;\r\n\t}", "public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public DrillBuilder setPropertyKey(String propertyKey) {\n this.propertyKey = propertyKey;\n return this;\n }", "public void setKey(String key) {\r\n this.key = key;\r\n }", "public void setKeyAttributeMap(Map<String, MongoDbKeyAttributeMapper> map) {\n keyAttributeMap = map;\n }", "public void setAttributeName(String attrName) {\r\n nameTextField.setText(attrName);\r\n }", "public void setKey(String key) {\n\n this.key = key;\n }", "private void setTranslationKey(String name) {\n\t\t\r\n\t}", "public void setAttribute(Object key, Object value);", "public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}", "public void setKey(String key) {\n this.key = key;\n }", "public void setKey(String key) {\n this.key = key;\n }", "public void setKey(String key) {\n this.key = key;\n }", "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "private void setKey(String key){\n\t\tthis.key=key;\n\t}", "public void addAttribute(String key, String value) {\r\n this.mapAttributes.put(key, value);\r\n }", "public void setAttribute(String key, String value) {\n attributes.put(key, value);\n }", "public KeyNamePair(String key, String name) {\r\n this.key = key;\r\n this.name = name;\r\n }", "public String getNameKey() {\n return getName();\n }", "public K getName() {\n return key;\n }", "public void setKey(String key) {\r\n\t\tthis.key = key;\r\n\t}", "public void setKey(java.lang.String key) {\n\t\tthis.key = key;\n\t}", "public final void setKey(String key) {\n this.key = key;\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setKey(String key) {\n if (element != null) {\n element.setKey(key);\n }\n }", "public String propKey() {\n return propKey;\n }", "public void setKey(final String key);", "public void setKey(final String key);", "public void setName(String name) {\n\t\tgetNonVisualProperties().setName(name);\n\t}", "public void changeAttrName() {\r\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "void setKey(String key);", "public static void setName(String n){\n\t\tname = n;\n\t}", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "public void setKeyId(String keyId) {\n setProperty(KEY_ID, keyId);\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setKey(final String key) {\n this.key = key;\n }", "public void setName(String nm){\n\t\tname = nm;\n\t}", "public ModelMessage addName(String key, String value) {\n super.addName(key, value);\n return this;\n }", "public String getKeyName(){\n\n //returns the value of the keyName field\n return this.keyName;\n }", "public void setName(AXValue name) {\n this.name = name;\n }", "public void setName(String inName)\n {\n name = inName;\n }", "protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }", "public String getKeyName() {\n return keyName;\n }", "void setObjectKey(String objectKey);", "public void setName(String inName)\n {\n\tname = inName;\n }", "public void setKey(String key)\r\n {\r\n m_key = key;\r\n }", "void setKey(final String key);", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}", "public void setName(String n) {\r\n name = n;\r\n }", "public void setProperty(String key, Object value);", "public void setProperty( String key, Object value );", "public final void setName(String name) {_name = name;}", "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "public void setName(String n) {\n this.name = n;\n }", "KeyColor(String name){\n this.name = name;\n }", "public void setName(String aName) {\n name = aName;\n }", "String attributeToSetter(String name);", "public KeyNamePair() {\r\n this.key = \"\";\r\n this.name = \"\";\r\n }", "@Override\r\n public void setName(String name) {\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "public void addProperty(String key,\n int value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, Integer.toString(value));\n }", "public void setName(String name) {\r\n String oldValue = this.name;\r\n this.name = name;\r\n propertyChangeSupport.firePropertyChange(PROPERTY_NAME, oldValue, name);\r\n }", "public void setName(final String pName){this.aName = pName;}", "void setName(String name_);", "public void setAttrName(String attrName) {\n this.attrName = attrName;\n }" ]
[ "0.6919228", "0.64413184", "0.6438705", "0.62360924", "0.6211742", "0.61480904", "0.61196333", "0.6079916", "0.6052528", "0.6019224", "0.60107803", "0.59710073", "0.5949237", "0.5944798", "0.59298056", "0.5929775", "0.59205425", "0.59104997", "0.5909328", "0.5909328", "0.5907465", "0.5873297", "0.5870838", "0.58673775", "0.58598256", "0.5857496", "0.5854816", "0.58499444", "0.58441347", "0.5813061", "0.5812795", "0.58107144", "0.58099777", "0.58094895", "0.58094895", "0.58094895", "0.58035564", "0.5797151", "0.5784824", "0.57841647", "0.5781498", "0.57790464", "0.5768544", "0.57638323", "0.575425", "0.57407635", "0.57338077", "0.57319033", "0.5723171", "0.5720293", "0.5720293", "0.57197994", "0.5719073", "0.5714705", "0.5714705", "0.5714705", "0.5701269", "0.5701269", "0.5701269", "0.5700744", "0.56976223", "0.5695345", "0.5695345", "0.5687434", "0.56795573", "0.5676147", "0.5675647", "0.56737596", "0.5669445", "0.56624216", "0.5659122", "0.56556284", "0.5653721", "0.5653555", "0.5653442", "0.5652093", "0.56504774", "0.564517", "0.5640048", "0.5629331", "0.56293", "0.5620452", "0.561911", "0.561089", "0.56088704", "0.5608014", "0.5606975", "0.56024486", "0.56012046", "0.5599828", "0.5590547", "0.5570111", "0.55654645", "0.55654645", "0.5558651", "0.55579436", "0.5555943", "0.5554161", "0.5553484", "0.55517226" ]
0.7497901
0
Gets the name of the Map Component Class of this attribute
public String getMapComponentClassName() { return m_mapComponentClassName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String componentTypeName();", "protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }", "public String getName_Class() {\n\t\treturn name;\n\t}", "public void setMapComponentClassName(String mapComponentClassName){\n m_mapComponentClassName = mapComponentClassName;\n }", "String getMapName() {\n try {\n fd world = getWorld();\n Class<?> worldclass = world.getClass();\n Field worlddatafield = null;\n while (true) { //\n\n try {\n worlddatafield = worldclass.getDeclaredField(\"x\");\n break;\n } catch (NoSuchFieldException e) {\n worldclass = worldclass.getSuperclass();\n continue;\n }\n }\n if (worlddatafield == null)\n return null;\n worlddatafield.setAccessible(true);\n\n ei worldata;\n\n worldata = (ei) worlddatafield.get(world);\n return worldata.j();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public String getName() {\n\t\treturn className;\n\t}", "public String getName() {\n return className;\n }", "public String getClassname() {\n return classname;\n }", "public String getClassname()\r\n {\r\n return m_classname;\r\n }", "public String getName()\n {\n return underlyingClass.getName();\n }", "public String getClassname() {\n\t\treturn classname;\n\t}", "BaseComponent getComponentName();", "public String mo12985l_() {\n return getClass().getName();\n }", "public String getClassAttribute() {\n return m_classIndex;\n }", "public String getMapName() {\n return mapName;\n }", "public String getMapName() {\n return mapName;\n }", "public String getMapName() {\n return mapName;\n }", "public String getMapName() {\n return mapName;\n }", "public String getName() {\r\n \treturn this.getClass().getName();\r\n }", "java.lang.String getClassName();", "public String getClazzName();", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "public String getName(){\n\t\treturn arr.getClass().getSimpleName();\n\t}", "public String getClassificatioName() {\n return classificatioName;\n }", "public final String getClassAttribute() {\n return getAttributeValue(\"class\");\n }", "public String getClassificationName()\n {\n return classificationName;\n }", "public String getMapNm() {\n\t\treturn this.mapNm;\n\t}", "private String getClassAttribute() {\n return String.join(\" \", classAttribute);\n }", "public String getClassName(){\n\t\treturn classname;\n\t}", "@Override\n public abstract String getComponentType();", "public String getClassName();", "@Override\n public String getName() {\n return REACT_CLASS;\n }", "public String getMapTyp() {\n\t\treturn this.mapTyp;\n\t}", "public ClassConstant getClassConstant()\n {\n ensureLoaded();\n return m_clzName;\n }", "public String getName() {\n return type.toString();\n }", "String getClassName();", "String getClassName();", "String getClassName();", "public static Mapper<String> name() {\n return NAME;\n }", "@DISPID(-2147417111)\n @PropGet\n java.lang.String className();", "String getComponentName();", "String getComponentName();", "@Override\n public String getName() {\n return this.getClass().getSimpleName();\n }", "public String getMapItemTypeName() {\n return mapItemTypeName;\n }", "public String getCls() {\n\t\tif (null != this.cls) {\n\t\t\treturn this.cls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"cls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String className() {\n\t\treturn className;\n\t}", "public abstract String getClassName();", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}", "private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}", "public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }", "@Override\n public String classFactoryName() {\n return Mirrors.findAnnotationMirror(element(), Factory.class)\n .flatMap(Mirrors::findAnnotationValue)\n .map(value -> value.getValue().toString()).orElse(null);\n }", "public ApexQualifiedName getClassName() {\n if (isClass()) {\n return this;\n }\n\n return new ApexQualifiedName(this.nameSpace, this.classes, null);\n }", "public java.lang.String getClassCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(CLASSCODE$30);\n }\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getClassName()\n {\n return this.className;\n }", "String getClassName() {\n return this.className;\n }", "private String loadAttributeName() {\n return parseMapField().getKey();\n }", "public String getName() {\n if (clazz != null) {\n if (clazz.isArray()) {\n return arrayName(clazz);\n }\n return clazz.getName();\n }\n if (elementType != null) {\n return elementType.getName();\n }\n return name;\n }", "@Override\n public String simpleName() {\n if (this == class_) {\n return \"class\";\n }\n return name();\n }", "@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getClassName() { return className; }", "@Override\n\tpublic String getClassNameKey() {\n\t\treturn CLASS_NAME_KEY;\n\t}", "public String getClassName()\n {\n return _className;\n }", "private String m56637b(Class cls) {\n return cls.getName();\n }", "public static Class get_CLASS()\n {\n return WrapperMap.class;\n }", "public String getClassName () { return _className; }", "public String getClassName() {\r\n return className;\r\n }", "public String getClassName() {\n return className;\n }", "public String getClassName()\n {\n return className;\n }", "public String getClassName() {\n return this.className;\n }", "public String getClassName() {\n return this.className;\n }", "@Override\n public String getName() {\n return type.getName();\n }", "String getLayerShapeName();", "public String getClassLabel(String key);", "public String getTypeName() {\n return type.name();\n }", "public static String getJNITypeName(String finalComponent, int dimensions) {\n \t\tStringBuffer jni = new StringBuffer(finalComponent.length()+dimensions+2);\n \t\twhile (dimensions-- > 0) {\n \t\t\tjni.append('[');\n \t\t}\n \t\t\n \t\tString shortSig = (String) MapTypes.MAP_TYPENAME_TO_SHORTSIG.get(finalComponent);\n \t\tif (shortSig == null) {\n \t\t\tjni.append('L');\n \t\t\tjni.append(finalComponent);\n \t\t\tjni.append(';');\n \t\t} else {\n \t\t\tjni.append(shortSig);\n \t\t}\n \t\t\n \t\treturn jni.toString();\n \t}", "@Override\n public String getClassName() {\n Object ref = className_;\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 className_ = s;\n return s;\n }\n }", "public String getClassName() {\n\t\tString tmp = methodBase();\n\t\treturn tmp.substring(0, 1).toUpperCase()+tmp.substring(1);\n\t}", "public String getName() {\n\t\treturn \"Object class name\";\n\t}", "protected String getClassName() {\n return getDescriptedClass().getName();\n }", "public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "public String getClassname(Class<?> aClass) {\n\t\tString result = aClass.getCanonicalName();\n\t\tif (result.endsWith(\"[]\")) {\n\t\t\tresult = result.substring(0, result.length() - 2);\n\t\t}\n\t\treturn result;\n\t}", "public String getClassification() {\n return classification;\n }", "public int getLOC_class() {\n\t\treturn this.LOC_class;\n\t}", "public String getClasstype() {\n return classtype;\n }", "public String getName() {\n if (name == null && !nameExplicitlySet) {\n synchronized(this) {\n if (name == null && !nameExplicitlySet)\n name = constructComponentName();\n }\n }\n return name;\n }", "public String getProductClass() {\n return (String)getAttributeInternal(PRODUCTCLASS);\n }", "public String getClassConstruct() {\n return super.getClassConstruct();\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "public static String getClassName() {\n return CLASS_NAME;\n }", "public String getTypeName() {\n Class type = getType();\n if (type == null)\n return null;\n return type.getName();\n }", "public final String toStringClassName() {\r\n \t\tString str = this.getClass().getName();\r\n \t\tint lastIx = str.lastIndexOf('.');\r\n \t\treturn str.substring(lastIx+1);\r\n \t}", "public String getClassName() {\n return super.getClassName();\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }" ]
[ "0.67780685", "0.6459794", "0.63133156", "0.62100416", "0.62006414", "0.61439246", "0.61272085", "0.61008275", "0.6082755", "0.6039982", "0.5997271", "0.5992017", "0.5973014", "0.5951798", "0.59239805", "0.59239805", "0.59239805", "0.5920762", "0.59147483", "0.58915555", "0.5891241", "0.58857864", "0.5883514", "0.5882207", "0.58721286", "0.58331287", "0.580274", "0.5801396", "0.57874244", "0.5762879", "0.5757104", "0.57560503", "0.5755386", "0.57441133", "0.57364494", "0.5732254", "0.5732254", "0.5732254", "0.57321346", "0.5722155", "0.57129145", "0.57129145", "0.569917", "0.5694584", "0.56917137", "0.5684657", "0.56639016", "0.5660509", "0.5660509", "0.56556326", "0.565316", "0.56516784", "0.56325144", "0.56272864", "0.5626366", "0.56185424", "0.5617661", "0.5614183", "0.5611797", "0.5602096", "0.5593763", "0.55926985", "0.55910647", "0.55851376", "0.55752146", "0.5566799", "0.5566155", "0.5556344", "0.5549858", "0.55480075", "0.55480075", "0.5546323", "0.55447894", "0.55446", "0.55372673", "0.5532448", "0.55289096", "0.5526881", "0.55263025", "0.5522595", "0.5512759", "0.55111045", "0.55111045", "0.55080765", "0.5507576", "0.55030787", "0.5502584", "0.55020505", "0.54901075", "0.54896677", "0.54800534", "0.54800534", "0.5479303", "0.5475139", "0.54713535", "0.54713106", "0.54711485", "0.5470802", "0.5470802", "0.5470802" ]
0.8065241
0
Sets the name of the Map Component Class of this attribute
public void setMapComponentClassName(String mapComponentClassName){ m_mapComponentClassName = mapComponentClassName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String s) {\n\t\tclassName = s;\n\t}", "public String getMapComponentClassName() {\n return m_mapComponentClassName;\n }", "protected void setClassType(String name, Class<?> clazz) {\n\t\tmapClass.put(name, clazz);\n\t}", "public void setClassName(String name)\n {\n _className = name;\n }", "public void setClassName(String className) { this.className=className; }", "public void setClassName(String name) {\n this.className = name;\n }", "public void setClazzName(String clazz);", "@Override\r\n\t\tpublic void setClassName(String className)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setClassname(String classname) {\n this.classname = classname;\n }", "@JSProperty(\"className\")\n void setClassName(String value);", "void setClassType(String classType);", "protected void setClassName(String name) {\r\n newName.setText(name);\r\n newName.setSelectionStart(0);\r\n newName.setSelectionStart(name.length());\r\n }", "@DISPID(-2147417111)\n @PropPut\n void className(\n java.lang.String rhs);", "void setMeasurementControllerClassName(String className);", "public void setClass_(String newValue);", "public void setClassname(String classname) {\n\t\tthis.classname = classname;\n\t}", "public void updateMapModuleName() {\n\t\tgetMapModule().rename();\n\t\taddToOrChangeInMapModules(getMapModule().toString(), getMapModule());\n\t\tsetMapModule(getMapModule(), getMapModule().getMode());\n\t}", "public void setName(String sName)\n {\n ensureLoaded();\n m_clzName = new ClassConstant(sName);\n setModified(true);\n }", "public void setClassName(String name) {\n\t\tlines.append(\".class public l2j/generated/\");\n\t\tlines.append(name);\n\t\tclassName = \"l2j/generated/\" + name;\n\t\tlines.append(\"\\n\");\n\n\t\t// stupid check\n\t\tif (dest.indexOf(name) == -1)\n\t\t\tthrow new IllegalStateException(\"Bad class name\");\n\t}", "public void setClassName(String className) {\n this.className = className;\n }", "public void setClsName(String clsName) {\n this.clsName = clsName;\n }", "public void setMap(String mn){\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n }", "public void setClassName(String className) {\n this.className = className;\n }", "public void setClassName(String className) {\n this.className = className;\n }", "public void setClassName(String className) {\n this.className = className;\n }", "@OptionMetadata(displayName = \"Class attribute/index\", description = \"The \"\n + \"name or 1-based index of the class attribute\", displayOrder = 6)\n public void setClassAttribute(String c) {\n m_classIndex = c;\n }", "@Override\r\n public void setName(String name) {\n }", "public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}", "public void setName(String value) {\n this.name = value;\n }", "@Override\n public void setName(String name) {\n \n }", "public void setEntity(String name, Class<? extends AbstractEntity> entclass) {\n entityClass = entclass;\n //label.setText(name);\n }", "@Override\n\tpublic void setName(String name) {\n\t\t\n\t}", "@Override\n\tpublic void setName(String arg0) {\n\n\t}", "@Override\n public void setName(String name) {\n\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "public void setMapName(String mapname) {\n this.mapName = mapname;\n }", "protected void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\n characterName = name;\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setMapName(String mapName) {\n this.mapName = mapName;\n }", "public void setComponentName(ComponentName name);", "public void setName(String nm){\n\t\tname = nm;\n\t}", "public void setName(String new_name){\n this.name=new_name;\n }", "public void setCName(String aValue) {\n String oldValue = cName;\n cName = aValue;\n changeSupport.firePropertyChange(\"cName\", oldValue, aValue);\n }", "void setName(String name_);", "public void setNametype(Integer nametype) {\r\n this.nametype = nametype;\r\n }", "public void setClassLabel(String key, String label);", "public abstract void setNamedComponents(Map<String,List<Component>> namedComponents);", "protected void setName(String name) {\n this._name = name;\n }", "public void changeAttrName() {\r\n }", "public void setName(String Name){\r\n name = Name;\r\n }", "protected void setName(String name) {\n this.name = name;\n }", "@Override\n public Void visitTypeVariable(TypeVariable t, Void aVoid) {\n reflectClass.setName(t.asElement().getSimpleName().toString());\n return super.visitTypeVariable(t, aVoid);\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setComponent(String componentName1) {\n this.component = componentName1;\n }", "public void setClassName(java.lang.String className) {\n this._className = className;\n }", "public void setElementName(CamelCaseName value){\n ((MenuDMO) core).setElementName(value);\n }", "public void setName(String s) {\n this.name = s;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setMapName(String mapName) {\n this.mapName = mapName;\n }", "public void setMapName(String mapName) {\n this.mapName = mapName;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\n\t\tgetNonVisualProperties().setName(name);\n\t}", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "@Override\n public String getName() {\n return REACT_CLASS;\n }", "public void setAttrib(String name, String value);", "public final void setName(final GenericName name) {\n this.value = name.toString();\n final NameSpace scope = name.scope();\n if (scope != null && !scope.isGlobal()) {\n codeSpace = scope.name().toString();\n }\n }", "public void setName(String arg0) {\n\t\t\n\t}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name) \n {\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "void setName(String name) {\n this.name = name;\n }", "public String getName_Class() {\n\t\treturn name;\n\t}", "public void setName(String newname)\n {\n name = newname;\n \n }", "public void setName(String name) {\n m_Name = name;\n }", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setName(String name)\r\n {\r\n this.mName = name;\r\n }" ]
[ "0.65672475", "0.6400844", "0.62163126", "0.60903096", "0.6078961", "0.60207415", "0.6014246", "0.59245515", "0.5904439", "0.5876057", "0.5840325", "0.5821445", "0.5792142", "0.5745483", "0.57235605", "0.57134193", "0.56791604", "0.5671098", "0.5649746", "0.56393945", "0.5637799", "0.5576784", "0.5497601", "0.5497601", "0.5497601", "0.5462614", "0.54557955", "0.54545313", "0.5443392", "0.5438986", "0.54350066", "0.54315066", "0.54079", "0.54024357", "0.53973246", "0.53968483", "0.5393443", "0.53856033", "0.53774583", "0.5359321", "0.53383434", "0.5332375", "0.53305274", "0.5307953", "0.530197", "0.5300806", "0.5298359", "0.52956915", "0.5284153", "0.5280885", "0.52758336", "0.52655685", "0.5263148", "0.5257585", "0.5257585", "0.5257585", "0.52566767", "0.5252152", "0.5251299", "0.52443165", "0.5242596", "0.5242596", "0.5236095", "0.52318513", "0.52318513", "0.5229541", "0.5229302", "0.5229302", "0.5229302", "0.5229302", "0.52268916", "0.52227527", "0.52183336", "0.52183336", "0.52183336", "0.52183336", "0.52183336", "0.52183336", "0.52183336", "0.5215919", "0.5215919", "0.5215406", "0.52138835", "0.52101856", "0.5201398", "0.5200896", "0.5200896", "0.5200896", "0.5199561", "0.5198164", "0.5196182", "0.5195027", "0.5193832", "0.5190841", "0.518772", "0.518772", "0.518772", "0.5187673", "0.518489", "0.518442" ]
0.75816077
0
Gets the name of the preferred type this attribute
public String getPreferredType() { return m_preferredType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPreferredName() {\n return (String) getAttributeInternal(PREFERREDNAME);\n }", "public String getName() {\n return type.toString();\n }", "public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getType () { return getAttributeOrDefault(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , \"\"); }", "com.microsoft.schemas.xrm._2013.metadata.AttributeTypeDisplayName getAttributeTypeDisplayName();", "@Override\n public String getName() {\n return type.getName();\n }", "public String getTypeName() {\n return type.name();\n }", "public String getpermitTypeName() {\n return (String) getAttributeInternal(PERMITTYPENAME);\n }", "public String ofType() {\n\t\t return name;\n\t}", "String getPreferredName();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "private String getSchemaAttributeTypeName(SchemaAttribute schemaAttribute)\n {\n ElementType type = schemaAttribute.getType();\n if (type != null)\n {\n return type.getElementTypeName();\n }\n else\n {\n return SchemaElementMapper.SCHEMA_ATTRIBUTE_TYPE_NAME;\n }\n }", "public String getTypeName();", "public String getTypeName();", "public String getPreferredDefinition() {\n return (String) getAttributeInternal(PREFERREDDEFINITION);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();", "public abstract String getTypeName();", "public String getTypeName() {\n Class type = getType();\n if (type == null)\n return null;\n return type.getName();\n }", "public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}", "@Override\n public String getType() {\n return this.name; \n }", "public String getType () {\n // Will resolve to specific subclass\n return this.getClass().getSimpleName();\n }", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}", "public Integer getNametype() {\r\n return nametype;\r\n }", "@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}", "public org.apache.xmlbeans.XmlString xgetTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPENAME$6);\n return target;\n }\n }", "public Class getAttributeType();", "public String getType() {\n\t\treturn TYPE_NAME;\n\t}", "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "public String getType() {\r\n return this.getClass().getName();\r\n }", "public final String getType() {\n return this.getClass().getName();\n }", "public String getDisplayName() {\n return typeElement.getQualifiedName().toString();\n }", "String getTypeAsString();", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public final String getTypeAttribute() {\n return getAttributeValue(\"type\");\n }", "public String getModel_type_name() {\r\n\t\treturn model_type_name;\r\n\t}", "public String getType() {\n\t\tString type = C;\n\t\t// Modify if constrained\n\t\tParameterConstraint constraint = this.constraint;\n\t\tif (constraint != null) type = \"Constrained\" + type;\n\t\treturn type;\n\t}", "public String attributeType(String aname) {\n for (int i = 0; i < attributes.size(); i++) {\n if (attributes.get(i).equals(aname))\n return domains.get(i);\n }\n return null;\n }", "public String getPersonType() {\r\n return (String) getAttributeInternal(PERSONTYPE);\r\n }", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "@XmlElement\n private String getConceptPreferredName() {\n return concept != null ? concept.getDefaultPreferredName() : \"\";\n }", "@Override\n\tpublic String getTypeAsName() {\n\t\treturn null;\n\t}", "public short getAttributeType() {\n return attributeType;\n }", "public String getTypeName()\n {\n return this.typeName;\n }", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "String typeName();", "public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}", "public NameType getType() {\n return type;\n }", "public String getType() {\n // or only getDeclaringType().getName()\n // return getDeclaringType().getFullName();\n if(getNamespace() != null && getNamespace().length() > 0) {\n // when using getDeclareType().getName() some objects return lowercase\n // names, hence we capitalize (using getDeclaringType().getFullName() does\n // not exhibit this behavior but has the issue that it might return names\n // that include generic types and their mappings, which cause issues in\n // the code elements that use this method\n return getNamespace()+\".\"+Utilities.capitalize(getDeclaringType().getName());\n }\n return Utilities.capitalize(getDeclaringType().getName());\n }", "public String getTypeName() {\n return this.typeName;\n }", "@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }" ]
[ "0.71947914", "0.7155891", "0.70424175", "0.70096636", "0.69921064", "0.6899064", "0.68765736", "0.68759453", "0.68584996", "0.67935175", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.67258495", "0.6709755", "0.6681055", "0.6681055", "0.6675426", "0.66669226", "0.6647226", "0.66248995", "0.66226566", "0.6598169", "0.65934646", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.65777135", "0.657684", "0.65744865", "0.65382963", "0.65233034", "0.6519213", "0.65052044", "0.6504721", "0.65013224", "0.64741355", "0.64613503", "0.6455612", "0.64465624", "0.64465624", "0.6437134", "0.6412156", "0.64103633", "0.6391726", "0.63861275", "0.6378661", "0.63614106", "0.63445854", "0.6325183", "0.6317104", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.63027513", "0.6293178", "0.6276874", "0.6265718", "0.6260387", "0.6259195", "0.6240032" ]
0.7006267
4
Sets the name of the preferred type this attribute
public void setPreferredType(String preferredType){ m_preferredType = preferredType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTypeName(java.lang.String value);", "public void setType(String name){\n\t\ttype = name;\n\t}", "public void setNametype(Integer nametype) {\r\n this.nametype = nametype;\r\n }", "public void setpermitTypeName(String value) {\n setAttributeInternal(PERMITTYPENAME, value);\n }", "public void setPreferredName(String value) {\n setAttributeInternal(PREFERREDNAME, value);\n }", "void setAttributeTypeDisplayName(com.microsoft.schemas.xrm._2013.metadata.AttributeTypeDisplayName attributeTypeDisplayName);", "public void completeAttributeType_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\r\n\t\t// subclasses may override\r\n\t\t// subclasses may override\r\n\t\t// subclasses may override\r\n\t}", "public void setType (String type) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , type); }", "com.microsoft.schemas.xrm._2013.metadata.AttributeTypeDisplayName addNewAttributeTypeDisplayName();", "void setType(java.lang.String type);", "@Override\n public void setName(String name) {\n \n }", "@SuppressWarnings(\"unused\")\n private void setConceptPreferredName(String name) {\n if (concept == null) {\n concept = new ConceptJpa();\n }\n concept.setDefaultPreferredName(name);\n }", "@Override\n public String getType() {\n return this.name; \n }", "public void setType(String newValue);", "public void setType(String newValue);", "public void setAttributeType(final String attributeType);", "@Override\r\n public void setName(String name) {\n }", "@Override\n\tpublic void setName(String name) {\n\t\t\n\t}", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "@Override\n public String getName() {\n return type.getName();\n }", "public void setTypeName(java.lang.String typeName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPENAME$6);\n }\n target.setStringValue(typeName);\n }\n }", "@Override\n public void setName(String name) {\n\n }", "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setClazzName(String clazz);", "ProductType(String name)\n {\n this.name = name;\n }", "public void xsetTypeName(org.apache.xmlbeans.XmlString typeName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TYPENAME$6);\n }\n target.set(typeName);\n }\n }", "void setClassType(String classType);", "@Override\n\tpublic void setName(String arg0) {\n\n\t}", "@Override\n\tpublic void setName( final String name )\n\t{\n\t\tsuper.setName( name );\n\t}", "public void setFoodType(String food);", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "void setName(String name_);", "public void setName(java.lang.String aName);", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void setName(String value) {\n this.name = value;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "@Override\n\tpublic void setTypeName(java.lang.String typeName) {\n\t\t_permissionType.setTypeName(typeName);\n\t}", "public String getPreferredName() {\n return (String) getAttributeInternal(PREFERREDNAME);\n }", "public void setReviewType(java.lang.String value);", "public void setPreferredDefinition(String value) {\n setAttributeInternal(PREFERREDDEFINITION, value);\n }", "protected void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(final String name);", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String s) {\n\t\tclassName = s;\n\t}", "public final void setName(String name) {_name = name;}", "public void set_type(String t)\n {\n type =t;\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void changeAttrName() {\r\n }", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(String name);", "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "protected void setName(String name) {\n this._name = name;\n }", "protected abstract void setMyName(String name);", "@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}", "public void setName(String string) {\n\t\t\n\t}", "public void setPlatformType(PlatformType name);", "protected abstract void setName(String string);", "public void setType(String aType) {\n iType = aType;\n }", "public void setName(String name){this.name = name;}", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setType(String t) {\n\ttype = t;\n }", "public void setName(String nm){\n\t\tname = nm;\n\t}", "public void setName (String n){\n\t\tname = n;\n\t}", "@Override\n\tpublic String getTypeAsName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "public String ofType() {\n\t\t return name;\n\t}", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String s) {\n this.name = s;\n }", "protected void setName(String name) {\n this.name = name;\n }", "void setNilAttributeTypeDisplayName();", "public void setName(String n){ name=n; }", "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "public void setName(String n) {\n this.name = n;\n }" ]
[ "0.6878958", "0.67705506", "0.6761317", "0.6651095", "0.6616377", "0.651537", "0.6347681", "0.63433886", "0.6293604", "0.6269929", "0.622323", "0.6201871", "0.6184563", "0.61838216", "0.61838216", "0.6181307", "0.6180002", "0.6153642", "0.61387694", "0.61387694", "0.61240965", "0.6120569", "0.60967344", "0.6095423", "0.6095423", "0.6088905", "0.6088905", "0.6088905", "0.6069356", "0.60300577", "0.60135496", "0.599839", "0.5998074", "0.5983903", "0.59836775", "0.59583384", "0.59583384", "0.5945423", "0.5941284", "0.5937595", "0.5937595", "0.5937595", "0.5935367", "0.5926068", "0.5922964", "0.591982", "0.591982", "0.591982", "0.591982", "0.59083325", "0.5906448", "0.58857846", "0.58787346", "0.5876392", "0.58666986", "0.5864961", "0.5864961", "0.5856667", "0.5855061", "0.58536136", "0.58526736", "0.58516747", "0.58457226", "0.58457226", "0.58457226", "0.58457226", "0.58457226", "0.58457226", "0.58457226", "0.58457226", "0.58457226", "0.58457226", "0.58457226", "0.58328766", "0.58308375", "0.5829104", "0.5828834", "0.5821901", "0.58185667", "0.5817827", "0.5815669", "0.58097756", "0.58059967", "0.58042943", "0.58029526", "0.57960814", "0.579445", "0.5794135", "0.57929075", "0.5789155", "0.5789155", "0.5789155", "0.5772524", "0.5768636", "0.57666165", "0.57660395", "0.5762772", "0.57582957", "0.5757491", "0.5755875" ]
0.6660835
3
Gets the name of the label of this attribute
public String getDefaultValue() { return m_defaultValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public String getLabelName() {\n return m_labelName;\n }", "@Nonnull\n\tGenericAttributeValue<String> getLabel();", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI();\n\t }\n\t return name;\n }", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public String getLabel() {\n\t\treturn this._label;\n\t}", "public String getLabel() {\n\t\treturn label;\n\t}", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getLabel() {\r\n return lbl;\r\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public java.lang.String getLabel();", "public String getLabel(){\n\t\treturn label;\n\t}", "public String label() {\n return this.label;\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\n {\n return m_label;\n }", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "java.lang.String getLabel();", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "public String getName()\n {\n return (String)getAttributeInternal(NAME);\n }", "String nameLabel();", "public IfcLabel getName()\n\t{\n\t\treturn this.Name;\n\t}", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\n return label;\n }", "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel()\n { \n return label;\n }", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public String getStrLabelName() {\r\n\t\treturn strLabelName;\r\n\t}", "String getLabel() {\n return label;\n }", "private String getLabel() {\n return this.label;\n }", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getLabel(){\n return label;\n }", "public String getName() {\n\t\treturn this.toString();\n\t}", "public Object getLabel() \n {\n return label;\n }", "public double getLabel() {\n\t\treturn label;\n\t}", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "public int getLabel() {\n\t\treturn label;\n\t}", "public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public final String aoy() {\n return this.label;\n }", "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public String getName() {\n return (String) getValue(NAME);\n }", "public Label getLabel() {\n return this.label;\n }", "String getLabel();", "String getLabel();", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getName();", "public String getLabel() {\r\n return layout.label;\r\n }", "public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }", "public AXValue getName() {\n return name;\n }", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "String getAttributeName(Object attr);", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }", "public String getName() {\n return getProperty(Property.NAME);\n }", "public String getLabel(){\n\t\treturn sAnzeige;\n\t}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.8037653", "0.8013077", "0.7798535", "0.7789598", "0.7560592", "0.7499951", "0.74634415", "0.74279606", "0.74279606", "0.74279606", "0.74279606", "0.7423476", "0.7423415", "0.7422783", "0.74126345", "0.7408823", "0.73697436", "0.73681337", "0.73681337", "0.73681337", "0.73664796", "0.7363467", "0.7360048", "0.7358296", "0.7357542", "0.73571277", "0.73571277", "0.73571277", "0.73551244", "0.73551244", "0.73551244", "0.73551244", "0.7348177", "0.73475635", "0.733533", "0.7334644", "0.7334644", "0.73257583", "0.73252666", "0.73232925", "0.7317557", "0.7308182", "0.7298105", "0.7296359", "0.7289983", "0.7273761", "0.7256566", "0.7254141", "0.7246731", "0.7219884", "0.72097975", "0.72052085", "0.7197721", "0.7174419", "0.71240026", "0.7103304", "0.7103304", "0.7103304", "0.7081906", "0.70771885", "0.70753133", "0.70678294", "0.70609504", "0.7052386", "0.70503473", "0.7029509", "0.7029509", "0.7025576", "0.70169127", "0.70169127", "0.70169127", "0.70169127", "0.7012899", "0.7010704", "0.6999618", "0.6973689", "0.6966109", "0.69276476", "0.69276476", "0.69085467", "0.69048053", "0.6902033", "0.6900468", "0.68955165", "0.68901587", "0.68854636", "0.6867421", "0.6863544", "0.6863148", "0.68573886", "0.6842226", "0.68378663", "0.6833519", "0.6833382", "0.68236685", "0.68233454", "0.6813432", "0.67997336", "0.67997336", "0.67997336", "0.67997336" ]
0.0
-1
Sets the name of the label of this attribute
public void setDefaultValue(String defaultValue){ m_defaultValue = defaultValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNameLabel(String nameLabel) {\r\n this.nameLabelText = nameLabel;\r\n this.nameLabel.setText(this.nameLabelText);\r\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setLabelName(String labelName){\n m_labelName = labelName;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(String val) {\n name = val;\n }", "public void setName(String val) {\n this.name = val;\n }", "public void setName(String name) {\n\t\tthis.name = name;\n\t\tthis.setText(name);\n\t}", "public void setName(AXValue name) {\n this.name = name;\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}", "public void setName(IfcLabel Name)\n\t{\n\t\tthis.Name = Name;\n\t\tfireChangeEvent();\n\t}", "public void setName (String n) {\n name = n;\n }", "public void setName(String n) {\n this.name = n;\n }", "@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }", "public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(String nm){\n\t\tname = nm;\n\t}", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "void setLabel(String label);", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name) {\n \t\tthis.name = name;\n \t}", "public static void setLabel(Label labelName) {\n emitf(\"%s:\\n\", labelName.toString());\n }", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$26);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\r\r\n\t\tthis.name = name;\r\r\n\t}", "public void setName(String name) {\n\t this.name = name;\n\t }", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$8);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(java.lang.String name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$4);\n }\n target.setStringValue(name);\n }\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}", "public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "public void setName( String name ) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }" ]
[ "0.75628775", "0.73826903", "0.7373045", "0.7341314", "0.7268763", "0.7244969", "0.72123194", "0.7200446", "0.7192236", "0.71888095", "0.71839035", "0.7181959", "0.71575284", "0.7148564", "0.71387583", "0.71328115", "0.7105223", "0.7065761", "0.7064853", "0.7064853", "0.7064853", "0.7061836", "0.7061836", "0.7061836", "0.7060232", "0.7057781", "0.7048016", "0.7048016", "0.7048016", "0.7042579", "0.7034543", "0.7034543", "0.7030049", "0.7015274", "0.70141006", "0.7009445", "0.70003355", "0.69994956", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.6998667", "0.69979894", "0.69948864", "0.6990398", "0.6990398", "0.69896793", "0.698943", "0.698943", "0.698943", "0.69882655", "0.6987665", "0.6984795", "0.6977842", "0.6977842", "0.6977842", "0.69760823", "0.69741356", "0.69735116", "0.69735116", "0.6972791", "0.6971767", "0.6971767", "0.6971767", "0.6971767", "0.6971767", "0.6967474", "0.69651437", "0.69632155", "0.6951481", "0.69507647", "0.6949517", "0.6945151", "0.6942427" ]
0.0
-1
how to intialize the webelements with the help of Page Factory solotion we will create constructor of a class PageFactory is a class & initElemnets is a method IQ: How u will intialize PageFactory Intializing the Page Objects
public LoginPage(){ PageFactory.initElements(driver, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void init() {\n PageFactory.initElements(webDriver, this);\n }", "public HomePage(){\r\n\tPageFactory.initElements(driver, this);\t\r\n\t}", "public void initializeWebElement(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage(){\n PageFactory.initElements(driver, this);\n }", "public Page() {\n PageFactory.initElements(getDriver(), this); //snippet to use for @FindBy\n }", "public AmazonHomePageFactory(WebDriver driver){\n\t\t\n\t\tPageFactory.initElements(driver, this);\n \n elementControl=new CommonElements();\n \n \n dropdownControl=new DropdownControl();\n \n \n\t}", "public HomePage(){\n\t\t\tPageFactory.initElements(driver, this); \n\t\t}", "public HomePage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\r\n\r\n\t}", "public BasePageObject() {\n this.driver = BrowserManager.getInstance().getDriver();\n this.wait = BrowserManager.getInstance().getWait();\n PageFactory.initElements(driver, this);\n }", "public LoginPage()\n{\n\tPageFactory.initElements(driver, this);\n}", "public LoginPage(){\n PageFactory.initElements(driver, this); //all vars in this class will be init with this driver\n }", "public HomePage() \r\n\t{\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t\r\n\t}", "public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}", "public HomePage() { \n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "@BeforeAll\n public void beforeAll() {\n driver = browserGetter.getChromeDriver();\n //initialize page object class\n page = PageFactory.initElements(driver, WebElementInteractionPage.class);\n }", "public FaceLoginPage(WebDriver driver){ // ===> Bu bir constructor\n\n this.driver = driver;\n // **** PageFactory.initElements() **** ==> page objelerini(Web element) baslatmak icin kullanilir\n PageFactory.initElements(driver, this);\n\n }", "private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}", "public DocsAppHomePO ()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public WebpageFactoryImpl() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unchecked\")\n private void initElements() {\n\n try {\n\n Elements marker = null;\n\n for (Annotation annotation : this.getClass().getDeclaredAnnotations()) {\n if(annotation instanceof Elements) {\n marker = (Elements) annotation;\n }\n }\n\n if(marker == null) {\n String msg = \"Expected @Elements annotation on Screen class\";\n log.error(msg);\n throw new FrameworkException(msg);\n }\n\n PlatformType platform = DriverWrapper.getActivePlatform();\n Validate.notNull(platform);\n\n Class<? extends BaseElements> elementsClass = null;\n\n if(marker.elements().equals(BaseElements.class)) {\n // do we have individual iOS or Android elements?\n if(PlatformType.ANDROID == platform) {\n elementsClass = marker.androidElements();\n\n } else if(PlatformType.IOS == platform) {\n elementsClass = marker.iosElements();\n } else {\n throw new IllegalArgumentException(\"Un-supported platform\");\n }\n\n } else {\n // just take combined merged elements\n elementsClass = marker.elements();\n }\n\n if(marker.elements().equals(BaseElements.class)) {\n throw new IllegalArgumentException(\"Expected that you provide an elements class\");\n }\n\n Constructor<? extends BaseElements> constructor = elementsClass.getConstructor();\n this.elements = constructor.newInstance();\n\n PageFactory.initElements(new AppiumFieldDecorator(driver), elements);\n\n this.elements.init(driver);\n\n } catch(Exception e) {\n\n log.error(\"Failed to initialize page elements\", e);\n throw new FrameworkException(e);\n }\n }", "public HomePage() {\n \t\tPageFactory.initElements(driver, this);\n \t}", "public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public LoginPage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t}", "public PersonalPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public PageFactoryCruises(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this);\n\t}", "public UserPage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public QualificationsPage(){\n PageFactory.initElements(driver, this);\n }", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@BeforeClass\n public void beforeClass() {\n driver = browserGetter.getChromeDriver();\n //initialize page object class\n page = PageFactory.initElements(driver, WaiterPage.class);\n }", "public HomePage() {\n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage (WebDriver driver1)\r\n\t\t\t{\r\n\t\t\t\tPageFactory.initElements(driver1, this);\r\n\t\t\t}", "public DashBoardPageFactory(WebDriver driver) {\n\n\t\tdriver=DriverManager.getDriver();\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this); //now all Page Factory elements will have access to the driver, \n\t\t\t\t\t\t\t\t\t\t\t\t//which is need to get a hold of all the elements. w/o it, tests will fail. \n\t\t\t\t\t\t\t\t\t\t\t\t//\"this\" is referring to the Class HomePage\n\t}", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePageAustria() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public PageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n }", "public IntentPizzaAccountPageObject(WebDriver driver){\n\t\t\tPageFactory.initElements(driver, this);\n\t}", "@BeforeTest\n public void setUp() throws Exception {\n driver = new FirefoxDriver();\n baseUrl = \"https://kontur.ru/Files/userfiles/file/edu/Stagirovka%202012/test/default.html\";\n driver.manage().timeouts().implicitlyWait(30,\n TimeUnit.SECONDS);\n basePage= PageFactory.initElements(driver,\n BasePage.class);\n tuesdayPage = PageFactory.initElements(driver, TuesdayPage.class);\n mondayPage = PageFactory.initElements(driver, AlexPMondayPage.class);\n }", "public void initElements() {\n\n emptyStateElement = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_state_title\"));\n postRequestButton = driver.findElement(By.id(\"com.fiverr.fiverr:id/empty_list_button\"));\n }", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "protected void construct()\n\t{\n\t\tassert(driver != null);\n\t\t// V�rification que l'on est bien sur la bonne page\n\t String sTitle = driver.getTitle();\n\t\tif(!sTitle.equals(TITLE)) {\n throw new IllegalStateException(\"This is not Login Page, current page is: \" +driver.getCurrentUrl());\n\t\t}\t\t\n\t\ttbUserName = driver.findElement(ByUserName);\n\t\ttbPassword = driver.findElement(ByPassword);\n\t\tbtnConnect = driver.findElement(ByConnect);\n\t}", "public PIMPage()throws IOException\n\t{\n\t\tPageFactory.initElements(driver,this);\n\t\t\n\t}", "public TreinamentoPage() {\r\n\t\tPageFactory.initElements(TestRule.getDriver(), this);\r\n\t}", "public HomePage(WebDriver driver) {\n\t\tthis.driver=driver;\n\t\teleutil=new ElementUtil(this.driver); \n\t}", "public LoginPage() {\r\n\t\t\t\r\n\t\t\t//Initialize webElements.\r\n\t\t\tPageFactory.initElements(driver, this);\r\n\t\t}", "public SearchPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "@BeforeMethod\n\tpublic void setUp() {\n\t\tdriver = new FirefoxDriver();\n\t\t\n\t\t// Launch the wikia.com web site\n\t\tdriver.get(WEBSITE_ADDRESS);\n\t\tHomePage = PageFactory.initElements(driver, HomePagePO.class);\n\t\tLoginContainer = PageFactory.initElements(driver, LoginContainerPO.class);\n\t}", "public MyAccountPageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n wait = new WebDriverWait(driver, 20);\n }", "public RegistrationPage() {\t\t\r\n\t\tdriver = DriverManager.getThreadSafeDriver();\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public Loginpage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public ContactPage() {\n\t\t\t\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "public MyProfilePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePageActions() {\n\t\tPageFactory.initElements(driver,HomePageObjects.class);\n\t}", "protected void doAdditionalPageInitialization(IPage page) {\n }", "public BasePage(WebDriver driver)\n\t{\n\t\tpageDriver= driver;\n\t\tPageFactory.initElements(new AjaxElementLocatorFactory(driver, 25), this);\n\t}", "public HotelsPage() {\n PageFactory.initElements(driver, this);\n }", "private void init()\n {\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n GWikiElement page = wikiContext.getWikiWeb().getElement(pageId);\n WorkflowPopupActionBean.this.page = page;\n\n // check if dependent objects exists\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(page.getElementInfo());\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, 2);\n }\n return null;\n }\n\n /**\n * Recursive fetch of child elements\n */\n private void getSubpagesRec(GWikiElementInfo parent, int curDepth)\n {\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(parent);\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, ++curDepth);\n }\n }\n });\n }", "Page createPage();", "public HomePage(WebDriver driver) {\n\t\tthis.driver= driver;\n\t\t\n\t\t//Initializing the webelements for this class\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public static WebpageFactory init() {\n\t\ttry {\n\t\t\tWebpageFactory theWebpageFactory = (WebpageFactory)EPackage.Registry.INSTANCE.getEFactory(WebpagePackage.eNS_URI);\n\t\t\tif (theWebpageFactory != null) {\n\t\t\t\treturn theWebpageFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new WebpageFactoryImpl();\n\t}", "public GuruDepositPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public PageGeneratorLanguareFactoryImpl()\n {\n super();\n }", "@Override\n protected void init(PageDto page, HttpServletRequest request, HttpServletResponse response, Model model) {\n\n }", "public EditBoardPage(){\n PageFactory.initElements(driver, this);\n waitUntilPageObjectIsLoaded();\n }", "public PageUtil() {\n\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public RegistrationRutPage(WebDriver driver) {\n super(driver);\n PageFactory.initElements(driver, this);\n }", "public LoginPOJO() {\n\n\t\tPageFactory.initElements(driver, this);\t\n\t}", "public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "public ArticlePage(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\twait = new WebDriverWait(this.driver, Properties.LONG_WAIT);\n\t\tjse = (JavascriptExecutor) driver;\n\t\tPageFactory.initElements(driver, this);\n\n\t}", "public LandingPage(WebDriver driver) {\r\n\t\tthis.driver = driver;\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public loginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "private final void createAppPages() {\r\n\t\t//Instantiate Page objects that have no associated test properties\r\n\t\t//Note that if a test DOES need to specify test properties for one of these pages\r\n\t\t// (e.g., search terms), it can create its own local version of the page, and pass\r\n\t\t// the pagePropertiesFilenameKey argument, OR create it here, by calling createPage\r\n\t\t// instead of createStaticPage\r\n\r\n\t\t//Can also instantiate regular (i.e., with associated test properties) DD-specific\r\n\t\t// Page objects here, but typically it is best for the test or utility methods to do that;\r\n\t\t// if we do it here we may end up creating Page objects that never get used.\r\n }", "public ContactsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public SpotifyPageOne( WebDriver driver )\n {\n this.driver = driver;\n PageFactory.initElements( driver, this );\n }", "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "public LoginPage(WebDriver driver){\n super(driver);\n PageFactory.initElements(driver, this);\n }", "public static WebDriver initializatio(){\n\t\t \r\n\t\t\t String browse_name= prop.getProperty(\"browser\");\r\n\t\t\t \r\n\t\t\t \r\n\t\t if(driver==null && browse_name.equals(\"chrome\")){\r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//RJ//Downloads//chromedriver.exe\");\r\n\t\t\t driver=new ChromeDriver();\r\n\t\t\t //E:\\Yadav Selenium\r\n\t\t }\r\n\t\t \r\n\t\t else if(driver==null && browse_name.equals(\"FF\")){\r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", \"E://Yadav Selenium//geckodriver.exe\");\r\n\t\t\t driver=new FirefoxDriver();\r\n\t\t }\r\n\t\t event_driver=new EventFiringWebDriver(driver);\r\n\t\t //now cearte Eventlistnerhandler to resgistor with eventFireingWebdriver\r\n\t\t event_lisner=new WebEventListner();\r\n\t\t event_driver.register(event_lisner);\r\n\t\t driver=event_driver;\r\n\t\t \r\n\t\t driver.manage().window().maximize();\r\n\t\t driver.manage().deleteAllCookies();\r\n\t\t driver.manage().timeouts().pageLoadTimeout(Testutil.PAGE_LOAD_TIMEOUT, TimeUnit.SECONDS);\r\n\t\t driver.manage().timeouts().implicitlyWait(Testutil.IMPLICIT_WAIT, TimeUnit.SECONDS);\r\n\t\t // driver.get(prop.getProperty(\"url\"));\r\n\t\t driver.navigate().to(prop.getProperty(\"url\"));\r\n\t\treturn driver;\r\n\t}", "public RegistrationPage(WebDriver wd) {\n\t\tsuper(wd);\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginPage(WebDriver driver) {\r\n this.driver=driver;\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public abstract void setUpElementsWithData();", "static BasePage getPageInstance(String page_name,HttpServletRequest request,\n HttpServletResponse response,HttpServlet servlet){\n HttpSession session = request.getSession();\n BasePage page = (BasePage)session.getAttribute(page_name);\n if(page == null){\n page = (BasePage)createInstance(page_name);\n session.setAttribute(page_name,page);\n if(page == null)\n System.err.println(\"Could not create \" + page_name);\n } //if\n page.request = request;\n page.session = session;\n page.servlet = servlet;\n if(!page.$isLoaded())\n page.fillDom();\n return page;\n}", "public CalendarPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "@BeforeMethod\n public void setUp() throws Exception {\n wd = new FirefoxDriver();\n \n //Configuracion de tiempos implicitos y no de espera\n wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n \n //Ventana de Firefox Maximizar\n wd.manage().window().maximize();\n \n //Creo la variable repoObjects instanciando la claseHomepage\n repoObjectsHome = PageFactory.initElements(wd, HomePage.class);\n \n //Url\n wd.get(\"http://192.168.5.4/callcenter/\");\n }", "public SignInStepsDefs() throws IOException {\n\t\tsuper();\n\t\tdriver = StepBaseSetup.driver;\n\t\t\n\t\tif(StepBaseSetup.isMobileUI()){\n\t\t\tlogin = PageFactory.initElements(driver, LoginPageMobile.class); \n\t\t} else {\n\t\t\tlogin = PageFactory.initElements(driver, LoginPage.class); \n\t\t}\n\t}", "public SignUp() {\n PageFactory.initElements(webDriver, this);\n }", "private IndexPage initializeTest() {\n Dimension dimension = new Dimension(1920, 1080);\n driver.manage().window().setSize(dimension);\n driver.get(baseUrl);\n indexPage = new IndexPage(driver);\n return indexPage;\n }", "private LWPageUtilities()\n {\n }", "public WikipediaPageModel(WebDriver driver) {\r\n\t\tthis.driver = driver;\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Test\n public void Login() {\n\t FBHomepageFactory f1 = PageFactory.initElements(driver, FBHomepageFactory.class); //.class is used as it gives the byte code of that class\n\t \n\t f1.Loginmethod();\n }", "public WebPage(){\n dom = new LinkedList<String>() /* TODO\n//Initialize this to some kind of List */;\n }", "@Override\n\tprotected void initOwnPageComponents() {\n\t\tLOG.debug(\"###BtpnBasePage:initPageComponents()====> Start\");\n\t\tsuper.initOwnPageComponents();\n\t\taddSelfCarePageComponents();\n\t\tLOG.debug(\"###BtpnBasePage:initPageComponents()====> End\");\n\t}" ]
[ "0.7915156", "0.768125", "0.73953664", "0.7354031", "0.7335476", "0.7297199", "0.72755903", "0.72495985", "0.72487617", "0.72217923", "0.7220612", "0.71921325", "0.7149689", "0.7075608", "0.7052169", "0.7002021", "0.6988248", "0.6948877", "0.6847768", "0.6805459", "0.6791161", "0.67788064", "0.6762284", "0.6750532", "0.67436147", "0.670321", "0.6694184", "0.66683686", "0.6661046", "0.66570115", "0.6633185", "0.6633185", "0.6633185", "0.6633185", "0.6629657", "0.6612798", "0.6561025", "0.65501153", "0.65342337", "0.6532756", "0.65153587", "0.65081304", "0.6504535", "0.64903754", "0.64895344", "0.64875615", "0.6486418", "0.6481805", "0.6477815", "0.6456466", "0.6452924", "0.64512056", "0.6441039", "0.6413974", "0.64098394", "0.6385204", "0.6379829", "0.63546276", "0.63457006", "0.63453543", "0.6337335", "0.6329617", "0.6285921", "0.62825733", "0.6277843", "0.62773156", "0.62496835", "0.61793685", "0.61699307", "0.6167459", "0.616668", "0.61641496", "0.61641496", "0.6152347", "0.6151302", "0.6150361", "0.61245686", "0.6108492", "0.6102078", "0.6094332", "0.608047", "0.60776335", "0.60346013", "0.60130596", "0.60121167", "0.60101056", "0.60001165", "0.5999411", "0.5994285", "0.5993339", "0.59818536", "0.59806454", "0.5967221", "0.59521866", "0.59425265", "0.5933762", "0.59311104", "0.59305096", "0.59281206", "0.59201485" ]
0.66058487
36
now we define different actions Actions
public String validateLoginPageTitle() { return driver.getTitle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registerActions() {\n // File menu :\n new NewAction();\n new LoadOIFitsAction();\n new LoadFitsImageAction();\n\n new ExportOIFitsAction();\n new ExportFitsImageAction();\n\n // Edit menu :\n new DeleteSelectionAction();\n\n // Processing menu :\n new RunAction();\n new ResampleImageAction();\n\n // Interop menu :\n // Send OIFits (SAMP) :\n new SendOIFitsAction();\n // Send Fits (SAMP) :\n new SendFitsAction();\n }", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}", "public interface Actions {\n void initScreen();\n void getRevenues(String date, String accessToken);\n void requestWithdrawl(String accessToken, float amount);\n\n }", "public abstract Action getAction();", "protected void init_actions()\n {\n action_obj = new CUP$Asintactico$actions(this);\n }", "public interface Actions {\n void initScreen();\n void submitReview(String accessToken,\n String productID,\n String rating,\n String orderDID,\n String comment);\n }", "public abstract void init_actions() throws Exception;", "protected void init_actions()\r\n {\r\n action_obj = new CUP$AnalizadorSintactico$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$Sintactico$actions(this);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\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 }", "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 }", "public void setAction(String action) { this.action = action; }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$ParserForms$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$FractalParser$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() {\r\n action_obj = new CUP$SintacticoH$actions(this);\r\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "protected void createActions()\n {\n super.createActions();\n \n wireAction(\n new ContentAssistAction(\n PerlEditorMessages.getResourceBundle(),\n \"ContentAssistProposal.\",\n this),\n PerlEditorCommandIds.CONTENT_ASSIST,\n PerlEditorActionIds.CONTENT_ASSIST);\n \n // each marker clearing action gets its own wiring\n wireAction(new ClearMarkerAction.Critic(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_CRITIC_MARKERS);\n wireAction(new ClearMarkerAction.PodChecker(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_POD_MARKERS);\n wireAction(new ClearMarkerAction.AllMarkers(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_ALL_MARKERS);\n \n wireAction(new PodCheckerAction(this), PerlEditorCommandIds.POD_CHECKER,\n PerlEditorActionIds.POD_CHECKER);\n wireAction(new ToggleCommentAction(this), PerlEditorCommandIds.TOGGLE_COMMENT,\n PerlEditorActionIds.TOGGLE_COMMENT);\n wireAction(new PerlCriticAction(this), PerlEditorCommandIds.CRITIQUE_SOURCE,\n PerlEditorActionIds.PERL_CRITIC);\n wireAction(new FormatSourceAction(this), PerlEditorCommandIds.FORMAT_SOURCE,\n PerlEditorActionIds.FORMAT_SOURCE);\n wireAction(new Jump2BracketAction(this), PerlEditorCommandIds.MATCHING_BRACKET,\n PerlEditorActionIds.MATCHING_BRACKET);\n wireAction(new ExportHtmlSourceAction(this), PerlEditorCommandIds.HTML_EXPORT,\n PerlEditorActionIds.HTML_EXPORT);\n wireAction(new ValidateSourceAction(this), PerlEditorCommandIds.VALIDATE_SYNTAX,\n PerlEditorActionIds.VALIDATE_SYNTAX);\n wireAction(new OpenDeclarationAction(this), PerlEditorCommandIds.OPEN_DECLARATION,\n PerlEditorActionIds.OPEN_DECLARATION);\n wireAction(new PerlDocAction(this), PerlEditorCommandIds.PERL_DOC,\n PerlEditorActionIds.PERL_DOC);\n wireAction(new ExtractSubroutineAction(this), PerlEditorCommandIds.EXTRACT_SUBROUTINE,\n PerlEditorActionIds.EXTRACT_SUBROUTINE);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$SintaxAnalysis$actions(this);\r\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 }", "protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }", "private void createActions() {\r\n\t\tcreateBlankDocument.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control N\"));\r\n\t\tcreateBlankDocument.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_N);\r\n\t\t\r\n\t\topenDocumentAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control O\"));\r\n\t\topenDocumentAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_O);\r\n\t\t\r\n\t\tsaveDocumentAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control S\"));\r\n\t\tsaveDocumentAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_S);\r\n\t\t\r\n\t\tsaveDocumentAsAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"alt S\"));\r\n\t\tsaveDocumentAsAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_S);\r\n\t\t\r\n\t\tcloseCurrentTabAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control W\"));\r\n\t\tcloseCurrentTabAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_W);\r\n\r\n\t\tcopyAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control C\"));\r\n\t\tcopyAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_C);\r\n\r\n\t\tcutAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control X\"));\r\n\t\tcutAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_X);\r\n\t\r\n\t\tpasteAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control V\"));\r\n\t\tpasteAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_V);\r\n\r\n\t\tgetStatsAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"alt I\"));\r\n\t\tgetStatsAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_I);\r\n\t\t\r\n\t\ttoUpperCaseAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control U\"));\r\n\t\ttoUpperCaseAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_U);\r\n\t\t\r\n\t\ttoLowerCaseAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control L\"));\r\n\t\ttoLowerCaseAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_L);\r\n\t\t\r\n\t\tinvertSelected.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control I\"));\r\n\t\tinvertSelected.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_I);\r\n\t\t\r\n\t\tuniqueLinesAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control Q\"));\r\n\t\tuniqueLinesAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_Q);\r\n\t\t\r\n\t\tsortAscAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"alt A\"));\r\n\t\tsortAscAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_A);\r\n\t\t\r\n\t\tsortDescAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"alt D\"));\r\n\t\tsortDescAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_D);\r\n\r\n\t\texitAction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"alt F4\"));\r\n\t\texitAction.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_X);\r\n\t}", "private void setActions(){\n login.setOnAction(e->login());\n simulate.setOnAction(e->simulate());\n scoreBoardButton.setOnAction(e->scoreBoard());\n viewBracket.setOnAction(e->viewBracket(selectedBracket, playerMap));\n clearButton.setOnAction(e->clear());\n resetButton.setOnAction(e->reset());\n finalizeButton.setOnAction(e->finalizeBracket());\n }", "@Override\n protected Action[] createActions() {\n return new Action[0];\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "protected void init_actions()\r\n {\r\n action_obj = new CUP$LuaGrammarCup$actions(this);\r\n }", "private void initActions() \n {\n // Quits the application\n this.quitAction = new AbstractAction (\"Quit\") \n {\n public static final long serialVersionUID = 2L;\n\n @Override\n public void actionPerformed (ActionEvent arg0) \n { \n System.exit(0);\n }\n };\n\n // Creates a new model\n this.newGameAction = new AbstractAction (\"New Game\") \n {\n public static final long serialVersionUID = 3L;\n\n @Override\n public void actionPerformed(ActionEvent arg0) \n {\n AsteroidsFrame.this.newGame ();\n }\n };\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$MJParser$actions(this);\r\n }", "Action createAction();", "Action createAction();", "Action createAction();", "protected void init_actions()\n {\n action_obj = new CUP$include$actions(this);\n }", "@Override\n public String getActions() {\n\treturn \"\";\n }", "public void setAction(String action);", "protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }", "public void createAction() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$XPathParser$actions(this);\n }", "public void executeAction( String actionInfo );", "protected void init_actions()\n {\n action_obj = new CUP$PCLParser$actions(this);\n }", "@Override\n\tpublic void action() {\n\n\t}", "CaseAction createCaseAction();", "protected void init_actions()\n {\n action_obj = new CUP$CompParser$actions(this);\n }", "public interface MyActions {\n\n String GET_ROUTINES = \"get-routines\";\n String RENAME_ROUTINE = \"rename-routine\";\n String DELETE_ROUTINE = \"delete-routine\";\n String CREATE_ROUTINE = \"create-routine\";\n String UPDATE_TASKS = \"update-tasks\";\n String GET_TASKS = \"get-tasks\";\n\n String CREATE_TASK = \"create-task\";\n String DELETE_TASK = \"delete-task\";\n void deleteTask(String routine, Task task);\n String UPDATE_TASK = \"update-task\";\n String UPDATE_BREAK_INTERVAL = \"update-break-interval\";\n String GET_BREAK_INTERVAL = \"get-break-interval\";\n String SAVE_HISTORY = \"save-history\"; //save after each task completes\n String GET_HISTORY = \"get-history\";\n String LOGIN = \"login\";\n\n void getRoutines();\n\n void renameRoutine(String oldName, String newName);\n\n void deleteRoutine(String routine);\n\n void createRoutine(String name, int priority);\n\n void updateTask(String routine, Task oldTask, Task newTask, int position);\n\n void updateBreakInterval(String routine, int interval);\n\n void getBreakInterval(String routine);\n\n void getTasks(String routine);\n\n void createTask(String routine, Task task, int priority);\n\n void updateTasks(String routine, List<Task> tasks);\n\n void login(String userEmail);\n\n void saveHistory(String routine, Task task, String date, String time);\n\n void getHistory();\n\n}", "public void action() {\n action.action();\n }", "public abstract void addAction(Context context, NAAction action);", "public interface AppAction\n{\n void login(String name, String password, Handler handler);\n\n void access(Handler handler, String ...s);\n\n void gdata(Handler handler, List<EHentaiMangaInfo> list);\n\n void getMangaInfo(Handler handler);\n\n void getNews(Handler handler);\n\n void getNews(Handler handler, String title, String page);\n\n void getImg( String url, ImageView imageView,AppActionImpl.Callback<Void> callback,int height,int width);\n}", "ActionType createActionType();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public ActionList getActions();", "protected void init_actions()\n {\n action_obj = new CUP$analisis_sintactico_re$actions(this);\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public void setAction (String action) {\n this.action = action;\n }", "@Override\r\n\tpublic void actionMapper(String action) {\n\t\tProperty prop = javaScriptWindow.propertyTable.getPropertyTable()\r\n\t\t\t\t.getSelectedProperty();\r\n\t\tif (action.equalsIgnoreCase(CommonConstants.SAVEASNEWBUTTON)) {\r\n\t\t\tsaveAsNewButtonAction();\r\n\t\t}\r\n\t\tif (action.equalsIgnoreCase(CommonConstants.NEWBUTTON)) {\r\n\t\t\tnewButtonAction();\r\n\t\t}\r\n\t\tif (action.equalsIgnoreCase(CommonConstants.LOADBUTTON)) {\r\n\t\t\tloadButtonAction();\r\n\r\n\t\t}\r\n\t\tif (action.equalsIgnoreCase(JavaScriptConstants.SEARCHTEXTBOX)) {\r\n\t\t\tsearchTextAction();\r\n\t\t}\r\n\r\n\t\tif (action.equalsIgnoreCase(CommonConstants.RIGHTSIDECENTERTABLE)) {\r\n\t\t\trightSideCenterTableAction();\r\n\t\t}\r\n\t\tif (action.equalsIgnoreCase(CommonConstants.DELETEBUTTON)) {\r\n\t\t\tdeleteButtonAction();\r\n\t\t}\r\n\t}", "String[] getActions();", "public int getActionType();", "public void setActions() {\n actions = new HashMap<String, Action>();\n for (Action a: jsonManager.getActionsFromJson()) {\n actions.put(a.getName(), a);\n }\n }", "private StateActions(){}", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "private SelectOSAction() {\r\n }", "public void setActions(List<OFAction> actions) {\n\t\tthis.actions = actions;\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public static ActionList<BankActionContext> initActions() {\n\t\tBankActionContext context = BankActionContext.getInstance();\n\t\tBankAgency ag = context.getBankAgency();\n\t\tBankAccountActionList<BankActionContext> actionListBankAgency = new BankAccountActionList<BankActionContext>(\"1\", \"General\",\n\t\t\t\t\"--\\n \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\\n General Menu\\n--\");\n\t\tactionListBankAgency.addAction(new ListAccounts(\"1\", \"List of the Agency accounts\"));\n\t\tactionListBankAgency.addAction(new AccountNumber(\"2\", \"See an account (by its number)\"));\n\n\t\tBankAccountActionList<BankActionContext> actionListAccountOperation = new BankAccountActionList<BankActionContext>(\"3\", \"Operation on an account\",\n\t\t\t\t\"--\\n \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\\n Menu Operation on an account\\n--\");\n\t\tactionListAccountOperation.addAction(new Deposit(\"1\", \"Deposit money on an account\"));\n\t\tactionListAccountOperation.addAction(new Withdraw(\"2\", \"Withdraw money from an account\"));\n\t\tactionListBankAgency.addAction(actionListAccountOperation);\n\n\t\tBankAccountActionList<BankActionContext> actionListManagement = new BankAccountActionList<BankActionContext>(\"4\",\n\t\t\t\t\"Accounts management\",\n\t\t\t\t\"--\\n \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\\n Menu Accounts management\\n--\");\n\t\tactionListManagement.addAction(new AddAccount(\"1\", \"Add an account\"));\n\t\tactionListManagement.addAction(new DeleteAccount(\"2\", \"Delete an account\"));\n\t\tactionListBankAgency.addAction(actionListManagement);\n\n\t\treturn actionListBankAgency;\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand() == \"查询\") {\n //String order = e.getActionCommand();\n try {\n new Inquiry(username);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n //new Login(e.getActionCommand());\n } else if (e.getActionCommand() == \"存款\") {\n new SaveMoney(username);\n //new Login(e.getActionCommand());\n } else if (e.getActionCommand() == \"取款\") {\n new DrawMoney(username);\n } else if (e.getActionCommand() == \"转账\") {\n new Transfer(username);\n } else if (e.getActionCommand() == \"改密\") {\n new Modify(username);\n }\n else if (e.getActionCommand() == \"查询记录\") {\n new Test1();\n }\n else if (e.getActionCommand() == \"退卡\") {\n new Menu();\n // System.exit(0);\n }\n\n }", "@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}", "public static Action action(String id) {\n/* 205 */ return actions.get(id);\n/* */ }", "@Override\n\tpublic void newAction() {\n\t\t\n\t}", "@Override\n\tpublic void setAction() {\n\t}", "public interface ActionHandler {\n ModelApiResponse handleActionChoice(ActionChoice choice);\n List<AvailableActions> getActionsCurrentlyAvailable();\n}", "public interface Actions {\n String ACTION_MEDIA_PLAY_PAUSE = \"com.tatait.tatamusic.ACTION_MEDIA_PLAY_PAUSE\";\n String ACTION_MEDIA_NEXT = \"com.tatait.tatamusic.ACTION_MEDIA_NEXT\";\n String ACTION_MEDIA_PREVIOUS = \"com.tatait.tatamusic.ACTION_MEDIA_PREVIOUS\";\n String VOLUME_CHANGED_ACTION = \"android.media.VOLUME_CHANGED_ACTION\";\n String LIST_TYPE_COLLECT = \"collect\";\n String LIST_TYPE_LOCAL = \"local\";\n String LIST_TYPE_ONLINE = \"online\";\n int DB_PLAY_LIST_LOCAL = 0;\n int DB_PLAY_LIST_COLLECT = 1;\n int DB_PLAY_LIST_ONLINE = 2;\n}", "public void act() \n {\n // Add your action code here.\n }" ]
[ "0.7581019", "0.7342476", "0.7309082", "0.71735376", "0.7069486", "0.7026821", "0.6983503", "0.69735247", "0.6953669", "0.6948947", "0.6943122", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6908666", "0.6883952", "0.68793535", "0.68741006", "0.6852664", "0.6852261", "0.6852261", "0.6852261", "0.6852261", "0.6852261", "0.683764", "0.68308663", "0.68308663", "0.68308663", "0.681215", "0.68094385", "0.67734164", "0.67734164", "0.676664", "0.6763293", "0.6762669", "0.67477244", "0.6746456", "0.67441946", "0.67433995", "0.6732831", "0.6722631", "0.6722631", "0.6722631", "0.67058325", "0.669348", "0.6693332", "0.66799086", "0.66799086", "0.6678584", "0.66723675", "0.66628563", "0.6662222", "0.6661171", "0.66605407", "0.66585404", "0.6657945", "0.66389066", "0.65696955", "0.6559997", "0.65576947", "0.6536276", "0.65333134", "0.65269315", "0.65269315", "0.65269315", "0.65269315", "0.652142", "0.6516939", "0.6513382", "0.65061224", "0.65056765", "0.6478834", "0.6475332", "0.6466568", "0.645", "0.64402795", "0.64402795", "0.64375347", "0.6433225", "0.64330006", "0.64220184", "0.64096117", "0.6399285", "0.639781", "0.63841873", "0.6371627", "0.63706654", "0.6366536", "0.63609344", "0.635682" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long id) { nameoffriend = sp.getItemAtPosition(position).toString(); Toast.makeText(getApplicationContext(), nameoffriend, Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onNothingSelected(AdapterView<?> arg0) { }
{ "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
int x; String ss;
public void Every_Transaction_Status(View v) { s1 = nameoffriend; if(s1.equals("")) { Toast.makeText(getApplicationContext(), "Please Enter Ur Friend Name", Toast.LENGTH_SHORT).show(); } else { c1 =db.rawQuery(" select name from sqlite_master WHERE type='table' AND name='"+s1+"' ", null); if(c1.moveToFirst()) { c1 = db.rawQuery(" select * from '"+s1+"' ", null); c1.moveToFirst(); tv.setText(""); do { if(c1.getString(c1.getColumnIndex("mode")).equals("given")) { tv.append("\nname : "+c1.getString(c1.getColumnIndex("name"))+"\nAmount Given : "+c1.getString(c1.getColumnIndex("amount"))+"\nDate : "+c1.getString(c1.getColumnIndex("date"))+"\nRemark : "+c1.getString(c1.getColumnIndex("remark"))+"\nDue Amount : "+c1.getString(c1.getColumnIndex("due_amount"))+"\n"); } else if(c1.getString(c1.getColumnIndex("mode")).equals("taken")) { tv.append("\nname : "+c1.getString(c1.getColumnIndex("name"))+"\nAmount Taken : "+c1.getString(c1.getColumnIndex("amount"))+"\nDate : "+c1.getString(c1.getColumnIndex("date"))+"\nRemark : "+c1.getString(c1.getColumnIndex("remark"))+"\nDue Amount : "+c1.getString(c1.getColumnIndex("due_amount"))+"\n"); } else { tv.append("\nname : "+c1.getString(c1.getColumnIndex("name"))+"\nAmount : "+c1.getString(c1.getColumnIndex("amount"))+"\nDate : "+c1.getString(c1.getColumnIndex("date"))+"\nRemark : "+c1.getString(c1.getColumnIndex("remark"))+"\nDue Amount : "+c1.getString(c1.getColumnIndex("due_amount"))+"\n"); } }while(c1.moveToNext()); } else { Vibrator vib = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE) ; vib.vibrate(300); Toast.makeText(getApplicationContext(), "Please choose Ur friend name", Toast.LENGTH_SHORT).show(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getS1();", "java.lang.String getS();", "public void puzzle5(){\n\t\tObject x = \"object string\";\n\t\tString i = \"real string\";\n\t\tx += i;\n\t\tx = x + i;\n\t\tSystem.out.println(\"Value of x \"+x);\n\t}", "static String type(String sin){\n String s = new String();\n for(int c = 0; 0<sin.length();c++){\n if(sin.charAt(c)>='a'&&sin.charAt(c)<='z'){\n s+=\"variable\";\n }else if(sin.charAt(c)>='0'&&sin.charAt(c)<='0'){\n s+=\"Integer\";\n }\n }\n return s;\n }", "void mo12635a(String str);", "public static void main (String[]args) {\n\t\tdouble money = 10.35;\r\n\t//Define a variable type with value of 5*/\t\r\n\t\tbyte number = 5;\r\n\t//Define a variable type with a value of 3*/\t\r\n\t\tint age = 3; \r\n\t\t//Declare 3 String variables\r\n\t\r\n\tString greeting;\r\n\tString goodbye;\r\n\tString saying; \r\n\t//Assign values to those previously created variables\r\n\tgreeting = \"Hi\";\r\n\tgoodbye = \"Take care\";\r\n\tsaying = \"To each their own\";\r\n\tSystem.out.println(greeting);\r\n\tSystem.out.println(greeting+saying);//Expected : HiTo each their own\r\n\t}", "public void setStr(int s)\n\t{\n\t\tstr = s; \n\t}", "public static void main(String[] args) {\n\r\n\t\tchar a='1';\r\n\t\tint b=2;\r\n\t\tString c=\"3\";\r\n\t\tint s=0;\r\n\t\t\r\n\t\t// SOMME int = CHAR + CHAR = INT - EN CALCUL LE CHAR DEVIENT INT !!!!!!!\r\n\t\ts=a+a;\r\n\t\tSystem.out.println(\"CHAR + CHAR \"+s);\r\n\t\t\r\n\t\t\r\n\t\t// SOMME INT = STRING + STRING = STRING\r\n\t\t//s=c+c;\r\n\t\tSystem.out.println(\"STRING + STRING \"+s);\r\n\t\t\r\n\t\t// SOMME INT = CHAR +INT = INT - EN CALCUL LE CHAR DEVIENT INT !!!!!!\r\n\t\ts=a+b;\r\n\t\tSystem.out.println(\"CHAR +INT \"+s);\r\n\t\t\r\n\t\t// SOMME INT = CHAR + STRING = STRING\r\n\t\t//s=a+c;\r\n\t\tSystem.out.println(\"CHAR + STRING \"+s); // LE STRING EST INMODIFIABLE ET PREND LE DESSUS\r\n\t\t\r\n\r\n\t}", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "int func1(String s);", "java.lang.String getS2();", "void mo3768a(String str);", "Integer getSobjNmHi();", "public static void main(String[] args){\n java.lang.String myString = \"This is a string\";\n System.out.println(myString);\n myString = myString + \", and this is more.\";\n System.out.println(myString);\n\n int myInt = 50;\n String lastString = \"10\";\n lastString = lastString + myInt;\n System.out.println(\"Last String is = \" + lastString);\n\n /*Strings are immutable i.e. you can't change the value of string once it's created.\n * Java automatically create a new string with the value of old string and some new string.\n * And, java delete the old string variable from memory.\n * String is class not a data type in class.*/\n\n\n\n\n }", "public static void main( String[] args )\n {\n //bug bug\n //bug bug\n int age = 12;\n System.out.println( \"Hello World!\" );\n int i=10;\n String age = \"123\";\n }", "void mo28732a(boolean z, int i, String str);", "void mo37759a(String str);", "void mo41089d(String str);", "void mo28733a(boolean z, int i, String str, String str2);", "public static void main(String[] args) {\n\t\tint i=10;\r\n\t\ti=20;\r\n\t\t\r\n\t\tdouble j=12.33;\r\n\t\t\r\n\t\tchar k='a';\r\n\t\t\t\t\r\n\t\tboolean l=true;\r\n\t\t\r\n\t\t//String is a class, not a data type.\r\n\t\tString m = \"This is my java code\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.print(i+j);\r\n\r\n\t}", "@Test\n void inferString() {\n var s = \"Hello, World!\"; // Not helpful\n assertEquals(String.class, s.getClass());\n }", "public void set(String s) {\n y=(int)Integer.parseInt(s.substring(0,4));\n m=(int)Integer.parseInt(s.substring(5,7))-1;\n d=(int)Integer.parseInt(s.substring(7,9));\n }", "public static void main(String[] args) {\n\t\tint a=10;\n\t\tint abc=12;\n\t\t\n\t\tlong l=1212;\n\t\t\n\t\tshort s=122;\n\t\tSystem.out.println(\"am here\");\n\t\tSystem.out.print(a);\n\t\tSystem.out.println(\"check here\");\n\t\t\n\t\tbyte b=127;\n\t\t\n\t\t\n\t\tdouble d=10.234;\n\t\t\n\t\tfloat f=12.22f;\n\t\t\n\t\tboolean bb=true;\n\t\t\n\t\t\n\t\tchar c='s';\n\t\t\n\t\t\n\t\t//reference datatype\n\t\tString st=\"varun\";\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "static int type_of_xthl(String passed){\n\t\treturn 1;\n\t}", "NinjaWarrior(int s)\t \n\t{\n\t\tstr = s; \n\t}", "public static void main(String[] args) {\n\t\tint x; //declaring\n\t\tint y=123456789; //initializing/assigning the value of y to be 10 --> 10 does not equal to y but y=10\n\t\t\n\t\tInteger c=3;\n\t\tInteger a=new Integer(3);\n\t\t//2. double is numbers with decimal number\n\t\tdouble d= 2.1;\n\t\t \n\t\t//3. boolean two type true or false\n\t\tboolean bool= true; //true=1\n\t\tboolean bool1=false;//false=0\n\t\t\n\t\t//4. byte 8-bit data type\n\t\tbyte b=123; \n\t\t//5. short 16-bit data type\n\t\tshort srt=12345;\n\t\t//6. long 64-bit data type\n\t\tlong lng= 4;\n\t\t//7. float data typr 32 bit\n\t\tfloat f=3;\n\t\tfloat f1='s';\n\t\t\n\t\t//8. Char variable type\n\t\tchar ch= 'C';\n\t\t/**********complex objects or reference not *************/\n\t\t//1. Strings variable type\n\t\t//string pool\n\t\tString s=\"hu\"; //declaring\n\t\tString r= new String(\"hello\");\n\t\tr=\"hhh\";\n\t\ts=\"hi\";\n\t\t\n\t\t\t\t\n\t\tString str= \" my name is rasmi\"; //assigning the value of str to be h--> h does not equal to str\n\t\t\n\t\t//\n\t\tint num='x';\n\t\tint sum=num+2;\n\t\tSystem.out.println(\"num:\"+ num +\" \"+\"sum:\"+sum);\n\t\t/******* enums******/\n\t\tColor c1=Color.RED;\n\t\tSystem.out.println( \"Enum Color: \" +c1);\n\t\t\n\t\tint num1=0,num2=0;\n\t\t\n\t\tString chair,table=\"metal\";\n\t\t//chair=chair+table; // chair not initialized\n\t\t//System.out.println(\"chair: \"+chair);\n\t}", "void mo11024a(int i, int i2, String str);", "java.lang.String getS9();", "void mo1791a(String str);", "void mo88522a(String str);", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "public static void main(String[] args) \n {\n int x = 3;\n System.out.println(x);\n int x = 5;\n System.out.println(x);\n // ANS: Can't declare the same variable twice in the same scope\n }", "static void PrintVarValues(String s){\n System.out.println(s);\n }", "void mo9697a(String str);", "void mo85415a(String str);", "public static void main(String[] args) {\n int x = 2;\n int y = x ;\n\n\n }", "static int type_of_stc(String passed){\n\t\treturn 1;\n\t}", "public void setS(String s);", "int mo5882g(String str);", "void mo87a(String str);", "public static void main(String[] args) {\nint i=10;\nint j=20;\n\nString x=\"lionel\";\nString y=\"messi\";\n\nSystem.out.println(i+j);\nSystem.out.println(x+y);\nSystem.out.println(x+y+i);\nSystem.out.println(x+i+j);\nSystem.out.println(\"helloworld\");\nSystem.out.println(\"the value of i is:\"+i);\n\t}", "public void testSingleVar() { assertValid(\"int a;\"); }", "void mo1935c(String str);", "int mo23351i(String str, String str2);", "java.lang.String getS5();", "void mo3314b(String str);", "public static void main(String[] args) {\n byte b1=10;\r\n byte b2=20;\r\n int b3=b1+b2; // byte+byte=int\r\n \r\n int a=10;\r\n long b=20L;\r\n double d=10.5;\r\n // a+b+d \r\n // a=10.0 b=20.0 d=10.5\r\n String s=\"\";\r\n // double r=a+b+d+s; \r\n // String \r\n\t}", "void mo1932a(String str);", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "int mo23349e(String str, String str2);", "public static void main(String[] args) {\n String str = \"Data type 1\";\n System.out.println(str);\n System.out.println(global);\n sum();\n final double PI =3.14;\n System.out.println(PI);\n System.out.println(\"Name\\tDOB\");\n short s = 10;\n int i = 28;\n long l =100L;\n\n float f = 3.1f;\n double d =3.5;\n\n char c= 'a';\n char c2 = '5';\n char c3 = 65; // 'A'\n\n boolean b1 = true;\n boolean b2 = false;\n\n Integer ref_i = 100;\n\n int a = 100;\n int b = 200;\n System.out.println(\"a = \" + a + \", b = \" +b);\n }", "public void foo() {\n\tint j;\n\tint jj = 0;\n\t// System.out.println(i); Will not compile; local variables must be initialized\n\tSystem.out.println(jj);\n }", "public Tuple2<String, Integer> call(String x)\n\t\t\t\t\t\t\tthrows Exception {\n\t\t\t\t\t\treturn new Tuple2(x, 1);\n\t\t\t\t\t}", "public static void main(String[] args) {\nString a = \"abc 123\";\n//String b = \"123\";\n//String e = \"123\";\nString c = \"c\";\n//String d = b + e;\n\nint b = 123;\nint e = 123;\nint d = b +e;\n//System.out.println(d);\n\n\nObject m = \"abc123\";\nObject n = 123;\nObject n1 = 123;\nObject j = 'a';\nObject s = true;\n//Object n3 = n + n1;\n//System.out.println(n3);\n\nObject[] p= new Object[5];\np[0] = \"abc123\";\np[1] = 123;\np[2] = 124;\np[3] = 'a';\np[4] = true;\n//System.out.println(p[1]-p[2]);\n\n\t}", "public void m23077a(String str) {\n }", "public static void main(String[] args) {\n\t\tString name =\"Siyar\";\n\t\t\n\t\tint a=-21;\n\t\tif (a%2!=0) {\n\t\t\tSystem.out.println(\"odd\");\n\t\t} else {\n\t\t\tSystem.out.println(\"even\");\n\t\t}\n\t\t\n\t\tchar ch[]={'s','t','r','i','n','g','s'};\n\t\tString s2=new String(ch);\n\t\tSystem.out.println(ch);\n\t\t\nBookStudy num=new BookStudy();\nSystem.out.println(num.VAR(40));//=20\nname =\"mehmet\";\nnum.b1 =\"kk\";\n\t}", "void mo1334i(String str, String str2);", "String getInt_lit();", "public static void main(String[] args) {\n\nint x = 5;\nint y;\n// int z = x+y; // DOES NOT COMPILE\n // Local variables need to be initialized before use\n\n\n}", "public static void main(String[] args) {\n\tA1 a=new A1();\n//\t//a.m1();\n//\t//B1 a=new B1();\n//\tA1 a=new C();\n\ta.m1();\n\t//int x=20;\n\tString x=\"20\";\n\tSystem.out.println(x);\n\t\n\tint in =1;\n\tInteger obj =in;\n\t\nf\n\n}", "public static void main(String[] args) {\n int static2 = 22;\n int _static = 22;\n int $tatic = 45;\n int staticVar = 23;\n\n int salary$ = 55;\n // int 1stMonthSalary = 55; --- ERROR, cannot start with number\n int $ = 10;\n int _ = 3;\n System.out.println(\"salary $ = \" + $); // these variable work....but not recommended\n System.out.println(\"weekly _ = \" + _);// these variable work....but not recommended\n // int number-of-friends = 400; --- cannot use dashes ----> ERROR\n\n //int number_of_friends = 500; ---- NOT CONVENTION\n int numberOfFriends = 500; // use this camel case\n\n\n\n\n\n\n\n\n\n }", "private static int i(String s) {\n return Integer.parseInt(s);\n }", "void mo34677H(String str, int i, int i2);", "int mo23347d(String str, String str2);", "void mo1331e(String str, String str2);", "void mo4872a(int i, String str);", "int mo5885j(String str);", "static int type_of_stax(String passed){\n\t\treturn 1;\n\t}", "int mo54403a(String str, String str2);", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "public static void main(String[] args) {\n\tString variable=\"Hello\";\n\t\n\tString mySentence= \"Today is Sunday!\";\n\t\n System.out.println(mySentence);\n \n //int number=\"99\"; - anything that is put in \"\" becomes a string, must change int to String\n \n String number=\"99\"; //we will get 99 as a string\n System.out.println(number);\n \n \n \n\t}", "static int type_of_sui(String passed){\n\t\treturn 1;\n\t}", "C11998c mo41090e(String str);", "C11998c mo41092g(String str);", "abstract String mo1747a(String str);", "String mo42332a();", "interface School\r\n{\r\n\tString sname=\"abc\";\t\r\n\r\n\tvoid display();\r\n\r\n}", "private void ss(){\n }", "public void doSomething(String mmm){\n String mmmm = mmm; // OK\n\n int mooFoo = 0; // OK\n int mT = 0; // method scope so OK\n int normalCamelCase = 0; // OK\n int camelCaseWith2Number2s = 0; // OK\n\n System.out.println(mooFoo + mmmm + mT + mFoo + normalCamelCase + camelCaseWith2Number2s);\n }", "void mo64942a(String str, long j, long j2);", "public int openStatement(String x) {\r\n\r\n\t\tif (x.equals(\"\") || x.equals(\" \")) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (x.equals(\"}\")) {\r\n\t\t\tisToken(x);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (x.equals(\"double\")) {\r\n\t\t\tisToken(x);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\tif (x.equals(\"int\")) {\r\n\t\t\tisToken(x);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\tif (x.equals(\"char\")) {\r\n\t\t\tisToken(x);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\tif (x.equals(\"String\")) {\r\n\t\t\tisToken(x);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\tif (x.equals(\"float\")) {\r\n\t\t\tisToken(x);\r\n\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\tif (x.equals(\"long\")) {\r\n\t\t\tisToken(x);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tif (x.contains(\"(\") || x.contains(\")\") || x.contains(\"{\") || x.contains(\"}\")) {\r\n\t\t\treturn 2;\r\n\t\t}\r\n\r\n\t\tisToken(x);\r\n\t\treturn 0;\r\n\r\n\t}", "int mo23353w(String str, String str2);", "void mo5871a(String str);", "void mo28889a(int i, String str) throws zzlm;", "static int type_of_shld(String passed){\n\t\treturn 1;\n\t}", "public abstract void mo57435a(String str, String str2, C12855p pVar);", "void mo32681a(String str, int i, boolean z);", "boolean mo25263a(String str, String str2, boolean z, int i, int i2, int i3, boolean z2, C4619b bVar, boolean z3);", "public String toString(){return \"(X\" + variable + \" (\"+ zero + \")\" + \" (\" + one +\"))\";}", "public static void main(String[] args) {\n\n int a1 = 100;\n float f1 = (long) a1;\n // f1 = 100L;\n //f1 = 100.0;\n System.out.println(f1);\n\n long l1 = (short) f1;\n //l1= 100;\n System.out.println(l1);\n\n String name;\n //System.out.println(name); //not compiling : In java: first come first serve\n\n String Name= \"Cybertek\";\n System.out.println(Name);\n\n\n\n }", "void mo7351a(C1655s sVar);", "@Test\r\n public void deriveFromDoubleLeftAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M<<=9\", \"(int,m)\");\r\n //example with int m - char\r\n check(\"varI_M<<=\\'c\\'\", \"(int,m)\");\r\n }", "void mo7356d(C1655s sVar);", "void mo1934b(String str);", "public static void main(String[] args) {\n\t\t\n\t\tint a = 100; //Initiated a variable with type integer\n\t\t\n\t\tString b = \"hello\"; //Initiated a variable with type String\n\t\t\n\t\tString s = a + b;\n\t\t\n\t\t//The datatypes of both the variables are different \n\t\t\n\t\t//But to perform any operation we need both the variables to be of the same datatype\n\t\t\n\t\t//Here, integer value is converted into String and gets concatenated with other string\n\t\t\n\t\tSystem.out.println(s);\n\n\t}", "int mo23352v(String str, String str2);", "public static void main(String[] args) {\n\t\tshort b = 200; // create a variable and assign value\n\t\t\t\t\t\t// declare a variable and initialized\n\n\t\t// 2nd way to create a variable\n\t\tint sum; // declaration happens ONLY ONCE.......ask for a box\n\t\tsum = 20; // initialized the variable\n\n\t\tsum = 30; // reassign the value\n\n\t\t/*\n\t\t * int x; int y; int z;\n\t\t */\n\t\tint x, y, z;\n\n\t\tx = 10;\n\t\ty = 20;\n\t\t// z=30.9; Error: Type Mismatch, since variable can store only int type of\n\t\t// value, not float\n\n\t\t// I would like to change the value of x\n\t\tx = 70;\n\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(y);\n\t\tSystem.out.println(sum);\n\t\tSystem.out.println(b);\n\n\t\tint num = 33;\n\t\t// we are using value of different variable to initialize the value of a new\n\t\t// variable\n\n\t\tint num2=num; // 33\n\t\tSystem.out.println(num2);\n\t\t\n\t\tint age=50;\n\t\tint iq=age;\n\t\t\n\t\tSystem.out.println(iq+\"\"+age);\n\t\t\n\t}", "public int getx(){\r\n return z;\r\n}", "public void assignValue (String variable, String x) {\n Map.Entry<String, Value> var = findVariable(variable);\n if (var != null) {\n if (var.getValue().getType() == Value.Type.STRING)\n var.getValue().setValue(x);\n else if (var.getValue().getType() == Value.Type.REAL && x.contains(\".\"))\n try {\n var.getValue().setValue(Double.parseDouble(x));\n } catch (Exception e) {\n throw new RuntimeException(\"Error Type mismatch\");\n }\n else if (var.getValue().getType() == Value.Type.INT)\n try {\n var.getValue().setValue(Integer.parseInt(x));\n } catch (Exception e) {\n throw new RuntimeException(\"Error Type mismatch\");\n }\n else if (var.getValue().getType() == Value.Type.BOOL) {\n try {\n var.getValue().setValue(Boolean.parseBoolean(x));\n } catch (Exception e) {\n throw new RuntimeException(\"Error Type mismatch\");\n }\n } else\n throw new RuntimeException(\"Error: Type mismatch\");\n } else {\n throw new RuntimeException(\"Error: Variable was not declared\");\n }\n }", "public void mo23980a(int i, String str) {\n }" ]
[ "0.58130056", "0.57420534", "0.5727162", "0.56215066", "0.5501947", "0.54711765", "0.5467757", "0.5445029", "0.5404519", "0.53833836", "0.5377583", "0.53297883", "0.5328235", "0.5320493", "0.5320279", "0.53170776", "0.5308905", "0.5304202", "0.52939063", "0.52816254", "0.5269064", "0.5265049", "0.52560645", "0.5252796", "0.5251191", "0.5231589", "0.5223581", "0.5222964", "0.5216301", "0.52135885", "0.52099186", "0.52088064", "0.520475", "0.51846474", "0.5175045", "0.51658916", "0.5150449", "0.5148998", "0.51433414", "0.51340264", "0.511352", "0.51134676", "0.51036453", "0.50940734", "0.50928193", "0.50904596", "0.5087584", "0.5075699", "0.50697327", "0.5068809", "0.5068286", "0.506786", "0.5042354", "0.5039657", "0.5039173", "0.5037215", "0.5030206", "0.5029369", "0.5015578", "0.50132674", "0.50078195", "0.5002425", "0.499451", "0.49930024", "0.49907732", "0.49865848", "0.49860275", "0.49847308", "0.49841666", "0.49829617", "0.4982219", "0.49744204", "0.49706656", "0.49658594", "0.49614012", "0.4959139", "0.49471858", "0.4945103", "0.4938448", "0.493724", "0.49352697", "0.49325162", "0.4926992", "0.49264166", "0.49233457", "0.49211454", "0.49154842", "0.49135825", "0.4911819", "0.49115112", "0.49088717", "0.49070203", "0.49004346", "0.4895333", "0.48873562", "0.4882554", "0.48815402", "0.4877468", "0.48678282", "0.48652023", "0.48612708" ]
0.0
-1
Creates a new instance of AFMV
public AFMV() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mafia() {\n super(Side.MAFIA);\n }", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "public FareModel() {\n }", "public static OpenFrgament newInstance() {\n OpenFrgament fragment = new OpenFrgament();\n// Bundle args = new Bundle();\n//\n// fragment.setArguments(args);\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public VITACareer()\r\n {\r\n }", "Flight() {}", "public AfiliadoVista() {\r\n }", "interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }", "public FalconTest() {\n m_networkTable = NetworkTableInstance.getDefault().getTable(getName());\n\n m_supplyCurrentLimitConfig = new SupplyCurrentLimitConfiguration();\n m_supplyCurrentLimitConfig.currentLimit = 60;\n\n m_motor = new TalonFX(m_falconID);\n\n // Prevent unexpected behavior\n m_motor.configFactoryDefault();\n\n m_motor.configSupplyCurrentLimit(m_supplyCurrentLimitConfig);\n\n m_motor.config_kP(m_positionPIDSlot, m_positionPGain);\n m_motor.config_kI(m_positionPIDSlot, m_positionIGain);\n m_motor.config_kD(m_positionPIDSlot, m_positionDGain);\n\n m_motor.config_kP(m_velocityPIDSlot, m_velocityPGain);\n m_motor.config_kI(m_velocityPIDSlot, m_velocityIGain);\n m_motor.config_kD(m_velocityPIDSlot, m_velocityDGain);\n\n m_motor.setNeutralMode(NeutralMode.Coast);\n m_motor.setSelectedSensorPosition(0);\n }", "public Manusia() {}", "public Vaccine() {\n\t}", "public CMObject newInstance();", "public void createNewFarm(){\n this.mFarm = new Farm();\n this.loaded = false;\n }", "VM createVM();", "public static ATMFinderFragment newInstance() {\n ATMFinderFragment fragment = new ATMFinderFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public MARealEstateBuildingVORowImpl() {\n }", "public AltAzController()\n {\n this( 45, 45, 1, 20, 10 );\n }", "public StarGiftViewModel(Application application) {\n super(application);\n C32569u.m150519b(application, C6969H.m41409d(\"G6893C5\"));\n this.f53591p = application;\n MutableLiveData<Integer> oVar = new MutableLiveData<>();\n oVar.setValue(0);\n this.f53584i = oVar;\n MutableLiveData<Integer> oVar2 = new MutableLiveData<>();\n oVar2.setValue(0);\n this.f53585j = oVar2;\n this.f53586k = new MutableLiveData<>();\n this.f53587l = C19919a.m102268a(this.f53584i, C15131h.f53599a);\n this.f53588m = C19919a.m102268a(this.f53587l, C15130g.f53598a);\n this.f53589n = C19919a.m102268a(this.f53586k, C15127d.f53595a);\n this.f53590o = new MutableLiveData<>();\n }", "public VizualizerFactoryImpl()\n {\n super();\n }", "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "private VegetableFactory() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public ATM() {\n usuarioAutenticado = false; // al principio, el usuario no está autenticado\n numeroCuentaActual = 0; // al principio, no hay número de cuenta\n pantalla = new Pantalla(); // crea la pantalla\n teclado = new Teclado(); // crea el teclado\n dispensadorEfectivo = new DispensadorEfectivo(); // crea el dispensador de efectivo\n ranuraDeposito = new RanuraDeposito(); // crea la ranura de depósito\n baseDatosBanco = new BaseDatosBanco(); // crea la base de datos de información de cuentas\n }", "public static FvFactory init() {\n\t\ttry {\n\t\t\tFvFactory theFvFactory = (FvFactory)EPackage.Registry.INSTANCE.getEFactory(FvPackage.eNS_URI);\n\t\t\tif (theFvFactory != null) {\n\t\t\t\treturn theFvFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new FvFactoryImpl();\n\t}", "Reproducible newInstance();", "public VancarrierModel() {\r\n\t\tthis(null, \"VCModel\", true, true);\r\n\t}", "private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}", "public static Ambulancia get_instance() {\n if (instance == null)\n instance = new Ambulancia();\n return instance;\n }", "public abstract ArchECoreView newView(ArchECoreArchitecture architecture) throws ArchEException;", "public AVL() {\n\n }", "private ViewFactory() {}", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "public AlunoView() {\n initComponents();\n bus = new AlunoBus();\n }", "public Farmerko()\n {\n Config.parseConfig();\n \n if (init_db())\n {\n initComponents();\n initSize();\n auto_log_in();\n }\n }", "MainPresenter(MainContract.View view) {\n this.view = view;\n model = new AmicableModel();\n }", "public ViewModel(TableHomeFrame tableHomeFrame){\n dbActions = new Model();\n this.tableHomeFrame = tableHomeFrame;\n calculations = new Calculations();\n }", "public FilmOverviewController() {\n }", "public FlightTest(){\n }", "Instance createInstance();", "public ViewFactory(DataManager dm) {\n this.dm = dm;\n }", "public Aanbieder() {\r\n\t\t}", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private Flight() {\n this(null, null, null, null, null, null, null, null, null, null, null);\n }", "FuelingStation createFuelingStation();", "public Airplane_1_View(Arena arena) {\n super(arena);\n }", "public SMPFXController() {\n\n }", "private void initApplicationAR() {\r\n // Create OpenGL ES view:\r\n int depthSize = 16;\r\n int stencilSize = 0;\r\n boolean translucent = Vuforia.requiresAlpha();\r\n\r\n mGlView = new ArGLView(this);\r\n mGlView.init(translucent, depthSize, stencilSize);\r\n\r\n mRenderer = new ArRenderer(this, vuforiaAppSession);\r\n mRenderer.setTextures(mTextures);\r\n mGlView.setRenderer(mRenderer);\r\n\r\n }", "public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }", "@Override\r\n public VizModels create(String name, Model source) throws SlotAlreadyRegisteredException {\n StyleSetModel palette =\r\n StyleSetFactory.prototype.create(\r\n name + \"style palette\",\r\n SimpleExplicitSlotFactory.prototype);\r\n\r\n // Create the attribute model for the ForestModel\r\n PredicateModel predModel = SimplePredicateViewFactory.prototype.create(name + \"fa\", source);\r\n predModel =\r\n StyledPredicateViewFactory.prototype.configure(\r\n predModel,\r\n palette,\r\n SimpleSlotFactory.prototype);\r\n\r\n // Init Visibility Model for nodes in the Forest\r\n VisibilityModel visModel =\r\n PredicateBasedVisibilityViewFactory.prototype.create(\r\n name + \"Viz Model\",\r\n source,\r\n predModel);\r\n \r\n VizModels vm = new VizModels();\r\n vm.init(palette, predModel, visModel);\r\n return vm;\r\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public TV() {\r\n\t}", "public Visita() {\n initialize();\n }", "public RunMVC() {\n\n\t\t//cria o Modelo e a Visao\n\t\tModel myModel \t= new Model();\n\t\tView myView \t= new View();\n\t\t//View outraView \t= new View();\n\t\tOutraView outraView \t= new OutraView();\n\n\t\t//avisa o modelo que a visao existe \n\t\tmyModel.addPropertyChangeListener(myView);\n\t\tmyModel.addPropertyChangeListener(outraView);\n\n\t\tController myController = new Controller();\n\t\tmyController.addModel(myModel);\n\t\t//myController.addView(myView);\n\t\t//myController.addView(outraView);\n\t\tmyController.initModel(start_value);\n\n\t\t//tell View about Controller \n\t\tmyView.addController(myController);\n\t\toutraView.addController(myController);\n\t\t\n\n\t}", "public AulaView() {\n initComponents();\n }", "public void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CAMERA_CHOICE;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n initTfod();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n }\n }", "public Avontool() {\n initComponents();\n }", "public PlaneUIController() {\n this.launcherFacade = new LauncherFacade();\n }", "AgendaViewModel create(Bundle savedInstanceState);", "public Mannschaft() {\n }", "private void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraName = hardwareMap.get(WebcamName.class, \"Webcam\");\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n }", "public AppointmentTM() {\n }", "public MyVM( ) \n {\n // initialise instance variables\n try \n {\n // your code here\n \tthis.si=new ServiceInstance(new URL(SJSULAB.getVmwareHostURL()),\n\t\t\t\t\tSJSULAB.getVmwareLogin(), SJSULAB.getVmwarePassword(), true);\n } \n catch ( Exception e ) \n { \n \tSystem.out.println( e.toString() ) ; \n }\n\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "public PlatilloViewModel(@NonNull Application application) {\n super(application);\n repository=PlatilloRepository.getInstance();\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "private MApi() {}", "public Magazzino() {\r\n }", "@SuppressWarnings (\"unchecked\")\r\n\t@Override\r\n\tpublic <T> T create ()\r\n\t{\r\n\t\tFxCharmView fxView = new FxCharmView ();\r\n\t\tfxView.registerSpecialType (IntValueView.class, new FxIntDisplayFactory ());\r\n\t\tfxView.registerSpecialType (BooleanView.class, new FxBooleanDisplayFactory ());\r\n\t\tnew Stylesheet (\"skin/platform/tooltip.css\").applyToParent (fxView.getNode ());\r\n\t\treturn (T) fxView;\r\n\t}", "InstanceModel createInstanceOfInstanceModel();", "public Factory() {\n\t\tsuper();\n\t}", "public Vampire() {\n super();\n this.name = \"Vampire\";\n }", "public static Factory factory() {\n return ext_accdt::new;\n }", "protected CameraInstance createCameraInstance() {\n CameraInstance cameraInstance = new CameraInstance(getContext());\n cameraInstance.setCameraSettings(cameraSettings);\n return cameraInstance;\n }", "protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }", "void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }", "public void createAFDetail(VBAFDetail vbAFDetail)\r\n\t{\n\t\tAffiliateDAOUtil.createAFDetail(vbAFDetail);\r\n\t}", "public Forecasting() {\n }", "protected GuiTestObject flatMaisonette(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"flatMaisonette\"), anchor, flags);\n\t}", "public MVCModelo()\n\t{\n\t\tqueueMonthly = new Queue();\n\t\tqueueHourly = new Queue();\n\t\tstackWeekly = new Stack();\n\t}", "public Ambulance() {\n\t}", "public OVChipkaart() {\n\n }", "Foco createFoco();", "public static FireFighting newInstance() {\n FireFighting fragment = new FireFighting();\n return fragment;\n }", "public InternalFloaterFactory() {\n super();\n }", "private void initTfod() {\n\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\",\n \"id\",\n hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfodParameters.minimumConfidence = TFOD_CONFIDENCE; //Added by J.Tu on 2019-04-24 00:23\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n //tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n\n }", "public ArcadeDrivetrain build() {\n verify();\n return new ArcadeDrivetrain(this);\n }", "public Venda() {\n }", "public FenetreAide(){\n\t\tbuild();\n\t}", "public DetailVORowImpl() {\n }", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "public ObjectFactory() {\n\t}", "public MultiCameraModule(AppController app) {\n super(app);\n mDetectionManager = new DetectionManager(app, this, null);\n mAaaControl = new ControlImpl(app, this, true, null);\n mRemoteTouchFocus = new RemoteTouchFocus(app.getServices().getSoundPlayback(), app,\n new RemoteAaaListener(), app.getCameraAppUi().getModuleLayoutRoot());\n mCameraIdManager = new CameraIdManager();\n mFocusStateListenerMangaer = new FocusStateListenerMangaer();\n mCameraSemaphoreCtrl = new CameraSemaphoreCtrl();\n }", "public ForecastFragment() {\n }", "public FrmMainVIEW() {\n initComponents();\n }" ]
[ "0.60960126", "0.5947683", "0.5713216", "0.55880636", "0.5586262", "0.5442454", "0.54421157", "0.54399085", "0.5421635", "0.5421474", "0.54167765", "0.539855", "0.5360469", "0.5349535", "0.5314361", "0.5306666", "0.52947015", "0.5293199", "0.5288207", "0.5258533", "0.52298576", "0.52250236", "0.5217971", "0.52075773", "0.5203735", "0.5199176", "0.5189107", "0.518593", "0.51843566", "0.5179906", "0.517824", "0.5177609", "0.51711875", "0.51711875", "0.51711875", "0.51711875", "0.51693773", "0.5167464", "0.5162585", "0.51596195", "0.51530814", "0.5149838", "0.5145219", "0.51445186", "0.5142116", "0.51360965", "0.513003", "0.5127142", "0.51231134", "0.5121556", "0.51206356", "0.511774", "0.51159185", "0.5110467", "0.5093058", "0.509016", "0.50858825", "0.50824964", "0.5080214", "0.50786394", "0.5076821", "0.5075066", "0.50727993", "0.5068412", "0.5061847", "0.50576293", "0.50540805", "0.50532264", "0.5050649", "0.5050627", "0.5046741", "0.5045841", "0.5043319", "0.5038065", "0.50366855", "0.50365025", "0.5034218", "0.50219315", "0.5018084", "0.50156367", "0.50109357", "0.50043595", "0.50028443", "0.49969035", "0.49968868", "0.49943793", "0.49880394", "0.49793544", "0.49740928", "0.49637696", "0.49533805", "0.49532774", "0.49531132", "0.495297", "0.49510434", "0.49453422", "0.49409682", "0.49366564", "0.4934888", "0.49320891" ]
0.7980874
0
Initialize the view for game play.
public void initialize() { JLabel lblLevel = new JLabel("Level"); lblLevel.setBounds(120, 124, 100, 45); lblLevel.setForeground(new Color(184, 134, 11)); lblLevel.setFont(new Font("Britannic Bold", Font.PLAIN, 35)); add(lblLevel); levelList = new JComboBox<String>(); levelList.setUI(new MyComboBoxUI()); ((JLabel)levelList.getRenderer()).setHorizontalAlignment(SwingConstants.CENTER); levelList.setBounds(280, 124, 400, 45); levelList.setBorder(BorderFactory.createLineBorder(Color.BLUE)); levelList.setForeground(new Color(184, 134, 11)); levelList.setFont(new Font("Britannic Bold", Font.PLAIN, 35)); levelList.setBackground(Color.WHITE); add(levelList); // Load all unlocked levels to the combobox int highest = lvlm.getHighestLevel().getLevelNum(); for (int i = 0; i < lvlList.size(); i++) { Level l = lvlList.get(i); if (l.getLevelNum() <= highest) { String name = lvlList.get(i).toString(); levelList.addItem(name); } } // levelList.setRenderer(new DisabledItemsRenderer<String>()); ImageIcon buttonBack = new ImageIcon(PlayGameScreenView.class.getResource("/sw/resource/image/button_back.png")); ImageIcon newBtnBack = new ImageIcon(buttonBack.getImage().getScaledInstance(227, 69, java.awt.Image.SCALE_SMOOTH)); ImageIcon btnBackRollover = new ImageIcon(PlayGameScreenView.class.getResource("/sw/resource/image/button_back_Rollover.png")); ImageIcon newBtnBackRollover = new ImageIcon(btnBackRollover.getImage().getScaledInstance(227, 69, java.awt.Image.SCALE_SMOOTH)); ImageIcon btnBackPressed = new ImageIcon(PlayGameScreenView.class.getResource("/sw/resource/image/button_back_Pressed.png")); ImageIcon newBtnBackPressed = new ImageIcon(btnBackPressed.getImage().getScaledInstance(227, 69, java.awt.Image.SCALE_SMOOTH)); JButton btnBack = new JButton(newBtnBack); btnBack.setBounds(20, 500, 227, 69); btnBack.setBorderPainted(false); btnBack.setBackground(Color.WHITE); btnBack.setBorder(null); btnBack.setContentAreaFilled(false); btnBack.addActionListener(new MainMenuController()); btnBack.setRolloverEnabled(true); btnBack.setRolloverIcon(newBtnBackRollover); btnBack.setPressedIcon(newBtnBackPressed); add(btnBack); ImageIcon buttonStart = new ImageIcon(PlayGameScreenView.class.getResource("/sw/resource/image/button_startGame.png")); ImageIcon newBtnStart = new ImageIcon(buttonStart.getImage().getScaledInstance(227, 69, java.awt.Image.SCALE_SMOOTH)); ImageIcon btnStartRollover = new ImageIcon(PlayGameScreenView.class.getResource("/sw/resource/image/button_startGame_Rollover.png")); ImageIcon newBtnStartRollover = new ImageIcon(btnStartRollover.getImage().getScaledInstance(227, 69, java.awt.Image.SCALE_SMOOTH)); ImageIcon btnStartPressed = new ImageIcon(PlayGameScreenView.class.getResource("/sw/resource/image/button_startGame_Pressed.png")); ImageIcon newBtnStartPressed = new ImageIcon(btnStartPressed.getImage().getScaledInstance(227, 69, java.awt.Image.SCALE_SMOOTH)); JButton btnStartGame = new JButton(newBtnStart); btnStartGame.setBounds(550, 500, 227, 69); btnStartGame.setBorderPainted(false); btnStartGame.setBackground(Color.WHITE); btnStartGame.setBorder(null); btnStartGame.setContentAreaFilled(false); btnStartGame.addActionListener(new StartGameController()); btnStartGame.setRolloverEnabled(true); btnStartGame.setRolloverIcon(newBtnStartRollover); btnStartGame.setPressedIcon(newBtnStartPressed); add(btnStartGame); ImageIcon backgroundImg = new ImageIcon(PlayGameScreenView.class.getResource("/sw/resource/image/secondBackground.png")); ImageIcon newBackground = new ImageIcon(backgroundImg.getImage().getScaledInstance(800, 573, java.awt.Image.SCALE_SMOOTH)); JLabel background = new JLabel(newBackground); background.setVerticalAlignment(SwingConstants.TOP); background.setBackground(Color.WHITE); background.setBounds(0, 0, 800, 600); add(background); setLayout(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameView() {\n initComponents();\n gameView(30, 30);\n }", "private void initView() {\n\n }", "void initView();", "protected abstract void initializeView();", "protected abstract void initView();", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "@Override\n protected void initView() {\n view.setVideoThumbnail(model.getThumbnail());\n\n if (isInFocus) {\n playOrPauseVideoIfMomentIsInFocus();\n }\n\n view.setMomentTitle(model.getTitle());\n view.setCounterTimeText(\"\" + Math.round((model.getEndTimeMs() - model.getStartTimeMs())/ TimeUtil.MS_IN_SECOND));\n\n view.setState(isInFocus);\n }", "public abstract void initView();", "public void initView(){}", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "private void initView() {\n\t\t//buttonPlayPause = (ImageButton)getView().findViewById(R.id.ButtonTestPlayPause);\n\t\t//buttonPlayPause.setOnClickListener(this);\n\t\t\n\t\t//seekBarProgress = (SeekBar)getView().findViewById(R.id.SeekBarTestPlay);\t\n\t\t//seekBarProgress.setMax(99); // It means 100% .0-99\n\t\t//seekBarProgress.setOnTouchListener(this);\n\t\t//editTextSongURL = (EditText)findViewById(R.id.EditTextSongURL);\n\t\t//editTextSongURL.setText(R.string.testsong_20_sec);\n\t\t\n\t\t//mediaPlayer = new MediaPlayer();\n\t\t//mediaPlayer.setOnBufferingUpdateListener(this);\n\t\t//mediaPlayer.setOnCompletionListener(this);\n\t}", "private void viewInit() {\n }", "private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "private void initPlayModeView() {\n playMode = new Label(\"PLAY\");\n playMode.setPrefSize(200,100);\n playMode.setFont(Font.font(null, FontWeight.BOLD, 30));\n playMode.setTextFill(Color.BLUE);\n playMode.setEffect(getDropShadow());\n }", "public ViewMain()\n\t{\n\t\tview = new View();\n\t\t\n\t\tcolors = new Color[20][10];\n\t\tfor(int i=0; i < 20; ++i)\n\t\t\tfor(int j=0; j < 10; ++j)\n\t\t\t\tcolors[i][j] = Color.DARK_GRAY;\n\t\t\n\t\tpanel = new BoardGamePanel(colors);\n\t\tpanel.setVisible(true);\n\t\t\n\t\tgameInfo = new GameInfo();\n\t\t\n\t\tactionListenner();\n\t\t\n\t}", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\n public void initView() {\n }", "public void initView() {\n\t\t view.initView(model);\t \n\t }", "private void initializeView() {\n @SuppressLint(\"ResourceType\") InputStream is = getContext().getResources().openRawResource(this.gifId);\n mMovie = Movie.decodeStream(is);\n }", "private void initView(){\n\t\tinitSize();\n\t\tinitText();\n\t\tinitBackground();\n\t\tthis.setOnClickListener(this);\n\t\tthis.setOnLongClickListener(this);\n\t}", "private void init() {\n initView();\n setListener();\n }", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "private void initializePresentation() {\r\n viewRankingAttemptFX = new ViewRankingAttemptFX(this);\r\n viewRankingPlayerFX = new ViewRankingPlayerFX(this);\r\n viewLoginFX = new ViewLoginFX(this);\r\n viewRegisterFX = new ViewRegisterFX(this);\r\n viewProblemListFX = new ViewProblemListFX(this);\r\n viewLoginFX = new ViewLoginFX(this);\r\n viewRegisterFX = new ViewRegisterFX(this);\r\n viewMenuFX = new ViewMenuFX(this);\r\n viewSettingsFX = new ViewSettingsFX(this);\r\n viewGenerateFX = new ViewGenerateFX(this);\r\n viewAttemptFX = new ViewAttemptFX(this);\r\n viewAttemptListFX = new ViewAttemptListFX(this);\r\n\r\n viewsFX.add(viewLoginFX);\r\n viewsFX.add(viewRankingAttemptFX);\r\n viewsFX.add(viewRankingPlayerFX);\r\n viewsFX.add(viewRegisterFX);\r\n viewsFX.add(viewProblemListFX);\r\n viewsFX.add(viewMenuFX);\r\n viewsFX.add(viewSettingsFX);\r\n viewsFX.add(viewGenerateFX);\r\n viewsFX.add(viewAttemptFX);\r\n viewsFX.add(viewAttemptListFX);\r\n\r\n }", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \tview = new GameView(this);\n super.onCreate(savedInstanceState);\n setContentView(view);\n }", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "public abstract void init(int myIndex, GameView view);", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "public abstract void initViews();", "public MainView() {\n initComponents();\n \n }", "protected abstract void initViews();", "public PlayerView2() {\n initComponents();\n }", "private void initView() {\n mRetrofit = new Retrofit.Builder()\n .baseUrl(Challenge1Activity.MY_BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n mTextViewDisplayTopRated = findViewById(R.id.text_view_display_toprated_movies);\n\n mTextViewPrev = findViewById(R.id.text_view_prev);\n mTextViewCurrentAndMaxPage = findViewById(R.id.text_view_current_and_max_page);\n mTextViewNext = findViewById(R.id.text_view_next);\n }", "private void initialiseViews() {\n\n layoutGameOver = findViewById(R.id.layout_gameover);\n layoutGame = findViewById(R.id.layout_game);\n\n layoutGame.setVisibility(View.VISIBLE);\n layoutGameOver.setVisibility(View.GONE);\n\n tvHighScore = findViewById(R.id.tv_highscore);\n tvCurrentScore = findViewById(R.id.tv_current_score);\n tvGameoverScore = findViewById(R.id.tv_gameover_score);\n\n\n gvBoard = findViewById(R.id.gl_board);\n btNewGame =findViewById(R.id.bt_newgame);\n btRestart =findViewById(R.id.bt_restart);\n\n btNewGame.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startNewGame();\n }\n });\n btRestart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startNewGame();\n }\n });\n }", "@Override\n public void initView() {\n\n }", "public View() {\n initComponents();\n }", "private void initViews() {\n\n }", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "private void initializeView() {\n InputStream is1 = getContext().getResources().openRawResource(+R.drawable.congratulations);\n mMovie1 = Movie.decodeStream(is1);\n InputStream is2 = getContext().getResources().openRawResource(+R.drawable.giffy3);\n mMovie2 = Movie.decodeStream(is2);\n InputStream is3 = getContext().getResources().openRawResource(+R.drawable.giffy4);\n mMovie3 = Movie.decodeStream(is1);\n InputStream is4 = getContext().getResources().openRawResource(+R.drawable.giphy1);\n mMovie4 = Movie.decodeStream(is4);\n }", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}", "private void initViews() {\n\n\t}", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n reinforceViewInit(Main.curRoundPlayerIndex);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initView();\n }", "public void initViews(){\n }", "public MainView() {\n initComponents();\n }", "public MainView() {\n initComponents();\n }", "private void initPlayMode() {\n initPlayModeView();\n initPlayModeController();\n }", "private void initializeUI() {\n MedUtils.displayMedInfo(coverArt, playBinding.thumbIv, playBinding.titleTv,\n playBinding.subtitleTv, selectedMed);\n\n playBinding.playPauseBt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n switch (MediaPlayerService.getState()) {\n case Constants.STATE_PLAY:\n mediaPlayerService.pauseAction();\n break;\n case Constants.STATE_PAUSE:\n mediaPlayerService.playAction();\n break;\n case Constants.STATE_NOT_INIT:\n startMediaPlayerService();\n break;\n }\n }\n });\n\n playBinding.stopBt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mediaPlayerService.stopAction();\n }\n });\n }", "private void initView() {\n\t\tmSeekButton = (Button) findViewById(R.id.seekButton);\r\n\t\tmViewPager = (ViewPager) findViewById(R.id.viewPager);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_live);\n\n initView();\n initPlayer();\n\n }", "public SimulationView() {\n initComponents();\n }", "private void initializeGUIComponents() {\n\t\tmyScene = new Scene(myRoot);\n ButtonConditionManager.getInstance().beginListeningToScene(myScene);\n\t\tmyStage.setTitle(\"MY PLAYER VIEW\");\n\t\tmyStage.setScene(myScene);\n\t\tmyStage.show();\n\t\tmyCanvas = new GameCanvas();\n\t\tmyRoot.getChildren().add(myCanvas.getNode());\n\t\tmyCanvas.getNode().toBack();\n\t}", "public View() {\n this.view = new ViewPanel();\n //this.view.setGraph(this.graph);\n initComponents();\n this.m_algoritmos.setEnabled(false);\n this.mi_maze.setEnabled(false);\n this.mi_salvarImagem.setEnabled(false);\n }", "@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }", "private void initializeViews() {\n avatarView = (AvatarView) findViewById(R.id.avatarImage);\n userNameText = (TextView) findViewById(R.id.user_profile_name);\n userJoinedText = (TextView) findViewById(R.id.user_date_joined);\n followingButton = (Button) findViewById(R.id.following_btn);\n backButton = (ImageButton) findViewById(R.id.back_button);\n settingButton = (ImageButton) findViewById(R.id.settings_button);\n cameraButton = (ImageButton) findViewById(R.id.camera_button);\n\n cameraButton.setVisibility(View.GONE);\n settingButton.setVisibility(View.GONE);\n\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n }", "private void initView() {\n un = findViewById(R.id.un);\n deux = findViewById(R.id.deux);\n trois = findViewById(R.id.trois);\n quatre = findViewById(R.id.quatre);\n cinq = findViewById(R.id.cinq);\n six = findViewById(R.id.six);\n sept = findViewById(R.id.sept);\n huit = findViewById(R.id.huit);\n neuf = findViewById(R.id.neuf);\n zero = findViewById(R.id.zero);\n etoile = findViewById(R.id.etoile);\n diaize = findViewById(R.id.diaize);\n call_btn = findViewById(R.id.appeler);\n tableView = findViewById(R.id.ecran);\n edit_search = findViewById(R.id.edit_search);\n efface = findViewById(R.id.effacer);\n setComposer = findViewById(R.id.set_composer);\n paletteComposition = findViewById(R.id.palette_de_composition);\n\n if (is_search) {\n setComposer.setVisibility(View.GONE);\n paletteComposition.setVisibility(View.GONE);\n edit_search.setFocusable(true);\n }\n }", "@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}", "public Game() {\n\t\tsuper();\n\t\tgameModel = new GameModel();\n\t\tview = new GamePane(gameModel);\n\t\t\n\t\tadd(view);\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t}", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "private void initView(View view) {\n\t\tgameGussingLV = (ListView) view\n\t\t\t\t.findViewById(R.id.lv_fgg_gameGus);\n\t}", "@Override\n protected void initialize(Bundle savedInstanceState) {\n game = getGame();\n setContentView(R.layout.activity_main);\n Bundle extras = getIntent().getExtras();\n buildDialog(\"Connecting\", \"Trying to establish a connection with the game server.\");\n }", "@Override\r\n\tpublic void initView() {\n\t\tsuper.initView();\r\n\t\tdialog = new BufferDialog(this);\r\n\t\tswitchAntiLost = (Switch) findViewById(R.id.switch_antilost);\r\n\t}", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "protected abstract void initializeComponent(View view);", "private void initview() {\n\t\tbtn_connect = (Button) findViewById(R.id.btn_connect);\n\t\tbtn_disconnect = (Button) findViewById(R.id.btn_disconnect);\n\t\tbtn_send = (Button) findViewById(R.id.pinpad_controller_btn_send);\n\t\tbtn_recv = (Button) findViewById(R.id.pinpad_controller_btn_recv);\n\t\tbtn_clear = (Button) findViewById(R.id.btn_clear);\n\t\tbtn_random = (Button) findViewById(R.id.btn_random);\n\t\tbtn_connect.setOnClickListener(this);\n\t\tbtn_recv.setOnClickListener(this);\n\t\tbtn_send.setOnClickListener(this);\n\t\tbtn_disconnect.setOnClickListener(this);\n\t\tbtn_clear.setOnClickListener(this);\n\t\tbtn_random.setOnClickListener(this);\n\t\ttv_read = (TextView) findViewById(R.id.pinpad_controller_tv_recv);\n\t\tet_send = (EditText) findViewById(R.id.pinpad_controller_et_send);\n\t\ttv_version = (TextView) findViewById(R.id.pinpad_controller_tv_version);\n\t\ttv_version.setText(\"\");\n\t\tsetViewEnabledFalse();\n\t}", "private void initView() {\n\t\timg_back = (ImageView) findViewById(R.id.img_back_updatejob);\n\t\tedt_content = (EditText) findViewById(R.id.edt_content_updatejob);\n\t\tedt_course = (EditText) findViewById(R.id.edt_course_updatejob);\n\t\tbtn_delete = (Button) findViewById(R.id.btn_delete_updatejob);\n\t\tbtn_update = (Button) findViewById(R.id.btn_update_updatejob);\n\t}", "@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }", "public void init()\r\n {\r\n\t\t/* initialize the widget */\r\n\t\tint width = gl.getWidth();\r\n\t\tint height = gl.getHeight();\r\n\r\n\t\t// Initialize the rendering viewport size to OpenGL\r\n\t\tgl.viewport( 0, 0, width, height );\r\n\t\tgl.matrixMode( GL.PROJECTION );\t// Set up the camera mode\r\n\t\tgl.loadIdentity();\t\t\t\t\t// Reset the transformation matrix\r\n\t\tif (width <= height)\r\n\t\t\tgl.ortho (-50.0, 50.0, -50.0*(double)height/(double)width,\r\n\t\t\t\t 50.0*(double)height/(double)width, -1.0, 1.0);\r\n\t\telse\r\n\t\t\tgl.ortho (-50.0*(double)width/(double)height,\r\n\t\t\t 50.0*(double)width/(double)height, -50.0, 50.0, -1.0, 1.0);\r\n\t\tgl.matrixMode( GL.MODELVIEW );\t\t// Reset to model transforms\r\n }", "public ViewSinFaltante() {\n initComponents();\n }", "public ViewInit() {\n initComponents();\n }", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "private void initial() {\n\t\tsetTitleTxt(getString(R.string.choose_game));\n\t\tLinearLayout contentView = (LinearLayout) findViewById(R.id.contentView);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\tview = View.inflate(this, R.layout.user_choose_game, null);\n\t\tcontentView.addView(view, params);\n\t\tgameGrid = (GridView) view.findViewById(R.id.game_list);\n\t\tgameContent = (LinearLayout) view.findViewById(R.id.game_list_info);\n\t\tview.setVisibility(View.GONE);\n\t}", "private void onViewInit() {\n setFocusable(true);\n setFocusableInTouchMode(true);\n setBackgroundColor(Color.WHITE);\n setOnTouchListener(this);\n onCanvasInit();\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "public viewOpe() {\n initComponents();\n }", "@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}", "public ManipularView() {\n initComponents();\n }", "private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }", "public void loadGameView() {\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Spiel Laden\");\n\t\t\tBorderPane root = new BorderPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/LoadGame.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tLoadGameViewController loadGameViewController = (LoadGameViewController) loader.getController();\n\t\t\tloadGameViewController.setOnitamaController(onitamaController);\n\t\t\tloadGameViewController.init();\n\t\t\tScene scene = new Scene(root);\n\t\t\t//((Stage) outerPane.getScene().getWindow()).setScene(scene);\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\t\t\tPlatform.runLater(() -> { LoadViewController.primaryStage.setScene(scene); });\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initView() {\n\t\tstart_anima = new AlphaAnimation(0.3f, 1.0f);\r\n\t\tstart_anima.setDuration(2000);\r\n\t\tview.startAnimation(start_anima);\r\n\t\tstart_anima.setAnimationListener(new AnimationListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationEnd(Animation animation) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tredirectTo();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void initializeGame() {\n \t//Set all button elements in the view\n Button newGameBtn = (Button) findViewById((R.id.newGameBtnId)); \n Button continueGameBtn = (Button) findViewById((R.id.continueGameBtnId)); \n Button aboutGameBtn = (Button) findViewById((R.id.aboutGameBtnId));\n Button exitBtn = (Button) findViewById((R.id.exitGameBtnId));\n //Set onclick listeners\n continueGameBtn.setOnClickListener(continueGame());\n newGameBtn.setOnClickListener(activateNewGame()); \n exitBtn.setOnClickListener(exitApplication());\n aboutGameBtn.setOnClickListener(aboutApplication());\n\t}", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initView();\n }", "public HomeView() {\n initComponents();\n }", "private void initView() {\n LayoutInflater inflater = LayoutInflater.from(mContext);\n // Inflate the Ad view. The layout referenced should be the one you created in the last step.\n View adView = inflater.inflate(R.layout.adsplugin_native_gallery_layout, mNativeAdView, false);\n FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, Gravity.CENTER);\n mNativeAdView.addView(adView, params);\n\n mPB = mNativeAdView.findViewById(R.id.ads_plugin_pb);\n mPB.setVisibility(View.GONE);\n\n mNext = mNativeAdView.findViewById(R.id.ads_plugin_native_next);\n mNext.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n loadNewNativeAd();\n mPB.setVisibility(View.VISIBLE);\n mNext.setVisibility(View.GONE);\n }\n });\n }", "public GameView() {\n this.astronautaImage = new Image(getClass().getResourceAsStream(\"/res/astronauta.gif\"));\n this.ovniImage = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovni2Image = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovnidestructibleImage = new Image(getClass().getResourceAsStream(\"/res/ovnidestructible.png\"));\n this.wallImage = new Image(getClass().getResourceAsStream(\"/res/wall.png\"));\n this.pistolaImage = new Image(getClass().getResourceAsStream(\"/res/pistola.png\"));\n this.alienEggImage = new Image(getClass().getResourceAsStream(\"/res/alienEgg.png\"));\n }", "public SnakeGameView(Context context) {\n\t\tsuper(context);\n\t\tthis.context = context;\n\t\tmanager = new SnakeGameManager(context);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_play, container, false);\n ButterKnife.bind(this, view);\n getReferences();\n setupUI();\n beginPlay();\n return view;\n }", "@Override\n\tprotected void initView() {\n\t\tiv_content = (ImageView) findViewById(R.id.music_content);\n\t\tiv_music = (ImageView) findViewById(R.id.music_me_iv);\n\t\tiv_queen = (ImageView) findViewById(R.id.music_queen_iv);\n\t\ttv_music = (TextView) findViewById(R.id.music_me_tv);\n\t\ttv_queen = (TextView) findViewById(R.id.music_queen_tv);\n\t\tiv_music.setOnClickListener(this);\n\t\tiv_queen.setOnClickListener(this);\n\t\t\n\t\tbitmap=DisplayUtil.readBitMap(getApplicationContext(), R.drawable.music_part1);\n\t\tiv_content.setImageBitmap(bitmap);\n\n\t}", "private void InitView() {\n\n\t\tframe_element = new Frame_element();// 初始化保存框架元素的类\n\n\t\tframe_element\n\t\t\t\t.setRel_body_content((RelativeLayout) findViewById(R.id.rel_body_content));// 保存中间内容框架\n\t\tframe_element\n\t\t\t\t.setRel_top_bar((RelativeLayout) findViewById(R.id.rel_top_bar));// 保存顶部BAR框架\n\n\t\tframe_element\n\t\t\t\t.setRel_frist_bar((RelativeLayout) findViewById(R.id.rel_frist_bar));// 保存顶部首页BAR\n\t\t// 顶部右侧‘更多’按钮点击事件\n\t\timagebtn_more = (ImageButton) findViewById(R.id.imagebtn_more);\n\t\timagebtn_userhead_icon = (ImageButton) findViewById(R.id.imagebtn_userhead_icon);\n\t\timagebtn_more.setOnClickListener(this);\n\t\timagebtn_userhead_icon.setOnClickListener(this);\n\n\t}", "private void init(Context context) {\n getViewTreeObserver().addOnGlobalLayoutListener(this);\n inflate(context, R.layout.new_rp_resultview, this);\n mMainPanel = (ViewAnimator) findViewById(R.id.viewanimator);\n mInfoPanel = (ViewAnimator) findViewById(R.id.va_text);\n \n \n mInfoPanelText1 = (TextView) mInfoPanel.findViewById(R.id.tv1);\n mMainPanel.setDisplayedChild(0);\n\t}", "private void initView() {\n\n main_ll_rl = (LinearLayout) findViewById(R.id.main_ll_rili);\n main_ll_xw = (LinearLayout) findViewById(R.id.main_ll_xw);\n main_ll_wode = (LinearLayout) findViewById(R.id.main_ll_wd);\n main_ll_self = (LinearLayout) findViewById(R.id.main_ll_self);\n main_ll_hq = (LinearLayout) findViewById(R.id.main_ll_hq);\n main_zt_color = (LinearLayout) findViewById(R.id.main_zt_color);\n\n main_zt_color.setBackgroundColor(Color.parseColor(\"#e9e9ea\"));\n\n imgrl = (ImageView) findViewById(R.id.imgrili);\n imgxw = (ImageView) findViewById(R.id.imgxw);\n imgwd = (ImageView) findViewById(R.id.imgwd);\n imggr = (ImageView) findViewById(R.id.imgself);\n imghq = (ImageView) findViewById(R.id.imghq);\n\n main_rl_tv = (TextView) findViewById(R.id.main_rl_tv);\n main_xw_tv = (TextView) findViewById(R.id.main_xw_tv);\n main_wd_tv = (TextView) findViewById(R.id.main_wd_tv);\n main_gr_tv = (TextView) findViewById(R.id.main_self_tv);\n main_hq_tv = (TextView) findViewById(R.id.main_hq_tv);\n\n main_ll_rl.setOnClickListener(this);\n main_ll_xw.setOnClickListener(this);\n main_ll_wode.setOnClickListener(this);\n main_ll_hq.setOnClickListener(this);\n main_ll_self.setOnClickListener(this);\n }", "protected abstract void initViews(View mView);", "public void loadGameCanvasView()\n\t{\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Onitama\");\n\t\t\tGridPane root = new GridPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/GameCanvas.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tGameCanvasViewController viewController = (GameCanvasViewController) loader.getController();\n\t\t\tviewController.setOnitamaController(onitamaController);\n\t\t\tviewController.init();\n\n\t\t\tScene scene = new Scene(root);\n\t \t// this fixes java bug when change scnene after dialog\n\t\t\t// javafx bug https://bugs.openjdk.java.net/browse/JDK-8140491\n\t\t\tPlatform.runLater(() -> { \n\t\t\t\tLoadViewController.primaryStage.setScene(scene);\n\t\t\t});\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.814761", "0.75978625", "0.7580604", "0.7522347", "0.7489242", "0.7461576", "0.7426128", "0.7423006", "0.7404413", "0.74026006", "0.73873526", "0.73873025", "0.73869634", "0.7378226", "0.7378226", "0.7367288", "0.732529", "0.7298607", "0.7287634", "0.7287634", "0.72858644", "0.7248663", "0.723277", "0.72221583", "0.71989506", "0.7194913", "0.7194913", "0.71920764", "0.7159923", "0.7159923", "0.7159832", "0.71485376", "0.71476334", "0.7133197", "0.7126162", "0.71216226", "0.7103532", "0.7099269", "0.7091556", "0.7079796", "0.7071424", "0.707125", "0.7066073", "0.7062352", "0.7048779", "0.70402735", "0.70402735", "0.7025372", "0.7011787", "0.695256", "0.6947185", "0.6913709", "0.68972564", "0.68972564", "0.6890265", "0.68882936", "0.68698394", "0.68669987", "0.6849417", "0.6849284", "0.6841029", "0.6818039", "0.6810863", "0.68058735", "0.6805393", "0.6795683", "0.67900527", "0.67870677", "0.6772646", "0.6772269", "0.67698914", "0.67646545", "0.67476577", "0.6743446", "0.67405784", "0.67374045", "0.67339885", "0.6724666", "0.6723131", "0.6717623", "0.67118794", "0.67077726", "0.6704184", "0.6703222", "0.67032117", "0.6701794", "0.67016786", "0.66971", "0.66943395", "0.6680728", "0.667344", "0.66599065", "0.66491294", "0.66476375", "0.6646658", "0.6645698", "0.663791", "0.661904", "0.66161245", "0.6611891", "0.6611634" ]
0.0
-1
Remove all components from the board.
@Override public void cleanup() { levelList.setSelectedIndex(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllPieces()\n\t{\n\t\t/* iterate over the rows and columns */\n\t\tfor (int i = 0; i < m_rows; i++) {\n\t\t\tfor (int j = 0; j < m_cols; j++) {\n\t\t\t\tremovePiece(i, j);\n\t\t\t}\n\t\t}\n\t}", "public void removeAllComponents();", "public void clearBoard() \n {\n\tfor(int i=0;i<rows;i++)\n\t {\n\t\tfor(int j=0;j<cols;j++)\n\t\t {\n\t\t\tfrontBoard[i][j] = \"00\";\n\t\t\tbackBoard[i][j] = \"00\";\n\t\t }\n\t }\n\tunused = new Piece[pieces.length];\n\tfor(int i=0;i<pieces.length;i++)\n\t {\n\t\t\tunused[i] = pieces[i];\n\t }\n }", "public void clearBoard() {\r\n\t\tbody.removeAll();\r\n\t\tpiece.clear();\r\n\t\t\r\n\t\t// Assign1, Remove 'K' label of all pieces\r\n\t\tfor (int i=0; i<blackPieces.length; i++) {\r\n\t\t\tblackPieces[i].setText(null);\r\n\t\t}\r\n\t\tfor (int i=0; i<whitePieces.length; i++) {\r\n\t\t\twhitePieces[i].setText(null);\r\n\t\t}\r\n\t\tbody.repaint();\r\n\t}", "public void clear() {\n for (int row = 0; row < 8; ++row) {\n for (int col = 0; col < 8; ++col) {\n board[row][col] = null;\n }\n }\n whitePieces = new LinkedList<Piece>();\n blackPieces = new LinkedList<Piece>();\n }", "public static void clearBoard(){\n for(int i = 0; i < Board.X_UPPER_BOUND * Board.Y_UPPER_BOUND ; i++){\n Board.board[i] = null;\n }\n white_player.setpieceList(null);\n black_player.setpieceList(null);\n }", "public void removeAllSeconderyColorsFromBoard() {\n\t\tArrayList<Tile> boardTiles= getAllBoardTiles();\n\t\tif(!this.coloredTilesList.isEmpty()) {\n\t\t\tboardTiles.retainAll(coloredTilesList);\n\t\t\tfor(Tile t :boardTiles) {\n\t\t\t\tTile basicTile= new Tile.Builder(t.getLocation(), t.getColor1()).setPiece(t.getPiece()).build();\n\t\t\t\treplaceTileInSameTileLocation(basicTile);\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tthis.coloredTilesList=null;\n\t\tthis.coloredTilesList=new ArrayList<Tile>();\n\t\tthis.orangeTiles=null;\n\t\tthis.orangeTiles=new ArrayList<Tile>();\n\n\t}", "public void clearGame() {\n //loop through piece array erase pieces\n\n //clear piece array\n for (int i = 0; i < 64; i++) {\n ChessBoard.pieces[i] = null;\n }\n\n //remove all piece components from chessboard\n chessboard.removeAll();\n \n //clear game log\n gamelog.clearLog();\n \n //refresh graphics\n frame.update(frame.getGraphics());\n }", "public void clearGrid() {\n\t\tfor (int i = 0; i < this.board.length; i++) {\n\t\t\tArrays.fill(this.board[i], EMPTY);\n\t\t}\n\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }", "public void removeAllElements();", "private void clearBoard() {\n for (int i = 0; i < BOARD_HEIGHT * BOARD_WIDTH; ++i) {\n board[i] = Tetrominoe.NoShape;\n }\n }", "public void clearBoard()\n {\n for (int i = 0; i < buttons.length; i++)\n {\n buttons[i].setText(\"\");\n }\n }", "public void clearPieces(){\n for(int i =0; i<WIDTH;i++){\n for(int j = 0 ; j<HEIGHT;j++){\n piecesToSwap[i][j]=null;\n }\n }\n }", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "public static void clearBoard() {\n\t\tfor(int i = 0; i < display.length; i++){\n\t\t\tfor(int j = 0; j < display[i].length; j++){\n\t\t\t\tdisplay[i][j].setSelected(false);\n\t\t\t\tdisplay[i][j].setIcon(DEFAULT);\n\t\t\t}\n\t\t}\t\n\t\t\n\t}", "private void clear() {\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tfield[i][k].clear();\n\t\t\t\tsudokuBoard.clear();\n\t\t\t}\n\t\t}\n\t}", "public void clean() {\n\t\tfor(ComponentConfig comp: components ) {\r\n\t\t\tList<Integer> cleanCalls = new ArrayList<Integer>();\r\n\t\t\tif(comp.getCalls()!=null) {\r\n\t\t\t\tfor(int call:comp.getCalls()) {\r\n\t\t\t\t\tif(hasComp(call)) {\r\n\t\t\t\t\t\tcleanCalls.add(call);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint[] result = new int[cleanCalls.size()];\r\n\t\t\t\tint i=0;\r\n\t\t\t\tfor(Integer call: cleanCalls) {\r\n\t\t\t\t\tresult[i] = call;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tcomp.setCalls(result);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t// remove duplicate\r\n\t\tList<ComponentConfig> newComponentList = new ArrayList<ComponentConfig>();\r\n\t\tthis.compids.clear();\r\n\t\tfor(ComponentConfig c:components) {\r\n\t\t\tif(!compids.contains(c.getId())) {\r\n\t\t\t\tnewComponentList.add(c);\r\n\t\t\t\tcompids.add(c.getId());\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.components = newComponentList;\r\n\t}", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void clear ()\n {\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(row, column);\n Move.clear();\n }", "public static void clearBoard() {\n for (int row = 0; row < SIZE_ROW; row++) {\n for (int col = 0; col < SIZE_COL; col++) {\n board[row][col] = 0;\n }\n }\n }", "public void removeAllComposer() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMPOSER);\r\n\t}", "public void removeAll()\n {\n if (elemsListLayout != null)\n {\n elemsListLayout.clear();\n }\n }", "void removeComponents()\n {\n JPanel panel = Simulator.getInstance().getPanel(1);\n JLayeredPane jl = (JLayeredPane)panel.getComponent(0);\n Component[] comps = jl.getComponentsInLayer(JLayeredPane.PALETTE_LAYER.intValue());\n int size = comps.length;\n int i=0;\n while(i<size)\n {\n jl.remove(comps[i]);\n i++;\n } \n }", "void clearUndo() {\r\n while (!listOfBoards.isEmpty()) {\r\n listOfMoves.pop();\r\n listOfBoards.pop();\r\n }\r\n }", "public void reset() {\n for (int i = 0; i < numberOfRows; i++ ) {\n for (int j =0; j < numberOfColumns; j++) {\n if (grid[i][j] == LASER) {\n this.Remove(i,j);\n }\n }\n }\n }", "public void clearTiles() {\r\n\r\n for (int i = 0; i < 16; i += 1) {\r\n tiles[i] = 0;\r\n }\r\n boardView.invalidate();\r\n placedShips = 0;\r\n }", "public void cleanBoard()\n {\n System.out.println(\"Function: GameMain, cleanBoard()\");\n game.setBoard(game.returnRandomBoard(ROWS, COLS));\n }", "private static void removeAllElementsInContainer()\n {\n DefaultTableModel dm = (DefaultTableModel) JSoundsMainWindowViewController.table.getModel();\n for (int i = dm.getRowCount() - 1; i >= 0; i--) {\n dm.removeRow(i);\n } \n }", "final static void clearComponents(Composite composite) {\n\t\tif (composite instanceof Structure) {\n\t\t\t((Structure) composite).deleteAll();\n\t\t}\n\t\telse {\n\t\t\twhile (composite.getNumComponents() > 0) {\n\t\t\t\tcomposite.delete(0);\n\t\t\t}\n\t\t}\n\t}", "public void removeAllElements() {\n for (int i = 0; i < OLast; i++) O[i] = null;\n ON = OLast = 0;\n Gap = -1;\n }", "public void removeAllConductor() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONDUCTOR);\r\n\t}", "public void clear(){\r\n\t\tfor ( int x = 0; x < grid.length; x++ )\r\n\t\t\tfor ( int y = 0; y < grid[0].length; y++ )\r\n\t\t\t\tgrid[x][y] = false;\r\n\t}", "private void clearStragglers() {\n for (int i = 0; i < game.gridPieces.length; i++) {\n GridPiece piece = game.gridPieces[i];\n\n if (piece.state == game.STATE_TEMP) {\n piece.restoreState();\n //restoreState(piece);\n } else if (piece.state == game.STATE_TEMP_NOTOUCH) {\n piece.setState(game.STATE_FINAL);\n }\n }\n }", "void removeAll();", "void removeAll();", "public void removeAll()\n {\n this.front = null;\n this.rear = null;\n }", "public void clearGrid() {\n\t\tfor (int x = 0; x < grid.length; x++) {\n\t\t\tfor (int y = 0; y < grid[x].length; y++) {\n\t\t\t\tgrid[x][y] = EMPTY;\n\t\t\t}\n\t\t}\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "public void clearBoardData()\n {\n player_turn = RED;\n total_moves = 0;\n int[][] clear_board = new int[7][6];\n for (int i = 0; i < clear_board.length; i++)\n current_board[i] = clear_board[i].clone();\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "public void clearMoveData(ChessBoard board){\n\t\twhile(!dependentSpaces.empty())\n\t\t\tdependentSpaces.pop().removeDependentMove(this);\n\t\tcommandSequences.clear();\n\t}", "public void ClearAll()\r\n {\r\n balls.clear();\r\n board.SetMissedBall(0);\r\n }", "private void resetBoard() {\r\n\t\tboard.removeAll();\r\n\t\tboard.revalidate();\r\n\t\tboard.repaint();\r\n\t\tboard.setBackground(Color.WHITE);\r\n\r\n\t\t// Reset filled\r\n\t\tfilled = new boolean[length][length];\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tfor (int y = 0; y < length; y++) {\r\n\t\t\t\tfilled[x][y] = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tupdateBoard();\r\n\t}", "private void clearBoard() {\n for (final Integer resId : TOKEN_BUTTON_RES_IDS) {\n mBoard.findViewById(resId).setEnabled(true);\n ViewCompat.setBackgroundTintList(mBoard.findViewById(resId), ColorStateList.valueOf(ContextCompat.getColor(mContext, R.color.gray)));\n }\n }", "public void\t\tremoveAll();", "public static void disableComponents() {\n\t\tfor (GameObject gO : gameObjects) {\n\t\t\tfor (Component component : gO.components.values()) {\n\t\t\t\tallComponents.add(component);\n\t\t\t}\n\t\t}\n\n\t\tfor (Component component : allComponents) {\n\t\t\tcomponent.Remove();\n\t\t}\n\t}", "public void resetGame() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = 0;\n\t\t\t\tgetChildren().remove(renders[i][j]);\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "public void clearGame() {\n\t\tthis.turnColor = null;\n\t\tthis.inPlay = false;\n\t\tthis.board = new Board();\n\t\tpieces.get(Chess.Color.WHITE).clear();\n\t\tpieces.get(Chess.Color.BLACK).clear();\n\t\tmoveStack.clear();\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < 3; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\tmarkCount = 0;\n\t}", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }", "public void updateComputerBoard()\r\n {\r\n boardpanel.removeAll();\r\n for (int i = 0; i < 3; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n buttons[i][j].setEnabled(false);\r\n boardpanel.add(buttons[i][j]);\r\n }\r\n }\r\n }", "public void removeCards() {\n\t\tthis.content.removeAll(this.content);\n\t}", "public void resetBoard() {\n for (int y = 0; y < length; y++) {\n for (int x = 0; x < width; x++) {\n grid[x][y].setBackground(null);\n grid[x][y].setEnabled(true);\n }\n }\n }", "public void reset() {\n for (int r = 0; r < size; r++) {\n for (int c = 0; c < size; c++) {\n board[r][c] = null;\n }\n }\n }", "Board() {\n clear();\n }", "Board() {\n clear();\n }", "void clear() {\n _whoseMove = WHITE;\n _gameOver = false;\n\n for (int i = 0; i <= MAX_INDEX; i += 1) {\n set(i, BLACK);\n }\n for (int i : _initWhite) {\n set(i, WHITE);\n }\n set(12, EMPTY);\n _history.clear();\n\n setInitialDirection(MAX_INDEX);\n\n setChanged();\n notifyObservers();\n }", "public void clearBoard() {\r\n int i, j;\r\n for (i = 1; i < yMax; i++) {\r\n for (j = 2; j < xMax; j += 2){\r\n grid[i][j] = ' ';\r\n }\r\n }\r\n }", "public X removeAll() {\n component.removeAll();\n return (X) this;\n }", "void removeAll() throws ModelRuntimeException;", "private void clearGrid() {\n\n }", "private void eraseContainer() {\r\n\t\tfor (Component comp:this.getComponents()) {\r\n\t\t\tcomp.setVisible(false);\r\n\t\t}\r\n\t}", "public void clearThawed() {\n\t\t// Avoid concurrent modification exceptions.\n\t\tfinal ArrayList<ConfigurationButton> list = new ArrayList<>();\n\t\tlist.addAll(configurationToButtonMap.values());\n\t\tfinal Iterator<ConfigurationButton> it = list.iterator();\n\n\t\twhile (it.hasNext()) {\n\t\t\tfinal ConfigurationButton button = it.next();\n\t\t\tif (button.state != ConfigurationButton.FREEZE) {\n\t\t\t\tremove(button.getConfiguration());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tif(isEmpty())\n\t\t\treturn;\n\t\t// Remove until the frontier is empty\n\t\twhile(!isEmpty())\n\t\t\tfrontier.removeFirst();\n\t}", "@Override\r\n\tpublic void reset() {\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].Clear();\r\n\t\t}\r\n\t\tcomputerTurn();\r\n\t\tcomputerTurn();\r\n\t\tfreeCells = rows_size*columns_size - 2;\r\n\t\ttakenCells = 2;\r\n\t}", "public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }", "public void resetModel() {\n\t\twhitePieces.removeAll();\n\t\tblackPieces.removeAll();\n\t\tcapturedPieces.removeAll(capturedPieces);\n\t\tmoveList.removeAll(moveList);\n\n\t\tinitializeBoard();\n\t\tpopulateLists();\n\t}", "public void clearAll();", "public void clearAll();", "@Override\n protected void clear(JPanel panel){\n panel.removeAll();\n }", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "public void clear() {\n\t\tfor(int i=0;i<height;i++) {\n\t\t\tfor(int j=0;j<width;j++) {\n\t\t\t\tgrid[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}", "abstract public void removeAll();", "public void clear() {\r\n //This for loop assigns every value in the gameBoard array to -1\r\n //Using the Arrays.fill method and the for loop it fills in all sub arrays\r\n for (int i = 0; i < gameBoard.length; i++) {\r\n Arrays.fill(gameBoard[i], -1);\r\n }\r\n }", "public void clearBoard(boolean eraseWins)\n {\n if(eraseWins)\n {\n computerWins = 0;\n humanWins = 0;\n ties = 0;\n }\n mBoard = new char[]{'1', '2', '3', '4', '5', '6', '7', '8', '9'};\n for(int i = 0; i < BOARD_SIZE; i++) {\n mBoardButtons[i].setText(\"\");\n mBoardButtons[i].setEnabled(true);\n\n }\n }", "public void clear() {\n\t\tconfigurationToButtonMap.clear();\n\t\tselected.clear();\n\t\tsuper.removeAll();\n\t}", "public void cleanup() {\r\n\t\tsuper.cleanup();\r\n\t\tfor (int i = 0; i < _composites.size(); i++) {\r\n\t\t\t_composites.get(i).cleanup();\t\r\n\t\t}\r\n\t}", "private void remove() {\n \t\tfor(int i = 0; i < 5; i++) {\n \t\t\trMol[i].setText(\"\");\n \t\t\trGrams[i].setText(\"\");\n \t\t\tpMol[i].setText(\"\");\n \t\t\tpGrams[i].setText(\"\");\n \t\t}\n }", "public void clearCollections() {\n sevenStates = new int[7][16];\n moveGeneratedFrom.clear();\n movesWithFreeTurn.clear();\n movesWhichPreventSteals.clear();\n opponentChoicesToSteal.clear();\n opponentBoardsBeforeSteal.clear();\n }", "private void clear() {\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = 0;\n\n generations = 0;\n }", "public void\t\tremoveAll()\n\t{\n\t\ttab.clear();\n\t}", "public void removeAllItems() {\n contents.clear();\n }", "private void removeColumn() {\n gridWidth--;\n for (ArrayList<EscapeBlock> row : grid) { // for each row\n this.remove(row.get(gridWidth)); // remove the last block from the UI\n for(EscapeBlock block : row)\n block.disconnectAll();\n row.remove(gridWidth); // remove the last block from the grid\n }\n \n }", "public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }", "public void clear() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tbeams[i] = null;\n\t\t}\n\t}", "public void removeVehicles() {\r\n numberOfVehicles = 0;\r\n for (Lane lane : lanes) {\r\n lane.removeVehicles();\r\n }\r\n }", "@DeleteMapping(\"ElementWebService/removeAll\")\n\tpublic void removeAll() {\n\t\telementService.removeAll();\n\t}", "public void clear() {\n\t\tthis._cooccurenceMatrix = null;\n\t\tthis._modules.clear();\n\t\tthis._vertices.clear();\n\t}" ]
[ "0.7730871", "0.7727398", "0.7300696", "0.72887963", "0.7286235", "0.7212145", "0.7180663", "0.70547074", "0.7020003", "0.69804037", "0.6970675", "0.6902214", "0.6897403", "0.685633", "0.67670053", "0.66950095", "0.6675863", "0.66575634", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66476876", "0.66270876", "0.6595652", "0.6595617", "0.65251416", "0.65219325", "0.65210384", "0.65148026", "0.6485126", "0.6476375", "0.64504737", "0.64190716", "0.6405127", "0.63989097", "0.6382842", "0.63681084", "0.63622487", "0.63622487", "0.6355934", "0.63504016", "0.6320592", "0.63084865", "0.6261672", "0.62551934", "0.6248908", "0.62383145", "0.62373465", "0.62318826", "0.6222976", "0.6213141", "0.6182015", "0.61745274", "0.61585075", "0.6156075", "0.6145361", "0.6139257", "0.61380696", "0.6135538", "0.6135538", "0.6124465", "0.6121735", "0.61163694", "0.6113257", "0.6110496", "0.61093426", "0.6100952", "0.6100623", "0.6093834", "0.6088615", "0.6087308", "0.60807544", "0.6076835", "0.6076835", "0.6067544", "0.606002", "0.6049617", "0.60494995", "0.6044821", "0.6031421", "0.6031237", "0.6028128", "0.60233384", "0.6011565", "0.6006958", "0.60006654", "0.5995659", "0.59915334", "0.59895235", "0.59891087", "0.59827197", "0.5976276", "0.59665996" ]
0.0
-1
Add a level to the list to play.
void addLevel(Level level) { if (level != null) { levelList.addItem(level.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPlayableLevel(Level level){\r\n if(!currentLevel.isPlayableLevel()){\r\n setCurrentLevel(level);\r\n }else{\r\n currentLevel.addPlayingLevel(level);\r\n }\r\n }", "@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }", "public void addLevel(final String levelName)\n {\n if (levelName == null) {\n throw new NullPointerException(\"Level name cannot be null.\");\n }\n checkIfLevelNameIsUnique(levelName);\n levels.put(levelName, new LinkedList<>());\n }", "public void addHealthLevel(int points)\n {\n healthLevel = healthLevel + points;\n showHealthLevel();\n if (healthLevel < 0) \n {\n Greenfoot.playSound(\"game-over.wav\");\n Greenfoot.stop();\n }\n }", "public void startLevel(LevelLoader level) {\r\n\t\tslots = new HashMap<Integer, ItemSlot>();\r\n\t\tfor (int i = 0; i < player.getInventory().getItemSlots().size(); i++) {\r\n\t\t\tItemSlot slot = player.getInventory().getItemSlots().get(i);\r\n\t\t\tslots.put(i, new ItemSlot(slot.getX(), slot.getY(), slot.getMax()));\r\n\t\t\tif (slot.getItem() != null)\r\n\t\t\t\tslots.get(i).add(slot.getItem(), slot.getQuantity());\r\n\t\t}\r\n\t\tplayer.setCanMove(true);\r\n\t\tif (menu != null) {\r\n\t\t\tif (menu.sound != null) {\r\n\t\t\t\tmenu.sound.stopSound();\r\n\t\t\t}\r\n\t\t\tmenu = null;\r\n\t\t}\r\n\r\n\t\tif (level != null) {\r\n\t\t\tif (level.bg_sound != null) {\r\n\t\t\t\tlevel.bg_sound.stopSound();\r\n\t\t\t}\r\n\t\t\tthis.level = null;\r\n\t\t}\r\n\r\n\t\tthis.level = level;\r\n\t}", "public void setNextLevel(Level level){\r\n this.currentLevel.setNextLevel(level);\r\n }", "public void\t\t\t\t\t\t\tincreaseLevel()\t\t\t\t\t\t\t\t{ this.currentLevel += 1; }", "void createNewLevel(int level);", "@Test\r\n\tpublic final void testAddLevel() {\r\n\t\tlevels.add(lostLevel2);\r\n\t\tgameStatisticsLoss.addLevel(lostLevel2);\r\n\t\tassertTrue(gameStatisticsLoss.getLevels().equals(levels));\r\n\t}", "public void addToGame(GameLevel gameLevel) {\n gameLevel.addSprite(this);\n }", "public void addToGame(GameLevel gameLevel) {\n gameLevel.addSprite(this);\n }", "public void setLevel(Level level) { this.currentLevel = level; }", "public void addToLevel(GameLevel g) {\r\n g.addCollidable(this);\r\n g.addSprite(this);\r\n }", "private void increaseLevel(boolean list)\n\t{\n\t\tlevel++;\n\n\t\tif(hasData.length == level)\n\t\t{\n\t\t\t// Grow lists when needed\n\t\t\thasData = Arrays.copyOf(hasData, hasData.length * 2);\n\t\t\tlists = Arrays.copyOf(lists, hasData.length * 2);\n\t\t}\n\n\t\thasData[level] = false;\n\t\tlists[level] = list;\n\n\t\tnextKey = ! list;\n\t}", "public void addPassedLevel(int currentLevelId) {\r\n\t\tpassedLevelIds.add(currentLevelId);\r\n\t}", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public void setLevel(String level);", "public void startSpecifiedLevel(int level) {\n if (level >= 1 && level <= 3) {\n setLevel(level);\n startGame();\n }\n }", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel(String level) {\n this.level = level;\n }", "public static void add(int level, String resourceID, Object info) {\n\tadd(level, resourceID, new Object[] { info });\n\t\t\t\n }", "@Override\n public void explode(ArrayList<ScreenObject> level) {\n level.add(new Explosion(position.x, position.y, 100, 100,\n Explosion.expSubtype.YELLOW));\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public static void setLevel(Level level) {\r\n\t\tGameplay.getInstance().setLevel(level);\r\n\t}", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "@Override\n\tpublic void newGame(String level) {\n\t\tmanager.newGame(level);\n\t}", "public static void add(int level, String resourceID) {\n\tif (logLevel >= level) {\n\t addInfo(I18N.loadString(resourceID));\n\t}\n }", "public void goNextLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n level++;\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n level++;\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else {\r\n System.out.println(\"PLAYER SURVIVED\");\r\n System.exit(0);\r\n }\r\n }", "public void setLevel(String level){\n\t\tthis.level = level;\n\t}", "private void loadLevel(Game game, int level) {\n //stop any ongoing sounds\n game.getGameLevel().getLevelSound().stop();\n //creates new arrList\n game.resetGameLevels();\n //Loads levels in the arrList\n game.buildGameLevelsArray();\n //set to desired level\n game.setLevel(level);\n //load all necessary components for the game\n // and updates the existing one.\n game.goNextLevel();\n // sets the player lifes and collected eggs\n game.getHero().setLifes(10);\n game.getHero().setEggs(0);\n }", "public static void setLevel(int level) {\n Game.level = level;\n movingSpeed = level * 5;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "@Override\n\tpublic void playLevel(ArrayList<Double> phenotype) { \n\t\t//probably need a few helper methods, one to save to the right place, maybe we need to add a class/method that defaults to the level we pick from the \n\t\t//level breeder instead of the first level of the campaign that IceCreamYou has by default. \n\t\tdouble[] doubleArray = ArrayUtil.doubleArrayFromList(phenotype); \n\t\tList<List<Integer>> level = levelListRepresentation(doubleArray); \n\t\t//fills this list with all of the empty points in the level, one of these will become the spawn point\n\t\tList<Point> emptySpaces = LodeRunnerGANUtil.fillEmptyList(level); \n\t\tRandom rand = new Random(Double.doubleToLongBits(doubleArray[0]));\n\t\tLodeRunnerGANUtil.setSpawn(level, emptySpaces, rand); //sets a consistent and random spawn point \n\t\t//opens play window to play a level from the LevelBreeder \n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew LodeRunner(level);\n\t\t\t}\n\t\t});\n\t}", "public void givePlayerLevelBonus() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tp.addScore(5 * (currentLevel-1));\n\t\t\t}\n\t\t}\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Server gives all players level bonus\");\n\t}", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "public void addPlayer(Player player) {\n playerList.add(player);\n }", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public final void setLevel(final int level) {\n\t\tthis.level = level;\n\t}", "public void addLevel()\r\n {\r\n tables.addFirst( new HashMap<String,T>() );\r\n counts.addFirst( 0 );\r\n }", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public static void setLevel(int current)\r\n\t{\r\n\t\tGame.level = current;\r\n\t}", "protected void setLevel(int level)\n {\n this.level = level;\n }", "private void addNewLevelNotification() {\n\t\tDisplay.getDefault().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tNewLevelNotification notification = new NewLevelNotification(Display.getDefault());\n\t\t\t\tNotificationManager.add(notification);\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void onAddToLocalList(Player player) {\n\t\tsuper.onAddToLocalList(player);\n\n\t\tif (phase == AbyssalSirePhase.SLEEPING || phase == AbyssalSirePhase.AWAKE) {\n\t\t\tgetEventHandler().addEvent(this, new CycleEvent<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void execute(CycleEventContainer<Entity> container) {\n\t\t\t\t\tcontainer.stop();\n\n\t\t\t\t\tif (phase == AbyssalSirePhase.SLEEPING) {\n\t\t\t\t\t\tsetIdleAnimation(4527);\n\t\t\t\t\t} else if (phase == AbyssalSirePhase.AWAKE) {\n\t\t\t\t\t\tsetIdleAnimation(4529);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void stop() {\n\n\t\t\t\t}\n\t\t\t}, 2);\n\t\t}\n\t}", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public void setLevel(String value) {\n this.level = value;\n }", "public void startNextLevel() {\n if (getLevel() < 3) {\n setLevel(getLevel() + 1);\n startGame();\n }\n }", "private void incrementLevels(int levels){\n this.level += levels;\n if (this.level > 10){\n this.level = 10;\n }\n }", "public static void add(int level, InputStream in){\n\tBufferedReader fileReader = new BufferedReader\n\t (new InputStreamReader(new DataInputStream(in))); \n\tString line;\n\n\ttry {\n\t while ((line = fileReader.readLine()) != null ) {\n \t\tif (logLevel >= level){\n\t\t addInfo(line);\n \t\t}\n\t }\n\t} catch (IOException e) {\n\t}\n }", "public static void add(int level, String resourceID, Object info1,\n\t\t\t\tObject info2) {\n\tadd(level, resourceID, new Object[] { info1, info2 });\n }", "public void setCurrentLevel(Level level){\r\n currentLevel = level;\r\n currentLevel.setObserver(this);\r\n }", "public void addToList(int cap) {\n\t\t\tRoomList.addToList(cap);\r\n\t\t}", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setLevel(int value) {\n this.level = value;\n }", "public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }", "public static void add(int level, String resourceID, Object info1,\n\t\t\t\tObject info2, Object info3) {\n\tadd(level, resourceID, new Object[] { info1, info2, info3 });\n }", "public void setLevel(int level) {\n if (level < 1)\n throw new IllegalArgumentException(\"Cannot be a level less than 0\");\n\n this.level = level;\n }", "public void addNewPlayer(Player p) {\n\t\t// if the player don't exists in the highscore list the player is added\n\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\tif(highscore.get(p.getName()) == null) {\n\t\t\t\thighscore.put(p.getName(), 0);\n\t\t\t}\n\t\t}\n\t\tthis.playerList.add(p); \n\t}", "private void setLevel(int level){\r\n\t\tswitch(level){\r\n\t\t\tcase Game.LEVEL_ONE:\r\n\t\t\tcase Game.LEVEL_TWO:\r\n\t\t\tcase Game.LEVEL_THREE:\r\n\t\t\t\tthis.level = level;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.err.println(\"Improper level input, use 'Game.LEVEL_#' to accurately input a level into this method\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }", "public void addPlayer(Player player){\n players.add(player);\n }", "public void changeLevel(Level level) {\n if (Consts.TEST) {\n this.level = level;\n return;\n }\n\n try {\n level.validate();\n } catch (Exception e) {\n e.printStackTrace();\n level = this.level;\n }\n this.level = level;\n entities.clear();\n pacman.respawn(level.getRandomPacmanSpawn());\n // items spawnen\n for (int y = 0; y < level.getHeight(); y++) {\n for (int x = 0; x < level.getWidth(); x++) {\n if (level.getField(x, y) == MapModule.DOT)\n entities.add(new Dot(x, y));\n else if (level.getField(x, y) == MapModule.POWERUP)\n entities.add(new PowerUp(x, y));\n else if (level.getField(x, y) == MapModule.SPEEDUP)\n entities.add(new SpeedUp(x, y));\n else if (level.getField(x, y) == MapModule.TELEPORT)\n entities.add(new Teleporter(x, y));\n }\n }\n\n // 4 Geister im normalen Spiel, 1 Geist fuer Tests\n for (int i = 0; i < (Consts.TEST ? 1 : Consts.NUM_GHOSTS); i++) {\n Ghost g = new Ghost(i);\n g.respawn(level.getNextGhostSpawn());\n entities.add(g);\n }\n }", "public void setItemLevel(int level) { this.level = level; }", "public void changeLevel(Level level) {\n gameState.setCurrentLevel(level);\n\n }", "private void UpdateAdds() {\n Adds = (Level + CurrentHealth)/10;\n }", "public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }", "public void nextLevel() {\n // stops the game\n world.stop();\n level++;\n switch (level) {\n case 2:\n // get a new world\n world = new Level2();\n // populates new world with Level2()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n move2.setObstacle2(world.getObstacle2());\n drop.setBallDrop(world.getBallPlatform());\n view.setWorld(world);\n \n try {\n gameMusicL2 = new SoundClip(\"data/music2.wav\");\n gameMusicL2.loop();\n gameMusicL1.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500);\n break;\n case 3:\n // get a new world\n world = new Level3();\n // populates new world with Level3()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n drop.setBallDrop(world.getBallPlatform());\n world.addStepListener(new MovingBlock(world.getBlock()));\n view.setWorld(world);\n \n try {\n gameMusicL3 = new SoundClip(\"data/music3.wav\");\n gameMusicL3.loop();\n gameMusicL2.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500); \n break;\n default:\n System.out.println(\"Congratulations, you have completed the game!\");\n System.exit(0);\n }\n world.start();\n }", "public void nextLevel() {\n if (game.level <= 8) {\n game.level = game.level + 1;\n if (isOver()) {\n game.overallMoves = game.getOverallMoves() + game.getMoves();\n }\n f.score.setText(\"Overall Score: \" + game.getOverallMoves());\n restartLevel();\n }\n else if (game.level == 9) { //FINAL LEVEL\n f.levelNum.setText(\"GAME\");\n f.moves.setText(\"OVER\");\n f.score.setText(\"FINAL SCORE: \" + game.getOverallMoves());\n repaint();\n }\n }", "public void addChangeLevelListener(ChangeLevelListener l)\r\n\t{\r\n\t\tthis.listenerChangeLevelList.add(ChangeLevelListener.class, l);\r\n\t}", "public void incrementLevel()\r\n {\r\n counts.addFirst( counts.removeFirst() + 1 );\r\n }", "public void runLevels(List<LevelInformation> levels) {\n\n for (LevelInformation levelInfo : levels) {\n\n Counter blocks = new Counter();\n GameLevel level = new GameLevel(levelInfo, this.keyboardSensor, this.animationRunner, this.lives,\n this.score, blocks);\n level.initialize();\n\n // play the same level over and over again as long as the player still has lives left\n while (this.lives.getValue() > 0) {\n level.playOneTurn();\n\n // if no blocks are left - move to the next level\n if (blocks.getValue() == 0) {\n // if all blocks are dead by now, add 100 to the score\n this.score.increase(LEVEL_COMPLETE_SCORE);\n break;\n } else {\n // subtract 1 life\n this.lives.decrease(1);\n\n // if no more lives are left, the game's over\n if (this.lives.getValue() == 0) {\n break;\n }\n }\n }\n\n // if no more lives are left, the game's over\n if (this.lives.getValue() == 0) {\n break;\n }\n }\n\n // ask the user for his name if his score is going to be on the highscore table\n if (this.highscore.isHighScore(this.score.getValue())) {\n DialogManager dialog = this.animationRunner.gui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\").trim();\n\n // if no name was entered\n if (name.equals(\"uninitializedValue\") || name.isEmpty()) {\n name = \"Anonymous\";\n }\n\n // remove commas\n if (name.contains(\",\")) {\n name = name.replace(\",\", \"\");\n }\n\n // add the record to the list\n this.highscore.add(new ScoreInfo(name.trim(), this.score.getValue()));\n\n try {\n // save the data\n this.highscore.save();\n } catch (IOException ioe) {\n System.err.println(ioe.getMessage());\n System.exit(-1);\n }\n }\n\n // show end screen - win or lose\n this.animationRunner.run(new KeyPressStoppableAnimation(\n this.keyboardSensor, \"space\", new EndScreen(this.lives, this.score)));\n // show highscores table\n this.animationRunner.run(new KeyPressStoppableAnimation(\n this.keyboardSensor, \"space\", new HighScoresAnimation(this.highscore)));\n\n // when the game ends reset counters\n this.score = new Counter();\n this.lives = new Counter(Ass7Game.LIVES);\n }", "public static void registerLevel(LogLevel level, LevelImplementation implementation)\n {\n CollectionUtil.replaceOrPut(levels, level.getLevel().toLowerCase(), implementation);\n }", "public void setLevel(int v)\n {\n m_level = v;\n }", "protected void restockItem(int x){\r\n this.level += x;\r\n }", "public void addData(String level, int seconds, String time)\r\n {\r\n this.data.add(new Data(level, seconds, time));\r\n }", "public void addSpeed(Stat speed)\r\n {\r\n speeds.add(speed);\r\n }", "public void runLevels(List<LevelInformation> levels) {\n int i = 0;\n for (LevelInformation levelInfo : levels) {\n i++;\n Counter currScore = this.scoreBoard.getScoreCounter();\n GameLevel level = new GameLevel(levelInfo, this.animationRunner, this.keyboardSensor,\n this.numberOfLives, this.scoreBoard);\n\n level.initialize();\n //level has more blocks and player has more lives\n while (level.getBlockCounter().getValue() > 0 && level.getLifeCounter().getValue() > 0) {\n level.playOneTurn();\n }\n\n //no more lives\n if (this.numberOfLives.getValue() == 0) {\n addToTable();\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new GameOverScreen(currScore)));\n\n break;\n }\n if (i == levels.size() && level.getBlockCounter().getValue() == 0) {\n addToTable();\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new WinnerScreen(currScore)));\n\n break;\n }\n }\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new HighScoresAnimation(highScoresTable)));\n\n\n }", "public void addToPlaylist(Song song){\n playlist.add(song);\n playlistTime = playlistTime + song.getLength();\n }", "public static List<AVLTreeNode> nextLevel(List<AVLTreeNode> level) {\n\t\tList<AVLTreeNode> nextLevel = new ArrayList<AVLTreeNode>();\n\n\t\tfor (AVLTreeNode node : level) {\n\t\t\tnextLevel.add(node.hasLeft() ? node.getLeft() : AVLTreeNode.EMPTY_NODE);\n\t\t\tnextLevel.add(node.hasRight() ? node.getRight() : AVLTreeNode.EMPTY_NODE);\n\t\t}\n\t\treturn nextLevel;\n\t}", "public void setLevel(double amt) {\n\t\tlevel += amt;\n\t}", "StartGameStatus start(Level level);", "private void addLevels() {\r\n\t\tlevel1 = new Level();\r\n\t\tadd(level1, LEVEL_OFFSET, getHeight() - FIRST_LEVEL_VERTICAL_OFFSET);\r\n\t\t\r\n\t\tlevel2 = new Level();\r\n\t\tadd(level2, LEVEL_OFFSET, (level1.getY() * (2/3.0)) - level2.getHeight() / 2.0);\r\n\t\t\r\n\t\tlevel3 = new Level();\r\n\t\tadd(level3, LEVEL_OFFSET, (level1.getY() * (1/3.0)) - level3.getHeight() / 2.0);\r\n\t\t\r\n\t\tladder1 = new Ladder();\r\n\t\tadd(ladder1, getWidth() - ladder1.getWidth() * 1.5, level2.getY());\r\n\t\t\r\n\t\tladder2 = new Ladder();\r\n\t\tadd(ladder2, ladder2.getWidth() / 2.0, level3.getY());\r\n\t}", "public Weapon(WeaponType type, int level) {\n \tthis.effects = new ArrayList<>();\n this.type = type;\n this.level = level;\n this.effects.add(new AttackEffect(getWeaponDamage(), getWeaponSpeed(), getWeaponRange(), Target.SELF));\n }", "@Override\n public void upgrade(int level){\n System.out.println(\"Level adfasdfasdf: \" + level);\n System.out.println(getLevel());\n\n if(level > 5) level = 5;\n\n if(level > 1){\n for (int i = 1; i < level; i++) levelUp();\n }\n\n /*\n //System.out.println(\"\\n-------\");\n //System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n\n double percentage = growth(level);\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (level % 2 != 0) range++;\n\n //System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n //System.out.println(\"-------\\n\");*/\n }", "public void runLevels(List<LevelInformation> levels) {\r\n // Creating the scoreboard file.\r\n File highscores = new File(\"highscores\");\r\n // If it does not exist we create a new one.\r\n if (!highscores.exists()) {\r\n try {\r\n this.scoreTable.save(new File(\"highscores\"));\r\n } catch (IOException e) {\r\n System.out.println(\"Failed creating a file !\");\r\n return;\r\n }\r\n // If it exists we load a previous scoreboard file.\r\n } else {\r\n try {\r\n this.scoreTable.load(highscores);\r\n } catch (IOException e) {\r\n System.out.println(\"Failed reading from file\");\r\n return;\r\n }\r\n }\r\n // Running the levels.\r\n while (true) {\r\n GameLevel level = new GameLevel(this.k, this.a, this.score, this.lives);\r\n level.initialize();\r\n while (level.getNumOfBlocks() > 0 && this.lives.getValue() > 0) {\r\n level.playOneTurn();\r\n }\r\n break;\r\n }\r\n //Endscreen is shown.\r\n Animation win = new EndScreen(this.score);\r\n Animation winScreen = new KeyPressStoppableAnimation(k, \"m\", win);\r\n this.a.run(winScreen);\r\n // If the player needs to be added to the score board, we show it.\r\n if (checkScore()) {\r\n add();\r\n Animation scoreboard = new HighScoresAnimation(scoreTable);\r\n Animation scoreScreen = new KeyPressStoppableAnimation(k, \"m\", scoreboard);\r\n this.a.run(scoreScreen);\r\n }\r\n }", "public void newGameStart(int level) {\n animationThread.stop();\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelMusic\");\n }\n musicName = \"LevelMusic\";\n setTitle(\"Chip's Challenge: Level \" + level);\n replay.clearMovement();\n exited = false;\n timeRuunableThread.setDrawNumber(true);\n timeRuunableThread.setSecond(101);\n gameStarted = true;\n gamePaused = false;\n timeRuunableThread.setPause(gamePaused);\n timeRuunableThread.setGameStart(gameStarted);\n infoCanvas.drawLevelNumber(level);\n board = new Board(level);\n keysize = 0;\n originalChipNumber = board.getTreasureRemainingAmount();\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n renderer = new MazeRenderer(boardCanvas.getGraphics());\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n }", "public void _addMovement(int index, int Level, int part) {\n\t\tmovement.add(data.getMovement(index));\n\t\tequipment.add(data.getEquipment(index));\n\t\trep.add(_setMovementnum(index,part));\n\t\tweight.add(_setWeightlist(index,Level));\n\t\t\n\t}" ]
[ "0.76149327", "0.64815545", "0.6416127", "0.6193864", "0.6190396", "0.61833835", "0.6070513", "0.6030704", "0.59613425", "0.59163135", "0.59163135", "0.59150773", "0.5899393", "0.5859544", "0.58436024", "0.58394575", "0.58196425", "0.5806527", "0.5796904", "0.5796904", "0.5766866", "0.5760756", "0.5747257", "0.5747257", "0.57259667", "0.56984884", "0.56927866", "0.5687138", "0.5666578", "0.56611294", "0.5658413", "0.56492716", "0.56333786", "0.56333786", "0.56333786", "0.56333786", "0.56333786", "0.56172705", "0.5611664", "0.5607871", "0.560372", "0.5602008", "0.560082", "0.55742794", "0.5571767", "0.55677426", "0.5566874", "0.5566874", "0.5565507", "0.55610335", "0.5559551", "0.55413663", "0.55354947", "0.5535098", "0.55174696", "0.5512783", "0.55084896", "0.5506958", "0.5498401", "0.5494377", "0.54895365", "0.5482487", "0.5478239", "0.5469355", "0.5461721", "0.54579735", "0.5457831", "0.5439513", "0.54368615", "0.5422806", "0.5412283", "0.5407309", "0.5400901", "0.5367684", "0.53560156", "0.535353", "0.53511363", "0.5343442", "0.5335066", "0.53226304", "0.5321447", "0.5310296", "0.5308497", "0.5301168", "0.529062", "0.52784735", "0.52731615", "0.5238019", "0.5237764", "0.523641", "0.52348226", "0.52339387", "0.5225809", "0.5224748", "0.52230525", "0.52066845", "0.5168563", "0.5159541", "0.51566505", "0.51560223" ]
0.7473414
1
Getters for the list of levels.
public Level getSelectedLevel() { return lvlm.getLevels().get(levelList.getSelectedIndex()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Level> getLevels() {\n return levels;\n }", "public String getLevels() {\r\n\t\treturn levels;\r\n\t}", "public static String[] getLevels() {\n\t\treturn levels;\n\t}", "protected abstract Level[] getLevelSet();", "public Map<SkillType, Integer> getLevels() {\n return levels;\n }", "public static List<DownSamplingLevels> getLevels() {\n return levels;\n }", "byte[] getLevels() {\n return levels;\n }", "public Collection getLevels(){\n List<String> levels = new ArrayList<>();\n File directoryPath = new File(DATA_PATH+gameName+\"/\");\n for (String s : directoryPath.list()) {\n if (isLevelFile(s)){\n levels.add(getLevelName(s));\n }\n }\n Collections.sort(levels);\n return Collections.unmodifiableList(levels);\n }", "protected int getLevel(){\r\n return this.level;\r\n }", "public int getLevel()\n {\n return level; \n }", "public int getLevel()\r\n {\r\n return level;\r\n }", "public int getLevel()\n {\n return level;\n }", "public int getLevel() {\r\n return level;\r\n }", "public int getLevel()\n {\n return m_level;\n }", "public String getLevel ()\n {\n return level;\n }", "public int getLevel(){\n return this.level;\n }", "public int getLevel(){\n return this.level;\n }", "public int getLevel() {\n return this.level;\n }", "public double Getlevel()\r\n {\r\n return level;\r\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public double[][] getLevelSet() {\r\n\t\treturn _levelSet;\r\n\t}", "public int getLevel() {\n \treturn this.level;\n }", "public int getLevel(){\n return level;\n }", "public int getLevel(){\n return level;\n }", "public int getLevel() { \r\n\t\treturn level; \r\n\t}", "public static LogLevel[] getLevels() {\n\t\treturn getLevels(false, false);\n\t}", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public String getLevel()\n {\n return level;\n }", "int getLevel();", "int getLevel();", "int getLevel();", "int getLevel();", "int getLevel();", "public String getLevel() {\n return this.level;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "int getLevel()\n\t{\n\t\treturn this.level;\n\t}", "public Level getLevel() {\r\n\t\treturn level;\r\n\t}", "public void setLevels(String levels) {\r\n\t\tthis.levels = levels;\r\n\t}", "public int getLevel(){\n\t\treturn this.level;\n\t}", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "public int getLevel() {\n \t\treturn level;\n \t}", "public String getLevel() {\n return level;\n }", "public int getLevel(){\n\t\treturn level;\n\t}", "public final String getLevel() {\n return this.level;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "public Level getLevel() {\n\t\treturn myLevel;\n\t}", "public int getLevel()\r\n {\r\n return r_level;\r\n }", "public int getLevel() {\r\n\t\treturn level;\r\n\t}", "public int getLevel() {\r\n\t\treturn level;\r\n\t}", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public int getLevel() {\n\t\treturn level;\r\n\t}", "double getLevel();", "double getLevel();", "public String getLevel(){\n\t\treturn level;\n\t}", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n\t\treturn this.level;\n\t}", "private String[] getLevelsFound() {\r\n String[] levelsFound = new String[levels.size()];\r\n Iterator<NetworkLevels> iterator = levels.iterator();\r\n int i = 0;\r\n while (iterator.hasNext()) {\r\n levelsFound[i++] = iterator.next().name().toLowerCase();\r\n }\r\n return levelsFound;\r\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int countLevels() {\n return levels.size();\n }", "public static int getLevel()\n {\n return level;\n }", "public int getLevel()\n {\n return m_nLevel;\n }", "public SortedSet<String> getAvailableLevels() {\n if (allAvailableLevels == null) {\n allAvailableLevels = new TreeSet<String>();\n\n try {\n List<String> dataTypeList = new ArrayList<String>();\n dataTypeList.add(dataType);\n\n List<String> levels = DataDeliveryHandlers\n .getParameterHandler().getDataLevelTypeDescriptions(\n dataTypeList);\n if (levels != null && !levels.isEmpty()\n && levels.get(0) != null) {\n allAvailableLevels.addAll(levels);\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the levels.\", e);\n }\n }\n\n return allAvailableLevels;\n }", "public Level getLevel() {\n\t\treturn this.level;\n\t}", "public String getLevelName(){\n return levelName;\n }", "public static int getLevelCount() {\n return levels.size();\n }", "public Level level() {\n\treturn level;\n }", "public Level level() {\n return level;\n }", "public static int getLevel() {\n return level;\n }", "public double getLevel() {\n\t\treturn level;\n\t}", "java.util.List<message.Figure.FigureData.FigureLevelTable> \n getLevelTableListList();", "public int level();", "public String getLevel() {\n\t\treturn level;\n\t}", "public static int getLevel()\r\n\t{\r\n\t\treturn level;\r\n\t}" ]
[ "0.8305355", "0.7820307", "0.7805146", "0.75617", "0.7540658", "0.7494261", "0.694643", "0.68660617", "0.68601596", "0.685205", "0.68439615", "0.68142176", "0.67850924", "0.6783867", "0.6775567", "0.67733413", "0.67733413", "0.6766919", "0.6765844", "0.6741426", "0.6741426", "0.6741426", "0.6741426", "0.6741426", "0.6741426", "0.6741426", "0.6741426", "0.6741426", "0.6741426", "0.67413116", "0.6739948", "0.6725993", "0.6725993", "0.67254645", "0.67123216", "0.6711683", "0.6711683", "0.6711683", "0.6711683", "0.6711683", "0.6681605", "0.66738385", "0.66738385", "0.66738385", "0.66738385", "0.66738385", "0.6661707", "0.6650671", "0.6650671", "0.6649359", "0.66451764", "0.66403484", "0.66395754", "0.6639186", "0.6639186", "0.6632334", "0.66242886", "0.6622462", "0.6619594", "0.6606811", "0.6606811", "0.66047925", "0.6594134", "0.6592223", "0.6592223", "0.6591466", "0.6591466", "0.6591466", "0.6591466", "0.6591466", "0.6585315", "0.6564112", "0.6555421", "0.6555421", "0.65480274", "0.65413076", "0.65413076", "0.6528549", "0.6528549", "0.6528549", "0.65162313", "0.65119505", "0.65022707", "0.65022707", "0.65022707", "0.65022707", "0.6496994", "0.64883965", "0.64794236", "0.6473208", "0.64717394", "0.6471729", "0.6456171", "0.64471346", "0.6441109", "0.6431483", "0.6429659", "0.64200884", "0.64083624", "0.6387094", "0.63840395" ]
0.0
-1
Obtain the bucket name.
public String getBucketName() { return bucketName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public String getBucketName(){\n return bucketName;\n }", "public String getBucketName() {\n\treturn _bucketName;\n }", "public String getBucket() {\n return bucket;\n }", "public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getBucket();", "private String bucketName(@NonNull String s3Url) {\n return s3UrlMatcher(s3Url).group(1);\n }", "@java.lang.Override\n public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n }\n }", "BucketName(String bucketName) {\n this.bucketName = bucketName;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setBucketName(String bucketName)\n {\n this.bucketName = bucketName;\n }", "@Nullable public String getBucketEndpoint() {\n return bucketEndpoint;\n }", "public void setBucketName(String bucketName) {\n setProperty(BUCKET_NAME, bucketName);\n }", "public Builder setGcsBucket(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "@Override\n public String getNameKeySpace() {\n Object ref = nameKeySpace_;\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 nameKeySpace_ = s;\n return s;\n }\n }", "public long getBucketID(){\n return localBucketID;\n }", "java.lang.String getS3();", "public static String fromComponents(String bucketName, String objectName) {\n if (bucketName == null && objectName != null) {\n throw new IllegalArgumentException(\n String.format(\"Invalid bucketName/objectName pair: gs://%s/%s\", bucketName, objectName));\n }\n // TODO(user): Unify this method with other methods that convert bucketName/objectName\n // to a URI; maybe use the single slash for compatibility.\n StringBuilder result = new StringBuilder(\"gs://\");\n if (bucketName != null) {\n result.append(bucketName);\n }\n if (objectName != null) {\n result.append('/').append(objectName);\n }\n return result.toString();\n }", "public java.lang.String getS3() {\n java.lang.Object ref = s3_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n s3_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getS3() {\n java.lang.Object ref = s3_;\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 s3_ = s;\n }\n return s;\n }\n }", "public abstract int getBucketID();", "public Bucket loadBucket(String name) throws S3Exception {\n\t\treturn null;\r\n\t}", "public String getNameKeySpace() {\n Object ref = nameKeySpace_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n nameKeySpace_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getBrokerName() throws CallError, InterruptedException {\n return (String)service.call(\"getBrokerName\").get();\n }", "B getBucket();", "@Override\n public String getName() {\n final String name = getClass().getName();\n final int lastDollar = name.lastIndexOf('$');\n return name.substring(lastDollar + 1);\n }", "@Updatable\n @Required\n public BucketResource getBucket() {\n return bucket;\n }", "java.lang.String getQueueName();", "public static String getIntervalBucket() throws Exception {\n\t\treturn getConfig(\"intervalBucket\");\n\t}", "static String validateBucketName(String bucketName) {\n // If the name ends with '/', remove it.\n bucketName = toFilePath(bucketName);\n\n if (isNullOrEmpty(bucketName)) {\n throw new IllegalArgumentException(\"GCS bucket name cannot be empty.\");\n }\n\n if (!BUCKET_NAME_CHAR_MATCHER.matchesAllOf(bucketName)) {\n throw new IllegalArgumentException(\n String.format(\n \"Invalid GCS bucket name '%s': bucket name must contain only 'a-z0-9_.-' characters.\",\n bucketName));\n }\n\n return bucketName;\n }", "public byte[] bucketOf(String saltedKey) {\n return saltedKey.substring(0, Integer.toString(numOfBuckets - 1).length()).getBytes(getCharset());\n }", "public String getName() {\n int index = getSplitIndex();\n return path.substring(index + 1);\n }", "@Required\n @Updatable\n public BucketResource getBucket() {\n return bucket;\n }", "public String getName()\n {\n ensureLoaded();\n return m_clzName.getValue();\n }", "public String getJarName() {\r\n\t\tURL clsUrl = getClass().getResource(getClass().getSimpleName() + \".class\");\r\n\t\tif (clsUrl != null) {\r\n\t\t\ttry {\r\n\t\t\t\tjava.net.URLConnection conn = clsUrl.openConnection();\r\n\t\t\t\tif (conn instanceof java.net.JarURLConnection) {\r\n\t\t\t\t\tjava.net.JarURLConnection connection = (java.net.JarURLConnection) conn;\r\n\t\t\t\t\tString path = connection.getJarFileURL().getPath();\r\n\t\t\t\t\t// System.out.println (\"Path = \"+path);\r\n\t\t\t\t\tint index = path.lastIndexOf('/');\r\n\t\t\t\t\tif (index >= 0)\r\n\t\t\t\t\t\tpath = path.substring(index + 1);\r\n\t\t\t\t\treturn path;\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private String jarName(){\n // determine the name of this class\n String className=\"/\"+this.getClass().getName().replace('.','/')+\".class\";\n // find out where the class is on the filesystem\n String classFile=this.getClass().getResource(className).toString();\n\n if( (classFile==null) || !(classFile.startsWith(\"jar:\")) ) return null;\n \n // trim out parts and set this to be forwardslash\n classFile=classFile.substring(5,classFile.indexOf(className));\n classFile=FilenameUtil.setForwardSlash(classFile);\n\n // chop off a little bit more\n classFile=classFile.substring(4,classFile.length()-1);\n \n return FilenameUtil.URLSpacetoSpace(classFile);\n }", "@Override\n\tpublic String getName() {\n\t\tfinal String name = super.getName();\n\t\ttry {\n\t\t\treturn name.substring(namespace.length()+1);\n\t\t} catch (Exception e) {\n\t\t\treturn name;\n\t\t}\n\t}", "String getBaseQueueName();", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "com.google.protobuf.ByteString\n getQueueNameBytes();", "String get_name() {\n File file = new File(url);\n return file.getName();\n }", "public void setBucket(String inBucket);", "public final String aCK() {\n return NAME;\n }", "public String getBaseName() {\n return baseName;\n }", "public List<String> listBuckets() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (Bucket bucket : s3client.listBuckets()) {\n\t\t\tlist.add(bucket.getName());\n\t\t\t// System.out.println(\" - \" + bucket.getName());\n\t\t}\n\n\t\treturn list;\n\t}", "public @Nullable String getGsObjectName() {\n return gsObjectName;\n }", "public StorageClassEnum getBucketStorageClass()\n {\n return storageClass;\n }", "public com.amazon.s3.GetBucketLoggingStatusResponse getBucketLoggingStatus(com.amazon.s3.GetBucketLoggingStatus getBucketLoggingStatus);", "@Internal(\"Represented as part of archiveName\")\n public String getBaseName() {\n return baseName;\n }", "public String getBrokerName() throws DynamicCallException, ExecutionException {\n return (String)call(\"getBrokerName\").get();\n }", "private static void deleteBucketsWithPrefix() {\n\n logger.debug(\"\\n\\nDelete buckets with prefix {}\\n\", bucketPrefix );\n\n String accessId = System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR);\n String secretKey = System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR);\n\n Properties overrides = new Properties();\n overrides.setProperty(\"s3\" + \".identity\", accessId);\n overrides.setProperty(\"s3\" + \".credential\", secretKey);\n\n final Iterable<? extends Module> MODULES = ImmutableSet\n .of(new JavaUrlHttpCommandExecutorServiceModule(),\n new Log4JLoggingModule(),\n new NettyPayloadModule());\n\n BlobStoreContext context =\n ContextBuilder.newBuilder(\"s3\").credentials(accessId, secretKey).modules(MODULES)\n .overrides(overrides).buildView(BlobStoreContext.class);\n\n BlobStore blobStore = context.getBlobStore();\n final PageSet<? extends StorageMetadata> blobStoreList = blobStore.list();\n\n for ( Object o : blobStoreList.toArray() ) {\n StorageMetadata s = (StorageMetadata)o;\n\n if ( s.getName().startsWith( bucketPrefix )) {\n try {\n blobStore.deleteContainer(s.getName());\n } catch ( ContainerNotFoundException cnfe ) {\n logger.warn(\"Attempted to delete bucket {} but it is already deleted\", cnfe );\n }\n logger.debug(\"Deleted bucket {}\", s.getName());\n }\n }\n }", "public S3BucketSource getS3BucketSource() {\n return this.s3BucketSource;\n }", "@Override\n public List<String> AllFileFromS3Bucket()\n {\n List<Bucket> buckets= amazonS3.listBuckets();\n List<String> keys = new ArrayList<>();\n \n for (Bucket b :buckets) {\n \t System.out.println(\" **** \" + b.getName());\n \t keys.add(b.getName());\n }\n\treturn keys;\n \n }", "public String getName() {\n if (filename != null) {\n int index = filename.lastIndexOf(separatorChar);\n\n if (index >= 0) {\n return filename.substring(index + 1);\n } else {\n if (filename == null) {\n return \"\";\n } else {\n return filename;\n }\n }\n } else {\n return \"\";\n }\n }", "public final String getName() {\n if (name == null) {\n name = this.getClass().getSimpleName().substring(3);\n }\n return name;\n }", "public String queueName();", "@Override\n public com.google.protobuf.ByteString\n getNameKeySpaceBytes() {\n Object ref = nameKeySpace_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n nameKeySpace_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getBaseName(String luceneFieldName) {\n\t\t// Strip off property and possible alternative\n\t\tint pos = luceneFieldName.indexOf(PROP_SEP);\n\t\tif (pos >= 0) {\n\t\t\treturn luceneFieldName.substring(0, pos);\n\t\t}\n\t\tpos = luceneFieldName.indexOf(BOOKKEEPING_SEP);\n\t\tif (pos >= 0) {\n\t\t\treturn luceneFieldName.substring(0, pos);\n\t\t}\n\t\tpos = luceneFieldName.indexOf(ALT_SEP);\n\t\tif (pos >= 0) {\n\t\t\tthrow new IllegalArgumentException(\"Illegal field name: \" + luceneFieldName);\n\t\t}\n\t\treturn luceneFieldName;\n\t}", "String getPartitionName();", "String getPartitionName();", "public String getName() {\n\t\treturn name != null ? name : getDirectory().getName();\n\t}", "public void deleteBucket() {\n\n logger.debug(\"\\n\\nDelete bucket\\n\");\n\n String accessId = System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR);\n String secretKey = System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR);\n\n Properties overrides = new Properties();\n overrides.setProperty(\"s3\" + \".identity\", accessId);\n overrides.setProperty(\"s3\" + \".credential\", secretKey);\n\n final Iterable<? extends Module> MODULES = ImmutableSet\n .of(new JavaUrlHttpCommandExecutorServiceModule(),\n new Log4JLoggingModule(),\n new NettyPayloadModule());\n\n BlobStoreContext context =\n ContextBuilder.newBuilder(\"s3\").credentials(accessId, secretKey).modules(MODULES)\n .overrides(overrides).buildView(BlobStoreContext.class);\n\n BlobStore blobStore = context.getBlobStore();\n blobStore.deleteContainer( bucketName );\n }", "com.google.devtools.kythe.proto.Storage.VName getVName();", "public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }", "public String getNomeCurso()\n\t{\n\t\t// Retorna o nome do Curso\n\t\treturn cursoNome;\n\t}", "@Override\r\n public String getBaseName() {\r\n if (baseName == null) {\r\n final int idx = getPath().lastIndexOf(SEPARATOR_CHAR);\r\n if (idx == -1) {\r\n baseName = getPath();\r\n } else {\r\n baseName = getPath().substring(idx + 1);\r\n }\r\n }\r\n\r\n return baseName;\r\n }", "public String getName()\n {\n return m_sCacheName;\n }", "public bucket getbucket(int x) {\n\t\treturn bucket[x];\n\t}", "public String getCloudName() {\n return cloudName;\n }", "public String getJarName()\r\n {\r\n return sJarName;\r\n }", "java.lang.String getClusterName();", "public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }", "public String getS3UploadURL()\n\t{\n\t\treturn m_S3UploadURL;\n\t}", "public String printBucket() {\n\t\t\tString result = this.toString() + \" \";\n\t\t\tif (this.getNext() != null)\n\t\t\t\tresult += this.getNext().printBucket();\n\t\t\treturn result;\n\t\t}", "public String getBaseName () {\n \n return this.username;\n }", "@Override\n\tpublic String getQueueName() {\n\t\treturn model.getQueueName();\n\t}", "Bucket getBucket(K key) {\r\n\t\treturn (Bucket) buckets[key.hashCode() % numBuckets];\r\n\t}", "String vaultName();", "public byte[] bucketOf(byte[] saltedKey) {\n return Arrays.copyOfRange(saltedKey, 0, Integer.toString(numOfBuckets - 1).length());\n }", "public Future<String> getBrokerName() throws DynamicCallException, ExecutionException {\n return call(\"getBrokerName\");\n }", "public String getNameSpace() {\n return nameSpace;\n }", "public String getName() {\n return cache.getName();\n }", "public com.google.protobuf.ByteString\n getS3Bytes() {\n java.lang.Object ref = s3_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n s3_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getFileName()\n {\n return getJarfileName();\n }", "private String getJarName(final URL url) {\n\n String name = null;\n\n final String path = url.getPath();\n final int end = path.indexOf(Constants.JAR_EXT);\n if (end != -1) {\n final int start = path.lastIndexOf('/', end);\n name = path.substring(start + 1, end + 4);\n } else if (this.isScanAllDirectories()) {\n final int start = path.lastIndexOf('/');\n name = path.substring(start + 1);\n }\n\n return name;\n }", "public void createBucket() {\n\n\t\tSystem.out.println(\"Creating bucket \" + bucketName + \"\\n\");\n\n\t\ts3.createBucket(bucketName);\n\n\n\t}", "public void downloadBucket(String bucketName) {\n\t\t\n\t\tSystem.out.println(\"download bucket\"+bucketName);\n\t\t\n\t\tObjectListing listing = s3client.listObjects(bucketName);\n\t\tList<S3ObjectSummary> summaries = listing.getObjectSummaries();\n\n\t\twhile (listing.isTruncated()) {\n\t\t listing = s3client.listNextBatchOfObjects (listing);\n\t\t summaries.addAll (listing.getObjectSummaries());\n\t\t}\n\t\tSystem.out.println(summaries.get(0));\n\t\t\n\t\ts3client.getObject(new GetObjectRequest(bucketName, \"aws.xlsx\"), new File(\"D:\\\\aws.xlsx\"));\n\n\t}", "public String getName() {\n LOGGER.trace(\"Called the AccountCashBalance getName() with no parameters.\");\n\n LOGGER.trace(\"Leaving the AccountCashBalance getName().\");\n LOGGER.trace(RETURNING + NAME + \">\");\n\n return NAME;\n }", "public com.google.protobuf.ByteString\n getNameKeySpaceBytes() {\n Object ref = nameKeySpace_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n nameKeySpace_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public String getKeyspace() {\n Object ref = keyspace_;\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 keyspace_ = s;\n return s;\n }\n }", "@Override\n public String getKeyspace() {\n Object ref = keyspace_;\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 keyspace_ = s;\n return s;\n }\n }", "@Override\n public String getKeyspace() {\n Object ref = keyspace_;\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 keyspace_ = s;\n return s;\n }\n }", "@Override\n public String getKeyspace() {\n Object ref = keyspace_;\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 keyspace_ = s;\n return s;\n }\n }", "public Bucket getBucketConfiguration(final String bucketname) throws ConfigurationException {\n if (bucketname == null || bucketname.isEmpty()) {\n throw new IllegalArgumentException(\"Bucket name can not be blank.\");\n }\n Bucket bucket = this.buckets.get(bucketname);\n if (bucket == null) {\n readPools(bucketname);\n }\n return this.buckets.get(bucketname);\n }", "public final String getName() {\n\treturn name.getName();\n }", "public String getWalletFileBaseName() {\r\n return walletFileBaseName;\r\n }", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }" ]
[ "0.8347616", "0.8347616", "0.8269577", "0.8125599", "0.80838645", "0.7430136", "0.7404966", "0.7316193", "0.7289279", "0.7194421", "0.66838294", "0.65017265", "0.64704525", "0.6365251", "0.62796706", "0.60772187", "0.5975055", "0.5791445", "0.5730304", "0.5671747", "0.5669255", "0.5643699", "0.56384635", "0.5627272", "0.56207204", "0.56006604", "0.5577685", "0.55751705", "0.5526143", "0.5463295", "0.5425692", "0.54117435", "0.54041004", "0.53989655", "0.5392499", "0.5391759", "0.53856874", "0.5384424", "0.5379503", "0.53724", "0.5371031", "0.53472584", "0.5345522", "0.5323883", "0.531395", "0.52817935", "0.5277675", "0.52663743", "0.52636725", "0.5262611", "0.5236456", "0.52358794", "0.521184", "0.52055657", "0.51648223", "0.51600796", "0.5158005", "0.5157143", "0.51376563", "0.5128688", "0.5114325", "0.51132226", "0.51132226", "0.5105986", "0.50978607", "0.509259", "0.50829136", "0.50808275", "0.5079467", "0.50709945", "0.50633675", "0.5048079", "0.5047074", "0.5037806", "0.5028357", "0.5023954", "0.50182164", "0.50122994", "0.5010924", "0.5009197", "0.50064147", "0.49976692", "0.49971986", "0.49895182", "0.4974457", "0.4961231", "0.49576682", "0.49566412", "0.4955766", "0.4954865", "0.49468768", "0.4941267", "0.49340713", "0.49340713", "0.49340713", "0.49340713", "0.4931052", "0.49279392", "0.49264118", "0.49132472" ]
0.83494323
0
Set the bucket name. The value can contain only lowercase letters, digits, hyphens (), and periods (.).
public void setBucketName(String bucketName) { this.bucketName = bucketName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BucketName(String bucketName) {\n this.bucketName = bucketName;\n }", "public void setBucketName(String bucketName) {\n setProperty(BUCKET_NAME, bucketName);\n }", "public Builder setGcsBucket(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public String getBucketName(){\n return bucketName;\n }", "public void setBucket(String inBucket);", "public String getBucketName()\n {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n\treturn _bucketName;\n }", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public Builder setNameKeySpace(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n nameKeySpace_ = value;\n onChanged();\n return this;\n }", "static String validateBucketName(String bucketName) {\n // If the name ends with '/', remove it.\n bucketName = toFilePath(bucketName);\n\n if (isNullOrEmpty(bucketName)) {\n throw new IllegalArgumentException(\"GCS bucket name cannot be empty.\");\n }\n\n if (!BUCKET_NAME_CHAR_MATCHER.matchesAllOf(bucketName)) {\n throw new IllegalArgumentException(\n String.format(\n \"Invalid GCS bucket name '%s': bucket name must contain only 'a-z0-9_.-' characters.\",\n bucketName));\n }\n\n return bucketName;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "private void setName(String name) {\n name = name.trim().replaceAll(\"\\\"\", \"\");\n name = name.substring(0,1).toUpperCase() + name.substring(1);\n\n this.name = name;\n }", "private String bucketName(@NonNull String s3Url) {\n return s3UrlMatcher(s3Url).group(1);\n }", "public void setName(String value) {\n this.name = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public Builder setS3(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }", "private void setNewName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newName_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "protected void setBaseNameFromName(String name) {\n int lastDot = name.lastIndexOf(\".\");\n this.baseName = (lastDot == -1) ? name : name.substring(0, lastDot);\n }", "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "public void setName(String val) {\n name = val;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName( java.lang.String newValue ) {\n __setCache(\"name\", newValue);\n }", "public void setName(java.lang.String name)\n {\n name_.setLength(0);\n name_.append(name);\n }", "public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setName(String val) {\n this.name = val;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(String name) {\n if (name != null && name.length() > 40) {\n this.name = name.substring(0, 40);\n } else {\n this.name = name;\n }\n }", "public void setNameString(String s) {\n nameString = s;\r\n }", "public void setCamelCaseName(CamelCaseName value){\n ((MvwDefinitionDMO) core).setCamelCaseName(value);\n }", "public void setName(String name) {\r\n this.name = name.trim();\r\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n name_ = value;\n \n return this;\n }", "public void setName(String name) {\n Preconditions.checkArgument(!Strings.isNullOrEmpty(name));\n if (!(this instanceof ConfigValueNode))\n if (name.indexOf('.') >= 0 || name.indexOf('/') >= 0) {\n throw new RuntimeException(\n \"Invalid name string. Name cannot contain (.) or (/)\");\n }\n this.name = name;\n }", "public void setName(String newValue);", "public void setName(String newValue);", "public static void setName(String n){\n\t\tname = n;\n\t}", "public void setName(String newname)\n {\n name = newname;\n \n }", "public void setName(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(NAME_PROP.get(), value);\n }", "public void setName(String name) {\n if (name == null || name.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Trigger name cannot be null or empty.\");\n }\n\n this.name = name;\n this.key = null;\n }", "public void setName(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(NAME_PROP.get(), value);\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n name_ = value;\n onChanged();\n return this;\n }", "public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}", "public void setName(String newname) {\n\t\tname = newname == null? \"\" : newname;\n\t\tfireNameChanged();\n\t}", "public void setName(String name)\n {\n if (name == null) {\n throw new IllegalArgumentException();\n }\n\n _name = truncateDefault(name);\n }", "public void setSupregname( java.lang.String newValue ) {\n __setCache(\"supregname\", newValue);\n }", "public final void setName(String name) {_name = name;}", "public void setName(String new_name) {\n\t\t_name = new_name;\n\t}", "public void setName(String name)\n {\n this.name = name.trim();\n }", "public void setName(String s) {\n this.name = s;\n }", "public void setName(final String name);", "public void setName( String name ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"name\", name ) );\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public Builder setName(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n name_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "public synchronized void setName(final InternationalString newValue) {\n checkWritePermission();\n name = newValue;\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "private void setNewNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n newName_ = value.toStringUtf8();\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }", "public void setName(String string) {\n\t\tthis.name = string;\n\t}", "public native final HistoryClass NAME(String val) /*-{\n\t\tthis.NAME = val;\n\t\treturn this;\n\t}-*/;", "public Builder setNameKeySpaceBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n nameKeySpace_ = value;\n onChanged();\n return this;\n }", "public final void setName(final String nameNew) {\n this.name = nameNew;\n }", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName(String name) {\n//\t\tif((name==null) || (name.length()<2)){\n//\t\t\tthrow new RuntimeException(\"Name muss mindestens 2 Zeichen enthalten!\");\n//\t\t}\n\t\tthis.name = name;\n\t}", "public void setName(String new_name){\n this.name=new_name;\n }", "public static void set_SetName(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSetNameCmd, v);\n UmlCom.check();\n \n _set_name = v;\n }", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }", "public String getBucket() {\n return bucket;\n }", "void setName(String name_);", "public void setName (String n) {\n name = n;\n }", "public void setName(final String name) {\n if(name == null || name.length() <= 0) {\r\n throw new IllegalArgumentException();\r\n }\r\n this.name = name;\r\n }", "public void setName(final String name) {\n\t\tLOGGER.debug(\"SecurityObject#setName [name=\" + name + \"]\");\n\n\t\tthis.name = name;\n\t}", "public void setName(String arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.NAME.toString(), arg);\n\t}" ]
[ "0.7334686", "0.73028344", "0.68383014", "0.659711", "0.65347886", "0.651649", "0.65056413", "0.65056413", "0.64355725", "0.61553836", "0.6007417", "0.5999583", "0.59586495", "0.5943775", "0.5937485", "0.5907491", "0.5882054", "0.5878802", "0.5876575", "0.5876575", "0.5864862", "0.58632934", "0.5827548", "0.5827548", "0.5827548", "0.5824256", "0.581272", "0.58016354", "0.5796542", "0.5796542", "0.5796542", "0.5795085", "0.57906246", "0.57838935", "0.5771409", "0.5768591", "0.5768591", "0.5768591", "0.5758387", "0.5752373", "0.5742602", "0.57392937", "0.5738772", "0.573826", "0.5732899", "0.5732899", "0.57264864", "0.5724918", "0.5707713", "0.5689701", "0.5685396", "0.5683944", "0.5683944", "0.56835496", "0.56835496", "0.56805044", "0.56576574", "0.5656847", "0.565526", "0.5651475", "0.5643133", "0.563959", "0.5629735", "0.5615666", "0.5611575", "0.56089604", "0.56089604", "0.56089604", "0.56089604", "0.5608347", "0.56051373", "0.56021965", "0.5596765", "0.5594712", "0.5594712", "0.5587672", "0.55839217", "0.55834454", "0.55834454", "0.55834454", "0.55834454", "0.55834454", "0.5573683", "0.5572332", "0.5570573", "0.5570244", "0.5566634", "0.5563206", "0.55593115", "0.55550057", "0.55509055", "0.55509055", "0.55509055", "0.55508685", "0.55501056", "0.5536955", "0.5531468", "0.55312276", "0.55309606", "0.55302364" ]
0.67616093
3
Obtain the owner of the bucket.
public Owner getOwner() { return owner; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOwner(Owner bucketOwner)\n {\n this.owner = bucketOwner;\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "User getOwner();", "java.lang.String getOwner();", "java.lang.String getOwner();", "public AccountEntity getOwner() {\n\t\treturn owner;\n\t}", "String getOwner();", "String getOwner();", "public int getOwner() {\n validify();\n return Client.INSTANCE.pieceGetOwner(ptr);\n }", "public com.hps.july.persistence.OrganizationAccessBean getOwner() {\n\treturn owner;\n}", "public String getAccountOwner() {\n return accountOwner;\n }", "public String getOwner() {\n return lockOwner;\n }", "public synchronized static String getOwner() {\n return owner;\n }", "public Organisation getOwner() {\n for (final DeviceAuthorization authorization : this.authorizations) {\n if (authorization.getFunctionGroup().equals(DeviceFunctionGroup.OWNER)) {\n return authorization.getOrganisation();\n }\n }\n\n return null;\n }", "public String getOwner();", "public String getBucket() {\n return bucket;\n }", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "@Override\r\n\tpublic Principal getOwner() {\n\t\treturn null;\r\n\t}", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "com.google.protobuf.ByteString\n getOwnerBytes();", "com.google.protobuf.ByteString\n getOwnerBytes();", "public com.sforce.soap.enterprise.sobject.SObject getOwner() {\r\n return owner;\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public long getOwner() {\n\t\treturn owner;\n\t}", "public User getOwner() {\n return owner;\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner() {\n\n return owner;\n\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public String getOwner() {\n\n return Owner;\n }", "public Account getOrganizationOwnerAccount() {\n return organizationOwnerAccount;\n }", "public String getBucket();", "public User getOwner()\r\n\t\tthrows PermissionDeniedException, BaseException\r\n\t{\r\n throw new UnsupportedOperationException(\"Fix This\"); // ToDo\r\n//\t\treturn getDbControl().getItem(User.class, getData().getOwner());\r\n\t}", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public String getOwner() {\n return mOwner;\n }", "private CFComponent getOwner() {\n\t\treturn owner;\n\t}", "final int GetOwner() {\n return owner;\n }", "public User getObjectOwner() {\r\n\t\treturn objectOwner;\r\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwnerName() {\n\n return ownerName;\n }", "public String getOwner() { return owner; }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "@Override\n\tpublic UUID getOwnerId() {\n\t\treturn this.dataManager.get(OWNER_UUID).orNull();\n\t}", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public AbstractGameObject getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public byte[] getOwnerKey() throws IOException\n {\n byte[] o = null;\n COSString owner = (COSString)encryptionDictionary.getDictionaryObject( COSName.getPDFName( \"O\" ) );\n if( owner != null )\n {\n o = owner.getBytes();\n }\n return o;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public Player getOwner() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);\n\t\t\n\t\treturn owner;\n\t}", "public String getBucketName(){\n return bucketName;\n }", "public String getBucketName()\n {\n return bucketName;\n }", "public String owner() {\n return this.owner;\n }", "public String getownerName() {\n\t return this.ownerName;\n\t}", "String getLockOwner();", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\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 owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\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 owner_ = s;\n return s;\n }\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "Optional<String> getOwner();", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public String getOwner(){\n return owner;\r\n }", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public abstract User getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public GHPerson getOwner(String loginOrOrg) throws IOException {\n\t\tGHPerson owner = null;\n\t\ttry {\n\t\t\t// First, try to get an org\n\t\t\towner = delegate.getOrganization(loginOrOrg);\n\t\t} catch (IOException ignored) {\n\t\t\t// Then, try to get a user\n\t\t\towner = delegate.getUser(loginOrOrg);\n\t\t}\n\t\treturn owner;\n\t}", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerId() {\n return ownerId;\n }", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public S3Object createS3Object(Bucket bucket, String key,\r\n\t\t\tCanonicalUser owner) throws IOException {\n\t\treturn null;\r\n\t}", "public static Hash160 contractOwner() {\n return contractOwner;\n }", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public T getOwner() {\n return owner;\n }", "public String getOwnerAccountId() {\n return this.ownerAccountId;\n }", "public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "public UserModel getOwner() {\n return localOwner;\n }", "public Integer getOwnerId() {\n return ownerId;\n }", "public String getBucketName() {\n\treturn _bucketName;\n }", "@ApiModelProperty(example = \"de.bluerain\", value = \"Owner of the history item\")\n public String getOwnerOrganizationId() {\n return ownerOrganizationId;\n }", "public int getOwnerID() {\r\n\t\treturn ownerID;\r\n\t}", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();" ]
[ "0.69511956", "0.67610264", "0.6624218", "0.65922093", "0.65922093", "0.6514549", "0.647156", "0.647156", "0.64498454", "0.64358085", "0.6412852", "0.6385433", "0.6385262", "0.6380295", "0.63638085", "0.63430667", "0.6325735", "0.63106894", "0.6308516", "0.6281507", "0.62697256", "0.62649137", "0.62649137", "0.62649137", "0.62649137", "0.62649137", "0.62649137", "0.6259598", "0.6258324", "0.62531346", "0.62437385", "0.6202324", "0.61962485", "0.6194191", "0.6194191", "0.6189534", "0.6180282", "0.6180282", "0.61600107", "0.6124333", "0.6122352", "0.6122196", "0.61210257", "0.61210257", "0.61171687", "0.6097825", "0.6084306", "0.6069852", "0.6069823", "0.60445523", "0.60445523", "0.6041338", "0.60141516", "0.6011817", "0.6010919", "0.60104346", "0.6010324", "0.60083103", "0.60001874", "0.60001874", "0.5994268", "0.5989899", "0.5988567", "0.5961195", "0.5961195", "0.5961189", "0.5953376", "0.59512246", "0.5940467", "0.59363925", "0.59359896", "0.59324044", "0.59317887", "0.5927322", "0.5926583", "0.59134954", "0.58955234", "0.58955234", "0.58438015", "0.58235544", "0.58029556", "0.5798996", "0.57945466", "0.57901853", "0.5790179", "0.57898575", "0.5785672", "0.5776781", "0.57676363", "0.5746719", "0.5745309", "0.57410485", "0.5693748", "0.5690882", "0.568806", "0.56802386", "0.56536883", "0.5644887", "0.5622786", "0.56000847" ]
0.606605
49
Set the owner of the bucket.
public void setOwner(Owner bucketOwner) { this.owner = bucketOwner; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setOwner(String owner);", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwner(com.sforce.soap.enterprise.sobject.SObject owner) {\r\n this.owner = owner;\r\n }", "public synchronized void setOwner(String s) {\n owner = s;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}", "void setOwner(Entity owner);", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "public void changeOwner(String o){\n owner = o;\r\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner( String owner ){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t_owner = owner;\r\n \t_itDepartment.setDirector(_owner);\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public void setOwner(Player owner) {\n\t\tthis.owner = owner;\n\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public void setOwner(int owner) { this.owner = owner; }", "protected void setOwner(T owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(AbstractGameObject owner) {\r\n\t\tthis.owner = owner;\r\n\t}", "public void setOwner(Person person) {\n _owner = person;\n }", "public void setOwner(Person person) \n {\n owner = person;\n }", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "void setOwner(Subject owner)\n {\n this.owner = owner;\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwner(Player player) {\n owner = player;\n }", "public void setOwnerKey(byte[] o) throws IOException\n {\n COSString owner = new COSString();\n owner.append( o );\n encryptionDictionary.setItem( COSName.getPDFName( \"O\" ), owner );\n }", "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3.SetBucketAccessControlPolicy setBucketAccessControlPolicy);", "public void setOwner(UserModel param) {\n localOwnerTracker = true;\n\n this.localOwner = param;\n }", "public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }", "public void setBucket(String inBucket);", "public S3Object createS3Object(Bucket bucket, String key,\r\n\t\t\tCanonicalUser owner) throws IOException {\n\t\treturn null;\r\n\t}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public void setOwner(EntityLivingBase owner) {\n\t\tthis.owner=owner;\n\t\tif(owner instanceof EntityPlayer){\n\t\t\tthis.dataManager.set(OWNER_UUID,Optional.of(owner.getUniqueID()));\n\t\t}\n\t}", "@Override\n public void setLockOwner(Object lockOwner) {\n }", "public void setObjectOwner(User objectOwner) {\r\n\t\tthis.objectOwner = objectOwner;\r\n\t}", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "@Override\r\n\tpublic void setTheOwner(Player owner) {\n\t\t\r\n\t}", "void setOwner(StatementContribution sc) {\n\t\tthis.owner_ = sc;\n\t}", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(String s) {\n log(\"This option is not supported by ILASM as of Beta-2, \"\n + \"and will be ignored\", Project.MSG_WARN);\n }", "public static void set(Object owner, String fieldName, Object value) {\n\t\ttry {\n\t\t\tField field = owner.getClass().getDeclaredField(fieldName);\n\t\t\tif (!field.isAccessible()) {\n\t\t\t\tfield.setAccessible(true);\n\t\t\t}\n\t\t\tfield.set(owner, value);\n\t\t} catch (Exception e) {}\n\t}", "public Builder setOwnerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwnerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n owner_ = value;\n onChanged();\n return this;\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "CreateS3VolumeRequestBuilder setBucket(String bucket);", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "void SetOwner(int passedOwner) {\n if(passedOwner == 0 || passedOwner == 1) {\n owner = passedOwner;\n }\n else {\n Log.d(\"MyError\", \"Error in setting the owner of a build in the build class.\");\n }\n }", "public void setOwningUser(PersonAndOrganization owningUser)\r\n\t{\r\n\t\tthis.owningUser = owningUser;\r\n\t}", "public void setOwnerId(Integer ownerId) {\n this.ownerId = ownerId;\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public void setOwnerPermission(TUserPermission ownerPermission) {\n\n\t\tthis.ownerPermission = ownerPermission;\n\t}", "public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public void testGetSetOwner() {\n exp = new Experiment(\"10\");\n Profile owner = new Profile(\"id1\", \"owner\", \"contact\");\n exp.setOwner(owner);\n assertEquals(\"get/setOwner does not work\", \"owner\", exp.getOwner().getUsername());\n }", "public void setOwner(ItunesPodcastOwner owner) {\n this.owner = owner;\n }", "public void setBucketDao(BucketDao bucketDao) {\n\t\t\r\n\t}", "@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);", "public void setOwnerPlayer( final PlayerModel ownerPlayer ) {\r\n\t\tthis.ownerPlayer = ownerPlayer;\r\n\t}", "public void setOwner(TLPropertyOwner propertyOwner) {\n this.propertyOwner = propertyOwner;\n }", "public void setOwner(SWActor newOwner) {\n\t\t//Set this SWActors' owner to newOwner\n\t\tthis.owner = newOwner;\n\t\t\n\t\t//Set humancontrolled boolean to true\n\t\tthis.humanControlled = true;\n\t}", "public String getOwner() {\r\n return owner;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "public Builder setGcsBucket(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "ODatabaseInternal<?> setDatabaseOwner(ODatabaseInternal<?> iOwner);", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public void setCarOwner(String carOwner)\n {\n this.carOwner = carOwner;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public Bucket createBucket(String name, CanonicalUser owner)\r\n\t\t\tthrows IOException {\n\t\treturn null;\r\n\t}", "public com.sforce.soap.enterprise.sobject.SObject getOwner() {\r\n return owner;\r\n }", "public OrglRoot setAllOwners(ID owner) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9676:OrglRoot methodsFor: 'accessing'!\n{OrglRoot} setAllOwners: owner {ID}\n\t\"Return the portiong whose owner couldn't be changed.\"\n\t\t\n\tself subclassResponsibility!\n*/\n}", "public AccountEntity getOwner() {\n\t\treturn owner;\n\t}", "public void setOwnerPhotoURL(String photoURL){\n mEditor.putString(USER_PHOTO_URL, photoURL);\n mEditor.commit();\n }", "public void setCopyrightOwner(String value) {\n setAttributeInternal(COPYRIGHTOWNER, value);\n }", "public void updateOwner(String number, String owner) throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"UPDATE account SET owner = '\" + owner + \"' WHERE number = '\" + number + \"'\";\r\n\t\t// Der Datensatz wird auf der Datenbank aktualisiert\r\n\t\tstatement.executeUpdate(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tlogger.info(\"Der Besitzer des Kontos \" + number + \" wurde durch \\\"\" + owner + \"\\\" ersetzt.\");\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}", "public void setOwner(AbstractBuilding building) {\n\t\tthis.owner = building;\r\n\t}", "public void setIsowner(java.lang.Boolean newIsowner) {\n\tisowner = newIsowner;\n}", "public String getOwner() { return owner; }", "@Override\r\n\tpublic Principal getOwner() {\n\t\treturn null;\r\n\t}", "public String getOwner() {\n\n return Owner;\n }", "public String getAccountOwner() {\n return accountOwner;\n }", "public void setProductOwner(String productOwner);", "@ApiModelProperty(example = \"de.bluerain\", value = \"Owner of the history item\")\n public String getOwnerOrganizationId() {\n return ownerOrganizationId;\n }", "BucketName(String bucketName) {\n this.bucketName = bucketName;\n }" ]
[ "0.6775292", "0.6643231", "0.65911853", "0.6535828", "0.6508341", "0.64757955", "0.64176077", "0.63265365", "0.63265365", "0.63265365", "0.63265365", "0.6306827", "0.6289793", "0.62613505", "0.62592566", "0.6252309", "0.6240316", "0.60715014", "0.60556245", "0.6053837", "0.6052419", "0.6049426", "0.6049426", "0.5994652", "0.59547555", "0.5930151", "0.5851824", "0.5824843", "0.581857", "0.581822", "0.581822", "0.5800649", "0.57819784", "0.5735042", "0.57072777", "0.5691211", "0.5690907", "0.5690907", "0.56778014", "0.5662543", "0.5659273", "0.56590056", "0.56377983", "0.5626646", "0.5531675", "0.5515479", "0.5504525", "0.5494913", "0.5489171", "0.5446741", "0.54228544", "0.5421999", "0.54126585", "0.5382832", "0.53427345", "0.5289191", "0.52882427", "0.5276701", "0.5270616", "0.52655834", "0.52593005", "0.52586216", "0.52577084", "0.52577084", "0.5252683", "0.52299964", "0.5227866", "0.5219966", "0.5209825", "0.5198324", "0.5194945", "0.5189622", "0.51807463", "0.5174635", "0.5172315", "0.51704544", "0.51672757", "0.51672757", "0.51672757", "0.51672757", "0.51672757", "0.51672757", "0.51659715", "0.51438737", "0.5123741", "0.50992", "0.5090844", "0.50829077", "0.5080461", "0.50598687", "0.50585824", "0.50561583", "0.50548965", "0.5051225", "0.50327045", "0.50282085", "0.50245523", "0.502297", "0.49956304", "0.49930602" ]
0.84437066
0
Obtain the creation time of the bucket.
public Date getCreationDate() { return creationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getCreationTime();", "long getCreationTime();", "long getCreationTime();", "public long getCreationTime();", "String timeCreated();", "public long getCreationTime() {\n return creationTime_;\n }", "long getCreatedTime();", "public long getCreationTime() {\n return creationTime_;\n }", "public long getCreationTime() {\n return creationTime;\n }", "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public long getCreationTimeSeconds() {\n return creationTimeSeconds;\n }", "@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }", "public int getCreatedTime() {\n return instance.getCreatedTime();\n }", "public long getCreationTime() {\n return this.creationTime;\n }", "public long getCreatedTime() {\n return createdTime;\n }", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "public int getCreatedTime() {\n return createdTime_;\n }", "public java.sql.Timestamp getCreated() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"created\")));\n }", "@Raw @Basic @Immutable\r\n public Date getCreationTime() {\r\n return creationTime;\r\n }", "public long getCreateTime() {\n return createTime_;\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "public Instant getCreationTime() {\n return creation;\n }", "public Date getCreationTime()\n\t{\n\t\treturn creationTime;\n\t}", "public long getCreatedMillis()\n {\n return m_dtCreated;\n }", "public OffsetDateTime getCreatedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Created_Time\");\n\n\t}", "public long getCreateTime() {\n return createTime_;\n }", "public void setCreationDate(Date bucketCreationDate)\n {\n this.creationDate = bucketCreationDate;\n }", "public Date getCreationTime() {\n\n\t\treturn createdAtTime;\n\t}", "public Date getCreationTime() {\n\t\treturn creationTime;\n\t}", "public DateTime getCreationTime() {\n return created;\n }", "public Date getCreationTime() {\n return creationTime;\n }", "public String getCreatedTime() {\n return createdTime;\n }", "public int getCreateTime() {\n return createTime_;\n }", "long getCreateTime();", "long getCreateTime();", "public int getCreateTime() {\n return createTime_;\n }", "public Date getCreationTime()\n {\n return created;\n }", "public DateTime creationTime() {\n return this.creationTime;\n }", "public Date getCreationTime() {\n return creationTime;\n }", "public Date getCreationTime() {\n return creationTime;\n }", "public long getCreateTime() {\n return this.createTime;\n }", "public Long getCreateTime() {\n\t\treturn createTime;\n\t}", "public abstract long getCreatedTime();", "int getCreateTime();", "public long getCreationTime()\n {\n return m_metaInf.getCreationTime();\n }", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public String getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public DateTime getCreationTime() { return creationTime; }", "public String getCreatedTime() {\n return this.CreatedTime;\n }", "public String getCreatedTime() {\n return this.CreatedTime;\n }", "@ZAttr(id=790)\n public String getCreateTimestampAsString() {\n return getAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }", "Instant getCreated();", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\n return createTime;\n }", "public String getCreateTime() {\r\n return createTime;\r\n }", "public Long getCreationTimestamp() {\n return creationTimestamp;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getCreateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(CREATETIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getCreateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(CREATETIME_PROP.get());\n }", "@Nonnull\n @CheckReturnValue\n default OffsetDateTime creationTime() {\n return Utils.creationTimeOf(idAsLong());\n }", "OffsetDateTime creationTime();", "long getCreationTime(String path) throws IOException;", "public Long getCreateTime() {\n return createTime;\n }", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public java.lang.Long getCreated() {\n return created;\n }", "public long getCreated() {\n\t\treturn m_created;\n\t}", "long getLastAccessedTime();", "OffsetDateTime timeCreated();", "public java.util.Date getCreationTime() {\n return this.creationTime;\n }", "public java.util.Date getCreationTime() {\n return this.creationTime;\n }", "public java.util.Date getCreationTime() {\n return this.creationTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "long getCreationTimeUtc(String path) throws IOException;", "public OffsetDateTime timeCreated() {\n return this.timeCreated;\n }", "public Long getCreated() {\n if (created == null) {\n return Long.valueOf(0);\n } else {\n return created;\n }\n }", "public Integer getCreateTime() {\n return createTime;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreateTime() {\n return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreateTime() {\n return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}", "public java.lang.Long getCreated() {\n return created;\n }", "public Integer getCreateTime() {\r\n return createTime;\r\n }", "public BundleTimestamp creation_ts() {\r\n\t\treturn creation_ts_;\r\n\t}" ]
[ "0.7230508", "0.7230508", "0.7230508", "0.7136721", "0.7032816", "0.6995078", "0.69607466", "0.6931432", "0.6931229", "0.68167657", "0.6811636", "0.68109053", "0.6782382", "0.67718893", "0.6704765", "0.67005336", "0.67005336", "0.6690645", "0.6685792", "0.6640466", "0.6632544", "0.66278094", "0.66253227", "0.66182274", "0.6608546", "0.6607916", "0.66071135", "0.6594074", "0.6587063", "0.65848327", "0.65692484", "0.656887", "0.6562083", "0.6551085", "0.6534367", "0.6534367", "0.6527623", "0.6517323", "0.6516063", "0.65115076", "0.65115076", "0.65024716", "0.6493192", "0.6491205", "0.6489512", "0.64860237", "0.6483356", "0.6483356", "0.6483356", "0.6483356", "0.6480441", "0.64746094", "0.64746094", "0.6463735", "0.64599705", "0.6446957", "0.6446957", "0.6446957", "0.6446957", "0.6446957", "0.644662", "0.64464223", "0.64422977", "0.6438668", "0.6414517", "0.6407097", "0.6407055", "0.6398637", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.63906807", "0.6382637", "0.6382462", "0.6380083", "0.63728434", "0.63662094", "0.63662094", "0.63662094", "0.6356415", "0.6356415", "0.6356415", "0.6353467", "0.635266", "0.6340815", "0.6337492", "0.6333094", "0.6333094", "0.633009", "0.632934", "0.6321302", "0.6316573" ]
0.0
-1
Set the creation time of the bucket.
public void setCreationDate(Date bucketCreationDate) { this.creationDate = bucketCreationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCreationTimeUtc(String path, long newTime) throws IOException;", "void setCreationTime(String path, long newTime) throws IOException;", "public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }", "private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }", "private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public void setCreationTime(DateTime creationTime) {\n this.creationTime = creationTime;\n }", "public Builder setCreationTime(long value) {\n bitField0_ |= 0x00000001;\n creationTime_ = value;\n onChanged();\n return this;\n }", "public void setCreated( java.sql.Timestamp newValue ) {\n __setCache(\"created\", newValue);\n }", "public void setCreationTime( Date creationTime )\n\t{\n\t\tthis.creationTime\t= creationTime;\n\t}", "public void setCreationTime(Date creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreationTime(Date creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }", "public void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public Builder setCreateTime(int value) {\n bitField0_ |= 0x00000008;\n createTime_ = value;\n onChanged();\n return this;\n }", "private void setCreateTime(long createTime) {\n this.createTime = createTime;\n }", "public Builder setCreatedTime(int value) {\n copyOnWrite();\n instance.setCreatedTime(value);\n return this;\n }", "public void setCreationTime(LocalDateTime creationTime) {\n\t\tthis.creationTime = creationTime;\n\t}", "public void setCreationTime(java.util.Date creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreationTime(java.util.Date creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreationTime(java.util.Date creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreateTime(LocalDateTime timestamp) \n {\n createTime = timestamp;\n }", "public Builder setCreateTime(long value) {\n\n createTime_ = value;\n onChanged();\n return this;\n }", "public void setCreationTime(Date createdAtTime) {\n\n\t\tthis.createdAtTime = createdAtTime;\n\t}", "public void setCreatedTime(LocalDateTime value) {\n set(5, value);\n }", "public IBusinessObject setCreationDate(Timestamp creationDate)\n throws ORIOException;", "void setLastWriteTimeUtc(String path, long newTime) throws IOException;", "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "public void setCreated(Timestamp created) {\n this.created = created;\n }", "void setLastWriteTime(String path, long newTime) throws IOException;", "void setLastAccessTimeUtc(String path, long newTime) throws IOException;", "public void setCreatedTime(String CreatedTime) {\n this.CreatedTime = CreatedTime;\n }", "public void setCreatedTime(String CreatedTime) {\n this.CreatedTime = CreatedTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreationTimeSeconds(long newCreationTimeSeconds) {\n if (newCreationTimeSeconds < 0)\n throw new IllegalArgumentException(\"Cannot set creation time to negative value: \" + newCreationTimeSeconds);\n creationTimeSeconds = newCreationTimeSeconds;\n }", "void setLastAccessTime(String path, long newTime) throws IOException;", "public void setCreateTime(Timestamp createTime) {\n this.createTime = createTime;\n }", "long getCreationTime();", "long getCreationTime();", "long getCreationTime();", "void setLastUpdatedTime();", "public void setCreateTime(Date createTime) {\n this.createTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(createTime);\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreatedTime(Date createdTime) {\n this.createdTime = createdTime;\n }", "public void setCreatedTime(Date createdTime) {\n this.createdTime = createdTime;\n }", "public void setCreatedTime(Date createdTime) {\n this.createdTime = createdTime;\n }", "void setCreationDate(Date val)\n throws RemoteException;", "public void setCreatedTime(OffsetDateTime createdTime)\n\t{\n\t\t this.addKeyValue(\"Created_Time\", createdTime);\n\n\t}", "public void setCreateTime (java.sql.Timestamp createTime) {\r\n\t\tthis.createTime = createTime;\r\n\t}", "public void setCreationDate(Calendar creationDate) {\n/* 248 */ getCOSObject().setDate(COSName.CREATION_DATE, creationDate);\n/* */ }", "public void setCreateTime(Integer createTime) {\r\n this.createTime = createTime;\r\n }", "public void setCreateTime(Date createTime) {\r\n\t\tthis.createTime = createTime;\r\n\t}", "public void setCreateTime(Date createTime) {\r\n\t\tthis.createTime = createTime;\r\n\t}", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.lang.Long value) {\n this.created = value;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }" ]
[ "0.7257515", "0.72536683", "0.677748", "0.67066294", "0.6592842", "0.65448564", "0.65066904", "0.64764637", "0.6439102", "0.63943154", "0.63943154", "0.629379", "0.6222048", "0.6221634", "0.6217325", "0.6182637", "0.6180722", "0.61660147", "0.61660147", "0.61660147", "0.61197007", "0.6100466", "0.6090551", "0.6069274", "0.60583997", "0.60426205", "0.6035818", "0.59939325", "0.5969039", "0.595996", "0.59456605", "0.59456605", "0.5932217", "0.592743", "0.591931", "0.59032744", "0.5897212", "0.5897212", "0.5897212", "0.58807325", "0.58747524", "0.58635706", "0.58635706", "0.58635706", "0.58635706", "0.58635706", "0.58635706", "0.58379304", "0.58379304", "0.58379304", "0.5834688", "0.5832", "0.5828054", "0.58192503", "0.58163005", "0.5791389", "0.5791389", "0.5784288", "0.5784288", "0.5784288", "0.57839394", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545", "0.57836545" ]
0.74162596
0
Obtain the bucket location.
public String getLocation() { return location; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBucket() {\n return bucket;\n }", "public String getBucket();", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getBucketName()\n {\n return bucketName;\n }", "public String getBucketName(){\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "@java.lang.Override\n public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n }\n }", "@Nullable public String getBucketEndpoint() {\n return bucketEndpoint;\n }", "public String getBucketName() {\n\treturn _bucketName;\n }", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "public String getArtifactS3Location() {\n return this.artifactS3Location;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public StorageLocation getStorageLocation() {\n return this.storageLocation;\n }", "public long getBucketID(){\n return localBucketID;\n }", "B getBucket();", "public StorageClassEnum getBucketStorageClass()\n {\n return storageClass;\n }", "@Updatable\n @Required\n public BucketResource getBucket() {\n return bucket;\n }", "public S3BucketSource getS3BucketSource() {\n return this.s3BucketSource;\n }", "@Required\n @Updatable\n public BucketResource getBucket() {\n return bucket;\n }", "@JsonProperty(\"storageLocation\")\n public String getStorageLocation() {\n return storageLocation;\n }", "public static String getIntervalBucket() throws Exception {\n\t\treturn getConfig(\"intervalBucket\");\n\t}", "public String getLocationPath();", "private Location getRegion() {\n Set<? extends Location> locations = blobStore.listAssignableLocations();\n if (!(swiftRegion == null || \"\".equals(swiftRegion))) {\n for (Location location : locations) {\n if (location.getId().equals(swiftRegion)) {\n return location;\n }\n }\n }\n if (locations.size() != 0) {\n return get(locations, 0);\n } else {\n return null;\n }\n }", "Path getLocation();", "public URL getLocation() {\n return location;\n }", "public String getJob_location() {\r\n return job_location;\r\n }", "public Reference location() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_LOCATION);\n }", "@Override\n public Blob getBlob(String bucketName, String objectPath) {\n Blob result = storageProvider.get().get(bucketName, objectPath);\n if (result == null) {\n throw new NotFoundException(String.format(\"Bucket %s, Object %s\", bucketName, objectPath));\n }\n return result;\n }", "java.lang.String getS3();", "edu.usfca.cs.dfs.StorageMessages.FileLocation getFileLocation();", "public final String getLocation() {\n return location;\n }", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "public String getUserStorageLocation(){\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String user = (String) auth.getPrincipal();\n return user + \"/\";\n }", "public String getS3UploadURL()\n\t{\n\t\treturn m_S3UploadURL;\n\t}", "public abstract int getBucketID();", "public StorageLocation(JSONObject joLoc) {\r\n\t\ttry {\r\n\t\t\tif (validate(joLoc) == null) {\r\n\t\t\t\tsystemdir = joLoc.getString(SYSTEMDIR);\r\n\t\t\t\tname = joLoc.getString(NAME);\r\n\t\t\t\tstorageid = joLoc.has(ID) ? joLoc.getLong(ID) : -1;\r\n\t\t\t\tactive = joLoc.has(ACTIVE) ? joLoc.getBoolean(ACTIVE) : false;\r\n\t\t\t\tdescription = joLoc.has(DESC) ? joLoc.getString(DESC) : \"\";\r\n\t\t\t\tusedspace = joLoc.has(USEDSPACE) ? joLoc.getDouble(USEDSPACE) : 0.0;\r\n\t\t\t\tquota = joLoc.has(QUOTA) ? joLoc.getLong(QUOTA) : 0;\r\n\t\t\t\tfilecount = joLoc.has(FILECOUNT) ? joLoc.getLong(FILECOUNT) : 0;\r\n\t\t\t\tcanstream = joLoc.has(CANSTREAM) ? joLoc.getBoolean(CANSTREAM) : false;\r\n\t\t\t\t//Logger.verbose(this.toJSON().toString());\r\n\t\t\t}\r\n\t\t} catch (JSONException e) {\r\n\t\t\tLogger.error(e);\r\n\t\t}\r\n\t}", "public BCLocation bcLocation() {\n return bcLocation;\n }", "private String bucketName(@NonNull String s3Url) {\n return s3UrlMatcher(s3Url).group(1);\n }", "BucketName(String bucketName) {\n this.bucketName = bucketName;\n }", "public String getJarLocation();", "public com.amazon.s3.GetBucketLoggingStatusResponse getBucketLoggingStatus(com.amazon.s3.GetBucketLoggingStatus getBucketLoggingStatus);", "public String location() {\n return this.location;\n }", "public String location() {\n return this.location;\n }", "BodyPart getGearLocation();", "public native final String location() /*-{\n\t\treturn this[\"location\"];\n\t}-*/;", "public Bucket loadBucket(String name) throws S3Exception {\n\t\treturn null;\r\n\t}", "public java.lang.String getLocation() {\n return location;\n }", "public java.lang.String getLocation() {\n java.lang.Object ref = location_;\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 location_ = s;\n return s;\n }\n }", "public java.lang.String getLocation() {\n java.lang.Object ref = location_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n location_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getStoreChunkLocation();", "public void setBucket(String inBucket);", "public java.lang.String getLocation() {\n return location;\n }", "java.lang.String getSnapshotLocation();", "public String getLocation() {\n return location;\n }", "public Builder setGcsBucket(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocationOrBuilder getStoreChunkLocationOrBuilder();", "@Override\n\tpublic String getLocation() {\n\t\treturn this.location;\n\t}", "@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}", "public String getLocation() {\r\n return location;\r\n }", "public byte[] getLocation() {\r\n return location;\r\n }", "public com.google.protobuf.ByteString\n getLocationBytes() {\n java.lang.Object ref = location_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n location_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public edu.usfca.cs.dfs.StorageMessages.FileLocation getFileLocation() {\n if (msgCase_ == 9) {\n return (edu.usfca.cs.dfs.StorageMessages.FileLocation) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.FileLocation.getDefaultInstance();\n }", "public String getLocation() {\r\n\t\treturn location;\r\n\t}", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n\t\treturn location;\n\t}", "public String getStorageRegion() {\n return this.StorageRegion;\n }", "@JsonIgnore\n @Hidden\n @Description(\"The URL for the GCS API.\")\n String getGcsEndpoint();", "public String getLocation() {\r\n return location;\r\n }", "@Override\n public String getLocation() {\n return location;\n }", "public String getLocation() {\r\n\t\treturn location; \r\n\t}", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public String getLocation() {\n\t\t\treturn location;\n\t\t}", "public String getLocation() {\n return location;\n }", "public com.google.protobuf.ByteString\n getLocationBytes() {\n java.lang.Object ref = location_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n location_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getS3() {\n java.lang.Object ref = s3_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n s3_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "URI getLocation();", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }" ]
[ "0.7560742", "0.75388503", "0.7097593", "0.69513667", "0.6946377", "0.6943218", "0.687171", "0.687171", "0.68655545", "0.681359", "0.65126014", "0.64423573", "0.6437164", "0.6371978", "0.6365336", "0.6285244", "0.6171697", "0.60628283", "0.5767162", "0.5735034", "0.57323277", "0.56748253", "0.5659359", "0.5619663", "0.5583454", "0.5572656", "0.55685353", "0.5540452", "0.55281895", "0.5518869", "0.55168724", "0.5515518", "0.5509303", "0.5495839", "0.548357", "0.54610795", "0.54610795", "0.54610795", "0.54610795", "0.54610795", "0.54610795", "0.54610795", "0.54610795", "0.5460372", "0.54501295", "0.544287", "0.54413223", "0.5425012", "0.54232377", "0.5420329", "0.5418463", "0.541759", "0.54169035", "0.54169035", "0.5416175", "0.5400561", "0.5384588", "0.53763056", "0.5373022", "0.5349781", "0.53494364", "0.53426635", "0.5332717", "0.532796", "0.5319358", "0.5316663", "0.5307356", "0.5304841", "0.5303764", "0.52955556", "0.5283236", "0.52770936", "0.52761555", "0.52587026", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5253021", "0.5249062", "0.524428", "0.52421725", "0.5240403", "0.52392226", "0.5235778", "0.5234251", "0.52327055", "0.5227664", "0.52203876", "0.5209807", "0.52049625", "0.52027595", "0.52027595", "0.52027595" ]
0.0
-1
Set the bucket location.
public void setLocation(String location) { this.location = location; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBucket(String inBucket);", "public void setOwner(Owner bucketOwner)\n {\n this.owner = bucketOwner;\n }", "BucketName(String bucketName) {\n this.bucketName = bucketName;\n }", "public void setBucketName(String bucketName) {\n setProperty(BUCKET_NAME, bucketName);\n }", "public Builder setGcsBucket(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public void setStorageLocation( String name ) throws IOException {\n\t \tlog.config( \"update Storage Location to: \"+name );\n\t\tPersistentData data = null;\n\t\ttry {\n\t\t\tdata = io.readState();\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tlog.log( Level.SEVERE, ex.toString(), ex );\n\t\t\tdata = new PersistentData();\n\t\t}\n\t\tio.setFile( name );\n\t\tio.writeState(data);\n\t}", "@Override\n public void setLocation(String location) {\n this.location = location;\n }", "public ContainerRegistryBlobsCompleteUploadHeaders setLocation(String location) {\n this.location = location;\n return this;\n }", "public void setLocation(URI location)\r\n/* 288: */ {\r\n/* 289:432 */ set(\"Location\", location.toASCIIString());\r\n/* 290: */ }", "public String getBucket() {\n return bucket;\n }", "protected void setLocation(String location){\r\n this.location = location;\r\n }", "public Builder setS3(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }", "public void setLocation(String location);", "CreateS3VolumeRequestBuilder setBucket(String bucket);", "public void setLocation(Location loc) {\n this.location = loc;\n }", "public com.amazon.s3.SetBucketLoggingStatusResponse setBucketLoggingStatus(com.amazon.s3.SetBucketLoggingStatus setBucketLoggingStatus);", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void setLocation(Location location) {\n this.location = location;\n }", "public void storeBucket(Bucket bucket) throws S3Exception {\n\t\t\r\n\t}", "public void setBucketName(String bucketName)\n {\n this.bucketName = bucketName;\n }", "public final void setLocation(String value) {\n location = value;\n }", "public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }", "public com.babbler.ws.io.avro.model.BabbleValue.Builder setLocation(java.lang.String value) {\n validate(fields()[3], value);\n this.location = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "public void setLocation(Path location)\n\t{\n\t\tsetHeader(LOCATION, location.toString());\n\t}", "public void setStorageLocation(String storageLocation) {\n this.storageLocation = storageLocation;\n }", "public void setLocation(Location location) {\r\n\t\tthis.location = location;\r\n\t}", "public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public void setLocation(String location) {\n inputParameters.Location = location;\n\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\r\n this.location = location;\r\n }", "public void setLocation(Location location) \n\t{\n\t\tthis.location = location;\n\t}", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "void setLocationURI(URI locationURI);", "public void setLocation(final String location) {\n this.location = location;\n }", "public void setLocation(entity.PolicyLocation value);", "public String getBucket();", "public void setLocation(Resource location) {\n\t\tthis.locations = new Resource[] {location};\n\t}", "public void setLocation(String location) {\r\n this.location = location;\r\n }", "public void setStorageLocation(StorageLocation storageLocation) {\n this.storageLocation = storageLocation;\n }", "public void setLocation(String location){\n this.location = location;\n }", "public void setLocation(String location){\n this.location = location;\n }", "public final void setLocation(Coord location) {\n this.location = location;\n }", "public void setSiteLocation(URI location) {\n \t\tthis.siteLocation = location;\n \t}", "void setImageLocation(URL imageLocation) throws IOException;", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "@Override\n\tpublic void setLocation(String l) {\n\t\tlocation = l;\n\t\t\n\t}", "public String getBucketName(){\n return bucketName;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location){\n mLocation = location;\n loadData();\n }", "public void setBucketDao(BucketDao bucketDao) {\n\t\t\r\n\t}", "@Override\n\tpublic void setLocation(long location) {\n\t\t_buySellProducts.setLocation(location);\n\t}", "public void setLocation(String location) {\r\n\t\tthis.location = location;\r\n\t}", "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3.SetBucketAccessControlPolicy setBucketAccessControlPolicy);", "public void setBucketStorageClass(StorageClassEnum storageClass)\n {\n this.storageClass = storageClass;\n }", "public void setLocation(Point loc){\n\t\tthis.location = loc;\n\t}", "public void setDocumentLocation(L documentLocation);", "public CreateStatementBuilder setLocation(Location location) {\n this.location = location.toURI().toString();\n return this;\n }", "public void setLocation(String location, Job job) throws IOException\n {\n conf = HadoopCompat.getConfiguration(job);\n setLocationFromUri(location);\n\n if (ConfigHelper.getInputSlicePredicate(conf) == null)\n {\n SliceRange range = new SliceRange(slice_start, slice_end, slice_reverse, limit);\n SlicePredicate predicate = new SlicePredicate().setSlice_range(range);\n ConfigHelper.setInputSlicePredicate(conf, predicate);\n }\n if (System.getenv(PIG_WIDEROW_INPUT) != null)\n widerows = Boolean.parseBoolean(System.getenv(PIG_WIDEROW_INPUT));\n if (System.getenv(PIG_USE_SECONDARY) != null)\n usePartitionFilter = Boolean.parseBoolean(System.getenv(PIG_USE_SECONDARY));\n if (System.getenv(StorageHelper.PIG_INPUT_SPLIT_SIZE) != null)\n {\n try\n {\n ConfigHelper.setInputSplitSize(conf, Integer.parseInt(System.getenv(StorageHelper.PIG_INPUT_SPLIT_SIZE)));\n }\n catch (NumberFormatException e)\n {\n throw new IOException(\"PIG_INPUT_SPLIT_SIZE is not a number\", e);\n } \n } \n\n if (usePartitionFilter && getIndexExpressions() != null)\n ConfigHelper.setInputRange(conf, getIndexExpressions());\n\n if (username != null && password != null)\n ConfigHelper.setInputKeyspaceUserNameAndPassword(conf, username, password);\n\n if (splitSize > 0)\n ConfigHelper.setInputSplitSize(conf, splitSize);\n if (partitionerClass!= null)\n ConfigHelper.setInputPartitioner(conf, partitionerClass);\n if (rpcPort != null)\n ConfigHelper.setInputRpcPort(conf, rpcPort);\n if (initHostAddress != null)\n ConfigHelper.setInputInitialAddress(conf, initHostAddress);\n\n ConfigHelper.setInputColumnFamily(conf, keyspace, column_family, widerows);\n setConnectionInformation();\n\n if (ConfigHelper.getInputRpcPort(conf) == 0)\n throw new IOException(\"PIG_INPUT_RPC_PORT or PIG_RPC_PORT environment variable not set\");\n if (ConfigHelper.getInputInitialAddress(conf) == null)\n throw new IOException(\"PIG_INPUT_INITIAL_ADDRESS or PIG_INITIAL_ADDRESS environment variable not set\");\n if (ConfigHelper.getInputPartitioner(conf) == null)\n throw new IOException(\"PIG_INPUT_PARTITIONER or PIG_PARTITIONER environment variable not set\");\n if (loadSignature == null)\n loadSignature = location;\n initSchema(loadSignature);\n }", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public StorageLocation(JSONObject joLoc) {\r\n\t\ttry {\r\n\t\t\tif (validate(joLoc) == null) {\r\n\t\t\t\tsystemdir = joLoc.getString(SYSTEMDIR);\r\n\t\t\t\tname = joLoc.getString(NAME);\r\n\t\t\t\tstorageid = joLoc.has(ID) ? joLoc.getLong(ID) : -1;\r\n\t\t\t\tactive = joLoc.has(ACTIVE) ? joLoc.getBoolean(ACTIVE) : false;\r\n\t\t\t\tdescription = joLoc.has(DESC) ? joLoc.getString(DESC) : \"\";\r\n\t\t\t\tusedspace = joLoc.has(USEDSPACE) ? joLoc.getDouble(USEDSPACE) : 0.0;\r\n\t\t\t\tquota = joLoc.has(QUOTA) ? joLoc.getLong(QUOTA) : 0;\r\n\t\t\t\tfilecount = joLoc.has(FILECOUNT) ? joLoc.getLong(FILECOUNT) : 0;\r\n\t\t\t\tcanstream = joLoc.has(CANSTREAM) ? joLoc.getBoolean(CANSTREAM) : false;\r\n\t\t\t\t//Logger.verbose(this.toJSON().toString());\r\n\t\t\t}\r\n\t\t} catch (JSONException e) {\r\n\t\t\tLogger.error(e);\r\n\t\t}\r\n\t}", "@Updatable\n @Required\n public BucketResource getBucket() {\n return bucket;\n }", "public void setLocation( Object key, InputLocation location )\n {\n if ( key instanceof String )\n {\n switch ( ( String ) key )\n {\n case \"\" :\n {\n this.location = location;\n return;\n }\n case \"connection\" :\n {\n connectionLocation = location;\n return;\n }\n case \"developerConnection\" :\n {\n developerConnectionLocation = location;\n return;\n }\n case \"tag\" :\n {\n tagLocation = location;\n return;\n }\n case \"url\" :\n {\n urlLocation = location;\n return;\n }\n case \"childScmConnectionInheritAppendPath\" :\n {\n childScmConnectionInheritAppendPathLocation = location;\n return;\n }\n case \"childScmDeveloperConnectionInheritAppendPath\" :\n {\n childScmDeveloperConnectionInheritAppendPathLocation = location;\n return;\n }\n case \"childScmUrlInheritAppendPath\" :\n {\n childScmUrlInheritAppendPathLocation = location;\n return;\n }\n default :\n {\n setOtherLocation( key, location );\n return;\n }\n }\n }\n else\n {\n setOtherLocation( key, location );\n }\n }", "public String getBucketName()\n {\n return bucketName;\n }", "public void setS3BucketSource(S3BucketSource s3BucketSource) {\n this.s3BucketSource = s3BucketSource;\n }", "public void setBedSpawnLocation ( Location location ) {\n\t\texecute ( handle -> handle.setBedSpawnLocation ( location ) );\n\t}", "@Override\n public void setLocation(geo_location p) {\n this.location.setX(p.x());\n this.location.setY(p.y());\n this.location.setZ(p.z());\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "public void setLocation(Vec2f loc) {\n\t\tsuper.setLocation(loc);\n\t\tif (_shape != null) _shape.setLocation(loc);\n\t}", "private void setLocation(Location newLocation) {\n\t\tif (location != null) {\n\t\t\tfield.clear(location);\n\t\t}\n\t\tlocation = newLocation;\n\t\tfield.place(this, newLocation);\n\t}", "public void setLocation(LatLng _location) {\n location = _location;\n }", "public void setStorageRegion(String StorageRegion) {\n this.StorageRegion = StorageRegion;\n }", "public void setLocation(Point location) {\n\t\tthis.location = location;\n\t}", "public static void setConfigLocation(String location) {\n\t\tconfigLocatiton = location;\n\t\tinitConfig();\n\t}", "@Required\n @Updatable\n public BucketResource getBucket() {\n return bucket;\n }", "@Nullable public String getBucketEndpoint() {\n return bucketEndpoint;\n }", "public void setLocation(Planet location) {\r\n this.location = location;\r\n }", "public void setLocation(LatLng location) {\n\t\tthis.location = location;\n\t}", "public void setStoreLocation(String location, Job job) throws IOException\n {\n conf = HadoopCompat.getConfiguration(job);\n \n // don't combine mappers to a single mapper per node\n conf.setBoolean(\"pig.noSplitCombination\", true);\n setLocationFromUri(location);\n\n if (username != null && password != null)\n ConfigHelper.setOutputKeyspaceUserNameAndPassword(conf, username, password);\n if (splitSize > 0)\n ConfigHelper.setInputSplitSize(conf, splitSize);\n if (partitionerClass!= null)\n ConfigHelper.setOutputPartitioner(conf, partitionerClass);\n if (rpcPort != null)\n {\n ConfigHelper.setOutputRpcPort(conf, rpcPort);\n ConfigHelper.setInputRpcPort(conf, rpcPort);\n }\n if (initHostAddress != null)\n {\n ConfigHelper.setOutputInitialAddress(conf, initHostAddress);\n ConfigHelper.setInputInitialAddress(conf, initHostAddress);\n }\n\n ConfigHelper.setOutputColumnFamily(conf, keyspace, column_family);\n setConnectionInformation();\n\n if (ConfigHelper.getOutputRpcPort(conf) == 0)\n throw new IOException(\"PIG_OUTPUT_RPC_PORT or PIG_RPC_PORT environment variable not set\");\n if (ConfigHelper.getOutputInitialAddress(conf) == null)\n throw new IOException(\"PIG_OUTPUT_INITIAL_ADDRESS or PIG_INITIAL_ADDRESS environment variable not set\");\n if (ConfigHelper.getOutputPartitioner(conf) == null)\n throw new IOException(\"PIG_OUTPUT_PARTITIONER or PIG_PARTITIONER environment variable not set\");\n\n // we have to do this again here for the check in writeColumnsFromTuple\n if (System.getenv(PIG_USE_SECONDARY) != null)\n usePartitionFilter = Boolean.parseBoolean(System.getenv(PIG_USE_SECONDARY));\n\n initSchema(storeSignature);\n }", "public void putBucket(Bucket bucket, int number) throws IOException {\n // REDFLAG: remove debugging code?\n Integer index = new Integer(number);\n if (buckets.get(index) != null) {\n throw new IOException(\"You already put bucket: \" + number);\n }\n buckets.put(index, bucket);\n }", "public void setLocation(final String locationValue) {\n this.location = locationValue;\n }", "public void setLocation(final String locationValue) {\n this.location = locationValue;\n }", "public void setLocation(final String theLocation) {\n\t\tif (theLocation == null || theLocation.length() == 0) {\n\t\t\tthrow new IllegalArgumentException(\"Please supply a valid location.\");\n\t\t}\n\t\tthis.mLocation = theLocation;\n\t}", "public Builder setS3Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }", "public void setLocation(final String locationValue) {\n this.location = locationValue;\n }", "public void setArtifactS3Location(String artifactS3Location) {\n this.artifactS3Location = artifactS3Location;\n }", "public void setLocation(Vector location);", "public void setLocation(Coordinate coordinate);", "@VTID(16)\n void setLocation(\n excel.Range rhs);", "protected void setLocation(Location newLocation)\n {\n if(location != null) {\n field.clear(location);\n }\n location = newLocation;\n field.place(this, newLocation);\n }", "protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }", "public void setOrigin(java.lang.String origin)\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(ORIGIN$16, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORIGIN$16);\n }\n target.setStringValue(origin);\n }\n }", "public void setXYZ(Location loc)\n\t{\n\t\tsetXYZ(loc.getX(), loc.getY(), loc.getZ());\n\t}", "public void setLocation(@NonNull final Location location) {\n this.location = Preconditions.checkNotNull(location, \"location\");\n }" ]
[ "0.6781298", "0.6272215", "0.62088186", "0.61140954", "0.6111718", "0.6058773", "0.60462826", "0.6034366", "0.60177046", "0.5956569", "0.59397525", "0.59166706", "0.59136385", "0.59038985", "0.5890192", "0.58754593", "0.58492655", "0.58492655", "0.58492655", "0.58414716", "0.5815013", "0.5790628", "0.5790424", "0.57510054", "0.5727069", "0.5717616", "0.57119167", "0.5699477", "0.56804425", "0.56742364", "0.566873", "0.56332695", "0.56222063", "0.5605419", "0.56003755", "0.55953217", "0.559435", "0.55913025", "0.55795485", "0.5570977", "0.55666494", "0.55666494", "0.55309385", "0.5530101", "0.5507492", "0.5505384", "0.5505384", "0.5505384", "0.5505384", "0.55028385", "0.5501871", "0.5488145", "0.5467152", "0.5452079", "0.5437359", "0.54329926", "0.54153967", "0.5404375", "0.53903544", "0.53790426", "0.5365704", "0.53453374", "0.5344817", "0.5344817", "0.5344817", "0.5336026", "0.53274935", "0.53206956", "0.5306713", "0.5291004", "0.52829856", "0.52724653", "0.52709633", "0.52709633", "0.5247773", "0.52435243", "0.5240505", "0.5235085", "0.52350175", "0.5234813", "0.52301115", "0.5229037", "0.5212149", "0.5207945", "0.5184398", "0.51816636", "0.51805437", "0.51805437", "0.5180115", "0.5163263", "0.51588166", "0.5157034", "0.5126877", "0.5126507", "0.5120531", "0.5117312", "0.5109026", "0.5099908", "0.5093803", "0.5092947" ]
0.561431
33
Obtain the bucket ACL.
public AccessControlList getAcl() { return acl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ListenableFuture<Acl> getObjectAcl(String bucketName, String objectKey);", "public com.amazon.s3.GetBucketAccessControlPolicyResponse getBucketAccessControlPolicy(com.amazon.s3.GetBucketAccessControlPolicy getBucketAccessControlPolicy);", "public AccessControlList getAccessControlList() {\n\t\treturn acl;\n\t}", "public ACL getACL() {\n return folderACL;\n }", "public AmazonS3ObjectACL getObjectACL() {\n\t\treturn objectACL;\n\t}", "public interface AclHandler\n{\n /**\n * Check validity of a canned access control list name.\n *\n * @param cannedAcl Name of an access control list to check for validity\n * @return Returns true if the specified {@code cannedAcl} is a valid known ACL name\n * for a cloud store service.\n */\n boolean isCannedAclValid(String cannedAcl);\n\n /**\n * Get the name of the default access control list used by a store service.\n *\n * @return Returns default access control list name.\n */\n String getDefaultCannedAcl();\n\n /**\n * Get the ACL of the given object.\n *\n * @return Returns object's ACL or null if the store does not support ACLs (like minio)\n */\n ListenableFuture<Acl> getObjectAcl(String bucketName, String objectKey);\n}", "public String getBucket();", "Response acl(String repoName, String repoPath, String lockTokenHeader, String ifHeader, HierarchicalProperty body);", "public String getBucket() {\n return bucket;\n }", "DescribeACLsResult describeACLs(DescribeACLsRequest describeACLsRequest);", "public List<ACL> getACL(String path, Stat stat) throws NoNodeException {\n return dataTree.getACL(path, stat);\n }", "private PolicyDocument getGlueAthenaS3AccessPolicy()\n {\n List<String> statementActionsPolicy = new ArrayList<>();\n statementActionsPolicy.add(\"glue:GetTableVersions\");\n statementActionsPolicy.add(\"glue:GetPartitions\");\n statementActionsPolicy.add(\"glue:GetTables\");\n statementActionsPolicy.add(\"glue:GetTableVersion\");\n statementActionsPolicy.add(\"glue:GetDatabases\");\n statementActionsPolicy.add(\"glue:GetTable\");\n statementActionsPolicy.add(\"glue:GetPartition\");\n statementActionsPolicy.add(\"glue:GetDatabase\");\n statementActionsPolicy.add(\"athena:GetQueryExecution\");\n statementActionsPolicy.add(\"s3:ListAllMyBuckets\");\n\n return PolicyDocument.Builder.create()\n .statements(ImmutableList.of(PolicyStatement.Builder.create()\n .actions(statementActionsPolicy)\n .resources(ImmutableList.of(\"*\"))\n .effect(Effect.ALLOW)\n .build()))\n .build();\n }", "alluxio.proto.journal.File.SetAclEntry getSetAcl();", "public com.amazon.s3.GetObjectAccessControlPolicyResponse getObjectAccessControlPolicy(com.amazon.s3.GetObjectAccessControlPolicy getObjectAccessControlPolicy);", "private void buildACL() {\n\t\tif (accountRoles == null || accountRoles.isEmpty()) return;\n\t\tAccessControlListGenerator gen = new AccessControlListGenerator();\n\n\t\tMap<Section,Set<String>> groups = new EnumMap<>(Section.class);\n\t\tgroups.put(BROWSE_SECTION, new HashSet<String>());\n\t\tgroups.put(Section.FINANCIAL_DASHBOARD, new HashSet<String>());\n\t\tgroups.put(Section.GAP_ANALYSIS, new HashSet<String>());\n\t\tgroups.put(Section.PRODUCT_EXPLORER, new HashSet<String>());\n\t\tgroups.put(Section.INSIGHT, new HashSet<String>());\n\t\tgroups.put(Section.UPDATES_EDITION, new HashSet<String>());\n\n\t\t//back-trace the approved hierarchies and authorize all parent levels as well\n\t\tfor (PermissionVO vo : accountRoles) {\n\t\t\tString[] tok = vo.getSolrTokenTxt().split(SearchDocumentHandler.HIERARCHY_DELIMITER);\n\t\t\tStringBuilder key = new StringBuilder(50);\n\t\t\tfor (int x=0; x < tok.length; x++) {\n\t\t\t\tif (key.length() > 0) key.append(SearchDocumentHandler.HIERARCHY_DELIMITER);\n\t\t\t\tkey.append(tok[x]);\n\n\t\t\t\tString acl = key.toString();\n\t\t\t\taddAclIf(vo.isBrowseAuth(), acl, groups.get(BROWSE_SECTION));\n\t\t\t\taddAclIf(vo.isFdAuth(), acl, groups.get(Section.FINANCIAL_DASHBOARD));\n\t\t\t\taddAclIf(vo.isGaAuth(), acl, groups.get(Section.GAP_ANALYSIS));\n\t\t\t\taddAclIf(vo.isPeAuth(), acl, groups.get(Section.PRODUCT_EXPLORER));\n\t\t\t\taddAclIf(vo.isAnAuth(), acl, groups.get(Section.INSIGHT));\n\t\t\t\taddAclIf(vo.isUpdatesAuth(), acl, groups.get(Section.UPDATES_EDITION));\n\t\t\t}\n\t\t}\n\t\t\n\t\tgroups.get(BROWSE_SECTION).add(PUBLIC_ACL);\n\t\tgroups.get(Section.FINANCIAL_DASHBOARD).add(PUBLIC_ACL);\n\t\tgroups.get(Section.GAP_ANALYSIS).add(PUBLIC_ACL);\n\t\tgroups.get(Section.PRODUCT_EXPLORER).add(PUBLIC_ACL);\n\t\tgroups.get(Section.INSIGHT).add(PUBLIC_ACL);\n\t\tgroups.get(Section.UPDATES_EDITION).add(PUBLIC_ACL);\n\n\t\tauthorizedSections = new EnumMap<>(Section.class);\n\t\tfor (Map.Entry<Section, Set<String>> entry : groups.entrySet()) {\n\t\t\tSection k = entry.getKey();\n\t\t\t//System.err.println(k + \" -> \" + entry.getValue())\n\t\t\tauthorizedSections.put(k, entry.getValue().toArray(new String[entry.getValue().size()]));\n\t\t\tsetAccessControlList(k, gen.getQueryACL(null, authorizedSections.get(k)));\n\t\t}\n\t}", "public String getBucketName(){\n return bucketName;\n }", "@Updatable\n @Required\n public BucketResource getBucket() {\n return bucket;\n }", "B getBucket();", "@Required\n @Updatable\n public BucketResource getBucket() {\n return bucket;\n }", "public String getBucketName()\n {\n return bucketName;\n }", "public void setAcl(AccessControlList acl)\n {\n this.acl = acl;\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "public int getAclSize() {\n return dataTree.aclCacheSize();\n }", "@Override\n List<? extends Bucket> getBuckets();", "@Updatable\n public S3AccessControlListConfiguration getAccessControlListConfiguration() {\n return accessControlListConfiguration;\n }", "public boolean checkReadPermission(final String bucket_path) {\r\n\t\t\treturn checkReadPermission(BeanTemplateUtils.build(DataBucketBean.class).with(DataBucketBean::full_name, bucket_path).done().get());\r\n\t\t}", "String getDefaultCannedAcl();", "protected static Map<String, Set<String>> getActualAcl(Acl acl) {\n Map<String, Set<String>> actual = new HashMap<>();\n for (Ace ace : acl.getAces()) {\n actual.put(ace.getPrincipalId() + (ace.isDirect() ? \"\" : \"*\"), new HashSet<>(ace.getPermissions()));\n }\n return actual;\n }", "public static String getPublicReadPolicy(String bucket_name) {\r\n Policy bucket_policy = new Policy().withStatements(\r\n new Statement(Statement.Effect.Allow)\r\n .withPrincipals(Principal.AllUsers)\r\n .withActions(S3Actions.GetObject)\r\n .withResources(new Resource(\r\n \"arn:aws:s3:::\" + bucket_name + \"/*\")));\r\n return bucket_policy.toJson();\r\n }", "public AclFeed getAclFeed(DocumentListEntry entry) throws MalformedURLException, IOException, ServiceException;", "public AVACL getDefaultACL() {\n return this.defaultACL;\n }", "public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBucketName() {\n\treturn _bucketName;\n }", "public abstract int getBucketID();", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "private static void listingTheBucket(AmazonS3 s3) {\n for( com.amazonaws.services.s3.model.Bucket bucket : s3.listBuckets()){\n bucketArrayList.add(bucket);\n }\n }", "CurrentAccess getca(final BwEvent ev) {\n return get(ev.getId());\n }", "@java.lang.Override\n public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n }\n }", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public void setAccessControlList(AccessControlList acl) {\n\t\tthis.acl = acl;\n\t}", "public String getAccessKey() {\n return cred.getAWSAccessKeyId();\n }", "public ResponseEntity<?> accessControl(APIAccessControl accessControl, Principal principal) throws JSONException;", "AccessPoliciesClient getAccessPolicies();", "public long getBucketID(){\n return localBucketID;\n }", "@Override\n public List<String> AllFileFromS3Bucket()\n {\n List<Bucket> buckets= amazonS3.listBuckets();\n List<String> keys = new ArrayList<>();\n \n for (Bucket b :buckets) {\n \t System.out.println(\" **** \" + b.getName());\n \t keys.add(b.getName());\n }\n\treturn keys;\n \n }", "public List<String> listBuckets() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (Bucket bucket : s3client.listBuckets()) {\n\t\t\tlist.add(bucket.getName());\n\t\t\t// System.out.println(\" - \" + bucket.getName());\n\t\t}\n\n\t\treturn list;\n\t}", "Collection<? extends GrantedAuthority> getAuthorities();", "public AOC getAOC() {\n\t\treturn aoc;\n\t}", "public interface Bucket {\n String getUid();\n\n String getName();\n\n Uri getImageUri();\n\n List<Selection> getSelections();\n\n void addSelection(Selection s);\n\n void removeSelection(Selection s);\n}", "public com.amazon.s3.GetBucketLoggingStatusResponse getBucketLoggingStatus(com.amazon.s3.GetBucketLoggingStatus getBucketLoggingStatus);", "public com.amazon.s3.ListBucketResponse listBucket(com.amazon.s3.ListBucket listBucket);", "public Bucket() {\n\t\t\te = new ArrayList<Entry<K, V>>();\n\t\t}", "private GitLabFolderAuthorization(GitLabFolderACL acl) {\n this.folderACL = acl;\n }", "@ZAttr(id=659)\n public String[] getACE() {\n return getMultiAttr(Provisioning.A_zimbraACE);\n }", "public List<ACL> parseACL(String cmd) {\r\n\t\taccessList = new ArrayList<ACL>();\r\n\t\t\r\n\t\tACL aclObj;\r\n\t\tcmd = cmd.trim();\r\n\t\tString regex = \"(?<=%%) (\" + ACESS_LIST_TYPE + \") IP access list (\" + IP_ACCESS_LIST_NUM\r\n\t\t\t\t+ \").*?(\\\\d.*?)(?=%%|$)\";\r\n\r\n\t\tPattern pattern = Pattern.compile(regex);\r\n\t\tMatcher matcher = pattern.matcher(cmd);\r\n\r\n\t\twhile (matcher.find()) {\r\n\t\t\tipAccessListType = matcher.group(1);\r\n\t\t\tipAccessListNum = Integer.parseInt(matcher.group(2));\r\n\t\t\tString regex1 = \"(\" + ACCESS_LIST_MODE_NUMBER + \") \" + ACCESS_LIST_MODE + \"(\" + SOURCE_IP + \") {0,1}(\"\r\n\t\t\t\t\t+ WILDCARD_SOURCE_IP + \") {0,1}(\" + DES_IP + \") {0,1}(\" + WILDCARD_DES_IP + \")\";\r\n\t\t\tPattern pattern1 = Pattern.compile(regex1);\r\n\t\t\tMatcher matcher1 = pattern1.matcher(matcher.group(3));\r\n\r\n\t\t\twhile (matcher1.find()) {\r\n\t\t\t\tmodeNum = Integer.parseInt(matcher1.group(1));\r\n\t\t\t\tsourceIP = matcher1.group(2);\r\n\t\t\t\twildCardSourceIP = matcher1.group(3);\r\n\t\t\t\tdesIP = matcher1.group(4);\r\n\t\t\t\twildCardDesIP = matcher1.group(5);\r\n\t\t\t\taclObj = new ACL(ipAccessListType, ipAccessListNum, modeNum, sourceIP, wildCardSourceIP, desIP,\r\n\t\t\t\t\t\twildCardDesIP);\r\n\t\t\t\taccessList.add(aclObj);\r\n\t\t\t\t//collect interface info\r\n\t\t\t\t//interfacesMap.get(aclObj.getInterfaceName()).addAcl(aclObj);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn accessList;\r\n\t}", "public List<ACR> getAcrs() {\n return acrs;\n }", "public String getAccessKey() {\n return properties.getProperty(ACCESS_KEY);\n }", "public StorageClassEnum getBucketStorageClass()\n {\n return storageClass;\n }", "private void ListMyBuckets(String bucketName) {\n List<Bucket> buckets = s3.listBuckets();\n System.out.println(\"------------- CustomS3Client --------------\");\n System.out.println(\"Bucket \"+bucketName+\" contents are as below:\");\n\n for (Bucket b : buckets) {\n System.out.println(b.getName());\n ListObjectsV2Result result = s3.listObjectsV2(b.getName());\n List<S3ObjectSummary> objects = result.getObjectSummaries();\n for (S3ObjectSummary os : objects) {\n System.out.println(\"** \" + os.getKey());\n }\n }\n System.out.println(\"------------- All bucket contents listed successfully --------------\");\n }", "private static List<GdalS3DataRequest> requestList(String bucketName) \n throws AmazonServiceException, AmazonClientException{\n\n List<GdalS3DataRequest> res = new ArrayList<GdalS3DataRequest>();\n\n AmazonS3 s3Client = new AmazonS3Client(new EnvironmentVariableCredentialsProvider());\n ListObjectsV2Request req = new ListObjectsV2Request().withBucketName(bucketName);\n ListObjectsV2Result result;\n\n do {\n result = s3Client.listObjectsV2(req);\n result.setMaxKeys(20);\n for (S3ObjectSummary objectSummary: result.getObjectSummaries()) {\n GdalS3DataRequest dr = new GdalS3DataRequest(bucketName, \n objectSummary.getKey());\n res.add(dr);\n }\n } while (result.isTruncated() == true);\n\n //return res.subList(0,10); //for testing and cost reduction during dev\n return res;\n }", "@Test\n public void bucketBasics() throws Exception {\n testInfo(this.getClass().getSimpleName() + \" - bucketBasics\");\n\n try {\n print(account + \": Listing all buckets\");\n List<Bucket> bucketList = s3.listBuckets();\n assertTrue(\"Invalid or empty bucket list\", bucketList != null && !bucketList.isEmpty());\n boolean found = false;\n for (Bucket buck : bucketList) {\n if (buck.getName().equals(bucketName)) {\n found = true;\n break;\n }\n }\n assertTrue(\"Expected newly created bucket to be listed in the buckets but did not\", found);\n\n print(account + \": Checking if the bucket \" + bucketName + \" exists\");\n assertTrue(\"Expected to find \" + bucketName + \", but the bucket was not found\", s3.doesBucketExist(bucketName));\n\n print(account + \": Fetching bucket location for \" + bucketName);\n String location = s3.getBucketLocation(bucketName);\n assertTrue(\"Invalid result for bucket location, expected a string\", location != null && !location.isEmpty());\n\n print(account + \": Fetching bucket logging configuration for \" + bucketName);\n BucketLoggingConfiguration loggingConfig = s3.getBucketLoggingConfiguration(bucketName);\n assertTrue(\"Invalid result for bucket logging configuration\", loggingConfig != null);\n assertTrue(\"Expected bucket logging to be disabled, but got enabled\", !loggingConfig.isLoggingEnabled());\n assertTrue(\"Expected destination bucket to be null, but got \" + loggingConfig.getDestinationBucketName(),\n loggingConfig.getDestinationBucketName() == null);\n assertTrue(\"Expected log file prefix to be null, but got \" + loggingConfig.getLogFilePrefix(), loggingConfig.getLogFilePrefix() == null);\n\n print(account + \": Fetching bucket versioning configuration for \" + bucketName);\n BucketVersioningConfiguration versioning = s3.getBucketVersioningConfiguration(bucketName);\n assertTrue(\"Invalid result for bucket versioning configuration\", versioning != null);\n assertTrue(\"Expected bucket versioning configuration to be OFF, but found it to be \" + versioning.getStatus(),\n versioning.getStatus().equals(BucketVersioningConfiguration.OFF));\n } catch (AmazonServiceException ase) {\n printException(ase);\n assertThat(false, \"Failed to run bucketBasics\");\n }\n }", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "public void setAclDAO(AccessControlListDAO aclDAO);", "@Test(enabled = false)\n public void loggingConfiguration() throws Exception {\n testInfo(this.getClass().getSimpleName() + \" - loggingConfiguration\");\n\n try {\n print(account + \": Fetching bucket logging configuration for \" + bucketName);\n BucketLoggingConfiguration loggingConfig = s3.getBucketLoggingConfiguration(bucketName);\n assertTrue(\"Invalid result for bucket logging configuration\", loggingConfig != null);\n assertTrue(\"Expected bucket logging to be disabled, but got enabled\", !loggingConfig.isLoggingEnabled());\n\n boolean error = false;\n try {\n print(account + \": Setting bucket logging configuration before assigning log-delivery group WRITE and READ_ACP permissions for \" + bucketName);\n s3.setBucketLoggingConfiguration(new SetBucketLoggingConfigurationRequest(bucketName, new BucketLoggingConfiguration(bucketName, bucketName)));\n } catch (AmazonS3Exception ex) {\n assertTrue(\"Expected error code to be 400, but got \" + ex.getStatusCode(), ex.getStatusCode() == 400);\n error = true;\n } finally {\n assertTrue(\n \"Expected AmazonS3Exception for enabling bucket logging configuration before assigning log-delivery group appropriate permissions\", error);\n }\n\n print(account + \": Setting canned ACL log-delivery-write for \" + bucketName);\n s3.setBucketAcl(bucketName, CannedAccessControlList.LogDeliveryWrite);\n\n print(account + \": Getting ACL for bucket \" + bucketName);\n AccessControlList acl = s3.getBucketAcl(bucketName);\n assertTrue(\"Mismatch in number of ACLs associated with the bucket. Expected 3 but got \" + acl.getGrants().size(), acl.getGrants().size() == 3);\n\n Iterator<Grant> iterator = acl.getGrants().iterator();\n while (iterator.hasNext()) {\n Grant grant = iterator.next();\n if (grant.getGrantee() instanceof CanonicalGrantee) {\n assertTrue(\"Expected grantee to be bucket owner \" + acl.getOwner().getId() + \", but found \" + grant.getGrantee().getIdentifier(), grant\n .getGrantee().getIdentifier().equals(acl.getOwner().getId()));\n assertTrue(\"Grantee should have full control\", grant.getPermission().equals(Permission.FullControl));\n } else {\n assertTrue(\"Grantee of type GroupGrantee not found\", grant.getGrantee() instanceof GroupGrantee);\n assertTrue(\"Expected grantee to be LogDelivery but found \" + ((GroupGrantee) grant.getGrantee()),\n ((GroupGrantee) grant.getGrantee()).equals(GroupGrantee.LogDelivery));\n assertTrue(\"Grantee does not have \" + Permission.Write.toString() + \" and/or \" + grant.getPermission().equals(Permission.ReadAcp)\n + \" privileges\", grant.getPermission().equals(Permission.Write) || grant.getPermission().equals(Permission.ReadAcp));\n }\n }\n\n print(account + \": Setting bucket logging configuration after assigning log-delivery group WRITE and READ_ACP permissions for \" + bucketName);\n s3.setBucketLoggingConfiguration(new SetBucketLoggingConfigurationRequest(bucketName, new BucketLoggingConfiguration(bucketName, bucketName)));\n\n print(account + \": Fetching bucket logging configuration for \" + bucketName);\n loggingConfig = s3.getBucketLoggingConfiguration(bucketName);\n assertTrue(\"Invalid result for bucket logging configuration\", loggingConfig != null);\n assertTrue(\"Expected bucket logging to be enabled, but got disabled\", loggingConfig.isLoggingEnabled());\n assertTrue(\"Expected destination bucket to be \" + bucketName + \", but got \" + loggingConfig.getDestinationBucketName(), loggingConfig\n .getDestinationBucketName().equals(bucketName));\n assertTrue(\"Expected log file prefix to be \" + bucketName + \", but got \" + loggingConfig.getLogFilePrefix(), loggingConfig.getLogFilePrefix()\n .equals(bucketName));\n\n } catch (AmazonServiceException ase) {\n printException(ase);\n assertThat(false, \"Failed to run loggingConfiguration\");\n }\n }", "public static String getAuthzObj(TSentryAuthorizable authorizable)\n throws SentryInvalidInputException {\n return getAuthzObj(authorizable.getDb(), authorizable.getTable());\n }", "public Bucket loadBucket(String name) throws S3Exception {\n\t\treturn null;\r\n\t}", "public boolean checkReadPermission(final DataBucketBean bucket) {\r\n\t\t\treturn checkPermission(bucket, SecurityService.ACTION_READ);\r\n\t\t}", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "com.google.protobuf.ByteString getAuthorityBytes();", "CreateACLResult createACL(CreateACLRequest createACLRequest);", "Bucket getBucket(K key) {\r\n\t\treturn (Bucket) buckets[key.hashCode() % numBuckets];\r\n\t}", "public String getAccessControlList(Section sec) {\n\t\tString lst = accessControlLists.get(sec);\n\t\treturn lst != null ? lst : accessControlLists.get(BROWSE_SECTION);\n\t}", "private PolicyDocument getS3SpillBucketAccessPolicy()\n {\n List<String> statementActionsPolicy = new ArrayList<>();\n statementActionsPolicy.add(\"s3:GetObject\");\n statementActionsPolicy.add(\"s3:ListBucket\");\n statementActionsPolicy.add(\"s3:GetBucketLocation\");\n statementActionsPolicy.add(\"s3:GetObjectVersion\");\n statementActionsPolicy.add(\"s3:PutObject\");\n statementActionsPolicy.add(\"s3:PutObjectAcl\");\n statementActionsPolicy.add(\"s3:GetLifecycleConfiguration\");\n statementActionsPolicy.add(\"s3:PutLifecycleConfiguration\");\n statementActionsPolicy.add(\"s3:DeleteObject\");\n\n return PolicyDocument.Builder.create()\n .statements(ImmutableList.of(PolicyStatement.Builder.create()\n .actions(statementActionsPolicy)\n .resources(ImmutableList.of(\n String.format(\"arn:aws:s3:::%s\", spillBucket),\n String.format(\"arn:aws:s3:::%s/*\", spillBucket)))\n .effect(Effect.ALLOW)\n .build()))\n .build();\n }", "private GitLabFolderACL aclFromPermissionTable(Map<String, Object> tableData) {\n GitLabGrantedPermissions grantedPermissions = new GitLabGrantedPermissions();\n\n for (Entry<String, Object> identityPermission : tableData.entrySet()) {\n GitLabPermissionIdentity identity = null;\n String[] identityValue = identityPermission.getKey().split(\":\");\n\n if (identityValue.length == 2) {\n IdentityType type = IdentityType.valueOf(identityValue[0]);\n String id = identityValue[1];\n\n switch (type) {\n case GITLAB:\n identity = GitLabPermissionIdentity.getGitLabIdentityFromAccessLevel(\n GitLabAccessLevel.getAccessLevelWithName(id));\n break;\n case JENKINS:\n identity = GitLabPermissionIdentity.getJenkinsIdentityFromAccessLevel(\n JenkinsAccessLevel.getAccessLevelWithName(id));\n break;\n case GROUP:\n identity = GitLabPermissionIdentity.group(id);\n break;\n case USER:\n identity = GitLabPermissionIdentity.user(id);\n break;\n }\n }\n\n Map<String, Object> value = (JSONObject)identityPermission.getValue();\n\n for (Entry<String, Object> valueSet : value.entrySet()) {\n if ((Boolean)valueSet.getValue() && identity != null) {\n grantedPermissions.addPermission(identity, Permission.fromId(valueSet.getKey()));\n }\n }\n }\n\n return new GitLabFolderACL(grantedPermissions);\n }", "@Override\n\tpublic synchronized Collection<Arc> getArcs() {\n\t\treturn this.arcs;\n\t}", "@Nonnull\n Map<Object, T> fetchBucket(int bucketIdx) throws Exception;", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n return setAcl_;\n }", "public List<ACL> build() {\n List<ACL> result = new ArrayList<>();\n if (world != null) {\n result.add(world);\n }\n if (auth != null) {\n result.add(auth);\n }\n for (Map<String, ACL> m : asList(digests, hosts, ips)) {\n if (m != null) {\n result.addAll(m.values());\n }\n }\n return result;\n }", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn authenrities;\n\t}", "public String getAccessKeyId();", "public final String getAccessKeyAttribute() {\n return getAttributeValue(\"accesskey\");\n }", "public void addBucket1(String bucketName) {\n\t\tSystem.out.println(\"Bucket name inside DAO \" + bucketName);\n\t\ttry {\n\t\t\t\n\t\t\ts3client.createBucket(bucketName);\n\t\t\tSystem.out.println(\"Bucket created\");\n\t\t} catch (Exception e) {\n\t\t\tHttpServletRequest request = null;\n\t\t\tHttpServletResponse response = null;\n\t\t\t@SuppressWarnings(\"null\")\n\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"WEB-INF/views/403.jsp\");\n\t\t\ttry {\n\t\t\t\trd.forward(request, response);\n\t\t\t} catch (ServletException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public void downloadBucket(String bucketName) {\n\t\t\n\t\tSystem.out.println(\"download bucket\"+bucketName);\n\t\t\n\t\tObjectListing listing = s3client.listObjects(bucketName);\n\t\tList<S3ObjectSummary> summaries = listing.getObjectSummaries();\n\n\t\twhile (listing.isTruncated()) {\n\t\t listing = s3client.listNextBatchOfObjects (listing);\n\t\t summaries.addAll (listing.getObjectSummaries());\n\t\t}\n\t\tSystem.out.println(summaries.get(0));\n\t\t\n\t\ts3client.getObject(new GetObjectRequest(bucketName, \"aws.xlsx\"), new File(\"D:\\\\aws.xlsx\"));\n\n\t}", "public StandardAuthority getAuthority()\n {\n return authority;\n }", "alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder();", "public static Bucket getInstance(String bucket, String password, String server){\n\n String key = bucket.concat(password);\n\n if (cbClients == null){\n cbClients = new HashMap<String, Bucket>();\n }\n\n if (!cbClients.containsKey(key)) {\n try {\n List<String> nodes = new ArrayList<String>();\n String host1 = server;\n nodes.add(host1);\n Cluster cluster = CouchbaseCluster.create(host1);\n Bucket theBucket = cluster.openBucket(bucket,password);\n cbClients.put(key, theBucket);\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n\n return cbClients.get(key);\n\n }", "@SuppressWarnings(\"removal\")\n final AccessControlContext getAccessControlContext() {\n if (acc == null) {\n throw new SecurityException(\n \"MenuComponent is missing AccessControlContext\");\n }\n return acc;\n }", "public int acab()\n\t\t{\n\t\t\treturn this.acabe;\n\t\t}", "public MetadataEntry getAuth(int index) {\n return auth_.get(index);\n }", "@Override\npublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t// TODO Auto-generated method stub\n\treturn null;\n}", "public static PathAuthzInterface getPathAuthz() {\n\n\t\treturn AuthzDirector.pathAuthz;\n\t}", "@GET\r\n @Path(\"{csid}/authorityrefs\")\r\n @Produces(\"application/xml\")\r\n public AuthorityRefList getAuthorityRefs(\r\n @PathParam(\"csid\") String csid,\r\n @Context UriInfo ui) {\r\n AuthorityRefList authRefList = null;\r\n try {\r\n MultivaluedMap<String, String> queryParams = ui.getQueryParameters();\r\n ServiceContext<PoxPayloadIn, PoxPayloadOut> ctx = createServiceContext(queryParams);\r\n DocumentWrapper<DocumentModel> docWrapper = getRepositoryClient(ctx).getDoc(ctx, csid);\r\n DocumentModelHandler<PoxPayloadIn, PoxPayloadOut> handler = (DocumentModelHandler<PoxPayloadIn, PoxPayloadOut>) createDocumentHandler(ctx);\r\n List<String> authRefFields =\r\n ((MultipartServiceContextImpl) ctx).getCommonPartPropertyValues(\r\n ServiceBindingUtils.AUTH_REF_PROP, ServiceBindingUtils.QUALIFIED_PROP_NAMES);\r\n authRefList = handler.getAuthorityRefs(docWrapper, authRefFields);\r\n } catch (Exception e) {\r\n throw bigReThrow(e, ServiceMessages.AUTH_REFS_FAILED, csid);\r\n }\r\n return authRefList;\r\n }", "@GetMapping(\"/buckets/{id}\")\n @Timed\n public ResponseEntity<BucketDTO> getBucket(@PathVariable Long id) {\n log.debug(\"REST request to get Bucket : {}\", id);\n BucketDTO bucketDTO = bucketService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(bucketDTO));\n }", "@Override\r\n\tpublic AccessControlManager getAccessControlManager()\r\n\t\t\tthrows UnsupportedRepositoryOperationException, RepositoryException {\n\t\treturn null;\r\n\t}", "public bucket getbucket(int x) {\n\t\treturn bucket[x];\n\t}", "public Principal getAuthorizationPrincipal() {\n return authorizationPrincipal;\n }" ]
[ "0.74846876", "0.64790636", "0.64548004", "0.6368877", "0.6275693", "0.621874", "0.5877079", "0.57315934", "0.56976336", "0.56431776", "0.55042404", "0.54501534", "0.5412708", "0.53192574", "0.52879643", "0.52793014", "0.52572304", "0.52446395", "0.5169623", "0.5147956", "0.50964415", "0.5081328", "0.5081328", "0.50749266", "0.5034018", "0.49577126", "0.49459684", "0.4937491", "0.493615", "0.4897936", "0.48817614", "0.48387393", "0.48362508", "0.48306334", "0.48277935", "0.48129004", "0.48076156", "0.48075506", "0.47962573", "0.47720093", "0.47503477", "0.47172612", "0.46949673", "0.46898416", "0.4687586", "0.4684548", "0.46565825", "0.46312374", "0.46246654", "0.46244916", "0.4618408", "0.4608383", "0.46082333", "0.46075794", "0.4596373", "0.45856524", "0.4577711", "0.457544", "0.45584536", "0.45361423", "0.4533447", "0.45223752", "0.45061058", "0.4504767", "0.44802314", "0.4477344", "0.44752952", "0.44452092", "0.44438034", "0.4442478", "0.44406375", "0.44403252", "0.4439004", "0.44276395", "0.44274762", "0.44267297", "0.44139415", "0.43907973", "0.43817908", "0.4371261", "0.43670672", "0.43664408", "0.43634784", "0.434954", "0.43414477", "0.4338875", "0.43321037", "0.43231896", "0.43130362", "0.43005496", "0.42922", "0.4284586", "0.4276215", "0.42753047", "0.42747194", "0.4272892", "0.42709234", "0.4270453", "0.42642996", "0.42542303" ]
0.653992
1
Set the bucket ACL.
public void setAcl(AccessControlList acl) { this.acl = acl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3.SetBucketAccessControlPolicy setBucketAccessControlPolicy);", "public void setAccessControlList(AccessControlList acl) {\n\t\tthis.acl = acl;\n\t}", "public com.amazon.s3.SetObjectAccessControlPolicyResponse setObjectAccessControlPolicy(com.amazon.s3.SetObjectAccessControlPolicy setObjectAccessControlPolicy);", "public void setAclDAO(AccessControlListDAO aclDAO);", "public void setBucket(String inBucket);", "public Builder setSetAcl(\n alluxio.proto.journal.File.SetAclEntry.Builder builderForValue) {\n if (setAclBuilder_ == null) {\n setAcl_ = builderForValue.build();\n onChanged();\n } else {\n setAclBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x04000000;\n return this;\n }", "public void setDefaultACL(AVACL avacl) {\n this.defaultACL = avacl;\n }", "public CreateOptions setAcl(AccessControlList acl) {\n mAcl = acl;\n return this;\n }", "Response acl(String repoName, String repoPath, String lockTokenHeader, String ifHeader, HierarchicalProperty body);", "alluxio.proto.journal.File.SetAclEntry getSetAcl();", "public void setOwner(Owner bucketOwner)\n {\n this.owner = bucketOwner;\n }", "ListenableFuture<Acl> getObjectAcl(String bucketName, String objectKey);", "public SetAclTResponse setAcl(String path, TSetAclAction action, List<TAclEntry> entries, SetAclTOptions options) throws alluxio.thrift.AlluxioTException, org.apache.thrift.TException;", "private GitLabFolderAuthorization(GitLabFolderACL acl) {\n this.folderACL = acl;\n }", "public Builder setSetAcl(alluxio.proto.journal.File.SetAclEntry value) {\n if (setAclBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n setAcl_ = value;\n onChanged();\n } else {\n setAclBuilder_.setMessage(value);\n }\n bitField0_ |= 0x04000000;\n return this;\n }", "public setAcl_result(setAcl_result other) {\n if (other.isSetSuccess()) {\n this.success = new SetAclTResponse(other.success);\n }\n if (other.isSetE()) {\n this.e = new alluxio.thrift.AlluxioTException(other.e);\n }\n }", "CreateS3VolumeRequestBuilder setBucket(String bucket);", "alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder();", "UpdateACLResult updateACL(UpdateACLRequest updateACLRequest);", "public Builder clearSetAcl() {\n if (setAclBuilder_ == null) {\n setAcl_ = alluxio.proto.journal.File.SetAclEntry.getDefaultInstance();\n onChanged();\n } else {\n setAclBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x04000000);\n return this;\n }", "public com.amazon.s3.SetBucketLoggingStatusResponse setBucketLoggingStatus(com.amazon.s3.SetBucketLoggingStatus setBucketLoggingStatus);", "CreateS3VolumeRequestBuilder setAccessKey(String accessKey);", "public void setBucketDao(BucketDao bucketDao) {\n\t\t\r\n\t}", "public Builder setGcsBucket(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public setAcl_args(setAcl_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetAction()) {\n this.action = other.action;\n }\n if (other.isSetEntries()) {\n List<TAclEntry> __this__entries = new ArrayList<TAclEntry>(other.entries.size());\n for (TAclEntry other_element : other.entries) {\n __this__entries.add(new TAclEntry(other_element));\n }\n this.entries = __this__entries;\n }\n if (other.isSetOptions()) {\n this.options = new SetAclTOptions(other.options);\n }\n }", "@ZAttr(id=659)\n public void setACE(String[] zimbraACE) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraACE, zimbraACE);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public ACL getACL() {\n return folderACL;\n }", "@Updatable\n @Required\n public BucketResource getBucket() {\n return bucket;\n }", "BucketName(String bucketName) {\n this.bucketName = bucketName;\n }", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "protected void setAccessPolicies(Map<String, PolicyDocument> policies)\n {\n policies.put(\"GlueAthenaS3AccessPolicy\", getGlueAthenaS3AccessPolicy());\n policies.put(\"S3SpillBucketAccessPolicy\", getS3SpillBucketAccessPolicy());\n connectorAccessPolicy.ifPresent(policyDocument -> policies.put(\"ConnectorAccessPolicy\", policyDocument));\n }", "private void addAclIf(boolean isAuth, String permission, Set<String> acl ) {\n\t\tif (isAuth) {\n\t\t\tacl.add(permission);\n\t\t}\n\t}", "public interface AclHandler\n{\n /**\n * Check validity of a canned access control list name.\n *\n * @param cannedAcl Name of an access control list to check for validity\n * @return Returns true if the specified {@code cannedAcl} is a valid known ACL name\n * for a cloud store service.\n */\n boolean isCannedAclValid(String cannedAcl);\n\n /**\n * Get the name of the default access control list used by a store service.\n *\n * @return Returns default access control list name.\n */\n String getDefaultCannedAcl();\n\n /**\n * Get the ACL of the given object.\n *\n * @return Returns object's ACL or null if the store does not support ACLs (like minio)\n */\n ListenableFuture<Acl> getObjectAcl(String bucketName, String objectKey);\n}", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n return setAcl_;\n }", "public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public AccessControlList getAcl()\n {\n return acl;\n }", "@Required\n @Updatable\n public BucketResource getBucket() {\n return bucket;\n }", "public setAcl_args setPath(String path) {\n this.path = path;\n return this;\n }", "@Test(enabled = false)\n public void loggingConfiguration() throws Exception {\n testInfo(this.getClass().getSimpleName() + \" - loggingConfiguration\");\n\n try {\n print(account + \": Fetching bucket logging configuration for \" + bucketName);\n BucketLoggingConfiguration loggingConfig = s3.getBucketLoggingConfiguration(bucketName);\n assertTrue(\"Invalid result for bucket logging configuration\", loggingConfig != null);\n assertTrue(\"Expected bucket logging to be disabled, but got enabled\", !loggingConfig.isLoggingEnabled());\n\n boolean error = false;\n try {\n print(account + \": Setting bucket logging configuration before assigning log-delivery group WRITE and READ_ACP permissions for \" + bucketName);\n s3.setBucketLoggingConfiguration(new SetBucketLoggingConfigurationRequest(bucketName, new BucketLoggingConfiguration(bucketName, bucketName)));\n } catch (AmazonS3Exception ex) {\n assertTrue(\"Expected error code to be 400, but got \" + ex.getStatusCode(), ex.getStatusCode() == 400);\n error = true;\n } finally {\n assertTrue(\n \"Expected AmazonS3Exception for enabling bucket logging configuration before assigning log-delivery group appropriate permissions\", error);\n }\n\n print(account + \": Setting canned ACL log-delivery-write for \" + bucketName);\n s3.setBucketAcl(bucketName, CannedAccessControlList.LogDeliveryWrite);\n\n print(account + \": Getting ACL for bucket \" + bucketName);\n AccessControlList acl = s3.getBucketAcl(bucketName);\n assertTrue(\"Mismatch in number of ACLs associated with the bucket. Expected 3 but got \" + acl.getGrants().size(), acl.getGrants().size() == 3);\n\n Iterator<Grant> iterator = acl.getGrants().iterator();\n while (iterator.hasNext()) {\n Grant grant = iterator.next();\n if (grant.getGrantee() instanceof CanonicalGrantee) {\n assertTrue(\"Expected grantee to be bucket owner \" + acl.getOwner().getId() + \", but found \" + grant.getGrantee().getIdentifier(), grant\n .getGrantee().getIdentifier().equals(acl.getOwner().getId()));\n assertTrue(\"Grantee should have full control\", grant.getPermission().equals(Permission.FullControl));\n } else {\n assertTrue(\"Grantee of type GroupGrantee not found\", grant.getGrantee() instanceof GroupGrantee);\n assertTrue(\"Expected grantee to be LogDelivery but found \" + ((GroupGrantee) grant.getGrantee()),\n ((GroupGrantee) grant.getGrantee()).equals(GroupGrantee.LogDelivery));\n assertTrue(\"Grantee does not have \" + Permission.Write.toString() + \" and/or \" + grant.getPermission().equals(Permission.ReadAcp)\n + \" privileges\", grant.getPermission().equals(Permission.Write) || grant.getPermission().equals(Permission.ReadAcp));\n }\n }\n\n print(account + \": Setting bucket logging configuration after assigning log-delivery group WRITE and READ_ACP permissions for \" + bucketName);\n s3.setBucketLoggingConfiguration(new SetBucketLoggingConfigurationRequest(bucketName, new BucketLoggingConfiguration(bucketName, bucketName)));\n\n print(account + \": Fetching bucket logging configuration for \" + bucketName);\n loggingConfig = s3.getBucketLoggingConfiguration(bucketName);\n assertTrue(\"Invalid result for bucket logging configuration\", loggingConfig != null);\n assertTrue(\"Expected bucket logging to be enabled, but got disabled\", loggingConfig.isLoggingEnabled());\n assertTrue(\"Expected destination bucket to be \" + bucketName + \", but got \" + loggingConfig.getDestinationBucketName(), loggingConfig\n .getDestinationBucketName().equals(bucketName));\n assertTrue(\"Expected log file prefix to be \" + bucketName + \", but got \" + loggingConfig.getLogFilePrefix(), loggingConfig.getLogFilePrefix()\n .equals(bucketName));\n\n } catch (AmazonServiceException ase) {\n printException(ase);\n assertThat(false, \"Failed to run loggingConfiguration\");\n }\n }", "public void setBucketStorageClass(StorageClassEnum storageClass)\n {\n this.storageClass = storageClass;\n }", "public void setBucketName(String bucketName) {\n setProperty(BUCKET_NAME, bucketName);\n }", "public void storeBucket(Bucket bucket) throws S3Exception {\n\t\t\r\n\t}", "public AccessControlList getAccessControlList() {\n\t\treturn acl;\n\t}", "public void changeACLMode(boolean b) {\n\t\tif (b)\n\t\t\tgetModelObject().setPropertyValue(\"keyAccessMode\", \"0\");\n\t\telse\n\t\t\tgetModelObject().setPropertyValue(\"keyAccessMode\", \"1\");\n\n\t\tsectionAuthor.setVisible(b);\n\t\tsectionReader.setVisible(b);\n\n\t\t// clear and backup values?\n\t\tif (!b) {\n\t\t\t// backup\n\t\t\tgetModelObject().setPropertyValue(\"keyAddReadFieldsBackup\",\n\t\t\t\t\tgetModelObject().getPropertyValue(\"keyAddReadFields\"));\n\t\t\tgetModelObject().setPropertyValue(\"keyAddWriteFieldsBackup\",\n\t\t\t\t\tgetModelObject().getPropertyValue(\"keyAddWriteFields\"));\n\n\t\t\tgetModelObject().setPropertyValue(\"namAddReadAccessBackup\",\n\t\t\t\t\tgetModelObject().getPropertyValue(\"namAddReadAccess\"));\n\t\t\tgetModelObject().setPropertyValue(\"namAddWriteAccessBackup\",\n\t\t\t\t\tgetModelObject().getPropertyValue(\"namAddWriteAccess\"));\n\n\t\t\tgetModelObject().setPropertyValue(\"namAddReadAccess\", new Vector());\n\t\t\tgetModelObject()\n\t\t\t\t\t.setPropertyValue(\"namAddWriteAccess\", new Vector());\n\t\t\tgetModelObject().setPropertyValue(\"keyAddReadFields\", new Vector());\n\t\t\tgetModelObject()\n\t\t\t\t\t.setPropertyValue(\"keyAddWriteFields\", new Vector());\n\n\t\t} else {\n\n\t\t\t// restore values - if possible\n\t\t\tgetModelObject()\n\t\t\t\t\t.setPropertyValue(\n\t\t\t\t\t\t\t\"keyAddReadFields\",\n\t\t\t\t\t\t\tgetModelObject().getPropertyValue(\n\t\t\t\t\t\t\t\t\t\"keyAddReadFieldsBackup\"));\n\t\t\tgetModelObject().setPropertyValue(\n\t\t\t\t\t\"keyAddWriteFields\",\n\t\t\t\t\tgetModelObject()\n\t\t\t\t\t\t\t.getPropertyValue(\"keyAddWriteFieldsBackup\"));\n\n\t\t\tgetModelObject()\n\t\t\t\t\t.setPropertyValue(\n\t\t\t\t\t\t\t\"namAddReadAccess\",\n\t\t\t\t\t\t\tgetModelObject().getPropertyValue(\n\t\t\t\t\t\t\t\t\t\"namAddReadAccessBackup\"));\n\t\t\tgetModelObject().setPropertyValue(\n\t\t\t\t\t\"namAddWriteAccess\",\n\t\t\t\t\tgetModelObject()\n\t\t\t\t\t\t\t.getPropertyValue(\"namAddWriteAccessBackup\"));\n\n\t\t\t// force a full redraw of all checkboxes (I think that I hate\n\t\t\t// Eclipse SWT.....)\n\t\t\tvectorNameFields = null;\n\t\t\tupdateActors();\n\n\t\t\tthis.refresh();\n\t\t\twriteCheckbox.layout(true);\n\t\t\treadCheckbox.layout(true);\n\n\t\t\tdreck.pack(true);\n\n\t\t\tdreck.layout(true, true);\n\n\t\t\tdreck.update();\n\t\t}\n\n\t}", "public void addBucket(final S3Bucket bucket) {\n this.buckets.add(bucket);\n }", "public void putBucket(Bucket bucket, int number) throws IOException {\n // REDFLAG: remove debugging code?\n Integer index = new Integer(number);\n if (buckets.get(index) != null) {\n throw new IOException(\"You already put bucket: \" + number);\n }\n buckets.put(index, bucket);\n }", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n return setAcl_;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public boolean hasSetAcl() {\n return ((bitField0_ & 0x04000000) == 0x04000000);\n }", "public AmazonS3ObjectACL getObjectACL() {\n\t\treturn objectACL;\n\t}", "@ZAttr(id=831)\n public void setGalAccountId(String[] zimbraGalAccountId) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalAccountId, zimbraGalAccountId);\n getProvisioning().modifyAttrs(this, attrs);\n }", "boolean hasSetAcl();", "public setAcl_args setAction(TSetAclAction action) {\n this.action = action;\n return this;\n }", "void setAttribute( String attrName, Object value ) throws FileSystemException;", "private void buildACL() {\n\t\tif (accountRoles == null || accountRoles.isEmpty()) return;\n\t\tAccessControlListGenerator gen = new AccessControlListGenerator();\n\n\t\tMap<Section,Set<String>> groups = new EnumMap<>(Section.class);\n\t\tgroups.put(BROWSE_SECTION, new HashSet<String>());\n\t\tgroups.put(Section.FINANCIAL_DASHBOARD, new HashSet<String>());\n\t\tgroups.put(Section.GAP_ANALYSIS, new HashSet<String>());\n\t\tgroups.put(Section.PRODUCT_EXPLORER, new HashSet<String>());\n\t\tgroups.put(Section.INSIGHT, new HashSet<String>());\n\t\tgroups.put(Section.UPDATES_EDITION, new HashSet<String>());\n\n\t\t//back-trace the approved hierarchies and authorize all parent levels as well\n\t\tfor (PermissionVO vo : accountRoles) {\n\t\t\tString[] tok = vo.getSolrTokenTxt().split(SearchDocumentHandler.HIERARCHY_DELIMITER);\n\t\t\tStringBuilder key = new StringBuilder(50);\n\t\t\tfor (int x=0; x < tok.length; x++) {\n\t\t\t\tif (key.length() > 0) key.append(SearchDocumentHandler.HIERARCHY_DELIMITER);\n\t\t\t\tkey.append(tok[x]);\n\n\t\t\t\tString acl = key.toString();\n\t\t\t\taddAclIf(vo.isBrowseAuth(), acl, groups.get(BROWSE_SECTION));\n\t\t\t\taddAclIf(vo.isFdAuth(), acl, groups.get(Section.FINANCIAL_DASHBOARD));\n\t\t\t\taddAclIf(vo.isGaAuth(), acl, groups.get(Section.GAP_ANALYSIS));\n\t\t\t\taddAclIf(vo.isPeAuth(), acl, groups.get(Section.PRODUCT_EXPLORER));\n\t\t\t\taddAclIf(vo.isAnAuth(), acl, groups.get(Section.INSIGHT));\n\t\t\t\taddAclIf(vo.isUpdatesAuth(), acl, groups.get(Section.UPDATES_EDITION));\n\t\t\t}\n\t\t}\n\t\t\n\t\tgroups.get(BROWSE_SECTION).add(PUBLIC_ACL);\n\t\tgroups.get(Section.FINANCIAL_DASHBOARD).add(PUBLIC_ACL);\n\t\tgroups.get(Section.GAP_ANALYSIS).add(PUBLIC_ACL);\n\t\tgroups.get(Section.PRODUCT_EXPLORER).add(PUBLIC_ACL);\n\t\tgroups.get(Section.INSIGHT).add(PUBLIC_ACL);\n\t\tgroups.get(Section.UPDATES_EDITION).add(PUBLIC_ACL);\n\n\t\tauthorizedSections = new EnumMap<>(Section.class);\n\t\tfor (Map.Entry<Section, Set<String>> entry : groups.entrySet()) {\n\t\t\tSection k = entry.getKey();\n\t\t\t//System.err.println(k + \" -> \" + entry.getValue())\n\t\t\tauthorizedSections.put(k, entry.getValue().toArray(new String[entry.getValue().size()]));\n\t\t\tsetAccessControlList(k, gen.getQueryACL(null, authorizedSections.get(k)));\n\t\t}\n\t}", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public void addBucket1(String bucketName) {\n\t\tSystem.out.println(\"Bucket name inside DAO \" + bucketName);\n\t\ttry {\n\t\t\t\n\t\t\ts3client.createBucket(bucketName);\n\t\t\tSystem.out.println(\"Bucket created\");\n\t\t} catch (Exception e) {\n\t\t\tHttpServletRequest request = null;\n\t\t\tHttpServletResponse response = null;\n\t\t\t@SuppressWarnings(\"null\")\n\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"WEB-INF/views/403.jsp\");\n\t\t\ttry {\n\t\t\t\trd.forward(request, response);\n\t\t\t} catch (ServletException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public String getBucket() {\n return bucket;\n }", "public boolean hasSetAcl() {\n return ((bitField0_ & 0x04000000) == 0x04000000);\n }", "public abstract void setPermissions(PermissionIFace permissions);", "public com.amazon.s3.GetBucketAccessControlPolicyResponse getBucketAccessControlPolicy(com.amazon.s3.GetBucketAccessControlPolicy getBucketAccessControlPolicy);", "public void setBucketName(String bucketName)\n {\n this.bucketName = bucketName;\n }", "public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }", "public void createBucket() {\n\n\t\tSystem.out.println(\"Creating bucket \" + bucketName + \"\\n\");\n\n\t\ts3.createBucket(bucketName);\n\n\n\t}", "public void setAccelerator(KeyStroke accelerator) {\n putValue(ACCELERATOR_KEY, accelerator);\n }", "public Builder setS3(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }", "public void setFlag( KerberosFlag flag )\n {\n value |= 1 << flag.getOrdinal();\n setBit( flag.getOrdinal() );\n }", "@ZAttr(id=1098)\n public void setBasicAuthRealm(String zimbraBasicAuthRealm) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraBasicAuthRealm, zimbraBasicAuthRealm);\n getProvisioning().modifyAttrs(this, attrs);\n }", "default T setCalendarAccessAuthorized(boolean value) {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, value);\n }", "@ZAttr(id=548)\n public void setAuthKerberos5Realm(String zimbraAuthKerberos5Realm) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAuthKerberos5Realm, zimbraAuthKerberos5Realm);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void markAsAuthorized(OAuthAccessor accessor, String userId)\n throws OAuthException {\n \n\t\tOAuthAccessorRecord record = findByConsumerKey(accessor.consumer.consumerKey);\n \n\t\trecord.setUserName(userId);\n\t\trecord.setAuthorized(Boolean.TRUE);\n\t\tem.persist(record);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public Builder setIsAmazon(boolean value) {\n bitField0_ |= 0x00000004;\n isAmazon_ = value;\n onChanged();\n return this;\n }", "@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }", "public void setFlag( KerberosFlag flag )\n {\n int pos = MAX_SIZE - 1 - flag.getOrdinal();\n value |= 1 << pos;\n }", "public Builder mergeSetAcl(alluxio.proto.journal.File.SetAclEntry value) {\n if (setAclBuilder_ == null) {\n if (((bitField0_ & 0x04000000) == 0x04000000) &&\n setAcl_ != alluxio.proto.journal.File.SetAclEntry.getDefaultInstance()) {\n setAcl_ =\n alluxio.proto.journal.File.SetAclEntry.newBuilder(setAcl_).mergeFrom(value).buildPartial();\n } else {\n setAcl_ = value;\n }\n onChanged();\n } else {\n setAclBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x04000000;\n return this;\n }", "public void setPermission(com.tangosol.net.ClusterPermission permission)\n {\n __m_Permission = permission;\n }", "public void setAcr(String acr) {\n this.acr = acr;\n }", "public static void grantAccess(String folder) throws Exception\r\n {\r\n String drive = \"\";\r\n for(int i=0;i<folder.length();i++)\r\n {\r\n if(folder.charAt(i)=='\\\\')\r\n {\r\n drive = folder.substring(0, i);\r\n break;\r\n }\r\n }\r\n String directory = \"\";\r\n String fileName = \"\";\r\n for(int i=folder.length()-1;i>=0;i--)\r\n {\r\n if(folder.charAt(i)=='\\\\')\r\n {\r\n fileName = folder.substring(i+1);\r\n directory = folder.substring(0,i);\r\n break;\r\n }\r\n }\r\n String user = fetchUserName();\r\n Runtime r = Runtime.getRuntime();\r\n\tr.exec(\"cmd /c start cmd.exe /K \\\"\"+drive+\"&&cd \"+directory+\"&&icacls \\\"\"+fileName+\"\\\" /grant \"+user+\":R&&exit\\\"\");\r\n r.exec(\"cmd /c start cmd.exe /K \\\"\"+drive+\"&&cd \"+directory+\"&&icacls \\\"\"+fileName+\"\\\" /grant \"+user+\":W&&exit\\\"\");\r\n }", "public ResponseEntity<?> accessControl(APIAccessControl accessControl, Principal principal) throws JSONException;", "public synchronized void setRole(final Role newValue) {\n checkWritePermission();\n role = newValue;\n }", "@Override\n\tpublic void setAccessible(int accessible) {\n\t\t_userSync.setAccessible(accessible);\n\t}", "@ZAttr(id=659)\n public Map<String,Object> setACE(String[] zimbraACE, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraACE, zimbraACE);\n return attrs;\n }", "public String getBucket();", "public void setCacheControl(String cacheControl)\r\n/* 152: */ {\r\n/* 153:228 */ set(\"Cache-Control\", cacheControl);\r\n/* 154: */ }", "@ZAttr(id=659)\n public void addACE(String zimbraACE) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"+\" + Provisioning.A_zimbraACE, zimbraACE);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setCriarBAK(boolean pCriarBAK) throws ACBrException {\n int ret = ACBrAACInterop.INSTANCE.AAC_SetCriarBAK(getHandle(), pCriarBAK);\n checkResult(ret);\n }", "public Builder setAuthAccountFlags(int value) {\n bitField0_ |= 0x00000200;\n authAccountFlags_ = value;\n onChanged();\n return this;\n }", "private static void setPermission(Path path) throws JulongChainException {\n if(System.getProperty(SYSTEM_PROP_OS).contains(SYSTEM_PROP_VALUE_WINDOWS)) {\n return;\n }\n\n Set<PosixFilePermission> filePermissions = new HashSet<>();\n filePermissions.add(PosixFilePermission.OWNER_READ);\n filePermissions.add(PosixFilePermission.OWNER_WRITE);\n filePermissions.add(PosixFilePermission.OWNER_EXECUTE);\n filePermissions.add(PosixFilePermission.GROUP_READ);\n filePermissions.add(PosixFilePermission.GROUP_EXECUTE);\n filePermissions.add(PosixFilePermission.OTHERS_READ);\n filePermissions.add(PosixFilePermission.OTHERS_EXECUTE);\n try {\n Files.setPosixFilePermissions(path, filePermissions);\n } catch (IOException e) {\n throw new JulongChainException(\"set directory\" + path + \" permission failed \" + e.getMessage());\n }\n }", "public void setAxisAlignedBoundingBox(@EntityInstance int i, @NonNull Box aabb) {\n nSetAxisAlignedBoundingBox(mNativeObject, i,\n aabb.getCenter()[0], aabb.getCenter()[1], aabb.getCenter()[2],\n aabb.getHalfExtent()[0], aabb.getHalfExtent()[1], aabb.getHalfExtent()[2]);\n }", "public void setReadLatestOfTable()\n {\n \t m_acl = \tm_acl | (1<<5);\n }", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "void setRole(final SecurityRole role);", "public void setS3ObjectDao(S3ObjectDao s3ObjectDao) {\n\t\t\r\n\t}", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public void setAuthority (\r\n String strAuthority) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void createIndividualAcl(Individual i);", "public void deleteBucket(Bucket bucket) throws IOException {\n\t\t\r\n\t}", "public void setAmazonConfig(final BaseStore item, final AmazonConfig value)\n\t{\n\t\tsetAmazonConfig( getSession().getSessionContext(), item, value );\n\t}", "private void changeAccess(final BoxSharedLink.Access access){\n if (access == null){\n // Should not be possible to get here.\n Toast.makeText(this, \"No access chosen\", Toast.LENGTH_LONG).show();\n return;\n }\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setAccess(access));\n }" ]
[ "0.6874202", "0.65140617", "0.56845987", "0.56455517", "0.5528306", "0.5489247", "0.5394145", "0.53904635", "0.53737396", "0.53408384", "0.53156215", "0.52874583", "0.52584064", "0.5258347", "0.52279544", "0.51609373", "0.51569635", "0.50802404", "0.5038059", "0.5034807", "0.50278336", "0.501717", "0.49698052", "0.4940094", "0.49384472", "0.49195278", "0.4889495", "0.4864481", "0.48493534", "0.4828445", "0.4820717", "0.4809962", "0.47987667", "0.4797495", "0.47942287", "0.47669688", "0.47442985", "0.47420502", "0.47027487", "0.47013342", "0.46968716", "0.4692586", "0.46912637", "0.46502805", "0.46337608", "0.4610942", "0.4610531", "0.45892116", "0.45645118", "0.4561761", "0.45543906", "0.45512715", "0.45460472", "0.45430303", "0.453638", "0.45287648", "0.44960022", "0.44403192", "0.44200116", "0.44080383", "0.43993634", "0.43924543", "0.43827862", "0.4355561", "0.43544963", "0.43541452", "0.43362853", "0.43332896", "0.43260136", "0.43167704", "0.43061832", "0.43013474", "0.42998186", "0.42994308", "0.42951706", "0.4294378", "0.42893615", "0.42753676", "0.42695865", "0.42603412", "0.42599836", "0.42516556", "0.42273927", "0.42206168", "0.42160097", "0.42110837", "0.42074388", "0.42026758", "0.42023835", "0.41974998", "0.41952583", "0.41751242", "0.41667435", "0.41658542", "0.41636267", "0.4147253", "0.4132453", "0.41319177", "0.40996656", "0.4098729" ]
0.6820774
1
Obtain the bucket storage class.
@Deprecated public String getStorageClass() { return this.storageClass != null ? this.storageClass.getCode() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StorageClassEnum getBucketStorageClass()\n {\n return storageClass;\n }", "public static Class getStorageClass()\r\n {\r\n return String.class;\r\n }", "public void setBucketStorageClass(StorageClassEnum storageClass)\n {\n this.storageClass = storageClass;\n }", "public String getBucket();", "public native int getStorageClass() throws MagickException;", "@java.lang.Override\n public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n }\n }", "public String getBucket() {\n return bucket;\n }", "public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "B getBucket();", "OStorage getStorage();", "@java.lang.Override\n public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Storage getStorage() {\n return this.storage;\n }", "@NonNull\n public StorageReference getStorage() {\n return getTask().getStorage();\n }", "public void nonDefaultBucket() {\n FirebaseStorage storage = FirebaseStorage.getInstance(\"gs://my-custom-bucket\");\n // [END storage_non_default_bucket]\n }", "public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBucketName(){\n return bucketName;\n }", "public com.hps.july.persistence.StoragePlaceAccessBean getStorage() {\n\treturn storage;\n}", "public AccountStorage getStore() {\n\t\t@SuppressWarnings(\"resource\")\n\t\tApplicationContext springContext = new AnnotationConfigApplicationContext(AccountServerConfig.class);\n return (AccountStorage) springContext.getBean(\"getStorage\");\n\t}", "public short getStorageType() {\n\treturn storageType;\n }", "String getStorageVendor();", "public interface StorageService {\n\n /**\n * List all the {@link Bucket}s in a given {@link com.google.openbidder.ui.entity.Project}.\n */\n List<Bucket> listAllBuckets(ProjectUser projectUser);\n\n /**\n * List all the objects in a given {@link Bucket}.\n */\n BucketContents listAllObjectsInBucket(ProjectUser projectUser, String bucketName);\n\n /**\n * List all objects in a given {@link Bucket} with a prefix.\n */\n BucketContents listAllObjectsInBucket(\n ProjectUser projectUser,\n String bucketName,\n String objectPrefix);\n\n /**\n * Remove the specified object.\n */\n void deleteObject(ProjectUser projectUser, String bucketName, String objectName);\n}", "ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;", "public String getBucketName()\n {\n return bucketName;\n }", "@NonnullAfterInit public StorageSerializer getStorageSerializer() {\n return storageSerializer;\n }", "StorageEntity getStorageById(Integer id);", "@Nullable\n BigInteger getStorageGb();", "public StorageAccount storageAccount() {\n return this.storageAccount;\n }", "public StorageAccount storageAccount() {\n return this.storageAccount;\n }", "public StorageUnit beStorageUnit();", "public String storageAccount() {\n return this.storageAccount;\n }", "public interface Bucket {\n String getUid();\n\n String getName();\n\n Uri getImageUri();\n\n List<Selection> getSelections();\n\n void addSelection(Selection s);\n\n void removeSelection(Selection s);\n}", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "public final StorageType mo102949f() {\n return StorageType.CACHE;\n }", "@JsonIgnore\n @Description(\"The GcsUtil instance that should be used to communicate with Google Cloud Storage.\")\n @Default.InstanceFactory(GcsUtil.GcsUtilFactory.class)\n @Hidden\n GcsUtil getGcsUtil();", "java.lang.String getArtifactStorage();", "BlobStore getBlobStore();", "public HashMap<String, T> getStorage();", "com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions();", "public abstract int getBucketID();", "@Deprecated\n public void setStorageClass(String storageClass)\n {\n this.storageClass = StorageClassEnum.getValueFromCode(storageClass);\n }", "LockStorage getLockStorage();", "com.google.protobuf.ByteString getArtifactStorageBytes();", "public String getStorageRegion() {\n return this.StorageRegion;\n }", "@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageKeyLookupStrategy() {\n return storageKeyLookupStrategy;\n }", "private int determineStorageType(StoragePlaceAccessBean argStoragePlace) {\n\n\tint storageType = STORAGETYPES.EMPTY;\n\tint storagecode = 0;\n\t\n\tif (argStoragePlace != null) {\n\t\ttry {\n\t\t\tstoragecode = argStoragePlace.getStorageplace();\n\t\t\tif (argStoragePlace.getEJBRef() instanceof Storage)\n\t\t\t\tstorageType = STORAGETYPES.STORAGE;\n\t\t\telse if (argStoragePlace.getEJBRef() instanceof EquipmentSet)\n\t\t\t\tstorageType = STORAGETYPES.POSITION;\n\t\t\telse if (argStoragePlace.getEJBRef() instanceof Expedition)\n\t\t\t\tstorageType = STORAGETYPES.EXPEDITOR;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"PLATINUM-SYNC: cannot determine storage type\");\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\t}\n\t\n\tlogIt(\"Determine storage type, storageplace=\" + storagecode + \", type=\" + storageType);\n\treturn storageType;\n}", "public Storage() {\n\n }", "public static Class get_CLASS()\n {\n return WrapperMap.KeySet.class;\n }", "interface Storage {\n String getStorageSize() ;\n}", "String getClazz();", "public TFileStorageType getFileStorageType() {\n\n\t\treturn fileStorageType;\n\t}", "@Nullable public String getStorageKey() {\n return storageKey;\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "public static StorageReference getFirebaseStorage() {\n if (referenciaStorage == null) {\n referenciaStorage = FirebaseStorage.getInstance().getReference();\n }\n\n return referenciaStorage;\n }", "public StorageLocation getStorageLocation() {\n return this.storageLocation;\n }", "public Class<? super U> getBaseClass() {\n return keyRing.getType();\n }", "public Integer supportedStorageGb() {\n return this.supportedStorageGb;\n }", "int getItemStorage();", "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/Security\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "public String getStoragePath() {\n return this.storagePath;\n }", "public <T extends SecretsStorage> T getSecretsStorage(Class<T> implementation, WithSecrets config) {\n\n return null;\n }", "public int getStorageplace() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"storageplace\")).intValue());\n }", "@Override\n @Path(\"/storages/{sid}\")\n public IStorageResource findStorage(@PathParam(\"sid\") int storageId) {\n return new StorageResource(provider.getProviderId(), cluster.getClusterId(), storageId);\n }", "StorageResourceUsage getStorageResourceUsage(String resourceName);", "public interface Storage {\n\n String getId();\n}", "public interface DistributeStorage<T> {\n public void store(String path, T t, boolean create) throws StorageException;\n\n public T get(String path, Class<T> tClass) throws StorageException;\n\n public void del(String path) throws StorageException;\n\n public boolean exist(String path) throws StorageException;\n}", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public Long getStorageBlock() {\n return this.StorageBlock;\n }", "public DefaultStorage() {\n }", "public long getStorage() {\n\t\t// List<Storage> listSim = new ArrayList<Storage>();\n\t\t//\n\t\t// Storage storage;\n\t\t//\n\t\t// for (int i = 0; i < 3; i++) {\n\t\t// storage = new Storage();\n\t\t//\n\t\t// storage.setDeviceName(\"/dev/sda1\");\n\t\t// storage.setFreeSpaceKB(3 * 100 * 12 * 5 * i);\n\t\t// storage.setTotalSizeKB(288237920);\n\t\t// storage.setMountPoint(\"/\");\n\t\t// storage.setOsSpecificFSType(\"ext4\");\n\t\t//\n\t\t// listSim.add(storage);\n\t\t// }\n\t\t// return listSim;\n\n\t\treturn new Random().nextInt(19700621);\n\t}", "public long getBucketID(){\n return localBucketID;\n }", "public String getBucketName() {\n\treturn _bucketName;\n }", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "public String getClazz();", "@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageContextLookupStrategy() {\n return storageContextLookupStrategy;\n }", "com.google.protobuf.ByteString\n getClass_Bytes();", "com.google.protobuf.ByteString\n getClass_Bytes();", "public interface StorageModel {\n}", "Object getClass_();", "Object getClass_();", "public UserStorage getUserStorage() {\n return UserStorage.getInstance();\n }", "@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}", "public Class<?> getFileClass()\r\n {\r\n return sFileClass;\r\n }", "public interface IStorageManager {\n\n\tpublic String getStorageType();\n\n\tpublic String getStorageId();\n\n\tpublic void initialize(String configFile) throws Exception;\n}", "public ArtifactStorage getArtifactStorage() {\n if(artifactStorageMap.firstEntry() != null) {\n return artifactStorageMap.firstEntry().getValue();\n }\n return null;\n }", "public interface SCStorage\r\n{\r\n\t/**\r\n\t * The server will register a driver before making any method calls\r\n\t *\r\n\t * @param driver the driver\r\n\t */\r\n\tpublic void setStorageServerDriver(SCStorageServerDriver driver);\r\n\r\n\t/**\r\n\t * Open the storage at the given path\r\n\t *\r\n\t * @param path path to the storage\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void\topen(File path) throws IOException;\r\n\r\n\t/**\r\n\t * Return the object associated with the given key\r\n\t *\r\n\t * @param key the key\r\n\t * @return the object or null if not found\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic SCDataSpec get(String key) throws IOException;\r\n\r\n\t/**\r\n\t * Add an object to the storage\r\n\t *\r\n\t * @param key key\r\n\t * @param data object\r\n\t * @param groups associated groups or null\r\n\t */\r\n\tpublic void put(String key, SCDataSpec data, SCGroupSpec groups);\r\n\r\n\t/**\r\n\t * Close the storage. The storage instance will be unusable afterwards.\r\n\t *\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void close() throws IOException;\r\n\r\n\t/**\r\n\t * Return the keys that match the given regular expression\r\n\t *\r\n\t * @param regex expression\r\n\t * @return matching keys\r\n\t */\r\n\tpublic Set<String> regexFindKeys(String regex);\r\n\r\n\t/**\r\n\t * Remove the given object\r\n\t *\r\n\t * @param key key of the object\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void remove(String key) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method deletes all objects\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to delete\r\n\t * @return list of keys deleted.\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> removeGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method lists all keys\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to list\r\n\t * @return list of keys\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> listGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * Returns storage statistics\r\n\t *\r\n\t * @param verbose if true, verbose stats are returned\r\n\t * @return list of stats\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> dumpStats(boolean verbose) throws IOException;\r\n\r\n\t/**\r\n\t * Write a tab delimited file with information about the key index\r\n\t *\r\n\t * @param f the file to write to\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void writeKeyData(File f) throws IOException;\r\n}", "@Override\n public Blob getBlob(String bucketName, String objectPath) {\n Blob result = storageProvider.get().get(bucketName, objectPath);\n if (result == null) {\n throw new NotFoundException(String.format(\"Bucket %s, Object %s\", bucketName, objectPath));\n }\n return result;\n }", "public JStorage storage() {\n return new JStorage(TH.THTensor_(storage)(this));\n }", "public static Class get_CLASS()\n {\n return WrapperMap.KeySet.Iterator.class;\n }", "@Nullable public String getStorageContext() {\n return storageContext;\n }", "public Class getBaseClass();", "public abstract Class<BE> getBukkitEntityType();", "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/Security$RefAction\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "public StorageConfiguration() {\n }", "public String getCacheClassName() {\n return cacheClassName;\n }", "public java.util.Enumeration getStorages() {\n\ttry {\n\t\tStorageAccessBean bean = new StorageAccessBean();\n\t\treturn bean.findAllOrderByNameAsc();\n\t} catch(Exception e) {\n\t\treturn (new java.util.Vector()).elements();\n\t}\n}", "public Class<?> getStorePreparationClass() throws IOException {\n return null;\n }", "private StorageFacade() {\n }", "public com.hps.july.persistence.StoragePlaceKey getStoragePlaceKey() {\n\tcom.hps.july.persistence.StoragePlaceKey temp = null;\n\ttemp = new com.hps.july.persistence.StoragePlaceKey();\n\tboolean storagePlace_NULLTEST = true;\n\tstoragePlace_NULLTEST &= (storagePlace_storageplace == null);\n\ttemp.storageplace = ((storagePlace_storageplace == null) ? 0 : storagePlace_storageplace.intValue());\n\tif (storagePlace_NULLTEST) temp = null;\n\treturn temp;\n}" ]
[ "0.824248", "0.7399659", "0.6794507", "0.6458119", "0.64327514", "0.6364005", "0.6240354", "0.6233778", "0.61072516", "0.6022311", "0.5927105", "0.5910502", "0.5895567", "0.5807655", "0.577111", "0.5758026", "0.5750024", "0.5740814", "0.5711543", "0.5675495", "0.5593511", "0.5593437", "0.5590814", "0.55784863", "0.5549464", "0.55471766", "0.5531316", "0.5531316", "0.55275637", "0.5498919", "0.54723233", "0.54684263", "0.54684263", "0.54683167", "0.5462934", "0.5457029", "0.54497", "0.5426965", "0.5426913", "0.5425228", "0.541795", "0.5413161", "0.5363102", "0.5358328", "0.5355617", "0.53533596", "0.53346205", "0.5328585", "0.5326145", "0.53023165", "0.5299309", "0.5292441", "0.5260585", "0.5260585", "0.5249397", "0.52287483", "0.52224654", "0.52162606", "0.5208638", "0.51998836", "0.51991445", "0.5198878", "0.51873404", "0.5184159", "0.51797116", "0.5177643", "0.51726955", "0.5159847", "0.5153787", "0.51502085", "0.51491356", "0.5144785", "0.51437193", "0.51364887", "0.51338667", "0.5130017", "0.50902003", "0.50902003", "0.50828296", "0.5079538", "0.5079538", "0.50791425", "0.5078223", "0.50718075", "0.50709116", "0.50638664", "0.5062756", "0.5056013", "0.5046971", "0.5040824", "0.50387895", "0.5028657", "0.50206465", "0.50129026", "0.501096", "0.5007615", "0.50022036", "0.5000672", "0.49942023", "0.4991915" ]
0.7231104
2
Set the bucket storage class.
@Deprecated public void setStorageClass(String storageClass) { this.storageClass = StorageClassEnum.getValueFromCode(storageClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBucketStorageClass(StorageClassEnum storageClass)\n {\n this.storageClass = storageClass;\n }", "public StorageClassEnum getBucketStorageClass()\n {\n return storageClass;\n }", "public static Class getStorageClass()\r\n {\r\n return String.class;\r\n }", "@Override\n\tpublic void setStorage() {\n\t\tcom.setStorage(\"256g SSD\");\n\t}", "public void setClass_(String newValue);", "@Deprecated\n public String getStorageClass()\n {\n return this.storageClass != null ? this.storageClass.getCode() : null;\n }", "public void setStorage(com.hps.july.persistence.StoragePlaceAccessBean newStorage) {\n\tstorage = newStorage;\n}", "void setClassType(String classType);", "public void setClazz(String clazz);", "public void setStorage(Storage storage) {\n this.storage = storage;\n }", "public void setStorageType(short type) {\n\tstorageType = type;\n }", "public void setStorageServerDriver(SCStorageServerDriver driver);", "public void setBucket(String inBucket);", "public void nonDefaultBucket() {\n FirebaseStorage storage = FirebaseStorage.getInstance(\"gs://my-custom-bucket\");\n // [END storage_non_default_bucket]\n }", "public Builder setGcsBucket(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public void setStorage(String storage) {\n if (storage == null || storage.equals(\"\") || storage.equals(\" \")) {\n throw new IllegalArgumentException(\"storage must be provided\");\n }\n this.storage = storage;\n }", "public void setCls(String cls) {\n\t\tthis.cls = cls;\n\t\thandleConfig(\"cls\", cls);\n\t}", "public void setClazzName(String clazz);", "@Override\n public void storeClass(final JavaClass clazz) {\n loadedClasses.put(clazz.getClassName(), new SoftReference<>(clazz));\n clazz.setRepository(this);\n }", "void setStorage(@NonNull Storage storage) {\n setValue(0, verifyNotNull(storage));\n }", "public void setStorageRegion(String StorageRegion) {\n this.StorageRegion = StorageRegion;\n }", "public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setStorageLocation(String storageLocation) {\n this.storageLocation = storageLocation;\n }", "public void setFileClass(Class<?> fileClass)\r\n {\r\n sFileClass = fileClass;\r\n }", "@ZAttr(id=1112)\n public void setGalLdapGroupHandlerClass(String zimbraGalLdapGroupHandlerClass) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalLdapGroupHandlerClass, zimbraGalLdapGroupHandlerClass);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setStorageLocation(StorageLocation storageLocation) {\n this.storageLocation = storageLocation;\n }", "@java.lang.Deprecated\n public A withNewStorageClassName(java.lang.String original);", "public Builder setS3(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }", "public void setStorageplace( int newValue ) {\n __setCache(\"storageplace\", new Integer(newValue));\n }", "public Storage() {\n\n }", "CreateS3VolumeRequestBuilder setBucket(String bucket);", "public void storeBucket(Bucket bucket) throws S3Exception {\n\t\t\r\n\t}", "public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }", "protected void setStorage(IStorage aStorage)\n\t{\n\n\t\tthis.storage = aStorage;\n\t}", "public StorageConfig() {\n }", "public static void set_ClassStereotype(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaClassStereotypeCmd, s, v);\n UmlCom.check();\n \n UmlStereotype st = (UmlStereotype) UmlSettings._map_class_stereotypes.get(s);\n \n if (st == null)\n st = UmlSettings.add_class_stereotype(s);\n st.java = v;\n }", "public native int getStorageClass() throws MagickException;", "public short getStorageType() {\n\treturn storageType;\n }", "public StorageConfiguration() {\n }", "public void setStorageSerializer(@Nonnull final StorageSerializer serializer) {\n ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);\n\n storageSerializer = Constraint.isNotNull(serializer, \"Storage serializer cannot be null\");\n }", "public String getBucket() {\n return bucket;\n }", "public void setBaseClass(Class<?> baseClass)\n {\n this.baseClass = baseClass;\n }", "public void setTenantStorageRole(String tenantStorageRole) {\n this.tenantStorageRole = tenantStorageRole;\n }", "public DefaultStorage() {\n }", "protected void setJavaClass(Class type) {\n this._class = type;\n }", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "public Storage(String s){\n this.path=s;\n }", "BucketName(String bucketName) {\n this.bucketName = bucketName;\n }", "@Override\n\tpublic void setStorageSpace(int amount) {\n\t\tif(network==null)return;\n\t\tnetwork.setBytesLimit(gibibytesToBytes(amount));\n\t\tNetwork.log(\"Set new storage amount\");\n\t}", "public void setStorageCard(java.lang.Integer newStorageCard)\n\t\tthrows java.rmi.RemoteException;", "public void setBaseClass(java.lang.String new_baseClass) {\n\t\t_baseClass = new_baseClass;\n\t}", "public void setStorageplace(int newStorageplace) {\n\tstorageplace = newStorageplace;\n}", "public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "public String getBucket();", "public void setStorageBlock(Long StorageBlock) {\n this.StorageBlock = StorageBlock;\n }", "public com.amazon.s3.SetBucketLoggingStatusResponse setBucketLoggingStatus(com.amazon.s3.SetBucketLoggingStatus setBucketLoggingStatus);", "public interface StorageService {\n\n /**\n * List all the {@link Bucket}s in a given {@link com.google.openbidder.ui.entity.Project}.\n */\n List<Bucket> listAllBuckets(ProjectUser projectUser);\n\n /**\n * List all the objects in a given {@link Bucket}.\n */\n BucketContents listAllObjectsInBucket(ProjectUser projectUser, String bucketName);\n\n /**\n * List all objects in a given {@link Bucket} with a prefix.\n */\n BucketContents listAllObjectsInBucket(\n ProjectUser projectUser,\n String bucketName,\n String objectPrefix);\n\n /**\n * Remove the specified object.\n */\n void deleteObject(ProjectUser projectUser, String bucketName, String objectName);\n}", "public static void setStorage(Storage storage) {\n Parser.storage = storage;\n }", "private StorageSystemConfiguration() {\r\n super(IStorageSystemConfiguration.TYPE_ID);\r\n }", "public void setTFileStorageType(TFileStorageType type) {\n\n\t\tthis.fileStorageType = type;\n\t}", "final public void setStyleClass(String styleClass)\n {\n setProperty(STYLE_CLASS_KEY, (styleClass));\n }", "public void setDataType(Class newclass) {\n datatype=newclass;\n }", "protected abstract void updateStorage(MasterMetaStorage storage) throws JSONException;", "@ZAttr(id=1112)\n public Map<String,Object> setGalLdapGroupHandlerClass(String zimbraGalLdapGroupHandlerClass, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalLdapGroupHandlerClass, zimbraGalLdapGroupHandlerClass);\n return attrs;\n }", "public void setStorageSize(Integer storageSize) {\n\t this.storageSize = storageSize;\n\t}", "@Override\r\n\t\tpublic void setClassName(String className)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setClassName(String className) { this.className=className; }", "@Override\n\tpublic void setClassValue(final String value) {\n\n\t}", "public void setSignatureClass(String signatureClass) {\n\t\tthis.signatureClass = signatureClass;\n\t}", "public void setJavaClass(java.lang.String javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.setStringValue(javaClass);\r\n }\r\n }", "public void setDataClass(Class<?> clazz) {\n\t\t\n\t}", "public Storage getStorage() {\n return this.storage;\n }", "@NonnullAfterInit public StorageSerializer getStorageSerializer() {\n return storageSerializer;\n }", "public Builder setS3Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }", "public void setElementClass(Class newValue) {\r\n\t\tthis.elementClass = newValue;\r\n\t}", "public Builder setItemStorage(int value) {\n bitField0_ |= 0x00000040;\n itemStorage_ = value;\n onChanged();\n return this;\n }", "public void setExtClass(Class clas){\n\t\t\n\t\tthis.clas = clas;\n\t}", "public Storage() {\n this(null, DEFAULT_MAX, DEFAULT_MAX_SIZE);\n }", "@java.lang.Override\n public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n }\n }", "public interface Bucket {\n String getUid();\n\n String getName();\n\n Uri getImageUri();\n\n List<Selection> getSelections();\n\n void addSelection(Selection s);\n\n void removeSelection(Selection s);\n}", "public void setClassType(String classType) {\n\t\t\t\n\t\t\tfor(E_ClassType c : E_ClassType.values())\n\t\t\t{\n\t\t\t\tif(c.toString().equals(classType))\n\t\t\t\t{\n\t\t\t\t\tthis.classType = E_ClassType.valueOf(classType);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.classType = E_ClassType.Tourists;\n\t\t\t\n\t\t}", "public void setClazz(short value) {\n this.clazz = value;\n }", "@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}", "public void setClassType(String classType) {\n this.classType = classType == null ? null : classType.trim();\n }", "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3.SetBucketAccessControlPolicy setBucketAccessControlPolicy);", "public void setInternalClass(final String path, final Class<? extends DBObject> aClass) {\n setObjectFactory(objectFactory.update(aClass, asList(path.split(\"\\\\.\"))));\n }", "void setPermStorage(Map<String, Object> storage);", "B getBucket();", "public String getBucketName(){\n return bucketName;\n }", "public void setQclass(float value) {\n this.qclass = value;\n }", "public void setObjectClass(String objectClass) {\n this.objectClass = objectClass;\n }", "public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }", "void setClassOfService(ClassOfService serviceClass);", "public interface BlockStorageManagementController extends StorageController {\n\n /**\n * Add Storage system to SMIS Provider\n * \n * @param storage : URI of the storage system to add to the providers\n * @param providers : array of URIs where this system must be added\n * @param primaryProvider : indicate if the first provider in the list must\n * be treated as the active provider\n * @throws InternalException\n */\n public void addStorageSystem(URI storage, URI[] providers, boolean primaryProvider, String opId) throws InternalException;\n\n /**\n * Validate storage provider connection.\n * \n * @param ipAddress the ip address\n * @param portNumber the port number\n * @param interfaceType\n * @return true, if successful\n */\n public boolean validateStorageProviderConnection(String ipAddress, Integer portNumber, String interfaceType);\n}", "public void setStyleClass(String styleClass) {\r\n this.styleClass = styleClass;\r\n }", "public StorageUnit beStorageUnit();", "public interface IStorageManager {\n\n\tpublic String getStorageType();\n\n\tpublic String getStorageId();\n\n\tpublic void initialize(String configFile) throws Exception;\n}", "public AccountStorage() {\n accounts = new ConcurrentHashMap<>();\n minerMap = new ConcurrentHashMap<>();\n blockMap = new ConcurrentHashMap<>();\n initAccounts();\n logger.info(\"AccountStorage: New AccountStorage created.\");\n }" ]
[ "0.8260221", "0.7512187", "0.6093175", "0.60152304", "0.6014193", "0.5979317", "0.5916658", "0.5840899", "0.57609564", "0.57234615", "0.5705796", "0.5643788", "0.5583061", "0.55777115", "0.5466073", "0.5364792", "0.534045", "0.53179103", "0.5268656", "0.5247423", "0.5244965", "0.52203417", "0.5218749", "0.5208784", "0.52040195", "0.5188081", "0.51490676", "0.5148252", "0.5136744", "0.51074755", "0.5086243", "0.50838155", "0.506171", "0.505843", "0.50469434", "0.50237334", "0.5020683", "0.49997973", "0.49936312", "0.49934086", "0.49846196", "0.49658567", "0.49523196", "0.4951864", "0.49508294", "0.4941355", "0.4927477", "0.4907609", "0.48984477", "0.48929918", "0.48920426", "0.48844934", "0.4872766", "0.48661554", "0.48607314", "0.4850943", "0.48474067", "0.482677", "0.48198587", "0.48146978", "0.48115346", "0.48048094", "0.4793181", "0.47919375", "0.4782629", "0.47795865", "0.4775815", "0.47740564", "0.4773685", "0.47698337", "0.47517714", "0.47495112", "0.47318235", "0.4728967", "0.47247878", "0.4723144", "0.47123858", "0.4709864", "0.4708008", "0.47030488", "0.47029927", "0.46945396", "0.46910173", "0.4682768", "0.46710548", "0.4664494", "0.4662901", "0.46569052", "0.4639856", "0.4633081", "0.46251827", "0.46219593", "0.46213037", "0.46137336", "0.46080083", "0.45991305", "0.45982945", "0.45981747", "0.4590697", "0.45848116" ]
0.71736586
2
Obtain the bucket storage class.
public StorageClassEnum getBucketStorageClass() { return storageClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Class getStorageClass()\r\n {\r\n return String.class;\r\n }", "@Deprecated\n public String getStorageClass()\n {\n return this.storageClass != null ? this.storageClass.getCode() : null;\n }", "public void setBucketStorageClass(StorageClassEnum storageClass)\n {\n this.storageClass = storageClass;\n }", "public String getBucket();", "public native int getStorageClass() throws MagickException;", "@java.lang.Override\n public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n }\n }", "public String getBucket() {\n return bucket;\n }", "public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "B getBucket();", "OStorage getStorage();", "@java.lang.Override\n public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Storage getStorage() {\n return this.storage;\n }", "@NonNull\n public StorageReference getStorage() {\n return getTask().getStorage();\n }", "public void nonDefaultBucket() {\n FirebaseStorage storage = FirebaseStorage.getInstance(\"gs://my-custom-bucket\");\n // [END storage_non_default_bucket]\n }", "public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBucketName(){\n return bucketName;\n }", "public com.hps.july.persistence.StoragePlaceAccessBean getStorage() {\n\treturn storage;\n}", "public AccountStorage getStore() {\n\t\t@SuppressWarnings(\"resource\")\n\t\tApplicationContext springContext = new AnnotationConfigApplicationContext(AccountServerConfig.class);\n return (AccountStorage) springContext.getBean(\"getStorage\");\n\t}", "public short getStorageType() {\n\treturn storageType;\n }", "String getStorageVendor();", "ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;", "public interface StorageService {\n\n /**\n * List all the {@link Bucket}s in a given {@link com.google.openbidder.ui.entity.Project}.\n */\n List<Bucket> listAllBuckets(ProjectUser projectUser);\n\n /**\n * List all the objects in a given {@link Bucket}.\n */\n BucketContents listAllObjectsInBucket(ProjectUser projectUser, String bucketName);\n\n /**\n * List all objects in a given {@link Bucket} with a prefix.\n */\n BucketContents listAllObjectsInBucket(\n ProjectUser projectUser,\n String bucketName,\n String objectPrefix);\n\n /**\n * Remove the specified object.\n */\n void deleteObject(ProjectUser projectUser, String bucketName, String objectName);\n}", "public String getBucketName()\n {\n return bucketName;\n }", "@NonnullAfterInit public StorageSerializer getStorageSerializer() {\n return storageSerializer;\n }", "StorageEntity getStorageById(Integer id);", "@Nullable\n BigInteger getStorageGb();", "public StorageAccount storageAccount() {\n return this.storageAccount;\n }", "public StorageAccount storageAccount() {\n return this.storageAccount;\n }", "public StorageUnit beStorageUnit();", "public String storageAccount() {\n return this.storageAccount;\n }", "public interface Bucket {\n String getUid();\n\n String getName();\n\n Uri getImageUri();\n\n List<Selection> getSelections();\n\n void addSelection(Selection s);\n\n void removeSelection(Selection s);\n}", "public final StorageType mo102949f() {\n return StorageType.CACHE;\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "@JsonIgnore\n @Description(\"The GcsUtil instance that should be used to communicate with Google Cloud Storage.\")\n @Default.InstanceFactory(GcsUtil.GcsUtilFactory.class)\n @Hidden\n GcsUtil getGcsUtil();", "java.lang.String getArtifactStorage();", "BlobStore getBlobStore();", "public HashMap<String, T> getStorage();", "com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions();", "public abstract int getBucketID();", "@Deprecated\n public void setStorageClass(String storageClass)\n {\n this.storageClass = StorageClassEnum.getValueFromCode(storageClass);\n }", "LockStorage getLockStorage();", "com.google.protobuf.ByteString getArtifactStorageBytes();", "public String getStorageRegion() {\n return this.StorageRegion;\n }", "@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageKeyLookupStrategy() {\n return storageKeyLookupStrategy;\n }", "private int determineStorageType(StoragePlaceAccessBean argStoragePlace) {\n\n\tint storageType = STORAGETYPES.EMPTY;\n\tint storagecode = 0;\n\t\n\tif (argStoragePlace != null) {\n\t\ttry {\n\t\t\tstoragecode = argStoragePlace.getStorageplace();\n\t\t\tif (argStoragePlace.getEJBRef() instanceof Storage)\n\t\t\t\tstorageType = STORAGETYPES.STORAGE;\n\t\t\telse if (argStoragePlace.getEJBRef() instanceof EquipmentSet)\n\t\t\t\tstorageType = STORAGETYPES.POSITION;\n\t\t\telse if (argStoragePlace.getEJBRef() instanceof Expedition)\n\t\t\t\tstorageType = STORAGETYPES.EXPEDITOR;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"PLATINUM-SYNC: cannot determine storage type\");\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\t}\n\t\n\tlogIt(\"Determine storage type, storageplace=\" + storagecode + \", type=\" + storageType);\n\treturn storageType;\n}", "public Storage() {\n\n }", "public static Class get_CLASS()\n {\n return WrapperMap.KeySet.class;\n }", "interface Storage {\n String getStorageSize() ;\n}", "String getClazz();", "public TFileStorageType getFileStorageType() {\n\n\t\treturn fileStorageType;\n\t}", "@Nullable public String getStorageKey() {\n return storageKey;\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "public static StorageReference getFirebaseStorage() {\n if (referenciaStorage == null) {\n referenciaStorage = FirebaseStorage.getInstance().getReference();\n }\n\n return referenciaStorage;\n }", "public StorageLocation getStorageLocation() {\n return this.storageLocation;\n }", "public Class<? super U> getBaseClass() {\n return keyRing.getType();\n }", "public Integer supportedStorageGb() {\n return this.supportedStorageGb;\n }", "int getItemStorage();", "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/Security\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "public <T extends SecretsStorage> T getSecretsStorage(Class<T> implementation, WithSecrets config) {\n\n return null;\n }", "public String getStoragePath() {\n return this.storagePath;\n }", "public int getStorageplace() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"storageplace\")).intValue());\n }", "@Override\n @Path(\"/storages/{sid}\")\n public IStorageResource findStorage(@PathParam(\"sid\") int storageId) {\n return new StorageResource(provider.getProviderId(), cluster.getClusterId(), storageId);\n }", "StorageResourceUsage getStorageResourceUsage(String resourceName);", "public interface Storage {\n\n String getId();\n}", "public interface DistributeStorage<T> {\n public void store(String path, T t, boolean create) throws StorageException;\n\n public T get(String path, Class<T> tClass) throws StorageException;\n\n public void del(String path) throws StorageException;\n\n public boolean exist(String path) throws StorageException;\n}", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "public Long getStorageBlock() {\n return this.StorageBlock;\n }", "public DefaultStorage() {\n }", "public long getStorage() {\n\t\t// List<Storage> listSim = new ArrayList<Storage>();\n\t\t//\n\t\t// Storage storage;\n\t\t//\n\t\t// for (int i = 0; i < 3; i++) {\n\t\t// storage = new Storage();\n\t\t//\n\t\t// storage.setDeviceName(\"/dev/sda1\");\n\t\t// storage.setFreeSpaceKB(3 * 100 * 12 * 5 * i);\n\t\t// storage.setTotalSizeKB(288237920);\n\t\t// storage.setMountPoint(\"/\");\n\t\t// storage.setOsSpecificFSType(\"ext4\");\n\t\t//\n\t\t// listSim.add(storage);\n\t\t// }\n\t\t// return listSim;\n\n\t\treturn new Random().nextInt(19700621);\n\t}", "public long getBucketID(){\n return localBucketID;\n }", "public String getBucketName() {\n\treturn _bucketName;\n }", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "public String getClazz();", "@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageContextLookupStrategy() {\n return storageContextLookupStrategy;\n }", "com.google.protobuf.ByteString\n getClass_Bytes();", "com.google.protobuf.ByteString\n getClass_Bytes();", "public interface StorageModel {\n}", "public UserStorage getUserStorage() {\n return UserStorage.getInstance();\n }", "Object getClass_();", "Object getClass_();", "@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}", "public Class<?> getFileClass()\r\n {\r\n return sFileClass;\r\n }", "public interface IStorageManager {\n\n\tpublic String getStorageType();\n\n\tpublic String getStorageId();\n\n\tpublic void initialize(String configFile) throws Exception;\n}", "public ArtifactStorage getArtifactStorage() {\n if(artifactStorageMap.firstEntry() != null) {\n return artifactStorageMap.firstEntry().getValue();\n }\n return null;\n }", "public interface SCStorage\r\n{\r\n\t/**\r\n\t * The server will register a driver before making any method calls\r\n\t *\r\n\t * @param driver the driver\r\n\t */\r\n\tpublic void setStorageServerDriver(SCStorageServerDriver driver);\r\n\r\n\t/**\r\n\t * Open the storage at the given path\r\n\t *\r\n\t * @param path path to the storage\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void\topen(File path) throws IOException;\r\n\r\n\t/**\r\n\t * Return the object associated with the given key\r\n\t *\r\n\t * @param key the key\r\n\t * @return the object or null if not found\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic SCDataSpec get(String key) throws IOException;\r\n\r\n\t/**\r\n\t * Add an object to the storage\r\n\t *\r\n\t * @param key key\r\n\t * @param data object\r\n\t * @param groups associated groups or null\r\n\t */\r\n\tpublic void put(String key, SCDataSpec data, SCGroupSpec groups);\r\n\r\n\t/**\r\n\t * Close the storage. The storage instance will be unusable afterwards.\r\n\t *\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void close() throws IOException;\r\n\r\n\t/**\r\n\t * Return the keys that match the given regular expression\r\n\t *\r\n\t * @param regex expression\r\n\t * @return matching keys\r\n\t */\r\n\tpublic Set<String> regexFindKeys(String regex);\r\n\r\n\t/**\r\n\t * Remove the given object\r\n\t *\r\n\t * @param key key of the object\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void remove(String key) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method deletes all objects\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to delete\r\n\t * @return list of keys deleted.\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> removeGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method lists all keys\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to list\r\n\t * @return list of keys\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> listGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * Returns storage statistics\r\n\t *\r\n\t * @param verbose if true, verbose stats are returned\r\n\t * @return list of stats\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> dumpStats(boolean verbose) throws IOException;\r\n\r\n\t/**\r\n\t * Write a tab delimited file with information about the key index\r\n\t *\r\n\t * @param f the file to write to\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void writeKeyData(File f) throws IOException;\r\n}", "@Override\n public Blob getBlob(String bucketName, String objectPath) {\n Blob result = storageProvider.get().get(bucketName, objectPath);\n if (result == null) {\n throw new NotFoundException(String.format(\"Bucket %s, Object %s\", bucketName, objectPath));\n }\n return result;\n }", "public JStorage storage() {\n return new JStorage(TH.THTensor_(storage)(this));\n }", "public static Class get_CLASS()\n {\n return WrapperMap.KeySet.Iterator.class;\n }", "@Nullable public String getStorageContext() {\n return storageContext;\n }", "public Class getBaseClass();", "public abstract Class<BE> getBukkitEntityType();", "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/net/Security$RefAction\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "public StorageConfiguration() {\n }", "public String getCacheClassName() {\n return cacheClassName;\n }", "public java.util.Enumeration getStorages() {\n\ttry {\n\t\tStorageAccessBean bean = new StorageAccessBean();\n\t\treturn bean.findAllOrderByNameAsc();\n\t} catch(Exception e) {\n\t\treturn (new java.util.Vector()).elements();\n\t}\n}", "public Class<?> getStorePreparationClass() throws IOException {\n return null;\n }", "private StorageFacade() {\n }", "public com.hps.july.persistence.StoragePlaceKey getStoragePlaceKey() {\n\tcom.hps.july.persistence.StoragePlaceKey temp = null;\n\ttemp = new com.hps.july.persistence.StoragePlaceKey();\n\tboolean storagePlace_NULLTEST = true;\n\tstoragePlace_NULLTEST &= (storagePlace_storageplace == null);\n\ttemp.storageplace = ((storagePlace_storageplace == null) ? 0 : storagePlace_storageplace.intValue());\n\tif (storagePlace_NULLTEST) temp = null;\n\treturn temp;\n}" ]
[ "0.7400198", "0.7231049", "0.67930734", "0.6456713", "0.6433183", "0.6363499", "0.62390554", "0.6233221", "0.61064136", "0.60228837", "0.5926889", "0.5911269", "0.58965814", "0.58072996", "0.5770888", "0.5756189", "0.57512796", "0.5742564", "0.57119334", "0.56756324", "0.55946124", "0.559365", "0.5589137", "0.55788934", "0.5550525", "0.55487585", "0.5531837", "0.5531837", "0.55283695", "0.54991287", "0.54706067", "0.5468782", "0.54666656", "0.54666656", "0.5463048", "0.54571545", "0.54498273", "0.54271924", "0.54269546", "0.542454", "0.54169047", "0.5413811", "0.5363274", "0.53578067", "0.53559476", "0.5353716", "0.53345686", "0.5328733", "0.5326417", "0.530414", "0.52997524", "0.52929157", "0.52604717", "0.52604717", "0.5250457", "0.5228568", "0.5223581", "0.5217148", "0.5209541", "0.52014875", "0.5199983", "0.51994336", "0.5188598", "0.51842684", "0.51793313", "0.51780903", "0.5173036", "0.5158448", "0.51541156", "0.5150984", "0.5150729", "0.51433504", "0.5142007", "0.5138378", "0.5135672", "0.51306295", "0.5089919", "0.5089919", "0.50831085", "0.5080523", "0.5079944", "0.5079944", "0.50782937", "0.50717634", "0.5071122", "0.5064231", "0.50628614", "0.50555897", "0.5047088", "0.5040917", "0.5039611", "0.5030511", "0.5022119", "0.501389", "0.5010908", "0.50080264", "0.50034916", "0.5000643", "0.49948993", "0.4992845" ]
0.8242027
0
Set the bucket storage class.
public void setBucketStorageClass(StorageClassEnum storageClass) { this.storageClass = storageClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StorageClassEnum getBucketStorageClass()\n {\n return storageClass;\n }", "@Deprecated\n public void setStorageClass(String storageClass)\n {\n this.storageClass = StorageClassEnum.getValueFromCode(storageClass);\n }", "public static Class getStorageClass()\r\n {\r\n return String.class;\r\n }", "@Override\n\tpublic void setStorage() {\n\t\tcom.setStorage(\"256g SSD\");\n\t}", "public void setClass_(String newValue);", "@Deprecated\n public String getStorageClass()\n {\n return this.storageClass != null ? this.storageClass.getCode() : null;\n }", "public void setStorage(com.hps.july.persistence.StoragePlaceAccessBean newStorage) {\n\tstorage = newStorage;\n}", "void setClassType(String classType);", "public void setClazz(String clazz);", "public void setStorage(Storage storage) {\n this.storage = storage;\n }", "public void setStorageType(short type) {\n\tstorageType = type;\n }", "public void setStorageServerDriver(SCStorageServerDriver driver);", "public void setBucket(String inBucket);", "public void nonDefaultBucket() {\n FirebaseStorage storage = FirebaseStorage.getInstance(\"gs://my-custom-bucket\");\n // [END storage_non_default_bucket]\n }", "public Builder setGcsBucket(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public void setStorage(String storage) {\n if (storage == null || storage.equals(\"\") || storage.equals(\" \")) {\n throw new IllegalArgumentException(\"storage must be provided\");\n }\n this.storage = storage;\n }", "public void setCls(String cls) {\n\t\tthis.cls = cls;\n\t\thandleConfig(\"cls\", cls);\n\t}", "public void setClazzName(String clazz);", "@Override\n public void storeClass(final JavaClass clazz) {\n loadedClasses.put(clazz.getClassName(), new SoftReference<>(clazz));\n clazz.setRepository(this);\n }", "void setStorage(@NonNull Storage storage) {\n setValue(0, verifyNotNull(storage));\n }", "public void setStorageRegion(String StorageRegion) {\n this.StorageRegion = StorageRegion;\n }", "public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setStorageLocation(String storageLocation) {\n this.storageLocation = storageLocation;\n }", "public void setFileClass(Class<?> fileClass)\r\n {\r\n sFileClass = fileClass;\r\n }", "@ZAttr(id=1112)\n public void setGalLdapGroupHandlerClass(String zimbraGalLdapGroupHandlerClass) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalLdapGroupHandlerClass, zimbraGalLdapGroupHandlerClass);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setStorageLocation(StorageLocation storageLocation) {\n this.storageLocation = storageLocation;\n }", "@java.lang.Deprecated\n public A withNewStorageClassName(java.lang.String original);", "public Builder setS3(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }", "public void setStorageplace( int newValue ) {\n __setCache(\"storageplace\", new Integer(newValue));\n }", "public Storage() {\n\n }", "CreateS3VolumeRequestBuilder setBucket(String bucket);", "public void storeBucket(Bucket bucket) throws S3Exception {\n\t\t\r\n\t}", "public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }", "protected void setStorage(IStorage aStorage)\n\t{\n\n\t\tthis.storage = aStorage;\n\t}", "public StorageConfig() {\n }", "public static void set_ClassStereotype(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaClassStereotypeCmd, s, v);\n UmlCom.check();\n \n UmlStereotype st = (UmlStereotype) UmlSettings._map_class_stereotypes.get(s);\n \n if (st == null)\n st = UmlSettings.add_class_stereotype(s);\n st.java = v;\n }", "public native int getStorageClass() throws MagickException;", "public short getStorageType() {\n\treturn storageType;\n }", "public StorageConfiguration() {\n }", "public void setStorageSerializer(@Nonnull final StorageSerializer serializer) {\n ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);\n\n storageSerializer = Constraint.isNotNull(serializer, \"Storage serializer cannot be null\");\n }", "public String getBucket() {\n return bucket;\n }", "public void setBaseClass(Class<?> baseClass)\n {\n this.baseClass = baseClass;\n }", "public void setTenantStorageRole(String tenantStorageRole) {\n this.tenantStorageRole = tenantStorageRole;\n }", "public DefaultStorage() {\n }", "protected void setJavaClass(Class type) {\n this._class = type;\n }", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "public Storage(String s){\n this.path=s;\n }", "BucketName(String bucketName) {\n this.bucketName = bucketName;\n }", "@Override\n\tpublic void setStorageSpace(int amount) {\n\t\tif(network==null)return;\n\t\tnetwork.setBytesLimit(gibibytesToBytes(amount));\n\t\tNetwork.log(\"Set new storage amount\");\n\t}", "public void setStorageCard(java.lang.Integer newStorageCard)\n\t\tthrows java.rmi.RemoteException;", "public void setBaseClass(java.lang.String new_baseClass) {\n\t\t_baseClass = new_baseClass;\n\t}", "public void setStorageplace(int newStorageplace) {\n\tstorageplace = newStorageplace;\n}", "public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "public String getBucket();", "public void setStorageBlock(Long StorageBlock) {\n this.StorageBlock = StorageBlock;\n }", "public com.amazon.s3.SetBucketLoggingStatusResponse setBucketLoggingStatus(com.amazon.s3.SetBucketLoggingStatus setBucketLoggingStatus);", "public interface StorageService {\n\n /**\n * List all the {@link Bucket}s in a given {@link com.google.openbidder.ui.entity.Project}.\n */\n List<Bucket> listAllBuckets(ProjectUser projectUser);\n\n /**\n * List all the objects in a given {@link Bucket}.\n */\n BucketContents listAllObjectsInBucket(ProjectUser projectUser, String bucketName);\n\n /**\n * List all objects in a given {@link Bucket} with a prefix.\n */\n BucketContents listAllObjectsInBucket(\n ProjectUser projectUser,\n String bucketName,\n String objectPrefix);\n\n /**\n * Remove the specified object.\n */\n void deleteObject(ProjectUser projectUser, String bucketName, String objectName);\n}", "public static void setStorage(Storage storage) {\n Parser.storage = storage;\n }", "private StorageSystemConfiguration() {\r\n super(IStorageSystemConfiguration.TYPE_ID);\r\n }", "public void setTFileStorageType(TFileStorageType type) {\n\n\t\tthis.fileStorageType = type;\n\t}", "final public void setStyleClass(String styleClass)\n {\n setProperty(STYLE_CLASS_KEY, (styleClass));\n }", "public void setDataType(Class newclass) {\n datatype=newclass;\n }", "protected abstract void updateStorage(MasterMetaStorage storage) throws JSONException;", "@ZAttr(id=1112)\n public Map<String,Object> setGalLdapGroupHandlerClass(String zimbraGalLdapGroupHandlerClass, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalLdapGroupHandlerClass, zimbraGalLdapGroupHandlerClass);\n return attrs;\n }", "public void setStorageSize(Integer storageSize) {\n\t this.storageSize = storageSize;\n\t}", "@Override\r\n\t\tpublic void setClassName(String className)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setClassName(String className) { this.className=className; }", "@Override\n\tpublic void setClassValue(final String value) {\n\n\t}", "public void setSignatureClass(String signatureClass) {\n\t\tthis.signatureClass = signatureClass;\n\t}", "public void setJavaClass(java.lang.String javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.setStringValue(javaClass);\r\n }\r\n }", "public void setDataClass(Class<?> clazz) {\n\t\t\n\t}", "public Storage getStorage() {\n return this.storage;\n }", "@NonnullAfterInit public StorageSerializer getStorageSerializer() {\n return storageSerializer;\n }", "public Builder setS3Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n s3_ = value;\n onChanged();\n return this;\n }", "public void setElementClass(Class newValue) {\r\n\t\tthis.elementClass = newValue;\r\n\t}", "public Builder setItemStorage(int value) {\n bitField0_ |= 0x00000040;\n itemStorage_ = value;\n onChanged();\n return this;\n }", "public void setExtClass(Class clas){\n\t\t\n\t\tthis.clas = clas;\n\t}", "public Storage() {\n this(null, DEFAULT_MAX, DEFAULT_MAX_SIZE);\n }", "@java.lang.Override\n public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n }\n }", "public interface Bucket {\n String getUid();\n\n String getName();\n\n Uri getImageUri();\n\n List<Selection> getSelections();\n\n void addSelection(Selection s);\n\n void removeSelection(Selection s);\n}", "public void setClassType(String classType) {\n\t\t\t\n\t\t\tfor(E_ClassType c : E_ClassType.values())\n\t\t\t{\n\t\t\t\tif(c.toString().equals(classType))\n\t\t\t\t{\n\t\t\t\t\tthis.classType = E_ClassType.valueOf(classType);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.classType = E_ClassType.Tourists;\n\t\t\t\n\t\t}", "public void setClazz(short value) {\n this.clazz = value;\n }", "@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}", "public void setClassType(String classType) {\n this.classType = classType == null ? null : classType.trim();\n }", "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3.SetBucketAccessControlPolicy setBucketAccessControlPolicy);", "public void setInternalClass(final String path, final Class<? extends DBObject> aClass) {\n setObjectFactory(objectFactory.update(aClass, asList(path.split(\"\\\\.\"))));\n }", "void setPermStorage(Map<String, Object> storage);", "B getBucket();", "public String getBucketName(){\n return bucketName;\n }", "public void setQclass(float value) {\n this.qclass = value;\n }", "public void setObjectClass(String objectClass) {\n this.objectClass = objectClass;\n }", "public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }", "void setClassOfService(ClassOfService serviceClass);", "public interface BlockStorageManagementController extends StorageController {\n\n /**\n * Add Storage system to SMIS Provider\n * \n * @param storage : URI of the storage system to add to the providers\n * @param providers : array of URIs where this system must be added\n * @param primaryProvider : indicate if the first provider in the list must\n * be treated as the active provider\n * @throws InternalException\n */\n public void addStorageSystem(URI storage, URI[] providers, boolean primaryProvider, String opId) throws InternalException;\n\n /**\n * Validate storage provider connection.\n * \n * @param ipAddress the ip address\n * @param portNumber the port number\n * @param interfaceType\n * @return true, if successful\n */\n public boolean validateStorageProviderConnection(String ipAddress, Integer portNumber, String interfaceType);\n}", "public void setStyleClass(String styleClass) {\r\n this.styleClass = styleClass;\r\n }", "public StorageUnit beStorageUnit();", "public interface IStorageManager {\n\n\tpublic String getStorageType();\n\n\tpublic String getStorageId();\n\n\tpublic void initialize(String configFile) throws Exception;\n}", "public AccountStorage() {\n accounts = new ConcurrentHashMap<>();\n minerMap = new ConcurrentHashMap<>();\n blockMap = new ConcurrentHashMap<>();\n initAccounts();\n logger.info(\"AccountStorage: New AccountStorage created.\");\n }" ]
[ "0.7512187", "0.71736586", "0.6093175", "0.60152304", "0.6014193", "0.5979317", "0.5916658", "0.5840899", "0.57609564", "0.57234615", "0.5705796", "0.5643788", "0.5583061", "0.55777115", "0.5466073", "0.5364792", "0.534045", "0.53179103", "0.5268656", "0.5247423", "0.5244965", "0.52203417", "0.5218749", "0.5208784", "0.52040195", "0.5188081", "0.51490676", "0.5148252", "0.5136744", "0.51074755", "0.5086243", "0.50838155", "0.506171", "0.505843", "0.50469434", "0.50237334", "0.5020683", "0.49997973", "0.49936312", "0.49934086", "0.49846196", "0.49658567", "0.49523196", "0.4951864", "0.49508294", "0.4941355", "0.4927477", "0.4907609", "0.48984477", "0.48929918", "0.48920426", "0.48844934", "0.4872766", "0.48661554", "0.48607314", "0.4850943", "0.48474067", "0.482677", "0.48198587", "0.48146978", "0.48115346", "0.48048094", "0.4793181", "0.47919375", "0.4782629", "0.47795865", "0.4775815", "0.47740564", "0.4773685", "0.47698337", "0.47517714", "0.47495112", "0.47318235", "0.4728967", "0.47247878", "0.4723144", "0.47123858", "0.4709864", "0.4708008", "0.47030488", "0.47029927", "0.46945396", "0.46910173", "0.4682768", "0.46710548", "0.4664494", "0.4662901", "0.46569052", "0.4639856", "0.4633081", "0.46251827", "0.46219593", "0.46213037", "0.46137336", "0.46080083", "0.45991305", "0.45982945", "0.45981747", "0.4590697", "0.45848116" ]
0.8260221
0
Created by Administrator on 2017/8/9.
public interface SysUserDao extends MyJpaRepository<SysUser,String> { public void delete(SysUser user); /** * 直接在接口中定义查询方法,如果是符合规范的,可以不用写实现,目前支持的关键字写法如下: * findByFirstNameAndLastName: where X.lastname=?1 and x.firstName=?2 * findByFirstNameORLastName: where X.lastname=?1 or x.firstName=?2 * etc: Between LessThan GreaterThan isNull like notLike startingWith endingwith * not in notin true false * * 使用@Query 可以在自定义的查询方法上使用@Query来指定该方法要执行的查询语句,比如: @Query("select o from UserModel o where o.uuid=?1") public List<UserModel> findByUuidOrAge(int uuid); */ // @Query来指定本地查询,只要设置nativeQuery为true,比如: // @Query(value="select * from tbl_user where name like %?1" ,nativeQuery=true) // public List<UserModel> findByUuidOrAge(String name); public List<SysUser> findByLoginName(String loginName); //特殊的条件,如创建时间大于2017年 @Query("select o from SysUser o where createTime>'2017-01-01' and loginName=?1") public List<SysUser> findByLoginName1(String loginName); //直接使用native uery,如此例需要用到md5函数,但可移殖性不好,不推荐。 @Query(value = "select count(*) from t_sys_user_info where login_name= ?1 and password=md5(?2)",nativeQuery = true) public int ifValidUser(String name,String pwd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@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\tpublic void entrenar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@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}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo4359a() {\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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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\r\n\tpublic void rozmnozovat() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void initialize() {\n\n \n }", "Petunia() {\r\n\t\t}", "public contrustor(){\r\n\t}", "public void mo6081a() {\n }", "public Pitonyak_09_02() {\r\n }", "public void mo55254a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "private TMCourse() {\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void designBasement() {\n\t\t\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void nghe() {\n\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 }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "public void create() {\n\t\t\n\t}", "private UsineJoueur() {}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "protected void mo6255a() {\n }", "private void init() {\n\n\t}", "private static void oneUserExample()\t{\n\t}", "@Override\n void init() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "private Singletion3() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public void mo1531a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo9848a() {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "protected Doodler() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}" ]
[ "0.6265335", "0.6119651", "0.58409524", "0.58301455", "0.58289164", "0.58043313", "0.5762608", "0.57420474", "0.57404876", "0.5738064", "0.5730715", "0.5730715", "0.5718526", "0.5713488", "0.5711609", "0.56932837", "0.569106", "0.5688971", "0.5688971", "0.56854904", "0.56728196", "0.56455255", "0.559921", "0.55956995", "0.55956995", "0.55956995", "0.55956995", "0.55956995", "0.55956995", "0.55956995", "0.55779195", "0.5573661", "0.55732197", "0.5541048", "0.55391", "0.55349314", "0.55199885", "0.55162734", "0.55152255", "0.551221", "0.5502114", "0.54931563", "0.5490965", "0.5487469", "0.5461969", "0.5460164", "0.54552066", "0.5453159", "0.544328", "0.5428965", "0.54265374", "0.5416946", "0.54109156", "0.5405979", "0.5405979", "0.5405979", "0.5405979", "0.5405979", "0.5405979", "0.53992087", "0.53972924", "0.5393213", "0.53893733", "0.5386232", "0.53773856", "0.53694177", "0.5362383", "0.53603715", "0.5357072", "0.53537995", "0.5352486", "0.5351429", "0.53444684", "0.53363776", "0.53348035", "0.533319", "0.532616", "0.53246784", "0.53245217", "0.53190523", "0.5316026", "0.53129244", "0.53087866", "0.53087246", "0.53087246", "0.5308716", "0.530728", "0.5302967", "0.5298681", "0.5296962", "0.5295146", "0.5292846", "0.52859455", "0.52859455", "0.52859455", "0.52859455", "0.52859455", "0.5282162", "0.5278697", "0.5277388", "0.52749765" ]
0.0
-1
Store image in dcim
public void getImageFromCamera() { String capturedPath = "image_" + System.currentTimeMillis() + ".jpg"; File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/DCIM", capturedPath); file.getParentFile().mkdirs(); mCapturedImageUri = Uri.fromFile(file); Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, mCapturedImageUri); startActivityForResult(intent, CAPTURE_IMAGE_REQUEST_CODE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeToImage() {\n imageWriter.writeToImage();\n }", "void save(Images image);", "public void store_image(Images image) {\n\t\tir.save(image);\n\t}", "public void writeToImage() {\r\n\t\t_imageWriter.writeToImage();\r\n\t}", "public void writeImage() {\n // Write generated image to a file\n try {\n // Save as JPEG\n File file = new File(\"Images/\" + name + \"INS\" + System.currentTimeMillis() + \".jpg\");\n ImageIO.write(bufferedImage, \"jpg\", file);\n\t\t\t\t\n\n } catch (IOException e) {\n }\n }", "boolean saveImage(Image img) {\r\n\t\treturn true;\r\n\t}", "void lSetImage(Image img);", "public Save(BufferedImage image){\n\tthis.new_buff_image = image;\n }", "protected void setImageData(BufferedImage img) {\n \t\tif (format == null || format == Format.TEXT || format == Format.COLOR16_8x8)\n \t\t\treturn;\n \t\n \t\tequalize(img);\n \t\t\n \t\t//denoise(img);\n \t\t\n \t\tupdatePaletteMapping();\n \t\n \t\tflatten(img);\n \t\t\n \t\tif (!importDirectMappedImage(img)) {\n \t\t\tconvertImageToColorMap(img);\n \t\t}\n \t\n \t\treplaceImageData(img);\n \t}", "public final void setImportantImageInfo() {\r\n int ix = 0, iy = 0, iz = 0;\r\n int i;\r\n \r\n i = 0;\r\n if (getDimElem(0).name.equalsIgnoreCase(\"time\")) {\r\n i = 1;\r\n }\r\n final String firstDim = getDimElem(i).name;\r\n Preferences.debug(\"firstDim = \" + firstDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n final String secondDim = getDimElem(i+1).name;\r\n Preferences.debug(\"secondDim = \" + secondDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n String thirdDim = null;\r\n if (getExtents().length > 2) {\r\n thirdDim = getDimElem(i+2).name;\r\n Preferences.debug(\"thirdDim = \" + thirdDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n\r\n for (i = 0; i < varArray.length; i++) {\r\n\r\n if (varArray[i].name.equals(\"image\")) {\r\n setOffset(varArray[i].begin);\r\n Preferences.debug(\"Image offset = \" + getOffset() + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n switch (varArray[i].nc_type) {\r\n\r\n case NC_BYTE:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = UBYTE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.UBYTE);\r\n } else {\r\n Preferences.debug(\"Data type = BYTE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.BYTE);\r\n }\r\n\r\n break;\r\n\r\n case NC_SHORT:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = USHORT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.USHORT);\r\n } else {\r\n Preferences.debug(\"Data type = SHORT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.SHORT);\r\n }\r\n\r\n break;\r\n\r\n case NC_INT:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = UINTEGER\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.UINTEGER);\r\n } else {\r\n Preferences.debug(\"Data type = INTEGER\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.INTEGER);\r\n }\r\n\r\n break;\r\n\r\n case NC_FLOAT:\r\n Preferences.debug(\"Data type = FLOAT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.FLOAT);\r\n break;\r\n\r\n case NC_DOUBLE:\r\n Preferences.debug(\"Data type = DOUBLE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.DOUBLE);\r\n break;\r\n\r\n default:\r\n Preferences.debug(\"varArray[\" + i + \"].nc_type illegally = \" + varArray[i].nc_type + \"\\n\", \r\n \t\tPreferences.DEBUG_FILEIO);\r\n MipavUtil.displayError(\"Invalid type in FileInfoMinc\");\r\n }\r\n\r\n for (final FileMincAttElem elem : varArray[i].vattArray) {\r\n if (elem.name.equals(\"valid_range\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmin = ((Byte) elem.values[0]).byteValue();\r\n vmax = ((Byte) elem.values[1]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmin = ((Character) elem.values[0]).charValue();\r\n vmax = ((Character) elem.values[1]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmin = ((Short) elem.values[0]).shortValue();\r\n vmax = ((Short) elem.values[1]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmin = ((Integer) elem.values[0]).intValue();\r\n vmax = ((Integer) elem.values[1]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmin = ((Float) elem.values[0]).floatValue();\r\n vmax = ((Float) elem.values[1]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmin = ((Double) elem.values[0]).doubleValue();\r\n vmax = ((Double) elem.values[1]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmin = \" + vmin + \"\\n\", Preferences.DEBUG_FILEIO);\r\n Preferences.debug(\"vmax = \" + vmax + \"\\n\", Preferences.DEBUG_FILEIO);\r\n } else if (elem.name.equals(\"valid_max\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmax = ((Byte) elem.values[0]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmax = ((Character) elem.values[0]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmax = ((Short) elem.values[0]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmax = ((Integer) elem.values[0]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmax = ((Float) elem.values[0]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmax = ((Double) elem.values[0]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmax = \" + vmax + \"\\n\", Preferences.DEBUG_FILEIO);\r\n } else if (elem.name.equals(\"valid_min\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmin = ((Byte) elem.values[0]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmin = ((Character) elem.values[0]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmin = ((Short) elem.values[0]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmin = ((Integer) elem.values[0]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmin = ((Float) elem.values[0]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmin = ((Double) elem.values[0]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmin = \" + vmin + \"\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n }\r\n } else if (varArray[i].name.equals(thirdDim)) {\r\n axisOrientation[0] = FileInfoMinc.setOrientType(thirdDim, (varArray[i].step > 0));\r\n ix = i;\r\n } else if (varArray[i].name.equals(secondDim)) {\r\n axisOrientation[1] = FileInfoMinc.setOrientType(secondDim, (varArray[i].step > 0));\r\n iy = i;\r\n } else if (varArray[i].name.equals(firstDim)) {\r\n axisOrientation[2] = FileInfoMinc.setOrientType(firstDim, (varArray[i].step > 0));\r\n iz = i;\r\n }\r\n }\r\n\r\n if ( (varArray[ix].cosines != null) && (varArray[iy].cosines != null) && (varArray[iz].cosines != null)) {\r\n final TransMatrix mat = new TransMatrix(3);\r\n mat.set(0, 0, varArray[ix].cosines[0]);\r\n mat.set(1, 0, varArray[ix].cosines[1]);\r\n mat.set(2, 0, varArray[ix].cosines[2]);\r\n mat.set(0, 1, varArray[iy].cosines[0]);\r\n mat.set(1, 1, varArray[iy].cosines[1]);\r\n mat.set(2, 1, varArray[iy].cosines[2]);\r\n mat.set(0, 2, varArray[iz].cosines[0]);\r\n mat.set(1, 2, varArray[iz].cosines[1]);\r\n mat.set(2, 2, varArray[iz].cosines[2]);\r\n axisOrientation = FileInfoMinc.getAxisOrientation(mat);\r\n\r\n if (varArray[ix].step < 0) {\r\n axisOrientation[0] = FileInfoBase.oppositeOrient(axisOrientation[0]);\r\n }\r\n\r\n if (varArray[iy].step < 0) {\r\n axisOrientation[1] = FileInfoBase.oppositeOrient(axisOrientation[1]);\r\n }\r\n\r\n if (varArray[iz].step < 0) {\r\n axisOrientation[2] = FileInfoBase.oppositeOrient(axisOrientation[2]);\r\n }\r\n }\r\n\r\n for (i = 0; i < axisOrientation.length; i++) {\r\n\r\n switch (axisOrientation[i]) {\r\n\r\n case ORI_UNKNOWN_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_UNKNOWN_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_R2L_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_R2L_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_L2R_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_L2R_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_P2A_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_P2A_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_A2P_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_A2P_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_I2S_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_I2S_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_S2I_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_S2I_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n }\r\n }\r\n }", "void setImage(BufferedImage i);", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "BufferedImage outputImage();", "private static native boolean imwrite_0(String filename, long img_nativeObj, long params_mat_nativeObj);", "public synchronized void addNewImage(BufferedImage img, File file) {\r\n\t\tint image_pk = db.insertImage(file.getName(), file.getAbsolutePath(), DEFAULT_TAG_PK);\r\n\t\tSaveImageOnDisk saveImage = new SaveImageOnDisk(img, file, db.getCacheName(image_pk)); \r\n\t\tsaveImage.start();\r\n\t}", "public native void syncImage() throws MagickException;", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "public void persistTwoDBlackImage(TwoDBlackImage image)\n {\n fcCrud.create(image);\n }", "@FXML public void saveToFile()throws java.io.IOException {\n Highgui.imwrite( this.originalImagePath, this.image );\n System.out.println(\"Saving\");\n }", "void imageData(int width, int height, int[] rgba);", "public void saveImage(){\n fixMediaDir(); // fixes bug in Android 4.4\n\n // name file eSketch + timestamp\n final String filename = \"eSketch\" + System.currentTimeMillis() + \".jpg\";\n\n // insert image on the device\n String location = MediaStore.Images.Media.insertImage(\n getContext().getContentResolver(), mBitmap, filename, \"eSketch Drawing\"\n );\n\n if( location != null ){\n // notify user image was saved successfully\n Toast msg = Toast.makeText( getContext(), R.string.message_saved, Toast.LENGTH_SHORT);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n } else {\n // notify user image was NOT saved successfully\n Toast msg = Toast.makeText( getContext(), R.string.message_error_saving, Toast.LENGTH_SHORT);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n }\n }", "void setImage(BufferedImage valueImage, BufferedImage BackImage);", "private void saveImageInstantly() {\n\n if (movie != null) {\n\n // Get movie's title and set an initial file name\n String movieTitle = movie.getMovieTitle();\n\n // Replace any invalid characters\n movieTitle = movieTitle.replaceAll(\"[\\\"/?\\\"*><|]\", \"\").replace(\":\", \"-\");\n\n // If preferences file is empty\n if (userDirectoryString.equals(\"empty\")) {\n\n userDirectoryString = System.getProperty(\"user.home\");\n }\n\n File userDirectory = new File(userDirectoryString + \"/\" + movieTitle + \".jpg\");\n\n // If it can't access User Home, default to C drive\n if (!userDirectory.getParentFile().canRead()) {\n userDirectory = new File(\"D:\\\\\" + movieTitle + \".jpg\");\n }\n\n // Check file isn't null, so it the image view\n if (imgPoster.getImage() != null) {\n\n try {\n\n ImageIO.write(SwingFXUtils.fromFXImage(imgPoster.getImage(), null), \"jpg\", userDirectory);\n setLblStatus(\"Poster saved successfully.\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void pruebaGuardado() {\n try {\n BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2d = img.createGraphics();\n g2d.setColor(Color.RED);\n g2d.fillRect(25, 25, 50, 50);\n g2d.dispose();\n ImageIO.write(img, \"JPEG\", new File(\"D:\\\\LeapMotion\\\\foo.jpg\"));\n } catch (IOException ex) {\n Logger.getLogger(Nodo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public boolean saveImage() throws IOException\n\t{\n\t\tConfiguration config = GlobalConfiguration.CONFIG;\n\t\tString rootPath = config.get(GlobalConfiguration.CRAWL_IMAGE_ROOT, \"/export/public_html/image\");\n\t\tFile imageDir = new File(rootPath);\n\t\tif(!imageDir.exists())\n\t\t{\n\t\t\timageDir.mkdirs();\n\t\t}\n\t\t///image name is image data hash in hex format\n\t\tString fullPath = rootPath + \"/\" + this.getImageFileName();\n\t\tFileOutputStream fos = new FileOutputStream(fullPath);\n\t\tfos.write(this.getImageData());\n\t\tfos.close();\n\t\treturn true;\n\t}", "@FXML\r\n void btnSave(ActionEvent event) throws IOException {\r\n \tdos.writeInt(server.ServerConstants.DRAW_SAVE);\r\n \tString fileName = \"D://image/snapshot\" + new Date().getTime() + \".png\";\r\n \tFile file = new File(fileName);\r\n \tWritableImage writableImage = new WritableImage(768, 431);\r\n canvas.snapshot(null, writableImage);\r\n RenderedImage renderedImage = SwingFXUtils.fromFXImage(writableImage, null);\r\n ImageIO.write(renderedImage, \"png\", file);\r\n \r\n OutputStream outputStream = client.getOutputStream();\r\n FileInputStream fileInputStream = new FileInputStream(file);\r\n byte[] buf = new byte[1024];\r\n int length = 0;\r\n while((length = fileInputStream.read(buf))!=-1){\r\n \toutputStream.write(buf);\r\n }\r\n fileInputStream.close();\r\n }", "public void imagesaver(String name){\n\tthis.new_image_name = name;\n\t try{\n\t\tImageIO.write(new_buff_image, \"png\", new File(new_image_name));\n\t }\n\t catch(IOException e){\n\t\tSystem.out.println(\"The desired output file is invalid. Please try running the program again.\");\n\t\tSystem.exit(0);\n\t }\n }", "private void saveImageToGallery() {\n ContentValues image = new ContentValues();\n image.put(MediaStore.Images.Media.TITLE, mPictureFile);\n image.put(MediaStore.Images.Media.DISPLAY_NAME, mPictureFile);\n image.put(MediaStore.Images.Media.DESCRIPTION, \"Processed by the MFace App\");\n image.put(MediaStore.Images.Media.DATE_TAKEN, System.nanoTime()); //\n image.put(MediaStore.Images.Media.MIME_TYPE, \"image/jpeg\");//png!!!\n image.put(MediaStore.Images.Media.ORIENTATION, 0);\n image.put(MediaStore.Images.Media.DATA, mPictureFile);\n getContext().getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, image);\n }", "public void ToImage(){\n\t\tint row=SL.length;\n\t\tint col=SL[0].length;\n\t\tint cr=0;\n\t\tint cb=0;\n\t\t// System.out.println(row+\" \"+col);\n\t\tint[] intArray = new int[3*row*col];\n\t\tint w=row;\n\t int h=col;\n\t BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n\t\tint pixel = 0;\n\t\tfor(int x=0;x<row;x++){\n\t\t\tfor(int y=0;y<col;y++){\n\t\t\t\tint rByte = (int)(SL[x][y]);\n\t\t int gByte = (int)(SL[x][y]);\n\t\t int bByte = (int)(SL[x][y]);\n\t\t \n\t\t // int rByte = (int)(SL[x][y]+1.402*(cr-128));\n\t\t // int gByte = (int)(SL[x][y]-0.3414*(cb-128)-0.71414*(cr-128));\n\t\t // int bByte = (int)(SL[x][y]+1.772*(cb-128));\n\t\t int rgb = (rByte *65536) + (gByte * 256) + bByte;\n\t\t image.setRGB(x,y,rgb);\n\t \t}\n\t\t}\n\t try {\n\t ImageIO.write(image, \"bmp\", new File(\"\"+picture_num+\".png\"));\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t }\n\t}", "public void persistCvpack(Cvpack cvpack);", "void setImageFromFile(File imageFile);", "static public void write(String filename, Image image) throws IOException\n {\n MyBMPFile reader = new MyBMPFile();\n \n reader.saveBitmap(filename, image, image.getWidth(reader), image.getHeight(reader));\n }", "private boolean setImageData(DataBuffer db) {\r\n AwtImageBackdoorAccessor dbAccess = AwtImageBackdoorAccessor.getInstance();\r\n try {\r\n imageData = dbAccess.getData(db);\r\n } catch (IllegalArgumentException e) {\r\n return false; // Unknown data buffer type\r\n }\r\n\r\n return true;\r\n }", "private boolean setImage(BufferedImage image, File file, String ext) {\n try {\n file.delete(); // delete resources used by the File\n ImageIO.write(image, ext, file);\n return true;\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"File could not be saved!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "Object getChannelData() {\r\n return imageData;\r\n }", "public native void constituteImage(int width, int height, String map,\n\t\t\tbyte[] pixels) throws MagickException;", "protected void saveImage(String type) {\n\t\tint height = 793;\n\t\tint width = 1120; \n\t\t\n\t\tAdvancedFileChooser fileChooser = new AdvancedFileChooser();\n\t\t\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t\tint returnVal = fileChooser.showSaveDialog(chartPanel);\n\t\n\t\tFile filePath = null;\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tfilePath = fileChooser.getSelectedFile();\n\t\t}\n\t\t\n\t\tString tempPath = filePath.getAbsolutePath().toUpperCase();\n\t\t\n\t\ttry{\n\t\t\tif(type.equals(\"PNG\")){\n\t\t\t\tif(!tempPath.endsWith(\".PNG\"))\n\t\t\t\t\tfilePath = new File(tempPath+\".PNG\");\n\t\t\t\tChartUtilities.saveChartAsPNG(filePath, getChart(), width, height);\n\t\t\t}else if(type.equals(\"JPEG\")){\n\t\t\t\tif(!tempPath.endsWith(\".JPEG\"))\n\t\t\t\t\tfilePath = new File(tempPath+\".JPEG\");\n\t\t\t\tChartUtilities.saveChartAsJPEG(filePath, getChart(), width, height);\n\t\t\t}\n\t\t}catch(IOException ie){\n\t\t\t\n\t\t}\n\t\n\t}", "private void openCVImage(){\n Imgcodecs codec = new Imgcodecs();\n image = codec.imread(currentPhotoPath, Imgcodecs.IMREAD_COLOR);\n }", "public BufferedImage getDati()\n { \n return imgDati;\n }", "void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}", "IMG createIMG();", "private BufferedImage user_space(BufferedImage image) {\n // create new_img with the attributes of image\n BufferedImage new_img = new BufferedImage(image.getWidth(),\n image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);\n Graphics2D graphics = new_img.createGraphics();\n graphics.drawRenderedImage(image, null);\n graphics.dispose(); // release all allocated memory for this image\n return new_img;\n }", "void setImage(String image);", "public void setImage(Image img) {\r\n this.img = img;\r\n }", "private void saveImage(BufferedImage newImg, String fileName)\n {\n\n File imageFile = new File(fileName+\".jpg\");\n try\n {\n ImageIO.write(newImg,\"jpg\",imageFile);\n }\n catch (IOException e)\n {\n System.out.println(fileName+\" not saved\"+e);\n }\n\n }", "public void saveImage(File dir, Context c) {\r\n\r\n try {\r\n //finds file name that isn't used up\r\n File f;\r\n int i = 0;\r\n do {\r\n i++;\r\n f = new File(dir, \"Impressionist_\" + i + \".PNG\");\r\n } while (f.exists());\r\n //save the file\r\n FileOutputStream fos = new FileOutputStream(f);\r\n _offScreenBitmap.compress(Bitmap.CompressFormat.PNG, 90, fos);\r\n fos.close();\r\n //add it to the gallery\r\n FileUtils.addImageToGallery(f.getAbsolutePath(), c);\r\n //let the user know where it is saved\r\n Toast.makeText(c, \"Saved to \" + f.getAbsolutePath(), Toast.LENGTH_SHORT).show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "private String storeImage(Bitmap imageData) {\n // get path to external storage (SD card)\n String filePath = null;\n if (imageData != null) {\n\n\n try {\n //boolean s = sdIconStorageDir.mkdirs();\n filePath = Environment.getExternalStorageState()\n + System.currentTimeMillis() + \".jpg\";\n Log.d(\"Donde\", filePath);\n FileOutputStream fileOutputStream = new FileOutputStream(\n filePath);\n\n BufferedOutputStream bos = new BufferedOutputStream(\n fileOutputStream);\n\n // choose another format if PNG doesn't suit you\n imageData.compress(Bitmap.CompressFormat.JPEG, 0, bos);\n\n bos.flush();\n bos.close();\n return filePath;\n } catch (IOException e) {\n return \"fail\";\n }\n } else {\n return \"fail\";\n }\n\n }", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME ); \r\n \r\n //Instantiating the Imagecodecs class \r\n Imgcodecs imageCodecs = new Imgcodecs(); \r\n \r\n //Reading the Image from the file \r\n String file =\"E:/photo/abc.jpg\"; \r\n Mat matrix = imageCodecs.imread(file); \r\n \r\n System.out.println(\"Image Loaded......\"); \r\n String file2 = \"H:/Wifi/aa.jpg\";\r\n //Writing the image \r\n imageCodecs.imwrite(file2,matrix);\r\n System.out.println(\"Image Saved ............\");\r\n }", "@Test\n void writeToImage() {\n String imagename = \"img\";\n int width = 1600;\n int height = 1000;\n int nx =500;\n int ny =800;\n ImageWriter imageWriter = new ImageWriter(imagename, width, height, nx, ny);\n for (int col = 0; col < ny; col++) {\n for (int row = 0; row < nx; row++) {\n if (col % 10 == 0 || row % 10 == 0) {\n imageWriter.writePixel(row, col, Color.blue);\n }\n }\n }\n imageWriter.writeToImage();\n }", "public void setImageData(byte[] value) {\r\n this.imageData = ((byte[]) value);\r\n }", "public void set(RenderedImage im) {\n this.im = im;\n ic.set(im);\n }", "public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }", "void setImage(Layer layer, Image image);", "Builder addImage(ImageObject value);", "public void writeImage(String fname) throws java.io.IOException {\n System.out.println(\"Writing the image.\");\n \n File f= new File(fname);\n if (f.exists()) {\n System.out.println(\"File \" + f.getAbsolutePath() + \" exists. It was not overwritten.\");\n return;\n }\n \n int r= currentIm.getRows();\n int c= currentIm.getCols();\n int roa[]= currentIm.getRmoArray();\n \n // Obtain a buffered image with the right size and format to save out this image\n // (only the RGB components, not alpha).\n BufferedImage bimage= new BufferedImage(c, r, BufferedImage.TYPE_INT_RGB);\n \n // Copy the image data into that BufferedImage.\n bimage.setRGB(0, 0, c, r, roa, 0, c);\n \n // Finally, write the image onto the file and give the appropriate message\n ImageIO.write(bimage, \"png\", f);\n System.out.println(\"Image written to \" + f.getAbsolutePath());\n }", "private void reanderImage(ImageData data) {\n \n }", "@Override\n public void drawImage(Image image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh) {\n Object nativeImage = graphicsEnvironmentImpl.drawImage(canvas, image, sx, sy, sw, sh, dx, dy, dw, dh, image.getCached());\n image.cache(nativeImage);\n }", "public void saveActions()\r\n {\r\n\t imageCopy[0] = bufferedImage;\r\n\t imageCopy[1] = edited;\r\n\t imageCopy[2] = cropedPart;\r\n\t imageCopy[3] = bufferedImage;\r\n\t \r\n\t statesCopy[0] = isBlured;\r\n\t statesCopy[1] = isReadyToSave;\r\n\t statesCopy[2] = isChanged;\r\n\t statesCopy[3] = isInverted;\r\n\t statesCopy[4] = isRectangularCrop;\r\n\t statesCopy[5] = isCircularCrop;\r\n\t statesCopy[6] = isImageLoaded;\r\n\t \r\n }", "Image createImage();", "void setSourceImage(BufferedImage mySourceImage);", "public boolean savePicture(){\n String path = MediaStore.Images.Media.insertImage(getContentResolver(),\n ((BitmapDrawable)PicSingleton.getInstance().getPicShaped()).getBitmap(),\n \"pichsape\"+ System.currentTimeMillis(),\n \"PicShape\");\n\n if(path != null) return true;\n\n return false;\n }", "public void setImage(byte[] value) {\n this.image = ((byte[]) value);\n }", "private static void writeBLOBData() {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = JDBCUtils.getMySQLConnection();\n\t\t\tString sql = \"INSERT INTO testblob(name, img) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setString(1, \"ke\");\n\t\t\tFile file = new File(\"D:\" + File.separator + \"test.jpg\");\n\t\t\tInputStream in = new FileInputStream(file);\n\t\t\tstmt.setBinaryStream(2, in, (int)file.length());\n\t\t\tstmt.executeUpdate();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tJDBCUtils.release(stmt, conn);\n\t\t}\n\t}", "public void saveImg(byte[] byteImg, String fileName) throws IOException{\n File outputFile = new File(\"src/main/resources/tmpImg/\" + fileName);\n // convert byte[] back to a BufferedImage\n BufferedImage newBi = ImageIO.read(new ByteArrayInputStream(byteImg));\n // save it\n ImageIO.write(newBi, \"jpeg\",outputFile);\n }", "public void writeToDir() {\n\t\ttry{\n\t\t\tString dirPath = Paths.get(\".\").toAbsolutePath().normalize().toString()+\"/\";\n\t\t\tString path = dirPath + filename; //get server dir path\n\t\t\tSystem.out.println(\"output file path is: \" + path);\n\t\t\tFileOutputStream out = new FileOutputStream(path);\n out.write(img);\n out.close();\n PL.fsync();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void saveImage(Image image) {\n\t\tnew ImageDaoImpl().saveImage(image);\n\t}", "void guardarImagen(BufferedImage bimg1, BufferedImage bimg2, FichaDocente fcdc, TipoHuella tphl)\n\t\t\tthrows IOException, SerialException, SQLException;", "public void write(File path) throws IOException{\n\t\tif(this.picture != null){ // in cazul in care poza are continut null se arunca exceptie\n\t\t\t//File output = new File(path);\n\t\t\tImageIO.write(zoomed,\"bmp\",path);\n\t\t\tSystem.out.println(path);\n\t\t\tSystem.out.println(\"\\nS-a scris in fisier cu succes\");\n\t\t}\n\t}", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "void setImage(Bitmap bitmap);", "public void saveImagePanel() throws IOException, ClassNotFoundException {\n\t\tFile archiveImage = null;\n\t\tarchiveImage = new File(\"CAMBIAR NOMBRE \");\n\t\tfile_chooser.setSelectedFile(archiveImage);\n\t\tif (file_chooser.showDialog(null, \"Guardar\") == JFileChooser.APPROVE_OPTION) {\n\t\t\tarchiveImage = file_chooser.getSelectedFile();\n\t\t\tif (archiveImage.getName().endsWith(\"jpg\") || archiveImage.getName().endsWith(\"png\")) {\n\t\t\t\t// realizar accion\n\t\t\t\tfileSeralization.saveFile(archiveImage);\n\t\t\t}\n\t\t}\n\t}", "public void compose() {\n\t\tg2d.setBackground(bgColor);\n\t\tg2d.clearRect(0, 0, width, height);\n\t\tboolean drawed=g2d.drawImage(gridImg, gridImgX, gridImgY, null);\n\t\tdrawed=g2d.drawImage(colorCodeImg, colorCodeImgX, colorCodeImgY, null);\n\t\tdrawed=g2d.drawImage(celestialObjectTextImg, celestialObjectTextImgX, celestialObjectTextImgY, null);\n\t\tdrawed=g2d.drawImage(observationTextImg, observationTextImgX, observationTextImgY, null);\n\t\tdrawed=g2d.drawImage(maserImg, maserImgX, maserImgY, null);\n\t}", "private void createUpdateImage(Item item) throws Exception {\r\n //cria a imagem\r\n new Image().saveImage(item.getImagem(), item.getNome());\r\n \t}", "void setImage(PImage img) {\n _img = img;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tImage imagen = panelCamara.getImage();\n\t\t\t\tFile fichero = new File(\"usuarios/\"+nick+\".jpg\");\n\t\t\t\tString formato = \"jpg\";\n\t\t\t\ttry {\n\t\t\t\t\tImageIO.write((RenderedImage)imagen, formato, fichero);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tBD.btnGuardar(\"usuarios/\"+nick+\".jpg\",nick);\n\t\t\t}", "@Override\n\t\tprotected Void doInBackground(Void... arg0) {\n\t\t\tfloat[] dimens = interactionHandler.getSelectRectDimensions();\n\t\t\tBitmap bitmapToStore = sd.getBitmapToStore(dimens[0],dimens[1],dimens[2],dimens[3]);\n\t\t\tshort[] audioToStore = sd.getAudioToStore(dimens[0],dimens[1],dimens[2],dimens[3]);\n\t\t\tAudioBitmapConverter abc;\n\t\t\tif (lc != null)\n\t\t\t\tabc = new AudioBitmapConverter(filename, dac, bitmapToStore,audioToStore,lc.getLastLocation());\n\t\t\telse\n\t\t\t\tabc = new AudioBitmapConverter(filename, dac, bitmapToStore, audioToStore, null);\n\t\t\tabc.writeThisCbaToFile(filename, DynamicAudioConfig.STORE_DIR_NAME);\n\t\t\tabc.storeJPEGandWAV();\n\t\t\treturn null;\n\t\t}", "public static boolean saveImage(\n Context context, \n CameraCharacteristics characteristics, \n CaptureResult captureResult, \n Image image, \n File file, \n boolean use_storage) {\n\n DngCreator dngCreator = new DngCreator(characteristics, captureResult);\n\n boolean is_error = false;\n FileOutputStream output = null;\n try {\n output = new FileOutputStream(file);\n dngCreator.writeImage(output, image);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n image.close();\n }\n\n try {\n if (output != null) output.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if(use_storage ) {\n FileUtil.scanFile(context, file);\n }\n\n return !is_error;\n\n}", "int insert(SysPic record);", "public void writeToFile(Mat img, String fname) {\n\t\tSystem.err.println(\"Writing image to file \" + fname);\n\t\tMatOfByte matOfByte = new MatOfByte();\n\t\tHighgui.imencode(\".jpg\", img, matOfByte);\n\t\tbyte[] byteArray = matOfByte.toArray();\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(fname);\n\t\t\tfos.write(byteArray);\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException 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 saveImage(BufferedImage buff, String dest) {\n try {\n File outputfile = new File(dest);\n ImageIO.write(buff, \"png\", outputfile);\n } catch (IOException e) {\n System.out.println(\"error saving the image: \" + dest + \": \" + e);\n }\n }", "public void savePicture() {\n\t\tLog.d(TAG, \"savePicture\");\n\t\t\n\t\tFile cropFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getPath() + \"/Lente/crop.jpg\");\n\t\tmCropView.setDrawingCacheEnabled(true);\n\t\tBitmap bm = Bitmap.createBitmap(mCropView.getDrawingCache());\n\t\tmCropView.setDrawingCacheEnabled(false);\n\t\t\n\t\ttry {\n\t\t FileOutputStream outputStream = new FileOutputStream(cropFile);\n\t\t Log.d(TAG, \"Compressing and saving...\");\n\t\t bm.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n\t\t outputStream.flush();\n\t\t outputStream.close();\n\t\t \n\t\t MediaScannerConnection.scanFile(getBaseContext(),\n\t new String[] { cropFile.toString() }, null,\n\t new MediaScannerConnection.OnScanCompletedListener() {\n\t public void onScanCompleted(String path, Uri uri) {\n\t Log.i(\"ExternalStorage\", \"Scanned \" + path + \":\");\n\t Log.i(\"ExternalStorage\", \"-> uri=\" + uri);\n\t //passUri(uri); //Pass the URI once obtained and move onto OCRopus\n\t }\n\t\t\t});\n\t }\n\t\t\n\t\tcatch (IOException e) {\n\t\t\tToast.makeText(ImageTextSelect.this, \"Failed to save selected image area.\", 2000).show();\n\t\t\tLog.e(TAG, \"IO Exception\");\n\t\t}\n\t}", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic Image creer(Image entity) throws InvalideGstoreException {\n\t\treturn imageRepository.save(entity);\n\t}", "public native boolean writeImage(ImageInfo imageInfo)\n\t\t\tthrows MagickException;", "public void createImage(String pathImg) {\n\t\ttry {\n\t\t\tImageIO.write(this.bi, \"PNG\", new File(pathImg));\n\t\t\tSystem.out.println(\" Create image of the Graph : \" + this.nameGraph);\n\t\t} catch (Exception e) {\n\t\t\t// just send a mail\n\t\t\t// EmailSender.sendMailError(e, StaticGeneral.pathReport);\n\t\t}\n\t\tSystem.gc();\n\t\tSystem.runFinalization();\n\t}", "public static boolean storeImage(WritableImage imageToWrite, File fileStore) {\n boolean dataSaved;\n try {\n /*Delete file if it exists*/\n if (fileStore.exists()) {\n fileStore.delete();\n }\n /*Create new file*/\n fileStore.createNewFile();\n /*Export image*/\n BufferedImage bImage = SwingFXUtils.fromFXImage(imageToWrite, null);\n ImageIO.write(bImage, \"png\", fileStore);\n dataSaved = true;\n } catch (Exception e) {\n dataSaved = false;\n System.out.println(e.getMessage());\n }\n return dataSaved;\n }", "public static void saveImage(int[][][] imagePixels, String saveName){\n int height = imagePixels.length;\n int width = imagePixels[0].length;\n int[][] flat = new int[width*height][4];\n \n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Flatten the image into a 2D array.\n int index=0;\n for(int row=0; row<height; row++) {\n for(int col=0; col<width; col++) {\n for(int rgbo=0; rgbo<4; rgbo++) {\n flat[index][rgbo]=imagePixels[row][col][rgbo];\n }\n index++;\n } // for col\n } // for row\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n int[] outPixels = new int[flat.length];\n for(int j=0; j<flat.length; j++) {\n outPixels[j] = ((flat[j][0]&0xff)<<16) | ((flat[j][1]&0xff)<<8)\n | (flat[j][2]&0xff) | ((flat[j][3]&0xff)<<24);\n } // for j\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, outPixels, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "private static final byte[] xfdm_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, 104,\n\t\t\t\t104, 104, -1, -1, -1, 123, 123, 123, -127, -127, -127, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97,\n\t\t\t\t100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33,\n\t\t\t\t-7, 4, 1, 10, 0, 1, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 57,\n\t\t\t\t24, -70, -36, 43, -62, 41, 0, 24, -116, -115, 86, 11, -103,\n\t\t\t\t-106, -41, 68, 73, -54, -11, -111, -27, -87, 12, -125, -93, 97,\n\t\t\t\t107, 27, -56, 111, 23, -49, -20, 25, -30, 108, -66, -107, 16,\n\t\t\t\t22, -81, -41, 16, 16, 123, 72, 6, 113, 40, 92, 44, -103, -79,\n\t\t\t\t38, 106, -102, 0, 0, 59 };\n\t\treturn data;\n\t}", "public ImageIcon takeSnapShot(Component panel){\r\n // BufferedImage bufImage = new BufferedImage(panel.getSize().width, panel.getSize().height,BufferedImage.TYPE_INT_RGB);\r\n BufferedImage bufImage = new BufferedImage(2250, 2250,BufferedImage.TYPE_INT_RGB);\r\n panel.paint(bufImage.createGraphics());\r\n ImageIcon imageIcon = new ImageIcon(bufImage);\r\n String snapshotLocation = FileSystemView.getFileSystemView().getDefaultDirectory().toString() + \"\\\\spaceGUI\\\\yourImage.jpeg\";\r\n File fc = new File(snapshotLocation.substring(0,snapshotLocation.indexOf(\"yourImage.jpeg\")));\r\n if(!fc.exists()) {\r\n fc.mkdir();\r\n }\r\n File imageFile = new File(snapshotLocation);\r\n try{\r\n imageFile.createNewFile();\r\n ImageIO.write(bufImage, \"jpeg\", imageFile);\r\n System.out.println(\"Created picture\");\r\n \r\n }catch(Exception ex){\r\n System.out.println(\"Did not create picture\");\r\n } \r\n return imageIcon;\r\n }", "public void saveImage(){\n new Thread() {\n public void run() {\n String image_url = stuffRoomInfo.getStuffLink();\n Log.i(\"OGT\", \"image_url:in showImage \" + image_url);\n getOGTag(image_url);\n // Display a png image from the specified file\n ImageUrlSendServer();\n }\n }.start();\n }", "private static final byte[] xfsim_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, 0, 0,\n\t\t\t\t0, -128, -128, -128, -64, -64, -64, 28, 28, 28, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 72, 88, -70,\n\t\t\t\t-36, 30, 48, -58, 39, -86, -83, 1, -80, 64, -70, -17, -112,\n\t\t\t\t-74, 112, 64, 105, 18, -31, 70, 0, 67, -37, -94, -103, -54,\n\t\t\t\t-70, 3, 44, 42, 36, 93, -89, -29, -9, 101, -112, -111, 105, 88,\n\t\t\t\t10, 8, 68, 28, -97, -57, 24, 43, -124, -128, 0, 104, -54, 8,\n\t\t\t\t56, 90, -85, 88, 77, 82, -23, 57, 42, -120, -32, -110, 99, -20,\n\t\t\t\t72, 0, 0, 59 };\n\t\treturn data;\n\t}", "public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }", "public void saveImage(MultipartFile imageFile) throws IOException {\n\t\tlogger.info(\"ComicDetail ID is \"+imageFile.getOriginalFilename());\r\n\t\tString folder=\"/images/comiccover\";\r\n\t\tbyte[] bytes = imageFile.getBytes();\r\n\t\tlogger.info(\"ComicDetail ID is \"+imageFile.getOriginalFilename());\r\n\t\t//Path path = Paths.get(folder+imageFile.getOriginalFilename());\r\n\t\r\n\t\t//Files.write(path, bytes);\r\n\t}", "private void setImage(Bitmap image) {\n }", "void setImage(IViewModel image);", "public void persistCvchannelPack(CvchannelPack cvchannelPack);", "public static String storeImage(Bitmap imageData, String filename) {\n\n File sdIconStorageDir = new File(GlobalConstants.DIR_PATH);\n\n //create storage directories, if they don't exist\n sdIconStorageDir.mkdirs();\n String filePath = \"\";\n try {\n if (!filename.endsWith(\".jpg\")) {\n filename = filename + \".jpg\";\n }\n filePath = sdIconStorageDir.toString() + \"/\" + filename;\n FileOutputStream fileOutputStream = new FileOutputStream(filePath);\n BufferedOutputStream bos = new BufferedOutputStream(fileOutputStream);\n imageData.compress(CompressFormat.JPEG, 100, bos);\n bos.flush();\n bos.close();\n\n } catch (FileNotFoundException e) {\n Log.w(\"TAG\", \"Error saving image file: \" + e.getMessage());\n\n } catch (IOException e) {\n Log.w(\"TAG\", \"Error saving image file: \" + e.getMessage());\n\n }\n\n return filePath;\n }", "public void persistCvchannel(Cvchannel cvchannel);", "static BufferedImage writeImage(int[][] color, String name) {\n String path = \"./\" + name + \".png\";\n BufferedImage image = new BufferedImage(color.length, color[0].length, BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < color.length; x++) {\n for (int y = 0; y < color.length; y++) {\n image.setRGB(x, y, color[x][y]);\n }\n }\n File ImageFile = new File(path);\n try {\n ImageIO.write(image, \"png\", ImageFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return image;\n }", "public void insertimg()\n {\n String name= countryname.getText().toString();\n DB = new DbContext(this);\n imageView.setDrawingCacheEnabled(true);\n\n //Bitmap bitmap = ((BitmapDrawable)imageView.getDrawable()).getBitmap();\n Bitmap bitmap = imageView.getDrawingCache();\n\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n\n boolean isInserted = DB.insertCountry(name,byteArray);\n\n if (isInserted == true) {\n Toast.makeText(getApplicationContext(),\"Image Successfully Added\",Toast.LENGTH_LONG).show();\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"Image Insert Unsuccessful\",Toast.LENGTH_LONG).show();\n }\n Intent intent = new Intent(getBaseContext(),AdminMenu.class);\n startActivity(intent);\n }", "public static void write(WImage img, String fname, Context context,\n\t\t\tLongWritable key) {\n\t\tBufferedImage bi = new BufferedImage(img.getWidth(), img.getHeight(),\n\t\t\t\tBufferedImage.TYPE_BYTE_GRAY);\n\n\t\tWritableRaster r = bi.getRaster();\n\n\t\tr.setSamples(0, 0, img.getWidth(), img.getHeight(), 0, img.getData());\n\t\ttry {\n\t\t\tFileSystem dfs = FileSystem.get(context.getConfiguration());\n\t\t\tPath newimgpath = new Path(context.getWorkingDirectory(), context\n\t\t\t\t\t.getJobID().toString()\n\t\t\t\t\t+ \"/\" + key.get());\n\t\t\tdfs.createNewFile(newimgpath);\n\t\t\tFSDataOutputStream ofs = dfs.create(newimgpath);\n\n\t\t\t//ImageIO.write(bi, \"jpg\", ofs);\n\t\t\tImageIO.write(bi, fname.substring(fname.lastIndexOf('.') + 1), ofs);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.6304255", "0.6235359", "0.6168141", "0.61585623", "0.6082278", "0.59046197", "0.58993673", "0.57740754", "0.57140905", "0.56663054", "0.5663531", "0.56099254", "0.5596791", "0.5560305", "0.55583775", "0.55552745", "0.5526307", "0.55010223", "0.5498974", "0.5485943", "0.54855067", "0.5480351", "0.54778266", "0.54629034", "0.5448704", "0.54451936", "0.5421822", "0.54082704", "0.53970844", "0.5387989", "0.5384168", "0.5383188", "0.53663534", "0.5364145", "0.5346282", "0.5345423", "0.5345226", "0.5344754", "0.5342753", "0.5335146", "0.53234386", "0.5321178", "0.5319521", "0.5316293", "0.5311248", "0.5302779", "0.5301153", "0.52963495", "0.52883387", "0.528831", "0.52733535", "0.5272902", "0.52698565", "0.52630526", "0.5257966", "0.5256099", "0.5252195", "0.5250685", "0.5248152", "0.5239261", "0.5226843", "0.5216957", "0.52144146", "0.52033573", "0.5196833", "0.51904047", "0.51893395", "0.518019", "0.5178428", "0.51770633", "0.5173928", "0.5162378", "0.5152628", "0.51520956", "0.5147732", "0.51456684", "0.51437557", "0.5139561", "0.51391596", "0.51352704", "0.5130753", "0.51273555", "0.51200587", "0.5112863", "0.5112506", "0.5106966", "0.50932306", "0.50931257", "0.5087855", "0.50835264", "0.50822395", "0.5081055", "0.5080556", "0.50804967", "0.50793684", "0.50781906", "0.50778615", "0.5067491", "0.50669026", "0.50642896", "0.5063775" ]
0.0
-1
/ default constructor that takes in nothing and set default values for every variable.
public HourlyWorker () { super (); hours = -1; hourlyRate = -1; salary = -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "defaultConstructor(){}", "private Default()\n {}", "public void initDefaultValues() {\n }", "void DefaultConstructor(){}", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}", "DefaultConstructor(int a){}", "public TradeVariables() { /*gets default values*/ }", "public AllDifferent()\n {\n this(0);\n }", "public void setParametersToDefaultValues()\n/* 65: */ {\n/* 66:104 */ super.setParametersToDefaultValues();\n/* 67:105 */ this.placeholder = _placeholder_DefaultValue_xjal();\n/* 68: */ }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "DefaultAttribute()\n {\n }", "@Test\n public void constructorDefault() {\n final CourseType courseType = new CourseType();\n\n assertNull(courseType.getId());\n assertNull(courseType.getName());\n assertNull(courseType.getPicture());\n assertNull(courseType.getPosition());\n assertNull(courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}", "public Test05() {\n this(0);\n n2 = \"n2\";\n n4 = \"n4\";\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "private Value() {\n\t}", "private void setDefaultValues()\r\n\t{\r\n\t\tif (m_receiverAddress == null || m_receiverAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_receiverAddress = \"[email protected]\";\r\n\t\t}\r\n\r\n\t\tif (m_replyAddress == null || m_replyAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_replyAddress = \"no return\";\r\n\t\t}\r\n\r\n\t\tif (m_senderName == null || m_senderName.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_senderName = \"Unknown Sender\";\r\n\t\t}\r\n\r\n\t\tif (m_subject == null || m_subject.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_subject = \"AN.ON support request\";\r\n\t\t}\r\n\r\n\t\tif (m_bodyText == null || m_bodyText.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_bodyText = \"message is empty\";\r\n\t\t}\r\n\r\n\t}", "public ValorVariavel() {\r\n }", "public void initDefaultValues(SurgicalPathologyReport t)\r\n\t{\n\r\n\t}", "protected Value() {\n flags = 0;\n num = null;\n str = null;\n object_labels = getters = setters = null;\n excluded_strings = included_strings = null;\n functionPartitions = null;\n functionTypeSignatures = null;\n var = null;\n hashcode = 0;\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public DefaultAttribute( String upId, Value... vals )\n {\n // The value can be null, this is a valid value.\n if ( vals[0] == null )\n {\n add( new Value( ( String ) null ) );\n }\n else\n {\n for ( Value val : vals )\n {\n add( val );\n }\n }\n\n setUpId( upId );\n }", "public BabbleValue() {}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Object getDefaultValue();", "public Object getDefaultValue();", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "default void init() {\n }", "@Test\n\tpublic void testDefaultConstructor() {\n\t\tassertThat(\"Expect not null.\", testling, is(notNullValue()));\n\t}", "public void setToDefault();", "public void initDefaultValues(BinaryContent t)\r\n\t{\n\r\n\t}", "public DefaultNashRequestImpl() {\n\t\t\n\t}", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public DefaultSortParameters() {\n\t\tthis(null, null, null, null, null);\n\t}", "public void initialiseValues() {\n\t\tif (validationRule == null) { // NOSONAR\n\t\t\tvalidationRule = Optional.empty();\n\t\t}\n\t}", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public None()\n {\n \n }", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "private DefaultSchema() {\n super(\"\", null);\n }", "public void initDefaultValues(PathologyReportReviewParameter t)\r\n\t{\n\r\n\t}", "public abstract String[] getDefaultValues();", "@Test\n public void goalEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int goalId = 12135;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n //Create goal\n Goal goal = new Goal();\n\n goal.setGoalId(goalId);\n goal.setUserId(userId);\n goal.setGoalName(name);\n goal.setTimePeriod(timePeriod);\n goal.setUnit(unit);\n goal.setAmount(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 Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "protected void init() {\n super.init();\n uriExpr = null;\n uri = null;\n nameExpr = null;\n name = null;\n qname = null;\n attrExpr = null;\n attr = null;\n emptyExpr = null;\n empty = false;\n }", "public static TLAExpr DefaultVarInit()\n /*********************************************************************\n * Returns the default initial value of a variable declared with no *\n * value specified, which is herein defined to be \"{}\". *\n * *\n * Default initial value changed to \"defaultInitValue\" *\n * by LL on 22 Aug 2007 *\n *********************************************************************/\n { Vector<TLAToken> line = new Vector<TLAToken>() ;\n// line.addElement(new TLAToken(\"{\", 0, 0)) ;\n// line.addElement(new TLAToken(\"}\", 0, 0)) ;\n line.addElement(new TLAToken(\"defaultInitValue\", 0, 0));\n Vector<Vector<TLAToken>> vec = new Vector<Vector<TLAToken>>() ;\n vec.addElement(line) ;\n TLAExpr exp = new TLAExpr(vec) ;\n exp.normalize() ;\n return exp ;\n }", "public Friend()\n\t{\n\t\tname = \"nameless\";\n\t\thumorStyle = \"less than none\";\n\t\tage = -10;\n\t\tinterest = \"absolutely nothing\";\n\t\tlikesPineapple = false;\n\t\tweight = - 99.99999;\n\t}", "@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }", "public Naive() {\n\n }", "public Value() {}", "TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }", "public MyAllTypesFirst() {\n myInt = 0;\n myLong = 0;\n myString = \"\";\n myBool = false;\n myOtherInt = 0;\n }", "public Question() {\r\n // This is the defult constructor b/c it takes no parameters\r\n firstPrompt = \"Please enter something:\";\r\n minScale = 1;\r\n maxScale = 10;\r\n secondPrompt = \"Additional comments:\";\r\n }", "public void setDefaultParameters() {\n\t\toptions = 0;\n\t\toutBits = null;\n\t\ttext = new byte[0];\n\t\tyHeight = 3;\n\t\taspectRatio = 0.5f;\n\t}", "public MyInteger( )\n {\n this( 0 );\n }", "public Attendance()\t//constructor, it exists as method in Attendance class\r\n\t{\r\n\t\tthis.name = \"NULL\";\t//initiates name\r\n\t\tthis.year = 0;\t\t//initiates year\r\n\t\tthis.student_id = \"NULL\";\t//initiates student_id\r\n\t\tthis.missed = 0;\t//initiates missed\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public State()\n {\n this(\"\");\n }", "public void initialiser() {\n double inf = Double.POSITIVE_INFINITY;\n create_add(\"bagel\", 20, 8);\n create_add(\"burger\", 10, 10);\n create_add(\"smoothie\", 30, 5);\n create_add(\"café\", (int)inf, 2);\n }", "public Builder()\n {\n this(\"\", \"\");\n }", "public final void setDefautlVals() {\n this.createTime = this.writeTime = GlobalMethods.getTimeStamp(null);\n this.createId = this.writeId = PackagingVars.context.getUser().getId();\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public DefaultExecuterParameters() {\n\t\tnumAuthorsAtStart = 5;\n\t\tnumPublicationsAtStart = 20;\n\t\tnumCreationAuthors = 0;\n\t\tnumCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t}", "protected void initVars() {}", "private ARXOrderedString(){\r\n this(\"Default\");\r\n }", "public Constructor(){\n\t\t\n\t}", "public User(){\n this(null, null);\n }", "protected Value(Value v) {\n flags = v.flags;\n num = v.num;\n str = v.str;\n object_labels = v.object_labels;\n getters = v.getters;\n setters = v.setters;\n excluded_strings = v.excluded_strings;\n included_strings = v.included_strings;\n functionPartitions = v.functionPartitions;\n functionTypeSignatures = v.functionTypeSignatures;\n var = v.var;\n hashcode = v.hashcode;\n }", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "private void initializeWithDefaultValues() {\n setProjectFolder(\"projectFolder\");\n setContext(\"context\");\n setGroupId(\"com.company.project\");\n setArtifactId(\"project\");\n setModulePrefix(\"project-\");\n setVersion(\"0.0.1-SNAPSHOT\");\n setName(\"Project Name\");\n setDescription(\"Project Description\");\n setUrl(\"https://www.company-project.com\");\n setInceptionYear(String.valueOf(LocalDateTime.now().getYear()));\n setOrganizationName(\"Your Company Name\");\n setOrganizationUrl(\"https://www.company.com\");\n setLicenseName(\"apache_v2\");\n setLicenseUrl(\"https://www.license-url.com\");\n setScmConnection(\"\");\n setScmDeveloperConnection(\"\");\n setScmUrl(\"\");\n setDistributionProfile(\"\");\n setExtraModules(new LinkedHashSet<>());\n setContextDescriptions(new LinkedHashSet<>());\n setAppConfigLocationType(AppConfigLocationType.INSIDE);\n }", "protected IRFunctional() {\n _name = null;\n _params = null;\n _args = null;\n _fds = null;\n _vds = null;\n _body = null;\n }", "public Int() {\n this(0);\n }", "public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }", "Question() {\n ques = opt1 = opt2 = opt3 = opt4 = null; // initializing to null\n }", "public MyDate(){\t\n\t\tthis(\"00/00/0000\");\n\t}", "public Heuristic() {\n this(HeuristicUtils.defaultValues);\n }", "public AbstractValueHolder() {\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "NullSt (int ln) { super (ln); }", "public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); // clear value\n //super.setRuntimeDefaultValues();\n }", "@Test\n public void testDefaultConstructor() {\n assertThat(\"Expect not null.\", testling, is(notNullValue()));\n }", "public Parameters() {\n\t}", "public Player()\n // POST: A default Player object is created with all class members set to 0\n\t{\n\t\tthis(2000, 0);\n\t}", "public Setting() {\n\t}", "public MyInteger(){\n //initialize to 0\n Integer myint = new Integer(0);\n }", "private void initDefaults() {\n _nodeFadeSourceColor = _defNodeFadeSourceColor;\n _nodeFadeDestinationColor = _defNodeFadeDestinationColor;\n\n _nodeStrokeSourceColor = _defNodeStrokeSourceColor;\n _nodeStrokeDestinationColor = _defNodeStrokeDestinationColor;\n\n _nodeStrokeSourceWidth = _defNodeStrokeSourceWidth;\n _nodeStrokeDestinationWidth = _defNodeStrokeDestinationWidth;\n\n _supportEdgeFadeSourceColor = _defSupportEdgeFadeSourceColor;\n _supportEdgeFadeDestinationColor = _defSupportEdgeFadeDestinationColor;\n\n _refuteEdgeFadeSourceColor = _defRefuteEdgeFadeSourceColor;\n _refuteEdgeFadeDestinationColor = _defRefuteEdgeFadeDestinationColor;\n\n _edgeStrokeSourceWidth = _defEdgeStrokeSourceWidth;\n _edgeStrokeDestinationWidth = _defEdgeStrokeDestinationWidth;\n\n _curvedLines = _defCurvedLines;\n\n _manualBackgroundColor = _defManualBackgroundColor;\n\n _realTimeSliderResponse = _defRealTimeSliderResponse;\n }", "public Value(){}", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "protected void setToDefault(){\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tdefaultconstructor d = new defaultconstructor();\r\n\tSystem.out.println(d.Age);\t\r\n\tSystem.out.println(d.Name);\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t}", "private Values(){}", "O() { super(null); }", "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "public Value() {\n }" ]
[ "0.701871", "0.70144194", "0.7005046", "0.6957883", "0.6760297", "0.65843296", "0.65615374", "0.65028673", "0.6414818", "0.64085877", "0.63987976", "0.63744813", "0.63652724", "0.6347181", "0.63041025", "0.6301415", "0.6226099", "0.62152636", "0.6169571", "0.61678207", "0.61625594", "0.6125157", "0.6124899", "0.6114496", "0.60874355", "0.60476893", "0.6044782", "0.6034047", "0.60327166", "0.6013989", "0.6007441", "0.6007441", "0.6005951", "0.5992685", "0.5977125", "0.5972172", "0.5962527", "0.5955944", "0.5955547", "0.5953815", "0.594678", "0.5925405", "0.5925064", "0.5924615", "0.5911817", "0.59083265", "0.5906923", "0.59049636", "0.59013456", "0.58860123", "0.5880879", "0.58799744", "0.5876452", "0.5872239", "0.5869721", "0.58503896", "0.58481634", "0.58477676", "0.584697", "0.5841873", "0.58365995", "0.5828164", "0.5826806", "0.58204675", "0.5819995", "0.5813175", "0.5813025", "0.58089644", "0.5801403", "0.579967", "0.5798281", "0.57957584", "0.5792624", "0.5792145", "0.5786822", "0.5781918", "0.5781587", "0.57791144", "0.5774749", "0.5772633", "0.5770172", "0.5766859", "0.57577574", "0.57520926", "0.57497495", "0.5745905", "0.5743347", "0.57343894", "0.5730058", "0.57246405", "0.5723493", "0.5722969", "0.57223153", "0.5721686", "0.57211167", "0.5713289", "0.5712042", "0.5710299", "0.5709739", "0.57071024", "0.5700061" ]
0.0
-1
/ a constructor that takes in and sets fName, lName, empID, hours, and hourlyRate.
public HourlyWorker (String fName, String lName, String empID, double hours, double hourlyRate) { super (fName, lName, empID); setHours(hours); setHourlyRate(hourlyRate); calculateSalary(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Employee(String firstName, String secondName, double hourlyRate){\n\t\tthis.firstName = firstName;\n\t\tthis.secondName = secondName;\n\t\tthis.hourlyRate = hourlyRate;\n\t\t\n\t}", "public PTEmployee(String n, String ssnum, String d, double rate, int hours) {\n\t\tsuper(n, ssnum, d);\n\t\tthis.hourlyRate = rate;\n\t\tthis.hoursWrkd = hours;\n\t}", "public Employee(String fName, String lName, String gender, double salary) {\n this.fName = fName;\n this.lName = lName;\n this.gender = gender;\n this.salary = salary; \n }", "public HourlyEmployee( String first, String last, String ssn, double hourlyWage, double hoursWorked )\n\t{\n\t\tsuper( first, last, ssn);\n\t\tsetWage( hourlyWage );\n\t\tsetHours( hoursWorked ); \n\t}", "public Employee(String inName, double inSalary)\n\t{\n\t\tname = inName;\n\t\tsalary = inSalary;\n\t}", "public Employee(String name, String address, String phone, String secNumber, double rate){\n\t\tsuper(name, address, phone);\n\t\tsocialSecurityNumber = secNumber;\n\t\tpayRate = rate;\n\t}", "public Hourly (String eName, String eAddress, String ePhone,\r\nString socSecNumber, double rate)\r\n{\r\nsuper(eName, eAddress, ePhone, socSecNumber, rate);\r\n//IMPLEMENT THIS\r\n}", "public HourlyWorker(String name, int age, int year_hired, int num_hours, double hourly_rate) {\n\t\tsuper(name, age, year_hired);\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t\tif (isValidHours(num_hours) && isValidRate(hourly_rate)) {\n\t\t\tthis.num_hours = num_hours;\n\t\t\tthis.hourly_rate = hourly_rate;\n\t\t}\n\t}", "public Employee(String employeeName, PositionTitle position, boolean salary, double payRate, int employeeShift,\n String startDate, double hrsIn) {\n // ////////////// construct Employees\n this.employeeName = employeeName;\n this.position = position;\n this.salary = salary;\n this.payRate = payRate;\n this.employeeShift = employeeShift;\n this.startDate = startDate;\n this.hrsIn = hrsIn;\n\n }", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "public Employee(String name, double salary){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = salary;\r\n\t}", "public HeartRates(String fName,String lName,int dy,int mth,int yr){\n firstName = fName;\n lastName = lName;\n day = dy;\n month = mth;\n year = yr;\n }", "Employee(int id, String name, String birthDate, int eage, double esalary){\r\n ID=id; \r\n NAME=name; \r\n BIRTHDATE=birthDate; \r\n age=eage; \r\n salary=esalary; \r\n }", "public HourlyWorker () {\r\n super ();\r\n hours = -1;\r\n hourlyRate = -1;\r\n salary = -1;\r\n }", "public Employee(String proffesion) {\n\n this.name = rnd.randomCharName(8);\n this.surname = rnd.randomCharName(7);\n this.hourSalary = rnd.randomNumber(75,100);\n this.profession = proffesion;\n this.workingHour = WORKING_HOURS;\n this.moneyEarned = 0;\n this.moneyEarned = 0;\n this.isAbleTowork = true; \n }", "public EmployeeRecords(String n, int s){ // defined a parameterized constructor\r\n this.name = n; // assigning a local variable value to a global variable\r\n this.salary = s; // assigning a local variable value to a global variable\r\n }", "Employee(String employeeName, double employeeSalary, int employeeAge) {\n\t\tthis.employeeName = employeeName;\n\t\tthis.employeeSalary = employeeSalary;\n\t\tthis.employeeAge = employeeAge;\n\t}", "Employee(String empId, String name, int roleId, double basic, double allowancePercentage, double hra){\r\n\t\tthis.empId = empId;\r\n\t\tthis.name = name;\r\n\t\tthis.role.setRoleId(roleId);\r\n\t\tthis.basic = basic;\r\n\t\tthis.allowancePercentage = allowancePercentage;\r\n\t\tthis.hra = hra;\r\n\t}", "public Employee(String firstName, String lastName, int age, double salary) {\r\n //envoke the super class's constructor\r\n super(firstName, lastName, age);\r\n \r\n //set the instance variables specific to this class. \r\n this.salary = salary;\r\n employeeNumber = nextEmployeeNumber;\r\n nextEmployeeNumber++;\r\n }", "public Employee(String name){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = 0;\r\n\t}", "public Employee(int empID, String firstName, String lastName, int ssNum,\n Date hireDate, double salary) {\n if (Employee.setOfIDs.contains(empID) || !Employee.isPositive(empID)) {\n this.empID = Employee.generateID();\n } else {\n this.empID = empID;\n }\n Employee.sortType = SortType.SORT_BY_ID;\n Employee.setOfIDs.add(this.empID);\n this.firstName = firstName;\n this.lastName = lastName;\n this.ssNum = ssNum;\n this.hireDate = hireDate;\n this.salary = salary;\n }", "public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }", "public Employee(String fName, String lName, int ID) {\n this.FName = fName;\n this.LName = lName;\n this.ID = ID;\n }", "public Fulltime(String employeeName, String deptCode, Date hireDate,\n\t\t\tdouble salary) {\n\t\tsuper(employeeName, deptCode, hireDate);\n\t\tthis.annualSalary = salary;\n\t}", "public Staff(String lastName, String firstName, String idNum, char sex, Calendar birthDate, double hourlyRate)\n\t{\n\t\tsuper(lastName, firstName, idNum, sex, birthDate);\n\t\tthis.hourlyRate = hourlyRate;\n\t}", "public Employee(String name, int salary)\n\n\t{\n\t\tthis.name = name;\n\t\tthis.salary = salary;\n\t}", "public Large_Employee(int employeeID,\n String hireDate,\n String arrivalDate,\n String departureDate,\n String pay_rate,\n String still_active) {\n this.employeeID = employeeID;\n this.hireDate = hireDate;\n this.pay_rate = pay_rate;\n this.still_active = still_active;\n this.arrivalDate = arrivalDate;\n this.departureDate = departureDate;\n }", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public PayrollRecord(String employee, double pay) {\n employeeName = employee;\n currentPay = pay;\n }", "public Employee(String firstName, String lastName, int salary, int bonus) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.salary = salary;\n this.bonus = bonus;\n this.taxableSalary=this.salary+this.bonus-this.taxAllowance;\n }", "public Furniture (float pricePerHour, float workedHours)\n {\n\t this.pricePerHour = pricePerHour;\n\t this.workedHours = workedHours;\n }", "public Employee(String firstName, String lastName, Date birthDate, \n Date hireDate, Address Address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.birthDate = birthDate;\n this.hireDate = hireDate;\n this.Address = Address;\n }", "public Employee(String employeeFirstName, String employeeLastName, \r\n String employeeEmail, long employeePhoneNumber, \r\n String employeeStatus, double employeeSalary) {\r\n this.employeeFirstName = employeeFirstName;\r\n this.employeeLastName = employeeLastName;\r\n this.employeeEmail = employeeEmail;\r\n this.employeePhoneNumber = employeePhoneNumber;\r\n this.employeeStatus = employeeStatus;\r\n this.dateHired = new Date();\r\n this.employeeAddress = new Address();\r\n this.employeeSalary = employeeSalary;\r\n }", "public void setNameRateHours(String first, String last,\r\n\tdouble rate, double hours)\r\n\t{\r\n\tsetName(first, last);\r\n\tpayRate = rate;\r\n\thoursWorked = hours;\r\n\t}", "Employee(String id, Kitchen kitchen) {\r\n this.id = id;\r\n this.kitchen = kitchen;\r\n this.attendance = \"Present\";\r\n this.password = \"password\";\r\n }", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String emailId, String mobileNumber) {\n this.id = id;\n this.name = name;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.emailId = emailId;\n this.mobileNumber = mobileNumber;\n }", "private Employee(String name, String city, String id,int salary) {\n\t\tthis.name = name;\n\t\tthis.city = city;\n\t\tthis.id = id;\n\t\tthis.salary = salary;\n\t}", "public Employee(int emp_no, Date birth_date, String first_name, String last_name, String gender, Date hire_date) {\n this.emp_no = emp_no;\n this.birth_date = birth_date;\n this.first_name = first_name;\n this.last_name = last_name;\n this.gender = gender.equals(\"M\")?Gender.M:Gender.F;\n this.hire_date = hire_date;\n }", "public SalesEmployee(String firstName, String lastName, String number, double salary, double commission){\r\n this.firstname = firstName;\r\n this.lastname = lastName;\r\n this.number = number;\r\n this.salary = salary;\r\n this.commission = commission;\r\n }", "public Employee(String employeeId, String name) {\n this.employeeId = employeeId;\n this.name = name; // TODO fill in code here\n }", "public FullTimeStaffHire(int vacancyNumber, String designation, String jobType, int salary, int workingHour) {\n //Super class constructor is invoked.\n super (vacancyNumber, designation, jobType);\n this.salary = salary;\n this.workingHour = workingHour;\n this.staffName = \"\";\n this.joiningDate = \"\";\n this.qualification = \"\";\n this.appointedBy = \"\";\n this.joined = false;\n }", "Employee(String name, String profile, int id, String regime) {\n super(name, profile, id);\n this.regime = regime;\n }", "public HeartRates(String firstName, String lastName, int month, int day, int year) {\r\n this.firstName = firstName;\r\n this.lastName = lastName;\r\n this.month = month;\r\n this.day = day;\r\n this.year = year;\r\n }", "public Employee(String name, int id, String position, double salary) { \n super(name, id);\n this.position = position;\n this.salary = salary;\n }", "public EmployeeRecord(String newLastName, String newFirstName, char newType)\n {\n if ((Character.toLowerCase(newType) != 'h' && Character.toLowerCase(newType) != 'p' && Character.toLowerCase(newType) != 's') || !newLastName.matches(\"[a-zA-Z]+\") || !newFirstName.matches(\"[a-zA-Z]+\")) return;\n else \n {\n this.lastName = newLastName;\n this.firstName = newFirstName;\n this.type = newType;\n this.grossPay = this.taxAmt = this.netPay = 0.00;\n }\n }", "public Employee(String name,String pos,int sal, int Vbal, int AnBon){\n Random rnd = new Random();\n this.idnum = 100000 + rnd.nextInt(900000);\n this.name = name;\n this.position = pos;\n this.salary = sal;\n this.vacationBal = Vbal;\n this.annualBonus = AnBon;\n this.password = \"AJDLIAFYI\";\n salaryHist[0] = salary;\n }", "public Employee() {\n this.isActivated = false;\n this.salt = CryptographicHelper.getInstance().generateRandomString(32);\n\n this.address = new Address();\n this.reports = new ArrayList<>();\n }", "public Employee(int id, String firstName, String lastName, int age, double salary, String address) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tthis.age = age;\n\t\tthis.salary = salary;\n\t\tthis.address = address;\n\t}", "public Employee(String nama, int usia) {\r\n // Constructor digunakan untuk inisialisasi value, yang di inisiate saat melakukan instantiation\r\n this.nama = nama;\r\n this.usia = usia;\r\n }", "public EmployeeSeller(String name, int age, float sallary, float quantityHours, float percentage) {\n super(name, age, sallary, quantityHours);\n this.percentage = percentage;\n }", "public EmpName() {\n\t\tsuper(\"Aditi\",\"Tyagi\");\n\t\t//this(10);\n\t\tSystem.out.println(\"Employee name is Vipin\");\n\t\t\n\t}", "public Employee(){\n this.employeeName = new String();\n this.employeeSalary = null;\n this.employeeProjectList = new ArrayList<String>();\n this.employeeDepartmentLead = new String();\n }", "public Employee(String Name) {\r\n this.Name = Name;\r\n }", "public StudentFee(int creditHours, double feePerCreditHour, double scholarshipAmount, double healthInsurancePerAnnum) {\n this.creditHours = creditHours;\n this.feePerCreditHour = feePerCreditHour;\n this.scholarshipAmount = scholarshipAmount;\n this.healthInsurancePerAnnum = healthInsurancePerAnnum;\n }", "public Staff()\n\t{\n\t\tsuper();\n\t\thourlyRate = 0.0;\n\t}", "public HourlyWorker() {\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t}", "public User() {\r\n\t\temployee=new HashMap<Integer, Employee>();\r\n\t\tperformance=new HashMap<Employee,String>();\r\n\t}", "public Employee(String firstName, String lastName, String SSN){\r\n this.firstName=firstName;\r\n this.lastName=lastName;\r\n this.SSN=SSN;\r\n }", "public Large_Employee(int employeeID,\n String mex_code,\n String givenName,\n String surName,\n String dateOfBirth,\n String passportNumber,\n String passportExpiration,\n String SII,\n String visaNumber,\n String nickName,\n String txtNotes) {\n this.employeeID = employeeID;\n this.mex_code = mex_code;\n this.givenName = givenName;\n this.surName = surName;\n this.name = givenName +\" \"+surName;\n this.dateOfBirth = dateOfBirth;\n this.passportNumber = passportNumber;\n this.passportExpiration = passportExpiration;\n this.SII = SII;\n this.visaNumber = visaNumber;\n this.nickName = nickName;\n this.txtNotes = txtNotes;\n }", "public SalesEmployee(){\n\t\tfirstName = \"unassigned\";\n\t\tlastName = \"unassigned\";\n\t\tppsNumber = \"unassigned\";\n\t\tbikeEmployeeNumber++;\n\t}", "public Employee(String name, int id) {\n super(name, id);\n position = \"None\";\n salary = 0.0;\n }", "public Employee() throws OutOfRangeException { //default constructors have no parameters\n\t\t//must create a default constructor, if a subclass is created\n\t\tthis(\"\",\"\",10.0f,40);\n\t\temployeeCount++;\n\t}", "public Employee(int employeeId, String employeeName, String employeeAddress) {\r\n\t\r\n\t\tthis.employeeId = employeeId;\r\n\t\tthis.employeeName = employeeName;\r\n\t\tthis.employeeAddress = employeeAddress;\r\n\t}", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String mobileNumber, String emailId, List<Address> address,\n List<Project> project) {\n this.id = id;\n this.name = name;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.mobileNumber = mobileNumber;\n this.emailId = emailId;\n this.address = address;\n this.project = project;\n }", "Employee(String name, String password, String username, String email) {\n this.name = name;\n this.username = username;\n this.email = email;\n this.password = password;\n\n }", "public Employee(String firstName, String lastName, double monthlySalary) {\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tif(monthlySalary > 0) {\n\t\t\tthis.monthlySalary = monthlySalary;\n\t\t} else {\n\t\t\tthis.monthlySalary = 0.0;\n\t\t}\n\t}", "public HourlyRecord() {\n\t\tthis(\"hourly_record\", null);\n\t}", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String mobileNumber, String emailId, List<Address> address) {\n this.name = name;\n this.id = id;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.address = address;\n this.mobileNumber = mobileNumber;\n this.emailId = emailId;\n }", "public Large_Employee(int employeeID,\n String hireDate,\n String pay_rate,\n String still_active,\n String mex_code,\n String bankID,\n String bankAccountNum,\n String givenName,\n String surName,\n String dateOfBirth,\n String passportNumber,\n String passportExpiration,\n String SII,\n String visaNumber,\n String healthCardNum,\n String arrivalDate,\n String departureDate,\n String txtEmail,\n String medInsurance,\n String txtMobile,\n String nickName,\n String txtNotes,\n String bedID,\n String houseNum,\n String houseName,\n String houseAddress,\n String workPermit,\n String benefitCard,\n String employmentAgreement,\n String withholdAgreement,\n String quarantineLocation,\n String emailPassword,\n String covidDose1Attach,\n String covidDose2Attach,\n String covidDoseDate1,\n String covidDoseDate2,\n String corpPhoneNumber,\n String corpPhoneType) {\n this.employeeID = employeeID;\n this.hireDate = hireDate;\n this.pay_rate = pay_rate;\n this.still_active = still_active;\n this.mex_code = mex_code;\n this.bankID = bankID;\n this.bankAccountNum = bankAccountNum;\n this.givenName = givenName;\n this.surName = surName;\n this.name = givenName +\" \"+surName;\n this.dateOfBirth = dateOfBirth;\n this.passportNumber = passportNumber;\n this.passportExpiration = passportExpiration;\n this.SII = SII;\n this.visaNumber = visaNumber;\n this.healthCardNum = healthCardNum;\n this.arrivalDate = arrivalDate;\n this.departureDate = departureDate;\n this.txtEmail = txtEmail;\n this.medInsurance = medInsurance;\n this.txtMobile = txtMobile;\n this.nickName = nickName;\n this.txtNotes = txtNotes;\n this.bedID = bedID;\n this.houseNum = houseNum;\n this.houseName = houseName;\n this.houseAddress = houseAddress;\n this.workPermit = workPermit;\n this.benefitCard = benefitCard;\n this.employmentAgreement = employmentAgreement;\n this.withholdAgreement = withholdAgreement;\n this.quarantineLocation = quarantineLocation;\n this.emailPassword = emailPassword;\n this.covidDose1Attach = covidDose1Attach;\n this.covidDose2Attach = covidDose2Attach;\n this.covidDoseDate1 = covidDoseDate1;\n this.covidDoseDate2 = covidDoseDate2;\n this.corpPhoneNumber = corpPhoneNumber;\n this.corpPhoneType = corpPhoneType;\n }", "public Executive(int salary, String name, String department, int yearlyBonus){\n super(salary,name,department); \n this.yearlyBonus = yearlyBonus;\n }", "public Employee(String username,String password,String firstname,String lastname,Date DoB,\n String contactNamber,String email,float salary,String positionStatus,String name,\n String buildingName, String street, Integer buildingNo, String area,\n String city, String country, String postcode){\n\n super(username, password,firstname, lastname,DoB, contactNamber, email,\n name, buildingName, street, buildingNo, area, city, country, postcode);\n setSalary(salary);\n setPositionStatus(positionStatus);\n }", "Employee() {\n\t}", "public TechnicalLead(String name){\n super(name);\n baseSalary = super.getBaseSalary() * 1.3; // baseSalary for businessLead x 1.3 baseSalary of technical group\n this.maxHeadCount = 4; // set max employee to 4\n this.curHeadCount = 0;\n employee = new SoftwareEngineer[this.maxHeadCount];\n }", "public RestaurantsTab(String restaurantName, String restaurantLocation, String restaurantHours) {\n mRestaurantName = restaurantName;\n mRestaurantLocation = restaurantLocation;\n mRestaurantHours = restaurantHours;\n }", "Employee(String name, String password) {\n if (checkName()) {\n setUsername(name);\n setEmail(name);\n } else {\n this.username = \"default\";\n this.email = \"[email protected]\";\n }\n\n if (isValidPassword()) {\n this.password = password;\n } else {\n this.password = \"pw\";\n }\n\n }", "public tickets ()\r\n {\r\n firstName = \" \"; //set to empty string. Pass in user input.\r\n lastName = \" \";\r\n venueName = \"Litchfield Recreation Center\"; \r\n performanceName = \"Hamlet\";\r\n performanceDate = \"May 8, 2020\";\r\n performanceTime = \"6:30PM\";\r\n \r\n }", "public Employee(String nom, int number )\n\t{\n\t\tName = nom;\n\t\tthis.Number = number;\n\t}", "public ActionProgrammer(String firstName, String lastName,\r\nString socialSecurityNumber, int month, int year, \r\ndouble wage, double pieces) {\r\nsuper(firstName, lastName, socialSecurityNumber, month, year);\r\n\r\nif (wage < 0.0) { // validate wage\r\n throw new IllegalArgumentException(\r\n \"Hourly wage must be >= 0.0\");\r\n}\r\n\r\nif ((pieces < 0.0) || (pieces > 168.0)) { // validate hours\r\n throw new IllegalArgumentException(\r\n \"Hours worked must be >= 0.0 and <= 168.0\");\r\n}\r\n\r\nthis.wage = wage;\r\nthis.pieces = pieces;\r\n}", "public Program3 (String empName) {\r\n\t\tname = empName;\r\n\t}", "public Employee() {\t}", "public BookRecord(String NameOfTheBook, String NameofWriter, int isbnNumber, double booksCost) \r\n\r\n{ \r\n\r\nthis.NameOfTheBook = NameOfTheBook; \r\n\r\nthis.NameofWriter = NameofWriter; \r\n\r\nthis.isbnNumber = isbnNumber; \r\n\r\nthis.booksCost = booksCost; \r\n\r\n}", "Employees() { \r\n\t\t this(100,\"Hari\",\"TestLeaf\");\r\n\t\t System.out.println(\"default Constructor\"); \r\n\t }", "public Savings_Account (int account_num, double initial_balance, double interest_rate) \r\n {\r\n\r\n super (account_num, initial_balance);\r\n\r\n rate = interest_rate;\r\n\r\n }", "public Location(String name, String address, String workingHours) {\n mName = name;\n mAddress = address;\n mWorkingHours = workingHours;\n }", "public Employee() {\n\t\tsuper();\n\t}", "public static WorkTimeEmployee valueOf(Employee employee, List<CustomWorkTime> workTimes) {\n WorkTimeEmployee workTimeEmployee = new WorkTimeEmployee();\n workTimeEmployee.name = employee.fullName();\n workTimeEmployee.workTimes = CustomWorkTime.reduceAndSortWorktimes(workTimes);\n return workTimeEmployee;\n }", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public EmployeePay() {\n initComponents();\n setDefaultDateRange();\n updateTable();\n }", "public WorkHours() {\n //default if not yet initialised\n this._startingHour=0.00;\n this._endingHour=0.00;\n }", "public Schedule (Employee employee, Date startDate, Date endDate) {\n this.employee = employee;\n this.startDate = startDate;\n this.endDate = endDate;\n }", "public Large_Employee(\n String workPermit,\n String employmentAgreement,\n int employeeID,\n String benefitCard,\n String withholdAgreement) {\n this.employeeID = employeeID;\n this.workPermit = workPermit;\n this.benefitCard = benefitCard;\n this.employmentAgreement = employmentAgreement;\n this.withholdAgreement = withholdAgreement;\n }", "public void setHourlyRate(double hr)\n\t{\n\t\thourlyRate = hr;\n\t}", "public Employee(String firstName, String lastName) {\n\t\tsuper();\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t}", "public void loadEmployees(String fileName)\r\n\t{\r\n\t\t//try block to attempt to open the file\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//declare local variables for the file name and data fields within the employeelist text file\r\n\t\t\t//these will all be Strings when pulled from the file, and then converted to the proper data type when they are assigned to the Employee objects\r\n\t\t\tString empID = \"\";\r\n\t\t\tString empLastName = \"\";\r\n\t\t\tString empFirstName = \"\";\r\n\t\t\tString empType = \"\";\t\r\n\t\t\tString empSalary = \"\"; //will convert to double\r\n\t\t\t\r\n\t\t\t//scan for file\r\n\t\t\tScanner infile = new Scanner(new FileInputStream(fileName));\r\n\t\t\t\r\n\t\t\t//while loop searching file records\r\n\t\t\twhile(infile.hasNext())\r\n\t\t\t{\r\n\t\t\t\t//split the field into segments with the comma (,) being the delimiter (employee ID, Last Name, First Name, employee type, and employee salary)\r\n\t\t\t\tString line = infile.nextLine();\r\n\t\t\t\tString[] fields = line.split(\",\");\r\n\t\t\t\tempID = fields[0];\r\n\t\t\t\tempLastName = fields[1];\r\n\t\t\t\tempFirstName = fields[2];\r\n\t\t\t\tempType = fields[3];\r\n\t\t\t\tempSalary = fields[4];\r\n\t\t\t\t\r\n\t\t\t\t//create a selection structure that creates the type of employee based on the empType\r\n\t\t\t\tif(empType.equalsIgnoreCase(\"H\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//create an HourlyEmployee and convert empSalary to a double\r\n\t\t\t\t\tHourlyEmployee hourlyEmp = new HourlyEmployee(empID, empLastName, empFirstName, Double.parseDouble(empSalary));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//add hourlyEmp to the Employee ArrayList empList\r\n\t\t\t\t\tempList.add(hourlyEmp);\r\n\t\t\t\t}//end create hourly employee\r\n\t\t\t\t\r\n\t\t\t\t//else if create an exempt employee for E\r\n\t\t\t\telse if(empType.equalsIgnoreCase(\"E\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//create an exempt employee (salary) and convert the empSalary to a double\r\n\t\t\t\t\tExemptEmployee salaryEmp = new ExemptEmployee(empID, empLastName, empFirstName, Double.parseDouble(empSalary));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//add salaryEmp to the Employee ArrayList empList\r\n\t\t\t\t\tempList.add(salaryEmp);\r\n\t\t\t\t}//end create exempt (salary) employee\r\n\t\t\t\t\r\n\t\t\t\t//else if create a contractor \r\n\t\t\t\telse if(empType.equalsIgnoreCase(\"C\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//create a contract employee and convert the empSalary to a double\r\n\t\t\t\t\tContractEmployee contractEmp = new ContractEmployee(empID, empLastName, empFirstName, Double.parseDouble(empSalary));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//add contractEmp to the Employee ArrayList empList\r\n\t\t\t\t\tempList.add(contractEmp);\r\n\t\t\t\t}//end create contractor employee\r\n\t\t\t\t\r\n\t\t\t\t//else if create a day laborer\r\n\t\t\t\telse if(empType.equalsIgnoreCase(\"d\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t//create a day laborer and convert the empSalary to a double\r\n\t\t\t\t\tDayLaborer laborer = new DayLaborer(empID, empLastName, empFirstName, Double.parseDouble(empSalary));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//add laborer to the Employee ArrayList empList\r\n\t\t\t\t\tempList.add(laborer);\r\n\t\t\t\t}//end create day laborer employee\r\n\t\t\t\t\r\n\t\t\t\t//else ignore the employee (looking at you Greyworm!)\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t//save the employee type and id to return as an error\r\n\t\t\t\t\tempTypeError = empType;\r\n\t\t\t\t\tempIDError = empID;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//ignore the employee \r\n\t\t\t\t\tempType = null;\r\n\t\t\t\t}//end ignore X employee\r\n\t\t\t}//end while loop cycling the records in the employeelist\r\n\t\t\t\r\n\t\t\t//close infile when done\r\n\t\t\tinfile.close();\r\n\t\t}//end of try block opening employeelist.txt file\r\n\t\t\r\n\t\t//catch block if file not found\r\n\t\tcatch(IOException ex)\r\n\t\t{\r\n\t\t\t//call ex object and display message\r\n\t\t\tex.printStackTrace();\r\n\t\t}//end of catch for file not found\r\n\t}", "public Rate() {\n this(\"Rate\", null);\n }", "public Employee(Profile profile){\n this.profile = profile;\n this.payDue = payFormat(STARTPAY);\n\n }", "public Large_Employee(String mex_code, String givenName, String surName, String bedID, int employeeID, String houseNum) {\n this.mex_code = mex_code;\n this.givenName = givenName;\n this.surName = surName;\n this.name = givenName +\" \"+surName;\n this.bedID = bedID;\n this.employeeID = employeeID;\n this.houseNum = houseNum;\n }", "public Job(String jobId, Date startDate, Date expEndDate, Date endDate,\n\t\t\tUser tech, Item item, String callTime) {\n\t\tthis.jobId = jobId;\n\t\tthis.startDate = startDate;\n\t\tthis.expEndDate = expEndDate;\n\t\tthis.endDate = endDate;\n\t\tthis.tech = tech;\n\t\tthis.item = item;\n\t\tthis.callTime = callTime;\n\t}", "public Large_Employee(\n String txtMobile,\n String txtEmail,\n String emailPassword,\n String corpPhoneType,\n String corpPhoneNumber,\n int employeeID){\n this.txtMobile = txtMobile;\n this.txtEmail = txtEmail;\n this.emailPassword = emailPassword;\n this.corpPhoneType = corpPhoneType;\n this.corpPhoneNumber = corpPhoneNumber;\n this.employeeID = employeeID;\n }" ]
[ "0.80400056", "0.76246446", "0.71637094", "0.712905", "0.708164", "0.70777905", "0.70288044", "0.7012309", "0.699993", "0.6994695", "0.6984573", "0.6967326", "0.6927966", "0.6826526", "0.68079215", "0.678436", "0.6777927", "0.6741554", "0.6715291", "0.67068213", "0.667304", "0.664096", "0.6635856", "0.6625373", "0.65984094", "0.65753776", "0.6559553", "0.6553629", "0.6478414", "0.6471799", "0.6390956", "0.63879395", "0.6382993", "0.63445306", "0.6305772", "0.63024676", "0.6266492", "0.62414104", "0.6224114", "0.62198144", "0.6215211", "0.62106353", "0.6183352", "0.61806095", "0.61792976", "0.6170329", "0.61544806", "0.6140809", "0.6094266", "0.60879093", "0.608572", "0.6084335", "0.60736096", "0.6031118", "0.60177934", "0.60001695", "0.5993108", "0.59747285", "0.5934367", "0.59056914", "0.5902012", "0.5895762", "0.58898914", "0.5858587", "0.5854505", "0.5844594", "0.5841559", "0.5832558", "0.5829037", "0.5804485", "0.57938856", "0.57795954", "0.57696337", "0.57508117", "0.57442945", "0.5743808", "0.57390404", "0.5738615", "0.57287204", "0.5724", "0.57197005", "0.5719448", "0.5717463", "0.57121134", "0.5709761", "0.5704913", "0.570466", "0.570466", "0.5691879", "0.56909835", "0.5685775", "0.5680988", "0.5664942", "0.5658788", "0.5642878", "0.5641113", "0.56377167", "0.5635976", "0.5626144", "0.56231946" ]
0.8143411
0