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
Private method for generating all possible steps that can be performed in each global state
private void generateSteps() { for (GlobalState g : this.globalStates) { List<String> faults = g.getPendingFaults(); if(faults.isEmpty()) { // Identifying all available operation transitions (when there // are no faults), and adding them as steps List<String> gSatisfiableReqs = g.getSatisfiableReqs(); for(Node n : nodes) { String nName = n.getName(); String nState = g.getStateOf(nName); List<Transition> nTau = n.getProtocol().getTau().get(nState); for(Transition t : nTau) { boolean firable = true; for(String req : t.getRequirements()) { if(!(gSatisfiableReqs.contains(n.getName() + "/" + req))) firable = false; } if(firable) { // Creating a new mapping for the actual state of n Map<String,String> nextMapping = new HashMap(); nextMapping.putAll(g.getMapping()); nextMapping.put(nName, t.getTargetState()); // Searching the ref to the corresponding global // state in the list globalStates GlobalState next = search(nextMapping); // Adding the step to list of steps in g g.addStep(new Step(nName,t.getOperation(),next)); } } } } else { // Identifying all settling handlers for handling the faults // pending in this global state for(Node n: nodes) { // Computing the "targetState" of the settling handler for n String targetState = null; String nName = n.getName(); String nState = g.getStateOf(nName); Map<String,List<String>> nRho = n.getProtocol().getRho(); List<String> nFaults = new ArrayList(); for(String req : nRho.get(nState)) { if(faults.contains(nName + "/" + req)) nFaults.add(req); } // TODO : Assuming handlers to be complete if(nFaults.size() > 0) { Map<String,List<String>> nPhi = n.getProtocol().getPhi(); for(String handlingState : nPhi.get(nState)) { // Check if handling state is handling all faults boolean handles = true; for(String req : nRho.get(handlingState)) { if(nFaults.contains(req)) handles = false; } // TODO : Assuming handlers to be race-free // Updating targetState (if the handlingState is // assuming a bigger set of requirements) if(handles) { if(targetState == null || nRho.get(handlingState).size() > nRho.get(targetState).size()) targetState = handlingState; } } // Creating a new mapping for the actual state of n Map<String,String> nextMapping = new HashMap(); nextMapping.putAll(g.getMapping()); nextMapping.put(nName, targetState); // Searching the ref to the corresponding global // state in the list globalStates GlobalState next = search(nextMapping); // Adding the step to list of steps in g g.addStep(new Step(nName,next)); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getSequentialPlan() {\n // ==========================================\n // Computing the (cheapest) sequence of steps\n // ==========================================\n \n // Maps of steps and cost from the global state s to the others\n Map<GlobalState,List<Step>> steps = new HashMap();\n steps.put(current,new ArrayList());\n Map<GlobalState,Integer> costs = new HashMap();\n costs.put(current,0);\n // List of visited states\n List<GlobalState> visited = new ArrayList();\n visited.add(current);\n\n // List of global states still to be visited\n List<GlobalState> toBeVisited = new ArrayList();\n \n // Adding the states reachable from start to \"toBeVisited\"\n for(Step step : current.getSteps()) {\n GlobalState next = step.getNextGlobalState();\n // Adding the sequence of operations towards \"next\" \n List<Step> stepSeq = new ArrayList();\n stepSeq.add(step);\n steps.put(next,stepSeq);\n // Adding the cost of the sequence of operation towards \"next\"\n costs.put(next,step.getCost());\n toBeVisited.add(next);\n }\n \n // Exploring the graph of global states by exploiting \"toBeVisited\"\n while(toBeVisited.size() > 0) {\n // Removing the first global state to be visited and marking it\n // as visited\n GlobalState current = toBeVisited.remove(0);\n visited.add(current);\n \n for(Step step : current.getSteps()) {\n GlobalState next = step.getNextGlobalState();\n // Adding the sequence of operations from \"start\" to \"next\"\n // (if more convenient)\n int nextCost = costs.get(current) + step.getCost();\n if(visited.contains(next)) {\n // If current path is cheaper, updates \"steps\" and \"costs\"\n if(costs.get(next) > nextCost) {\n List<Step> stepSeq = new ArrayList();\n stepSeq.addAll(steps.get(current));\n stepSeq.add(step);\n steps.put(next,stepSeq);\n costs.put(next,nextCost);\n }\n } else {\n List<Step> stepSeq = new ArrayList();\n stepSeq.addAll(steps.get(current));\n stepSeq.add(step);\n steps.put(next,stepSeq);\n costs.put(next, nextCost);\n if(!(toBeVisited.contains(next))) toBeVisited.add(next);\n }\n }\n }\n \n // ====================================================\n // Computing the sequence of operations from \"s\" to \"t\"\n // ====================================================\n // If no plan is available, return null\n if(steps.get(target) == null) \n return null;\n // Otherwise, return the corresponding sequence of operations\n List<String> opSequence = new ArrayList();\n for(Step step : steps.get(target)) {\n if(!(step.getReason().contains(Step.handling))) {\n opSequence.add(step.getReason());\n }\n }\n return opSequence;\n }", "public void executegenmoves() {\n \t\tObject state = gm.hashToState(new BigInteger(conf.getProperty(\"gamesman.hash\")));\n \t\tfor (Object nextstate : gm.validMoves(state)) {\n \t\t\tSystem.out.println(gm.stateToHash(nextstate));\n \t\t\tSystem.out.println(gm.displayState(nextstate));\n \t\t}\n \t}", "abstract int steps();", "@Test\n public void genStateTransferMetric() {\n TreeMap<String, Integer> stat = new TreeMap<>();\n int currState = 8;\n for (int i = 1; i < numSteps; i++) {\n int nextStates = getNextState(currState);\n stat.compute(currState + \"-\" + nextStates, (k, v) -> v == null ? 1 : v + 1);\n currState = nextStates;\n }\n stat.forEach((k, v) -> System.out.printf(\"%s:%f\\n\", k.replace('-', ':'), (double) v / numSteps));\n }", "private void initializeMaps(){\n\t\t\n\t\tsteps = new HashMap<Integer, Set<PlanGraphStep>>();\n\t\tfacts = new HashMap<Integer, Set<PlanGraphLiteral>>();\n\t\tinconsistencies = new HashMap<Integer, Set<LPGInconsistency>>();\n\t\t\n\t\tfor(int i = 0; i <= maxLevel; i++) {\n\t\t\tsteps.put(i, new HashSet<PlanGraphStep>());\n\t\t\tfacts.put(i, new HashSet<PlanGraphLiteral>());\n\t\t\tinconsistencies.put(i, new HashSet<LPGInconsistency>());\n\t\t}\n\t\t\n\t\t/* This level holds only the special action end which has the goals as preconditions */\n\t\tsteps.put(maxLevel + 1, new HashSet<PlanGraphStep>());\n\t}", "private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }", "@Override\r\n\tpublic void step(SimState state) {\r\n\r\n\t}", "public void runStateMachine() {\n switch(m_currentState) {\n case PoweringUpState:\n if (this.doPowerUpStuff()) {\n this.setRobotState(RobotState.InitializingDataState);\n }\n break;\n case InitializingDataState:\n\n if (this.initializeData()) {\n // Load some commands for our robot.\n // We could definitely load these from a different file.\n System.out.println(\"-------- Populating Command Queue --------\");\n m_robotQueue.addCommand(new MoveToLocationXY(1.0, 2.0, 2.0));\n m_robotQueue.addCommand(new MoveToLocationXY(-1.0, -2.0, 1.0));\n m_robotQueue.addCommand(new RotateDegrees(180.0, 22.5));\n\n System.out.println(\"\\n-------- Entering Main Robot State --------\");\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n break;\n case IdleWaitingForCommandState:\n if (m_robotQueue.isCommandPending()) {\n\n m_currentCommand = m_robotQueue.getNextCommand();\n\n // m_currentCommand is a generic Object. Let's see what it actually is...\n String commandName = m_currentCommand.getClass().toString();\n System.out.println(\"* Got new command. Processing: \" + commandName);\n\n // Change robot state depending on the type of command we found.\n switch (commandName) {\n // NOTE: This \"class xyz\" text compare is kind of weird,\n // We could probably find a better way.\n case \"class commands.MoveToLocationXY\":\n this.setRobotState(RobotState.MovingToLocationState);\n break;\n case \"class commands.RotateDegrees\":\n this.setRobotState(RobotState.RotatingState);\n break;\n default:\n System.out.println(\"Unrecognized command \" + commandName);\n }\n System.out.println();\n\n } else if (m_currentCommand != null) {\n m_currentCommand = null; // Doing nothing. Clear current command.\n }\n break;\n case MovingToLocationState:\n MoveToLocationXY moveCmd = (MoveToLocationXY) m_currentCommand;\n try {\n if (moveCmd.runUntilComplete()) {\n // Done moving, process next item in command queue\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n } catch (InterruptedException e) { // for Thread.sleep - demo only\n e.printStackTrace();\n }\n break;\n case RotatingState:\n RotateDegrees rotateCmd = (RotateDegrees) m_currentCommand; // Cast to correct type.\n try {\n if (rotateCmd.runUntilComplete()) {\n // Done moving, process next item in command queue\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n } catch (InterruptedException e) { // for Thread.sleep - demo only\n e.printStackTrace();\n }\n break;\n case SearchingForTargetsState:\n // TODO - implement SearchTarget demo behavior\n break;\n }\n }", "@Override\n protected void defineSteps() {\n addStep(new StepStartDriveUsingMotionProfile(80, 0.0));\n addStep(new StepWaitForDriveMotionProfile());\n addStep(new StepStopDriveUsingMotionProfile());\n addStep(new AutoStepDelay(500));\n addStep(new StepSetIntakeState(true));\n addStep(new StepSetNoseState(true));\n addStep(new AutoStepDelay(500));\n addStep(new StepStartDriveUsingMotionProfile(-5, 0.0));\n addStep(new StepWaitForDriveMotionProfile());\n addStep(new StepStopDriveUsingMotionProfile());\n addStep(new AutoStepDelay(500));\n\n AutoParallelStepGroup crossCheval = new AutoParallelStepGroup();\n AutoSerialStepGroup driveOver = new AutoSerialStepGroup();\n\n driveOver.addStep(new StepStartDriveUsingMotionProfile(80, 0.0));\n driveOver.addStep(new StepWaitForDriveMotionProfile());\n driveOver.addStep(new StepStopDriveUsingMotionProfile());\n // Medium flywheel speed.\n crossCheval.addStep(new StepRunFlywheel(Shooter.FLYWHEEL_SPEED_MEDIUM));\n crossCheval.addStep(driveOver);\n addStep(crossCheval);\n addStep(new AutoStepDelay(500));\n addStep(new StepSetIntakeState(false));\n addStep(new StepSetNoseState(false));\n addStep(new AutoStepDelay(1000));\n\n addStep(new StepQuickTurn(180));\n addStep(new AutoStepDelay(1000));\n addStep(new StepVisionAdjustment());\n addStep(new AutoStepDelay(500));\n addStep(new StepSetShooterPosition(true));\n addStep(new StepResetShooterPositionToggle());\n addStep(new AutoStepDelay(2000));\n addStep(new StepShoot());\n addStep(new AutoStepDelay(1000));\n addStep(new StepResetShotToggle());\n addStep(new StepRunFlywheel(Shooter.FLYWHEEL_SPEED_ZERO));\n\n // total delay time: 7.5 seconds\n }", "public void getAllFSMProcess() {\n IReadFile readFile = new ReadFile();\n List<String> list = readFile.readFsmFile(path);\n for(String s : list) {\n FSMContent content = readFile.saveFSMContent(readFile.splitFsmLine(s));\n if(currentState == null) {\n currentState = content.getCurrentState();\n }\n current_state.add(content.getCurrentState());\n next_state.add(content.getNextState());\n solution_set.add(content.getInputSymbol());\n contentsMap.put(content.getCurrentState() + content.getInputSymbol(), content);\n }\n }", "protected abstract void stepImpl( long stepMicros );", "public SequencePairAlignment generatePath ()\n\t{\n\t\tif (isGenerative() == false)\n\t\t\tthrow new IllegalStateException (\"Transducer is not generative.\");\n\t\tArrayList initialStates = new ArrayList ();\n\t\tIterator iter = initialStateIterator ();\n\t\twhile (iter.hasNext()) { initialStates.add (iter.next()); }\n\t\t// xxx Not yet finished.\n\t\tthrow new UnsupportedOperationException ();\n\t}", "boolean generateAutomata()\n{\n empty_calls = new HashSet<JflowMethod>();\n event_calls = new HashSet<JflowMethod>();\n complete_calls = new LinkedHashMap<JflowMethod,ModelMethod>();\n methods_todo = new LinkedHashSet<JflowMethod>();\n return_set = new HashMap<JflowMethod,Boolean>();\n\n start_set = new HashSet<JflowMethod>();\n for (JflowMethod cm : model_master.getStartMethods()) {\n methods_todo.add(cm);\n start_set.add(cm);\n }\n\n while (!methods_todo.isEmpty()) {\n Iterator<JflowMethod> it = methods_todo.iterator();\n if (!it.hasNext()) break;\n JflowMethod cm = it.next();\n it.remove();\n if (!empty_calls.contains(cm) && !complete_calls.containsKey(cm)) {\n\t if (!model_master.checkUseMethod(cm) || !model_master.isMethodAccessible(cm.getMethod()) ||\n\t\tcm.getMethod().isAbstract()) {\n\t if (model_master.doDebug()) {\n\t System.err.println(\"Ignore method: \" + cm.getMethodName() + \" \" +\n\t\t\t\t cm.getMethodSignature() + \" \" +\n\t\t\t\t model_master.checkUseMethod(cm) + \" \" +\n\t\t\t\t model_master.isMethodAccessible(cm.getMethod()));\n\t }\n\t empty_calls.add(cm);\n\t }\n\t else {\n\t ModelBuilder bld = new ModelBuilder(model_master,this,cm);\n\t complete_calls.put(cm,null);\n\t ModelMethod cs = bld.createAutomata();\n\t if (cs == null) empty_calls.add(cm);\n\t else complete_calls.put(cm,cs);\n\t }\n }\n }\n\n Set<JflowMethod> workq = new LinkedHashSet<JflowMethod>();\n for (Map.Entry<JflowMethod,ModelMethod> ent : complete_calls.entrySet()) {\n JflowMethod bm = ent.getKey();\n ModelMethod cs = ent.getValue();\n if (cs == null) continue;\n Set<JflowModel.Node> states = simplify(cs.getStartState());\n int ctr = 0;\n boolean hasrtn = false;\n for (JflowModel.Node st1 : states) {\n\t if (st1.getEvent() != null) event_calls.add(bm);\n\t else if (st1.getFieldSet() != null) event_calls.add(bm);\n\t if (!hasrtn && st1.getReturnValue() != null) hasrtn = true;\n\t JflowMethod cm = st1.getCall();\n\t if (cm != null) {\n\t if (event_calls.contains(cm)) event_calls.add(bm);\n\t else {\n\t ++ctr;\n\t ModelMethod ncs = complete_calls.get(cm);\n\t if (ncs != null) ncs.addUser(bm);\n\t else System.err.println(\"Call to \" + cm.getMethodName() + \" not found\");\n\t }\n\t }\n }\n return_set.put(bm,Boolean.valueOf(hasrtn));\n\n if (model_master.doDebug()) {\n\t System.err.println(\"First pass method \" + bm.getMethodName() + \" \" +\n\t\t\t bm.getMethodSignature() + \" \" + ctr + \" \" +\n\t\t\t states.size() + \" \" + event_calls.contains(bm));\n }\n if (ctr == 0) {\n\t if (!event_calls.contains(bm)) empty_calls.add(bm);\n }\n else {\n\t workq.add(bm);\n }\n }\n if (model_master.doDebug()) System.err.println(\"Work queue size = \" + workq.size());\n if (event_calls.size() == 0) return false;\n\n Set<JflowMethod> returnused = null;\n boolean chng = true;\n while (chng) {\n chng = false;\n returnused = new HashSet<JflowMethod>();\n while (!workq.isEmpty()) {\n\t Iterator<JflowMethod> it = workq.iterator();\n\t if (!it.hasNext()) break;\n\t JflowMethod bm = it.next();\n\t it.remove();\n\t ModelMethod cs = complete_calls.get(bm);\n\t boolean chkit = !event_calls.contains(bm);\n\n\t if (cs == null || empty_calls.contains(bm)) continue;\n\n\t int ctr = 0;\n\t Set<JflowModel.Node> states = simplify(cs.getStartState());\n\t boolean mchng = false;\n\t boolean hasrtn = false;\n\t for (JflowModel.Node st1 : states) {\n\t if (!hasrtn && st1.getReturnValue() != null) hasrtn = true;\n\t JflowMethod cm = st1.getCall();\n\t if (cm != null) {\n\t if (st1.getUseReturn()) returnused.add(cm);\n\t if (!event_calls.contains(cm)) {\n\t\t ++ctr;\n\t\t}\n\t else if (chkit) {\n\t\t if (model_master.doDebug()) {\n\t\t System.err.println(\"Method required: \" + bm.getMethodName() + \" \" +\n\t\t\t\t\t bm.getMethodSignature() + \" :: \" + cm.getMethodName() +\n\t\t\t\t\t \" \" + cm.getMethodSignature());\n\t\t }\n\t\t event_calls.add(bm);\n\t\t chkit = false;\n\t\t mchng = true;\n\t\t}\n\t }\n\t }\n\n\t if (return_set.get(bm) != Boolean.FALSE) {\n\t return_set.put(bm,Boolean.valueOf(hasrtn));\n\t if (!hasrtn) mchng = true;\n\t }\n\n\t if (ctr == 0 && !event_calls.contains(bm)) {\n\t empty_calls.add(bm);\n\t mchng = true;\n\t }\n\n\t if (model_master.doDebug()) System.err.println(\"Consider method \" + bm.getMethodName() + \" \" + bm.getMethodSignature() + \" \" + ctr + \" \" + states.size() + \" \" + mchng);\n\n\t if (mchng) {\n\t for (Iterator<?> it1 = cs.getUsers(); it1.hasNext(); ) {\n\t JflowMethod cm = (JflowMethod) it1.next();\n\t if (model_master.doDebug()) System.err.println(\"\\tQueue \" + cm.getMethodName() + \" \" + cm.getMethodSignature());\n\t workq.add(cm);\n\t }\n\t }\n }\n\n for (Map.Entry<JflowMethod,ModelMethod> ent : complete_calls.entrySet()) {\n\t JflowMethod bm = ent.getKey();\n\t ModelMethod cs = ent.getValue();\n\t if (cs != null && !empty_calls.contains(bm) && !event_calls.contains(bm)) {\n\t empty_calls.add(bm);\n\t chng = true;\n\t for (Iterator<JflowMethod> it1 = cs.getUsers(); it1.hasNext(); ) {\n\t JflowMethod cm = it1.next();\n\t if (model_master.doDebug()) System.err.println(\"\\tQueue \" + cm.getMethodName() + \" \" + cm.getMethodSignature());\n\t workq.add(cm);\n\t }\n\t }\n }\n }\n\n for (JflowMethod cm : empty_calls) {\n complete_calls.remove(cm);\n }\n\n chng = true;\n boolean needsync = true;\n while (chng) {\n chng = false;\n boolean nextsync = false;\n for (ModelMethod em : complete_calls.values()) {\n\t Set<JflowModel.Node> sts = simplify(em.getStartState());\n\t if (!needsync) {\n\t for (JflowModel.Node nms : sts) {\n\t ModelState ms = (ModelState) nms;\n\t if (ms.getWaitType() != ModelWaitType.NONE) {\n\t\t ms.clearCall();\n\t\t chng = true;\n\t\t}\n\t }\n\t }\n\t else if (!nextsync) {\n\t for (JflowModel.Node ms : sts) {\n\t if (ms.getCall() != null && ms.isAsync()) nextsync = true;\n\t }\n\t }\n\t if (return_set.get(em.getMethod()) != Boolean.FALSE && returnused != null && \n\t\t!returnused.contains(em.getMethod())) {\n\t for (JflowModel.Node nms : sts) {\n\t ModelState ms = (ModelState) nms;\n\t if (ms.getReturnValue() != null) {\n\t\t ms.clearCall();\n\t\t chng = true;\n\t\t}\n\t }\n\t return_set.put(em.getMethod(),Boolean.FALSE);\n\t }\n }\n if (nextsync != needsync) chng = true;\n needsync = nextsync;\n }\n\n for (ModelMethod em : complete_calls.values()) {\n ModelMinimizer.minimize(model_master,em.getStartState());\n }\n\n ModelSynch msynch = new ModelSynch(complete_calls.values());\n msynch.establishPartitions();\n\n if (model_master.doDebug()) {\n IvyXmlWriter nxw = new IvyXmlWriter(new OutputStreamWriter(System.err));\n nxw.begin(\"DEBUG\");\n outputEvents(nxw);\n outputProgram(nxw);\n nxw.end();\n nxw.flush();\n }\n\n boolean retfg = true;\n\n Collection<JflowEvent> c = model_master.getRequiredEvents();\n if (c != null && !c.isEmpty()) {\n Set<JflowEvent> evts = new HashSet<JflowEvent>();\n for (ModelMethod cs : complete_calls.values()) {\n\t Set<JflowModel.Node> states = simplify(cs.getStartState());\n\t for (JflowModel.Node ms : states) {\n\t JflowEvent ev = ms.getEvent();\n\t if (ev != null) evts.add(ev);\n\t }\n }\n for (JflowEvent ev : c) {\n\t if (!evts.contains(ev)) {\n\t System.err.println(\"JFLOW: Required event \" + ev + \" not found\");\n\t retfg = false;\n\t break;\n\t }\n }\n }\n\n empty_calls = null;\n event_calls = null;\n methods_todo = null;\n return_set = null;\n\n return retfg;\n}", "public void runAlgorithm()\n\t{\n\t\tboolean done = false;\n while (!done)\n {\n switch (step)\n {\n case 1:\n step=stepOne(step);\n break;\n case 2:\n step=stepTwo(step);\n break;\n case 3:\n step=stepThree(step);\n break;\n case 4:\n step=stepFour(step);\n break;\n case 5:\n step=stepFive(step);\n break;\n case 6:\n step=stepSix(step);\n break;\n case 7:\n stepSeven(step);\n done = true;\n break;\n }\n }\n\t}", "public void makeSimulationStep() {\n for (ElevatorController controller : elevatorControllers.values()) {\n controller.makeOneStep();\n }\n }", "public static void create(int steps) {\n\t\tlocalPlaces = 40;\n\t\toutPlaces = 3;\n\n\t\t// Initial marking: \n\t\tinitPlaces = new int[] {0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0};\n\t\ttileInitPlaces = 20;\n\n\t\t// Output mapping:\n\t\tint offs = 0;\n\t\ttOutMap = new OutMap[outPlaces];\n\t\ttOutMap[offs++] = new OutMap(-1, 37);\n\t\ttOutMap[offs++] = new OutMap(-1, 35);\n\t\ttOutMap[offs++] = new OutMap(1, 0);\n\n\t\t// Transitions:\n\t\toffs = 0;\n\t\ttransitions = 24; // (12 aligned to 4) x 2 steps\n\t\ttmap = new Transition[transitions];\n\n\t\t// {0xoi, inp-s, outp-s}\n\t\ttmap[offs++] = new Transition(0x22, 4, 1, 41 /* out */ , 40 /* out */ ); // 0: ccw_take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x22, 4, 12, 9, 5); // 1: take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 0, 1, 4); // 2: ccw_put_left_fork\n\t\ttmap[offs++] = new Transition(0x21, 10, 11, 3); // 3: put_left_fork\n\n\t\ttmap[offs++] = new Transition(0x31, 7, 10, 2, 8); // 4: start_thinking\n\t\ttmap[offs++] = new Transition(0x13, 9, 6, 8, 7); // 5: start_eating\n\t\ttmap[offs++] = new Transition(0x21, 2, 4, 12); // 6: put_right_fork\n\t\ttmap[offs++] = new Transition(0x31, 13, 20 /* next */ , 18, 14); // 7: cw_start_thinking\n\n\t\ttmap[offs++] = new Transition(0x13, 11, 3, 5, 6); // 8: take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x13, 11, 16, 17, 19); // 9: cw_take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 18, 16, 11); // 10: cw_put_right_fork\n\t\ttmap[offs++] = new Transition(0x13, 14, 19, 15, 13); // 11: cw_start_eating\n\n\t\ttmap[offs++] = new Transition(0x22, 24, 21, 15 /* prev */ , 17 /* prev */ ); // 0: ccw_take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x22, 24, 32, 29, 25); // 1: take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 20, 21, 24); // 2: ccw_put_left_fork\n\t\ttmap[offs++] = new Transition(0x21, 30, 31, 23); // 3: put_left_fork\n\n\t\ttmap[offs++] = new Transition(0x31, 27, 30, 22, 28); // 4: start_thinking\n\t\ttmap[offs++] = new Transition(0x13, 29, 26, 28, 27); // 5: start_eating\n\t\ttmap[offs++] = new Transition(0x21, 22, 24, 32); // 6: put_right_fork\n\t\ttmap[offs++] = new Transition(0x31, 33, 42 /* out */ , 38, 34); // 7: cw_start_thinking\n\n\t\ttmap[offs++] = new Transition(0x13, 31, 23, 25, 26); // 8: take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x13, 31, 36, 37, 39); // 9: cw_take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 38, 36, 31); // 10: cw_put_right_fork\n\t\ttmap[offs++] = new Transition(0x13, 34, 39, 35, 33); // 11: cw_start_eating\n\n\t\tif(PPNDevice.logMessages)\n\t\t\tSystem.out.printf(\"localPlaces: %d\\ntransitions: %d\\n\", localPlaces, transitions);\n\t}", "protected abstract R runStep();", "private List<GlobalState> generateGlobalStates(List<Node> nodes) {\n // Creating a list of global states with an empty state\n List<GlobalState> gStates = new ArrayList();\n gStates.add(new GlobalState(nodes,binding));\n \n // Generating all possible global states\n for(Node n : nodes) {\n // Generating a new list of global states by adding a new pair\n // for each state of current node to those already generated\n List<GlobalState> newGStates = new ArrayList();\n for(String s : n.getProtocol().getStates()) {\n for(GlobalState g : gStates) {\n GlobalState newG = new GlobalState(nodes,binding);\n newG.addMapping(g);\n newG.addMapping(n.getName(),s);\n newGStates.add(newG);\n }\n }\n // Updating the list of global states with the new one\n gStates = newGStates;\n }\n return gStates;\n }", "@Override\n\tpublic void step() {\n\t\t\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "@Override\n protected void incrementStates() {\n\n }", "@Override\n\tpublic void step() {\n\t}", "@Override\n\tpublic void step() {\n\t}", "public void step()\n {\n status = stepInternal();\n }", "@Override\n public List<Step> getBuildSteps(BuildContext context, BuildableContext buildableContext) {\n return ImmutableList.of();\n }", "java.lang.String getNextStep();", "@Override\n public Map<Integer, Action> initialStep(State.StateView newstate, History.HistoryView statehistory) {\n List<Integer> unitIDs = newstate.getUnitIds(playernum);\n \n if(unitIDs.size() == 0)\n {\n System.err.println(\"No units found!\");\n return null;\n }\n \n footmanID = unitIDs.get(0);\n \n // double check that this is a footman\n if(!newstate.getUnit(footmanID).getTemplateView().getName().equals(\"Footman\"))\n {\n System.err.println(\"Footman unit not found\");\n return null;\n }\n \n // find the enemy playernum\n Integer[] playerNums = newstate.getPlayerNumbers();\n int enemyPlayerNum = -1;\n for(Integer playerNum : playerNums)\n {\n if(playerNum != playernum) {\n enemyPlayerNum = playerNum;\n break;\n }\n }\n \n if(enemyPlayerNum == -1)\n {\n System.err.println(\"Failed to get enemy playernumber\");\n return null;\n }\n \n // find the townhall ID\n List<Integer> enemyUnitIDs = newstate.getUnitIds(enemyPlayerNum);\n \n if(enemyUnitIDs.size() == 0)\n {\n System.err.println(\"Failed to find enemy units\");\n return null;\n }\n \n townhallID = -1;\n enemyFootmanID = -1;\n for(Integer unitID : enemyUnitIDs)\n {\n Unit.UnitView tempUnit = newstate.getUnit(unitID);\n String unitType = tempUnit.getTemplateView().getName().toLowerCase();\n if(unitType.equals(\"townhall\"))\n {\n townhallID = unitID;\n }\n else if(unitType.equals(\"footman\"))\n {\n enemyFootmanID = unitID;\n }\n else\n {\n System.err.println(\"Unknown unit type\");\n }\n }\n \n if(townhallID == -1) {\n System.err.println(\"Error: Couldn't find townhall\");\n return null;\n }\n \n long startTime = System.nanoTime();\n path = findPath(newstate);\n totalPlanTime += System.nanoTime() - startTime;\n \n return middleStep(newstate, statehistory);\n }", "@Test\n\tpublic void testStep() {\n\t\tsimulator.step();\n\t\tassertEquals(0, (int)simulator.averageWaitTime());\n\t\tassertEquals(0, (int)simulator.averageProcessTime());\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\n\t\tfor (int i = 0; i < 28; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(287, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1525, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\t\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(614, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1457, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(true, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(false, simulator.moreSteps());\t\n\t}", "@Override\n\tpublic Map middleStep(StateView newstate, HistoryView statehistory)\n\t{\n\t\t\n\t\tMap<Integer, Action> actions = new HashMap<Integer, Action>();\n//\t\t\n\t\tList<Integer> unitIDs = newstate.getUnitIds(playernum);\n//\t\t\n//\t\tfor(Integer unitID : unitIDs) {\n//\t\t\tUnitView unitView = newstate.getUnit(unitID);\n//\t\t\tTemplateView templateView = unitView.getTemplateView();\n//\t\t\tSystem.out.println(templateView.getName() + \": \" + unitID);\n//\t\t}\n//\t\t\n\t\tList<Integer> myUnitIds = newstate.getUnitIds(playernum);\n\t\t\n\t\tList<Integer> peasantIds = new ArrayList<Integer>();\n\t\t\n\t\tList<Integer> townhallIds = new ArrayList<Integer>();\n\t\t\n\t\tList<Integer> barracksIds = new ArrayList<Integer>();\n\t\t\n\t\tList<Integer> footmanIds = new ArrayList<Integer>();\n\t\t\n\t\tList<Integer> farmsIds = new ArrayList<Integer>();\n\t\t\n\t\tint currentGold = newstate.getResourceAmount(playernum, ResourceType.GOLD);\n\t\t\n\t\tint currentWood = newstate.getResourceAmount(playernum, ResourceType.WOOD);\n\t\t\n\t\tList<Integer> goldMines = newstate.getResourceNodeIds(Type.GOLD_MINE);\n\t\t\n\t\tList<Integer> trees = newstate.getResourceNodeIds(Type.TREE);\n\t\t\n\t\tfor(Integer unitID : myUnitIds) {\n\t\t\tUnitView unit = newstate.getUnit(unitID);\n\t\t\tString unitTypeName = unit.getTemplateView().getName();\n\t\t\t\n\t\t\tif(unitTypeName.equals(\"TownHall\")) {\n\t\t\t\ttownhallIds.add(unitID);\n\t\t\t}else if(unitTypeName.equals(\"Peasant\")) {\n\t\t\t\tpeasantIds.add(unitID);\n\t\t\t}else if(unitTypeName.equals(\"Barracks\")) {\n\t\t\t\tbarracksIds.add(unitID);\n\t\t\t}else if(unitTypeName.equals(\"Footman\")) {\n\t\t\t\tfootmanIds.add(unitID);\n\t\t\t}else if(unitTypeName.equals(\"Farm\")) {\n\t\t\t\tfarmsIds.add(unitID);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Unexpexted Unit type: \" + unitTypeName);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Integer peasantID : peasantIds) {\n\t\t\tAction action = null;\n\n\t\t\tif(newstate.getUnit(peasantID).getCargoAmount() > 0) {\n\t\t\t\taction = new TargetedAction(peasantID, ActionType.COMPOUNDDEPOSIT, townhallIds.get(0));\n\t\t\t}else {\n\t\t\t\tif(currentGold < currentWood) {\n\t\t\t\t\taction = new TargetedAction(peasantID, ActionType.COMPOUNDGATHER, goldMines.get(0));\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\taction = new TargetedAction(peasantID, ActionType.COMPOUNDGATHER, trees.get(0));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tactions.put(peasantID, action);\n\t\t}\n\t\n\t\tif((currentGold >= 700) && (currentWood >= 400) && (barracksIds.size() < 1)) {\n\t\t\tTemplateView barrackTemplate = newstate.getTemplate(playernum, \"Barracks\");\n\t\t\t\n\t\t\tint barrackTemplateID = barrackTemplate.getID();\n\t\t\tint peasantsID = peasantIds.get(0);\n\t\t\t\n\t\t\tactions.put(peasantsID, Action.createCompoundProduction(peasantsID, barrackTemplateID));\n\t\t\t \n\t\t} else if ((currentGold >= 500) && (currentWood >= 250) && (farmsIds.size() < 1)) {\n\t\t\tTemplateView farmTemplate = newstate.getTemplate(playernum, \"Farm\");\n\t\t\t\n\t\t\tint farmTemplateID = farmTemplate.getID();\n\t\t\tint peasantsID = peasantIds.get(0);\n\t\t\t\n\t\t\tactions.put(peasantsID, Action.createCompoundProduction(peasantsID, farmTemplateID));\n\t\t} else if ((currentGold >= 600) && (footmanIds.size() < 2) && (barracksIds.size() > 0)) {\n\t\t\tTemplateView footmanTemplate = newstate.getTemplate(playernum, \"Footman\");\n\t\t\t\n\t\t\tint footmanTemplateID = footmanTemplate.getID();\n\t\t\tint barracksId = barracksIds.get(0);\n\t\t\t\n\t\t\tactions.put(barracksId, Action.createCompoundProduction(barracksId, footmanTemplateID));\n\t\t\t\n\t\t}\n\t\t\n\t\treturn actions;\n\t}", "public abstract void performStep();", "public String nextStep();", "public void train() {\n while (!environment.inTerminalState()) {\n\n Action action = policy.chooseAction(environment);\n List<Double> stateAction = environment.getStateAction(action);\n\n double knownReward = environment.immediateReward(action);\n double totalReward = environment.performAction(action);\n double unknownReward = totalReward - knownReward;\n\n // Next state of environment is implicitly passed.\n backup(stateAction, unknownReward);\n }\n }", "public static void main(String[] args) {\n int progressId = 1;\n Map<Integer, Set<Entity>> progressEntities = new HashMap<>();\n Set<Entity> map000entity = new HashSet<>();\n map000entity.add(new Entity(new LocationPair<>(9.5F, 12.5F), Entity.TOWARD_RIGHT, \"Cirno\") {\n int useRefresh = 10;\n int activeTime = 80;\n boolean acting = true;\n\n @Override\n public void onRegisiter() {\n this.setMovingWay(MOVING_FASTER);\n }\n\n @Override\n public void onUnRegisiter() {\n System.out.println(\"Entity was unregisitered.\");\n }\n\n @Override\n public void action() {\n if (acting) {\n if (activeTime >= 0) {\n this.setToward(Entity.TOWARD_RIGHT);\n this.setWonderMoving(Entity.GOTOWARD_RIGHT);\n } else {\n this.setToward(Entity.TOWARD_LEFT);\n this.setWonderMoving(Entity.GOTOWARD_LEFT);\n }\n }\n if (isLastMovingSucceed()) {\n if (++activeTime >= 160) {\n activeTime = -160;\n }\n }\n if (useRefresh > 0) {\n useRefresh--;\n }\n }\n\n @Override\n public void onUse() {\n if (useRefresh == 0) {\n Keyboard.setState(Keyboard.STATE_DIALOG);\n acting = false;\n int moving = this.getMoving();\n int wonderMoving = this.getWonderMoving();\n int toward = this.getToward();\n this.setMoving(Entity.NOTGO);\n this.setWonderMoving(Entity.NOTGO);\n this.facePlayer();\n System.out.println(\"Changed the state of Keyboard.\");\n Case progress = new Case(\"test.entity.prs\", 2, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n EventManager.getInstance().performedNp(this, 0);\n Resource.regisiterMisc(new Misc() {\n @Override\n public void invoke() {\n if (Resource.getMapId() == 1) {\n this.completed();\n Keyboard.setState(Keyboard.STATE_DIALOG);\n ArrayList<String> str = new ArrayList<>();\n str.add(Localization.query(\"test.misc\"));\n SimpleTalkingDialog std = new SimpleTalkingDialog(str, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n });\n std.init();\n GameFrame.getInstance().regisiterDialog(std);\n System.out.println(\"Invoked misc.\");\n }\n }\n });\n System.out.println(\"Progress ID is now 0.\");\n System.out.println(\"Changed the state of Keyboard.\");\n useRefresh = 40;\n });\n Case hello = new Case(\"test.entity.faq\", 3, () -> {\n ArrayList<String> str = new ArrayList<>();\n str.add(Localization.query(\"test.entity.hello1\"));\n str.add(Localization.query(\"test.entity.hello2\"));\n SimpleTalkingDialog std = new SimpleTalkingDialog(str, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n useRefresh = 40;\n });\n std.init();\n GameFrame.getInstance().regisiterDialog(std);\n System.out.println(\"Changed the state of Keyboard.\");\n });\n Case back = new Case(\"test.entity.buff\", 4, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n Resource.getPlayer().addBuff(new SpeedBuff(600, 1.5F));\n System.out.println(\"Changed the state of Keyboard.\");\n useRefresh = 40;\n });\n progress.setRelation(hello, null, hello);\n hello.setRelation(back, progress, back);\n back.setRelation(null, hello, null);\n progress.init();\n hello.init();\n back.init();\n List<Case> cases = new ArrayList<>();\n cases.add(progress);\n cases.add(hello);\n cases.add(back);\n ArrayList<String> strs = new ArrayList<>();\n strs.add(Localization.query(\"test.entity.title\"));\n\t\t\t\t\tTalkingDialog dialog = new TalkingDialog(strs, cases);\n\t\t\t\t\tdialog.init();\n GameFrame.getInstance().regisiterDialog(dialog);\n }\n useRefresh = 10;\n }\n });\n Set<Entity> map002entity = new HashSet<>();\n List<String> greet = new ArrayList<>();\n greet.add(\"test.entity.npc\");\n map002entity.add(new FriendlyNPC(new LocationPair<>(9.5F, 7.5F), Entity.TOWARD_DOWN, \"Sanae\", 3, greet));\n progressEntities.put(0, map000entity);\n progressEntities.put(2, map002entity);\n Map<Integer, Set<Item>> progressItems = new HashMap<>();\n boolean withDefaultProgress = true;\n //*/\n\n\n /*\n int progressId = 0;\n Map<Integer, Set<Entity>> progressEntities = new HashMap<>();\n Map<Integer, Set<Item>> progressItems = new HashMap<>();\n boolean withDefaultProgress = true;\n */\n\n\n try {\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File(\"resources/object/progress\", \"progress\" + String.format(\"%03d\", progressId) + \".prs\")));\n oos.writeObject(new Progress(progressId, progressEntities, progressItems, withDefaultProgress));\n oos.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}", "public void initiateValues() {\n\t\t// initialise states and actions\n\t\toldState = new MarioState(configFile);\n\t\tstate = new MarioState(configFile);\n\t\t\n\t\treturnAction = new boolean[Environment.numberOfButtons];\n\t\tallActions = getAllActions();\n\t\t\n\t\t// hardcoded set the possible actions\n\t\tJUMP[Mario.KEY_JUMP] = true;\n\t\tSPEED[Mario.KEY_SPEED] = true;\n\t\tJUMP_SPEED[Mario.KEY_JUMP] = JUMP_SPEED[Mario.KEY_SPEED] = true;\n\t\tRIGHT[Mario.KEY_RIGHT] = true;\n\t\tRIGHT_JUMP[Mario.KEY_RIGHT] = RIGHT_JUMP[Mario.KEY_JUMP] = true;\n\t\tRIGHT_SPEED[Mario.KEY_RIGHT] = RIGHT_SPEED[Mario.KEY_SPEED] = true;\n\t\tRIGHT_JUMP_SPEED[Mario.KEY_RIGHT] = RIGHT_JUMP_SPEED[Mario.KEY_JUMP] = \n\t\t\t\tRIGHT_JUMP_SPEED[Mario.KEY_SPEED] = true;\n\t\tLEFT[Mario.KEY_LEFT] = true;\n\t\tLEFT_JUMP[Mario.KEY_LEFT] = LEFT_JUMP[Mario.KEY_JUMP] = true;\n\t\tLEFT_SPEED[Mario.KEY_LEFT] = LEFT_SPEED[Mario.KEY_SPEED] = true;\n\t\tLEFT_JUMP_SPEED[Mario.KEY_LEFT] = LEFT_JUMP_SPEED[Mario.KEY_JUMP] = \n\t\t\t\tLEFT_JUMP_SPEED[Mario.KEY_SPEED] = true;\n\n\t}", "boolean nextStep();", "@Override\n\tpublic Map<Integer, Action> initialStep(StateView newstate,\n\t\t\tHistoryView statehistory) {\n\t\tMap<Integer, Action> actions = new HashMap<Integer, Action>();\n\t\t\n\t\t// This is a list of all of your units\n\t\t// Refer to the resource agent example for ways of\n\t\t// differentiating between different unit types based on\n\t\t// the list of IDs\n\t\tList<Integer> myUnitIDs = newstate.getUnitIds(playernum);\n\t\t\n\t\t// This is a list of enemy units\n\t\tList<Integer> enemyUnitIDs = newstate.getUnitIds(enemyPlayerNum);\n\t\t\n\t\tif(enemyUnitIDs.size() == 0)\n\t\t{\n\t\t\t// Nothing to do because there is no one left to attack\n\t\t\treturn actions;\n\t\t}\n\n\t\t//This block of text sends all units to the corner, with the ballistas being in the back row.\n\t\tactions.put(myUnitIDs.get(0), Action.createCompoundMove(myUnitIDs.get(0), 1, 16));\n\t\tactions.put(myUnitIDs.get(1), Action.createCompoundMove(myUnitIDs.get(1), 2, 17));\n\t\tactions.put(myUnitIDs.get(2), Action.createCompoundMove(myUnitIDs.get(2), 17, 8));\n\t\tactions.put(myUnitIDs.get(3), Action.createCompoundMove(myUnitIDs.get(3), 0, 16));\n\t\tactions.put(myUnitIDs.get(4), Action.createCompoundMove(myUnitIDs.get(4), 2, 18));\n\t\tactions.put(myUnitIDs.get(5), Action.createCompoundMove(myUnitIDs.get(5), 0, 17));\n\t\tactions.put(myUnitIDs.get(6), Action.createCompoundMove(myUnitIDs.get(6), 1, 18));\n\n\t\treturn actions;\n\t}", "public List<ITemplateStep> getAllSteps();", "protected AbstractPropagator() {\n multiplexer = new StepHandlerMultiplexer();\n additionalStateProviders = new ArrayList<>();\n unmanagedStates = new HashMap<>();\n harvester = null;\n }", "public void step();", "public void step();", "@Override\n\tpublic void step2() {\n\t\t\n\t}", "protected void runBeforeStep() {}", "public static GlobalStates getStatesFromAllLocations()\n {\n GlobalStates globalStates = new GlobalStates();\n try {\n\n List<LocalStates> compileRes = new ArrayList<>();\n getLocationIds().getLocationIds().forEach(\n (locn) -> {\n LocalStates ls = new LocalStates();\n StateVariables sv = IoTGateway.getGlobalStates().get(locn);\n ls.setLocation(locn);\n ls.setStateVariable(sv);\n ls.setFire(IoTGateway.getIsFireLocn().get(locn));\n ls.setSmokeAlert(IoTGateway.getSmokeWarn().get(locn));\n compileRes.add(ls);\n\n }\n );\n globalStates.setLocalStates(compileRes);\n }\n catch (NullPointerException npe)\n {\n LOGGER.error(\"Null Pointer Exception at Horizon.Restart project and open browser after atleast one timestep\");\n }\n return globalStates;\n }", "@Override\r\n\tpublic int getSteps() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void initializeState(){\n\t\tSystem.out.println(\"Entered instructionState\");\n\t}", "private List<int[]> generatePossibleMoveActions(LabyrinthGameState state) {\n List<Tile> tiles = new ArrayList<>();\n Tile orig = state.getPlayerLoc(Player.values()[playerNum]);\n tiles.add(orig);\n this.calculatePossibleMoves(orig, tiles);\n List<int[]> locations = new ArrayList<>();\n for (Tile spot : tiles) {\n int[] loc = new int[2];\n loc[0] = spot.getX();\n loc[1] = spot.getY();\n locations.add(loc);\n }\n return locations;\n }", "@Override\n protected void initialize() {\n System.out.println(\"initializing claw state machine\");\n }", "void gen() {\n int argCount = args.length;\r\n assert (argCount <= X86.argRegs.length);\r\n // If indirect jump through a register, make\r\n // sure this is not an argument register that\r\n // we're about to overwrite!\r\n X86.Operand call_target = null;\r\n if (ind) {\r\n\tif (tgt instanceof Reg) {\r\n\t call_target = env.get(tgt);\r\n\t assert (call_target != null); // dead value surely isn't used as a source\r\n\t for (int i = 0; i < argCount; i++)\r\n\t if (call_target.equals(X86.argRegs[i])) {\r\n\t X86.emitMov(X86.Size.Q,call_target,tempReg2);\r\n\t call_target = tempReg2;\r\n\t break;\r\n\t }\r\n\t} else // tgt instanceof Global \r\n\t call_target = new X86.AddrName(((Global)tgt).toString());\r\n }\r\n // Move arguments into the argument regs.\r\n // First do parallel move of register sources.\r\n X86.Reg src[] = new X86.Reg[argCount];\r\n X86.Reg dst[] = new X86.Reg[argCount];\r\n boolean moved[] = new boolean[argCount]; // initialized to false\r\n int n = 0;\r\n for (int i = 0; i < argCount; i++) {\r\n\tIR.Src s = args[i];\r\n\tif (s instanceof Reg) {\r\n\t X86.Operand rand = env.get((Reg) s);\r\n\t if (rand instanceof X86.Reg) {\r\n\t src[n] = (X86.Reg) rand;\r\n\t dst[n] = X86.argRegs[i];\r\n\t n++;\r\n\t moved[i] = true; \r\n\t }\r\n\t}\r\n }\r\n new X86.ParallelMover(n,src,dst,tempReg1).move();\r\n // Now handle any immediate sources.\r\n for (int i = 0; i < argCount; i++) \r\n\tif (!moved[i]) {\r\n\t X86.Operand r = args[i].gen_source_operand(true,X86.argRegs[i]);\r\n\t X86.emitMov(X86.Size.Q,r,X86.argRegs[i]);\r\n\t}\r\n if (ind) {\r\n\tX86.emit1(\"call *\", call_target);\r\n } else\r\n\tX86.emit1(\"call\", new X86.GLabel((((Global)tgt).toString())));\r\n if (rdst != null) {\r\n\tX86.Reg r = rdst.gen_dest_operand();\r\n\tX86.emitMov(X86.Size.Q,X86.RAX,r);\r\n }\r\n }", "private CoreFlowsAll() {\n }", "void generate() {\n rouletteSelection();\n do {\n updateParents();\n crossover();\n mutation();\n } while (!isValidOffset());\n insertOffspring();\n }", "public void solveSA() {\r\n initState();\r\n for (int ab = 0; ab < Config.NumberOfMetropolisResets; ab++) {\r\n LogTool.print(\"==================== INACTIVE: START CALC FOR OUTER ROUND \" + ab + \"=========================\",\"notification\");\r\n\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\");\r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n setCur_cost(costCURsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"CUR COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n /* [Newstate] with random dwelltimes */\r\n New_state = newstater(); \r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW STATE \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n// newstater();\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New State before Metropolis: A)\" + New_state[0] + \" B) \" + New_state[1] + \" C) \" + New_state[2],\"notification\");\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New Cost : \" + New_cost,\"notification\");\r\n }\r\n\r\n /**\r\n * MetropolisLoop\r\n * @param Config.NumberOfMetropolisRounds\r\n */\r\n\r\n for(int x=0;x<Config.NumberOfMetropolisRounds;x++) { \r\n LogTool.print(\"SolveSA Iteration \" + x + \" Curcost \" + Cur_cost + \" Newcost \" + New_cost,\"notification\");\r\n if ((Cur_cost - New_cost)>0) { // ? die Kosten\r\n \r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 START\",\"notification\");\r\n }\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA Cost delta \" + (Cur_cost - New_cost) + \" \",\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C1 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 STOP \",\"notification\");\r\n }\r\n } else if (Math.exp(-(New_cost - Cur_cost)/temperature)> RandGenerator.randDouble(0.01, 0.99)) {\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 START: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 before set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 STOP: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n } else {\r\n New_state = newstater();\r\n }\r\n temperature = temperature-1;\r\n if (temperature==0) {\r\n break;\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal());\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n//</editor-fold>\r\n if ((x==58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n if ((Cur_cost - New_cost)>0) {\r\n Cur_state = New_state;\r\n Cur_cost = New_cost; \r\n }\r\n }\r\n if ((x>58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n }\r\n }\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Auskommentierter GLowestState Object Class\">\r\n// if (ab==9) {\r\n// double diff=0;\r\n// }\r\n \r\n // Hier wird kontrolliert, ob das minimalergebnis des aktuellen\r\n // Metropolisloops kleiner ist als das bsiher kleinste\r\n \r\n// if (Cur_cost<Global_lowest_cost) {\r\n// this.setGlobal_lowest_cost(Cur_cost);\r\n// GlobalState GLowestState = new GlobalState(this.Cur_state);\r\n// String rGLSOvalue = GLowestState.getGlobal_Lowest_state_string();\r\n// LogTool.print(\"GLS DEDICATED OBJECT STATE OUTPUT -- \" + GLowestState.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(GLowestState.getDwelltimes());\r\n // LogTool.print(\"READ FROM OBJECT OUTPUT -- \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// LogTool.print(\"DEBUG: CurCost direct : \" + this.getCur_cost(),\"notification\"); \r\n// LogTool.print(\"Debug: Cur<global CurState get : \" + this.getCur_state_string(),\"notification\");\r\n// LogTool.print(\"Debug: Cur<global GLS get : \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(this.getCur_state(Cur_state));\r\n// LogTool.print(\"Debug: Cur<global GLS get after set : \" + this.getGlobal_Lowest_state_string(),\"notification\"); \r\n// }\r\n //</editor-fold>\r\n LogTool.print(\"SolveSA: Outer Iteration : \" + ab,\"notification\");\r\n LogTool.print(\"SolveSA: Last Calculated New State/Possible state inner loop (i.e. 99) : \" + this.getNew_state_string(),\"notification\");\r\n// LogTool.print(\"SolveSA: Best Solution : \" + this.getCur_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: GLS after all loops: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: LastNewCost, unchecked : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: CurCost : \" + this.getCur_cost() + \"i.e. lowest State of this round\",\"notification\"); \r\n }\r\n // return GLowestState;\r\n }", "public void setUp() {\r\n state1 = new DateState(new State(20200818, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15)); // root\r\n test1 = state1;\r\n state2 = new DateState(new State(20200818, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state3 = new DateState(new State(20200817, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state4 = new DateState(new State(20200817, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15));\r\n nullState = null;\r\n }", "public void generate() {\n prepareConfiguration();\n\n boolean hasElse = expression.getElseExpression() != null;\n\n // if there is no else-entry and it's statement then default --- endLabel\n defaultLabel = (hasElse || !isStatement || isExhaustive) ? elseLabel : endLabel;\n\n generateSubject();\n\n generateSwitchInstructionByTransitionsTable();\n\n generateEntries();\n\n // there is no else-entry but this is not statement, so we should return Unit\n if (!hasElse && (!isStatement || isExhaustive)) {\n v.visitLabel(elseLabel);\n codegen.putUnitInstanceOntoStackForNonExhaustiveWhen(expression, isStatement);\n }\n\n codegen.markLineNumber(expression, isStatement);\n v.mark(endLabel);\n }", "protected void runBeforeIterations() {}", "@Override\r\n\tpublic void doTimeStep() {\n\t\tdir = Critter.getRandomInt(8);\r\n\t\t\r\n\t\tnumSteps = Critter.getRandomInt(maxStep) + 1;\r\n\t\t\r\n\t\t//go a random number of steps in that direction\r\n\t\tfor(int i = 0; i < numSteps; i++) {\r\n\t\t\twalk(dir);\r\n\t\t}\t\t\r\n\t}", "public void doTestRun(int finalState) {\n\t\tint initialState = (int) (Math.random() * this.rows);\n\t\tint nextState = -1;\n\t\t\n\t\tif(initialState == finalState) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Spawning at: \" + initialState);\n\t\t\n\t\twhile(initialState != finalState) {\n\t\t\tint maxReward = -100000;\n\t\t\tnextState = initialState;\n\t\t\t\n\t\t\tfor(int j = 0; j < this.columns; j++) {\n\t\t\t\tif(this.qGrid[initialState][j] > maxReward) {\n\t\t\t\t\tmaxReward = this.qGrid[initialState][j];\n\t\t\t\t\tnextState = getStateActionMap(initialState, j);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint tState = initialState;\n\t\t\tinitialState = nextState;\n\t\t\tnextState = tState;\n\t\t\t\n\t\t\tSystem.out.println(\"Taking next step from \" + nextState + \" to \" + initialState + \"! For reward: \" + this.grid[nextState][initialState]);\n\t\t}\n\t\t\n\n\t}", "private void checkState() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tcheckHostGraphAndNextStep();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tcheckStopGraphAndNextStep();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tcheckPairsAndNextStep();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tcheckIfReadyToParse();\r\n\t\t\tquitDialog();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private static void populateBlocks() {\n\n //TODO set sensors for each\n\n /* Path A */\n SW1A.setProceeding(new Block[]{SW2A, STA1Z, SW2B});\n SW1A.setPreceding(new Block[]{PTH5A});\n\n SW2A.setProceeding(new Block[]{LD1A});\n SW2A.setPreceding(new Block[]{SW1A});\n\n SW3A.setProceeding(new Block[]{SW4A});\n SW3A.setPreceding(new Block[]{LD1A});\n\n SW4A.setProceeding(new Block[]{PTH1A});\n SW4A.setPreceding(new Block[]{SW3A, STA1Z, SW3B});\n\n PTH1A.setProceeding(new Block[]{PTH2A});\n PTH1A.setPreceding(new Block[]{SW4A});\n\n PTH2A.setProceeding(new Block[]{PTH3A});\n PTH2A.setPreceding(new Block[]{PTH1A});\n\n PTH3A.setProceeding(new Block[]{PTH4A});\n PTH3A.setPreceding(new Block[]{PTH2A});\n\n PTH4A.setProceeding(new Block[]{PTH5A});\n PTH4A.setPreceding(new Block[]{PTH3A});\n\n PTH5A.setProceeding(new Block[]{SW1A});\n PTH5A.setPreceding(new Block[]{PTH4A});\n\n LD1A.setProceeding(new Block[]{SW3A});\n LD1A.setPreceding(new Block[]{SW2A});\n\n\n /* Station */\n STA1Z.setProceeding(new Block[]{SW4A});\n STA1Z.setPreceding(new Block[]{SW1A});\n\n\n /* Path B */\n //TODO path B items aren't in yet\n LD1B.setProceeding(new Block[]{SW3B});\n LD1B.setPreceding(new Block[]{SW2B});\n\n SW2B.setProceeding(new Block[]{LD1B});\n SW2B.setPreceding(new Block[]{SW1B});\n\n SW3B.setProceeding(new Block[]{SW4B});\n SW3B.setPreceding(new Block[]{LD1B});\n\n\n /* Maintenance Bay */\n //TODO maintenance bay items aren't in yet\n\n\n\n\n /* Set up array */\n blocksArray = new Block[] {}; //TODO fill\n }", "private void setupDFA() {\r\n\t\tcurrentState = 0;\r\n\t\tif (actor.getScheduleFSM() == null) {\r\n\t\t\t// generate trivial DFA in case there is no schedule fsm.\r\n\t\t\t// 1. only one state\r\n\t\t\t// 2. all actions are eligible\r\n\t\t\t// 3. the successor state is always the same\r\n\t\t\teligibleActions = new Action [][] {actions};\r\n\t\t\tsuccessorState = new int [1] [actions.length];\r\n\t\t\tfor (int i = 0; i < actions.length; i++) {\r\n\t\t\t\tsuccessorState[0][i] = 0;\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSet stateSets = new HashSet();\r\n\t\t// put initial state into set of state sets\r\n\t\tSet initialState = Collections.singleton(actor.getScheduleFSM().getInitialState());\r\n\t\tstateSets.add(initialState);\r\n\t\tint previousSize = 0;\r\n\t\t// iterate until fixed-point, i.e. we cannot reach any new state set\r\n\t\twhile (previousSize != stateSets.size()) {\r\n\t\t\tpreviousSize = stateSets.size();\r\n\t\t\t// for each action...\r\n\t\t\tfor (int i = 0; i < actions.length; i ++) {\r\n\t\t\t\tSet nextStates = new HashSet();\r\n\t\t\t\t// ... compute the set of states that can be reached through it... \r\n\t\t\t\tfor (Iterator j = stateSets.iterator(); j.hasNext(); ) {\r\n\t\t\t\t\tSet s = (Set) j.next();\r\n\t\t\t\t\tif (isEligibleAction(s, actions[i])) {\r\n\t\t\t\t\t\tnextStates.add(computeNextStateSet(s, actions[i]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// ... and add them to the state set\r\n\t\t\t\tstateSets.addAll(nextStates);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// The set of all reachable state sets is the state space of the NDA. \r\n\t\tndaStateSets = (Set []) new ArrayList(stateSets).toArray(new Set[stateSets.size()]);\r\n\t\t// Make sure the initial state is state 0.\r\n\t\tfor (int i = 0; i < ndaStateSets.length; i++) {\r\n\t\t\tif (ndaStateSets[i].equals(initialState)) {\r\n\t\t\t\tSet s = ndaStateSets[i];\r\n\t\t\t\tndaStateSets[i] = ndaStateSets[0];\r\n\t\t\t\tndaStateSets[0] = s;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\teligibleActions = new Action [ndaStateSets.length] [];\r\n\t\tsuccessorState = new int [ndaStateSets.length] [];\r\n\t\t// For each state set (i.e. each NDA state), identify the eligible actions,\r\n\t\t// and also the successor state set (i.e. the successor state in the NDA).\r\n\t\tfor (int i = 0; i < ndaStateSets.length; i++) {\r\n\t\t\tList ea = new ArrayList();\r\n\t\t\tList ss = new ArrayList();\r\n\t\t\tfor (int j = 0; j < actions.length; j++) {\r\n\t\t\t\tif (isEligibleAction(ndaStateSets[i], actions[j])) {\r\n\t\t\t\t\tea.add(actions[j]);\r\n\t\t\t\t\tss.add(computeNextStateSet(ndaStateSets[i], actions[j]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\teligibleActions[i] = (Action []) ea.toArray(new Action[ea.size()]);\r\n\t\t\tList ds = Arrays.asList(ndaStateSets); // so we can use List.indexOf()\r\n\t\t\tsuccessorState[i] = new int [ss.size()];\r\n\t\t\t// locta the NDA successor state in array\r\n\t\t\tfor (int j = 0; j < ss.size(); j++) {\r\n\t\t\t\tsuccessorState[i][j] = ds.indexOf(ss.get(j));\r\n\t\t\t\t\r\n\t\t\t\t// must be in array, because we iterated until reaching a fixed point.\r\n\t\t\t\tassert successorState[i][j] >= 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private int[] checkBuild( int sigrun, int step ) throws GEException, IOException\n {\n\t//Check if application is for building haplotypes.\n\tint[] params = new int[2];\n if ( app_id.equals(\"hapConstructor\") )\n {\n\t //step++;\n Specification spec = io_mgr.getSpecification();\n //Global parameters are needed to build new loci sets from significant analyses.\n Map mParams = spec.getAllGlobalParameters();\n GDef gd = spec.getGDef();\n //The first time around create a new hapBuilder if building observation data.\n //If it is evaluating rather than building, then create a new instance of the \n //hapBuilder.\n if ( step == 1)\n {\n hc = new hapConstructor(app_id, spec, theAnalyses, io_mgr.getoutpathStem(), screentesting);\n if(!spec.gethapC_sigtesting_only() || sigrun != -1)\n {\n hc.updateResults(sigrun, nCycles, theAnalyses, mParams,gd, step, io_mgr.getinDate(),this, study_Gtypes,1);\n }\n }\n else\n {\n hc.refresh_hapstorage(); \n }\n //Stores results from previous analyses in analysisResults object.\n \n if(screening != 0)\n {\n step++;\n hc.updateStep(step);\n }\n \n //Create a boolean to track whether a new analysis needs to be performed with a new set of loci.\n boolean flg = false;\n //Check if there are new loci sets to test from either back sets or new \n //sets created from significant loci.\n if ( screentesting && screening != 0 && hc.beginBuild() )\n {\n \tscreenpass = false;\n \tscreening = hc.screentest;\n //Controller setups up the new analyses and updates them in the specification \n //object.\n hc.controller(io_mgr, this, hc.getNewLoci(), study_Gtypes, sigrun, \"forward\");\n flg = true;\n //params[0] = -2;\n //params[1] = 0;\n //flg = false;\n }\n else if ( screening == 0 && hc.checkscreentest() )\n {\n screenpass = true;\n screening = hc.screentest;\n hc.controller(io_mgr, this, hc.getScreenedSets(), study_Gtypes, sigrun, \"forward\");\n flg = true;\n }\n else if( !screentesting && (!spec.gethapC_sigtesting_only() || sigrun != -1) && hc.beginBuild() )\n {\n hc.controller(io_mgr, this, hc.getNewLoci(), study_Gtypes, sigrun, \"forward\");\n flg = true;\n }\n //Check if there are backsets to test.\n else if ( hc.backSetExists() && spec.gethapC_backsets() )\n {\n //Reset the step to the backset level.\n step = hc.backSetLevel();\n System.out.println(\"Evaluating backsets\");\n Set bsets = hc.getBackSet(step);\n bsets = hc.saveSets(bsets);\n if ( bsets.size() == 0 )\n {\n //Set params\n //This situation shouldn't happen, the hb.backSetExists should return false\n //in this section.\n //The problem is the backset step member variable is screwed up.\n flg = false;\n }\n else\n {\n hc.controller(io_mgr, this, bsets, study_Gtypes, sigrun, \"backward\");\n flg = true;\n }\n }\n //Check if the building for observation data is done and now \n //time to start evaluation.\n else if ( sigrun < 0 && spec.gethapC_sigtesting() )\n {\n \tif(spec.gethapC_sigtesting_only())\n \t{\n sigrun = spec.gethapC_sigtesting_start();\n \t}\n \telse\n \t{\n \t sigrun = 0;\n \t}\n System.out.println(\"Starting evaluation\");\n //Change process status from build to eval\n hc.updateProcess();\n //Iterate through each simulated data set and use it\n //as if it were the observation data.\n //Thread this...\n spec.updateAnalyses(hc.getOriginalAnalysis());\n theAnalyses = spec.getCCAnalyses();\n //The reason you can't multithread is because every object in ca is the same\n //when you pass it to the two threads. So when one thread manipulates the object\n //the other object is affected.If you could truly create a new copy of ca and pass it\n //to the second thread then it would work.\n step = 1;\n screening = -1;\n System.out.println(\"Evaluation no. \" + sigrun);\n params[0] = sigrun;\n params[1] = 1;\n }\n\t //Done with analysis and not sig testing\n else if ( sigrun == -1 ) \n {\n params[0] = -2;\n params[1] = 0;\n }\n //Sigtesting and completed all analyses for sigtest, go to next sim set.\n //The sigCycles are limited to 1000 because for the FDR this should\n //be plenty of simulated sets.\n else if ( sigrun < sigCycles - 1 )\n {\n spec.updateAnalyses(hc.getOriginalAnalysis());\n theAnalyses = spec.getCCAnalyses();\n params[0] = sigrun+1;\n screening = -1;\n System.out.println(\"Continuing significance runs\");\n params[1] = 1;\n }\n else if ( sigrun == sigrun -1 )\n {\n Evalsigs es = new Evalsigs();\n \tes.readfile(\"all_obs.final\");\n \tes.readfile(\"all_sims.final\");\n \tes.all_efdr();\n }\n //Done with everything, stop\n else\n {\n params[0] = -2;\n params[1] = 0;\n }\n //If flg is true then continue with analysis process.\n if ( flg )\n {\n theAnalyses = spec.getCCAnalyses();\n if ( theAnalyses.length > 0 )\n {\n System.out.println(\"Getting subjects...\");\n for ( int i = 0; i < theAnalyses.length; ++i )\n {\n theAnalyses[i].setStudySubjects(spec.getStudy());\n }\n }\n params[0] = sigrun;\n //System.out.println(\"Starting \" + sigrun + \" with step: \" + step);\n params[1] = step;\n }\n }\n //Not hapConstructing\n else\n {\n params[0] = -2;\n params[1] = 0;\n }\n return params;\n }", "@Override\n public void init() {\n robot = new MecanumBotHardware(true,true,true,true);\n robot.init(hardwareMap);\n int deg180=845;\n // Create the state machine and configure states.\n smDrive = new StateMachine(this, 16);\n smDrive.addStartState(new WaitState(\"wait\",0.1,\"MainDriveTeleop\"));\n smDrive.addState(new GigabyteTeleopDriveState(\"MainDriveTeleop\", robot));\n smDrive.addState(new SpinPose(\"90DegSpin\",(int)(deg180*0.5),robot,0.1f));\n smDrive.addState(new SpinPose(\"180DegSpin\",deg180,robot,0.1f));\n smDrive.addState(new SpinPose(\"270DegSpin\",(int)(deg180*1.5),robot,0.1f));\n\n smArm = new StateMachine(this, 16);\n smArm.addStartState(new WaitState(\"wait\",0.1,\"MainArmTeleop\"));\n smArm.addState(new GigabyteTeleopArmState(\"MainArmTeleop\", robot));\n smArm.addState(new ShoulderPose(\"Pose1\", robot,0, \"MainArmTeleop\"));//0.12\n smArm.addState(new ShoulderPose(\"Pose2\", robot,1079, \"MainArmTeleop\"));//0.05\n smArm.addState(new ShoulderPose(\"Pose3\", robot,2602, \"MainArmTeleop\"));//-0.17\n smArm.addState(new ShoulderPose(\"Pose4\", robot,3698, \"MainArmTeleop\" ));//-0.35\n // Init the state machine\n smDrive.init();\n smArm.init();\n }", "public static void main(String[] args)\n\t{\n\t\tMandelbrotState state = new MandelbrotState(40, 40);\n\t\tMandelbrotSetGenerator generator = new MandelbrotSetGenerator(state);\n\t\tint[][] initSet = generator.getSet();\n\n\t\t// print first set;\n\t\tSystem.out.println(generator);\n\n\t\t// change res and print sec set\n\t\tgenerator.setResolution(30, 30);\n\t\tSystem.out.println(generator);\n\n\t\t// change rest and print third set\n\t\tgenerator.setResolution(10, 30);\n\t\tSystem.out.println(generator);\n\n\t\t// go back to previous state and print\n\t\tgenerator.undoState();\n\t\tSystem.out.println(generator);\n\n\t\t// redo and print\n\t\tgenerator.redoState();\n\t\tSystem.out.println(generator);\n\n\t\t// try to redo when the redo stack is empty\n\t\tgenerator.redoState();\n\t\tgenerator.redoState();\n\t\tgenerator.redoState();\n\t\tSystem.out.println(generator);\n\n\t\t// do the same for more undo operations\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changeBounds edge cases\n\t\t// min is lager than max this can be visualised by flipping the current min and max values\n\t\tMandelbrotState state1 = generator.getState();\n\t\tgenerator.setBounds(state1.getMaxReal(), state1.getMinReal(), state1.getMaximaginary(), state1.getMinimaginary());\n\t\tSystem.out.println(generator);\n\t\t// when the bounds are the same value\n\t\tgenerator.setBounds(1, 1, -1, 1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changing radius sq value\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.setSqRadius(10);\n\t\t// negative radius expected zeros\n\t\tSystem.out.println(generator);\n\t\tgenerator.setSqRadius(-20);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changing maxIterations to a negative number expected zeros\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.setMaxIterations(-1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing reset\n\t\tSystem.out.println(\"Testing reset\");\n\t\tgenerator.reset();\n\t\tSystem.out.println(generator);\n\t\tboolean pass = true;\n\t\tfor (int j = 0; j < initSet.length; j++)\n\t\t{\n\t\t\tfor (int i = 0; i < initSet[j].length; i++)\n\t\t\t{\n\t\t\t\tif (initSet[j][i] != generator.getSet()[j][i]) pass = false;\n\t\t\t}\n\t\t}\n\t\tif (pass)\n\n\t\t\tSystem.out.println(\"pass\");\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"fail\");\n\t\t}\n\n\t\t// Testing panning by a single pixel horizontally and vertically\n\t\tgenerator.setResolution(10, 10);\n\t\tSystem.out.println(\"Before horizontal shift\");\n\t\tSystem.out.println(generator);\n\t\tSystem.out.println(\"After horizontal shift\");\n\t\tgenerator.shiftBounds(1, 0, 1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing incorrect changes of resolution (negative value)\n\t\tSystem.out.println(\"Testing changing resolution to negative value... This should throw an exception\");\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\ttry\n\t\t{\n\t\t\tgenerator.setResolution(-1, 3);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Exception thrown\");\n\t\t}\n\n\t}", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "@Override\n\t// TODO A redefinition of this method in GAML will lose all information regarding the clock and the advance of time,\n\t// which will have to be done manually (i.e. cycle <- cycle + 1; time <- time + step;)\n\t\tpublic\n\t\tObject _step_(final IScope scope) {\n\n\t\tclock.beginCycle();\n\t\t// A simulation always runs in its own scope\n\t\ttry {\n\t\t\tsuper._step_(this.scope);\n\t\t\t// hqnghi if simulation is not scheduled, their outputs must do step manually\n\t\t\tif ( !scheduled ) {\n\t\t\t\t// hqnghi temporary added untill elimination of AgentScheduler\n\t\t\t\tthis.getScheduler().executeActions(scope, 1);\n\t\t\t\tthis.getScheduler().executeActions(scope, 3);\n\t\t\t\t// end-hqnghi\n\t\t\t\toutputs.step(this.scope);\n\t\t\t}\n\t\t\t// end-hqnghi\n\t\t} finally {\n\t\t\tclock.step(this.scope);\n\t\t}\n\t\treturn this;\n\t}", "private void generateAutomaton() {\n /**\n * Chars in the positions:\n * 0 -> \"-\"\n * 1 -> \"+\"\n * 2 -> \"/\"\n * 3 -> \"*\"\n * 4 -> \")\"\n * 5 -> \"(\"\n * 6 -> \"=\"\n * 7 -> \";\"\n * 8 -> [0-9]\n * 9 -> [A-Za-z]\n * 10 -> skip (\"\\n\", \"\\r\", \" \", \"\\t\")\n * 11 -> other symbols\n */\n\n automaton = new State[][]{\n /* DEAD */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* START */ {State.SUB, State.PLUS, State.DIV, State.MUL, State.RPAR, State.LPAR, State.EQ, State.SMICOLON, State.INT, State.VAR, State.DEAD, State.DEAD},\n /* SUB */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* PLUS */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* DIV */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* MUL */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* RPAR */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* LPAR */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* EQ */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* SMICOLON */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD},\n /* INT */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.INT, State.DEAD, State.DEAD, State.DEAD},\n /* VAR */ {State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.DEAD, State.VAR, State.VAR, State.DEAD, State.DEAD}\n };\n }", "StatePac build();", "private void buildGenerations(BDD initialGeneration){\n\t\tBDD currentGeneration = initialGeneration;\n\t\tint i = 0;\n\t\t\n\t\tthis.generations.add(currentGeneration.copy());\n\t\n\t\twhile(i++ < endGenerations){\n\n\t\t\tBDD nextGeneration = getNextGeneration(currentGeneration);\n\t\t\tthis.generations.add(nextGeneration);\n\t\t\t\n\t\t\tcurrentGeneration.free();\n\t\t\tcurrentGeneration = nextGeneration.copy();\n\t\t}\t\t\n\t}", "void start() {\n \tm_e.step(); // 1, 3\n }", "public static void beginStep() {\n\t\tTestNotify.log(STEP_SEPARATOR);\n\t TestNotify.log(GenLogTC() + \"is being tested ...\");\n\t}", "public boolean runWizard() throws Exception\n{\n\t// Tells us what came before each state\n\tMap<Wiz,Wiz> prevWizs = new TreeMap();\n\t// v = (xv == null ? new TypedHashMap() : xv);\n\tscreenCache = new TreeMap();\n\tcon = new WizContext();\n\tWiz wiz = nav.getStart();\t\t// Current state\n\tfor (; wiz != null; ) {\n\n\t\t// Get the screen for this Wiz\n\t\tWizScreen screen = screenCache.get(wiz);\n\t\tif (screen == null) {\n\t\t\tscreen = wiz.newScreen(con);\n\t\t\tif (wiz.isCached(Wiz.NAVIGATE_BACK)) screenCache.put(wiz,screen);\n\t\t}\n\n\t\t// Prepare and show the Wiz\n\t\tpreWiz(wiz, con);\n\t\tMap<String,Object> values = new TreeMap();\n\t\tshowScreen(screen, values);\n\n\t\t// Run the post-processing\n\t\twiz.getAllValues(values);\n\t\tcon.localValues = values;\n\t\tString suggestedNextName = postWiz(wiz, con);\n\n\t\t// Figure out where we're going next\n\t\tWiz nextWiz = null;\n\t\tString submit = (String)values.get(\"submit\");\nSystem.out.println(\"submit = \" + submit);\n\t\tif (\"next\".equals(submit)) {\n\t\t\tif (suggestedNextName != null) {\n\t\t\t\tnextWiz = nav.getWiz(suggestedNextName);\n\t\t\t} else {\n\t\t\t\tnextWiz = nav.getNext(wiz, Wiz.NAVIGATE_FWD);\n\t\t\t}\n\t\t\tcon.addValues(values);\n\t\t} else if (\"back\".equals(submit)) {\n\t\t\t// Remove it from the cache so we re-make\n\t\t\t// it going \"forward\" in the Wizard\n\t\t\tif (!wiz.isCached(Wiz.NAVIGATE_FWD)) screenCache.remove(wiz);\n\n\t\t\t// Nav will usually NOT set a NAVIGATE_BACK...\n\t\t\tnextWiz = nav.getNext(wiz, Wiz.NAVIGATE_BACK);\n\n\t\t\t// ... which leaves us free to do it from our history\n\t\t\tif (nextWiz == null) nextWiz = prevWizs.get(wiz);\n\n\t\t\t// Falling off the beginning of our history...\n\t\t\tif (nextWiz == null && reallyCancel()) return false;\n\t\t\tcontinue;\n\t\t} else if (\"cancel\".equals(submit) && reallyCancel()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\t// Navigation without a \"submit\"; rare but possible...\n\t\t\tif (suggestedNextName != null) {\n\t\t\t\tnextWiz = nav.getWiz(suggestedNextName);\n\t\t\t}\n\t\t\t// Custom navigation!\n\t\t\t// Incorporate the values into the main WizContext\n\t\t\tcon.addValues(values);\n\t\t}\n\n\t\t// ================= Finish up\n\t\twiz.post(con);\n\t\twiz = nextWiz;\n\t}\n\treturn true;\t\t// Won't get here\n}", "@Override public List<ExecutionStep> getSteps() {\n return Collections.singletonList(step);\n }", "private static void generateState() {\n byte[] array = new byte[7]; // length is bounded by 7\n new Random().nextBytes(array);\n STATE = new String(array, Charset.forName(\"UTF-8\"));\n }", "private void gameSetup(){\n\t\tboard.boardSetup();\n\t\tdirectionArray = setUpDirectionArray();\n\t\tcurrentPlayer = SharedConstants.PlayableItem.BLACK;\n\t\tcurrentState = SharedConstants.GameStatus.PLAYING;\n\t\tgameStateModel = new GameSateModel();\n\t\tloadGame = new GameStateRetriever();\n\t\tsaveGame = new GameStateWrter(connectFourModel.getGameStateModel());\n\t}", "private void generateActions(double[] move) {\n //Rotate Actions\n for (int i = 0; i <= move[0]; i++) {\n GameAction act1 = new LabyrinthRotateAction(this,true);\n this.push(act1);\n }\n\n //Slide Action\n GameAction act2 = new LabyrinthSlideTileAction(this,\n Arrow.values()[(int)move[1]]);\n this.push(act2);\n\n //Move Action\n GameAction act3 = new LabyrinthMovePawnAction(this,\n (int)move[2],(int)move[3]);\n this.push(act3);\n\n //End Turn Action\n GameAction act4 = new LabyrinthEndTurnAction(this);\n this.push(act4);\n }", "void runState() {\n\t\tp.displaySheet();\n\t\tcurState.run();\n\t}", "public void advanceSimulation () {\n\t\tstep_++;\n\t}", "private void firstSteps() {\n\t\tturnLeft();\n\t\tmove();\n\t\tmove();\n\t\tturnRight();\n\t\tmove();\n\t}", "@Override\r\n public long getRequiredSimulationSteps(final Serializable individual,\r\n final IObjectiveState state, final Serializable staticState) {\r\n if (this.m_use)\r\n this.m_func.getRequiredSimulationSteps(individual, state,\r\n staticState);\r\n return 0l;\r\n }", "@Override\n\tpublic Map<Integer, Action> initialStep(StateView newstate, HistoryView stateHistory) {\n\t\tList<Integer> myUnitIds = new ArrayList<Integer>();\n\t\t\n\t\t//a list that stores all player's footman\n\t\tList<Integer> myFootmanIds = new ArrayList<Integer>();\n\t\t\n\t\tmyUnitIds = newstate.getUnitIds(playernum);\n\t\t\n\t\t//add all footman to their list\n\t\tfor(Integer unitID : myUnitIds) {\n\t\t\tString unitTypeName = newstate.getUnit(unitID).getTemplateView().getName();\n\t\t\tif(unitTypeName.equals(\"Footman\"))\n\t\t\t\tmyFootmanIds.add(unitID);\n\t\t}\n\t\t\n\t\t//let the first footman be the bait\n\t\tbait = myFootmanIds.get(0);\n\t\t\n\t\treturn middleStep(newstate, stateHistory);\n\t}", "void mo15871a(StateT statet);", "@Override\n public void init(int maxSteps) {\n }", "protected void inRun() {\r\n\t\tSystem.out.println(\"begin\");\r\n\t\tIterator<RoutePair> pairIterator = this.pairs.iterator();\r\n\t\tint count = 0;\r\n\t\twhile (pairIterator.hasNext()) {\r\n\t\t\tcount++;\r\n\t\t\tif (count >= this.pairs.size() / 100) {\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t\tcount = 0;\r\n\t\t\t}\r\n\t\t\tRoutePair pair = pairIterator.next();\r\n\t\t\tRouteResult result = this.dcn.route(pair.getHome(), pair.getAway());\r\n\t\t\tif (result.isSuccessful()) {\r\n\t\t\t\tthis.flows.add(result.getFlow());\r\n\t\t\t\t// System.out.println(result.getFlow().toString());\r\n\t\t\t\tassert result.getFlow().isValid();\r\n\t\t\t\tthis.attachFlow(result);\r\n\t\t\t\tthis.successfulCount++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.failedCount++;\r\n\t\t\t\tSystem.out.println(String.format(\"[inRun] failure count %1d\\n\",\r\n\t\t\t\t\t\tthis.failedCount));\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"finish\");\r\n\t}", "public void step(){\r\n\t\t\r\n\t\t\r\n\t\tsuper.step();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(marketEntryHappend){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\taddSequencesToGraphs();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(marketExitHappend){\r\n\t\t\t\r\n\t\t\tfor(int i =0; i < exitedFirms.size();i++){\r\n\t\t\t\r\n\t\t\t\tfreeCoordinates.add(new Coordinate(exitedFirms.get(i).x_coord,exitedFirms.get(i).y_coord)); \r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\tgraphOutput.step();\r\n\t\tgraphPrice.step();\r\n\t\tgraphQuality.step();\r\n\t\tgraphFirmLocations.step();\r\n\t\t//graphEnteringCosts.step();\r\n\t\tgraphAverageProbability.step();\r\n\t\tgraphTotalProfit.step();\r\n\t\tgraphNumFirms.step();\r\n\t\t\r\n\t\tgraphSingleOutput.step();\r\n\t\tgraphSinglePrice.step(); \r\n\t\tgraphSingleQuality.step(); \r\n\t\tgraphSingleFirmLocations.step();\r\n\t graphSingleProbability.step(); \r\n\t\tgraphSinglelProfit.step();\r\n\t\tgraphSingleQualityConcept.step();\r\n\t\r\n\t\tgraphClusteringCoefficient.step();\r\n\t\t\r\n\t\tgraphCumProfit.step();\r\n\t\t\r\n\t\tfor(int i=0; i < dsurfList.size();i++){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tgridSpaceList.get(i).update(locationList.get(i));;\r\n\t\t\t\r\n\t\t dsurfList.get(i).updateDisplay();\r\n\t\t }\r\n\t\t\r\n\t\t\tlayout.setList(nodeList);\r\n\t\t\r\n\t\t layout.updateLayout();\r\n\t\t surface.updateDisplay();\r\n\t\t \r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\t\tprotected void doCurrentState() {\n\t\t\tswitch(currentState) {\n\t\t\t\n\t\t\t// follow operator commands, but respect limit switches\n\t\t\tcase manual:\n\t\t\t\tcd.gearLeftOpen.set(rd.gearManualLeftOpen && !rd.leftOpenSwitch, rd.gearManualLeftClose && !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(rd.gearManualRightOpen && !rd.rightOpenSwitch, rd.gearManualRightClose && !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// close each motor until fully closed, if one motor is closed stop that motor\n\t\t\tcase autoClose:\n\t\t\t\tcd.gearLeftOpen.set(false, !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(false, !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t// open each motor until fully open, if one motor is open stop that motor\t\n\t\t\tcase autoOpen:\n\t\t\t\tcd.gearLeftOpen.set(!rd.leftOpenSwitch, false);\n\t\t\t\tcd.gearRightOpen.set(!rd.rightOpenSwitch, false);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n for (Step step : steps) {\n step.accept(visitor);\n }\n }", "public void prepareNextPhase() {\n if (evaluatedCells != null) {\n log.info(\"Preparing Next Phase \" + evaluatedCells.size());\n for (Cell cell : evaluatedCells) {\n cell.prepareNextPhase();\n }\n evaluatedCells.clear();\n }\n }", "public void generatePopulation() {\n\t\t\n\t\tif (SCType.getScLayers() <= 2)\n\t\t\tLogger.logError(\"To few supply chain layers, minimum of 3 required:\" + SCType.getScLayers());\n\t\t\n\t\tArrayList<CountryAgent> countryAgents = SU.getObjectsAll(CountryAgent.class);\t\t\n\t\tfor (CountryAgent country : countryAgents) {\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.PRODUCER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_PRODUCERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.PRODUCER);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.INTERNATIONAL)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_INTERNATIONALS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.INTERNATIONAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.WHOLESALER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_WHOLESALERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.WHOLESALER);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.RETAIL)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_RETAILERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.RETAIL);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.CONSUMER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_CONSUMERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.CONSUMER);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Set possible new suppliers and clients\n\t\tfor (BaseAgent agent : SU.getObjectsAll(BaseAgent.class)) {\n\t\t\tagent.setPossibleNewSuppliersAndClients();\n\t\t}\n\t\t\n\t\tSU.getDataCollector().addAllCurrentStock();\n\t}", "public interface IState {\n\n /**\n * Click on button to load a new map from file.\n */\n void btnLoadMap();\n\n /**\n * Click on button to load a new planning from file.\n */\n void btnLoadPlanning();\n\n /**\n * Click on button to compute the best route to make deliveries.\n */\n void btnGenerateRoute();\n\n /**\n * Click on button to cancel a loading action.\n */\n void btnCancel();\n\n /**\n * Click on button to load file.\n *\n * @param file File to load as a map or a planning depending on the state.\n */\n void btnValidateFile(File file);\n\n /**\n * Left click pressed on a delivery.\n */\n void leftClickPressedOnDelivery();\n\n /**\n * Left click released on another delivery.\n *\n * @param sourceDelivery Delivery to switch with target delivery.\n * @param targetDelivery Delivery to switch with sourceDelivery.\n */\n void leftClickReleased(Delivery sourceDelivery, Delivery targetDelivery);\n\n /**\n * Simple click on a delivery.\n *\n * @param delivery The delivery clicked.\n */\n void clickOnDelivery(Delivery delivery);\n\n /**\n * Simple click somewhere else (not a interactive point).\n */\n void clickSomewhereElse();\n\n /**\n * Click on an empty node (not a delivery or warehouse node).\n *\n * @param node The empty node clicked.\n */\n void clickOnEmptyNode(Node node);\n\n /**\n * Click on button to add a new delivery.\n *\n * @param node The node to deliver.\n * @param previousDeliveryNode The node with the previous delivery.\n * @param timeSlot The time slot of the new delivery.\n */\n void btnAddDelivery(Node node, Node previousDeliveryNode, TimeSlot timeSlot);\n\n /**\n * Click on button to remove a delivery.\n *\n * @param delivery The delivery to remove.\n */\n void btnRemoveDelivery(Delivery delivery);\n\n /**\n * Click on a specific node : the warehouse.\n *\n * @param warehouse The warehouse node clicked.\n */\n void clickOnWarehouse(Node warehouse);\n\n /**\n * Click on button to close the current map already loaded.\n */\n void btnCloseMap();\n\n /**\n * Click on button to clear the current planning already loaded.\n */\n void btnClearPlanning();\n\n /**\n * Set the default view for this state (enable/disable buttons ...).\n */\n void initView();\n}", "void state_INIT(){\r\n eccState = INDEX_INIT;\r\n alg_INIT();\r\n INITO.serviceEvent(this);\r\n state_START();\r\n}", "@Override\n public ImmutableList<Step> getBuildSteps(\n BuildContext context,\n BuildableContext buildableContext) {\n buildableContext.recordArtifact(YaccStep.getHeaderOutputPath(outputPrefix));\n buildableContext.recordArtifact(YaccStep.getSourceOutputPath(outputPrefix));\n\n return ImmutableList.of(\n new MkdirStep(outputPrefix.getParent()),\n new RmStep(getHeaderOutputPath(outputPrefix), /* shouldForceDeletion */ true),\n new RmStep(getSourceOutputPath(outputPrefix), /* shouldForceDeletion */ true),\n new YaccStep(\n getResolver().getPath(yacc),\n flags,\n outputPrefix,\n getResolver().getPath(input)));\n }", "public MealyStepByStateSimulator(Automaton automaton) \n {\n super(automaton);\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 }", "private State createStates( Grammar grammar, Collection<LR1ItemSet> itemSets)\n {\n itemSetMap = new HashMap<State, LR1ItemSet>();\n \n for( LR1ItemSet itemSet: itemSets) \n {\n log.debugf( \"\\n%s\", itemSet);\n itemSet.state = new State();\n itemSet.state.index = counter++;\n itemSetMap.put( itemSet.state, itemSet);\n }\n \n for( LR1ItemSet itemSet: itemSets)\n {\n Set<String> ts = new HashSet<String>();\n Set<String> nts = new HashSet<String>();\n \n List<Action> tshifts = new ArrayList<Action>();\n List<Action> ntshifts = new ArrayList<Action>();\n \n for( LR1Item item: itemSet.items)\n {\n if ( item.complete())\n {\n if ( item.rule == grammar.rules().get( 0))\n {\n if ( item.laList.contains( Grammar.terminus))\n {\n int[] terminal = new int[] { Grammar.terminusChar};\n tshifts.add( new Action( Action.Type.accept, terminal, item));\n }\n }\n else\n {\n for( String la: item.laList)\n {\n int[] terminal = grammar.toTerminal( la);\n tshifts.add( new Action( Action.Type.reduce, terminal, item));\n }\n }\n }\n else\n {\n if ( !grammar.isTerminal( item.symbol()))\n {\n nts.add( item.symbol());\n }\n else\n {\n Set<String> first = item.first( grammar);\n LR1ItemSet successor = itemSet.successors.get( item.symbol());\n if ( successor != null)\n {\n for( String symbol: first)\n {\n if ( ts.add( symbol))\n {\n int[] terminal = grammar.toTerminal( symbol);\n tshifts.add( new Action( Action.Type.tshift, terminal, successor));\n }\n }\n }\n }\n }\n }\n \n for( String symbol: nts)\n {\n LR1ItemSet successor = itemSet.successors.get( symbol);\n if ( successor != null)\n {\n List<Rule> rules = grammar.lhs( symbol);\n for( Rule rule: rules)\n {\n Action action = new Action( Action.Type.ntshift, new int[] { rule.symbol()}, successor);\n ntshifts.add( action);\n }\n }\n }\n \n buildActionTable( grammar, itemSet.state, tshifts, ntshifts);\n }\n \n return itemSets.iterator().next().state;\n }", "public void createWalk() {\n\t\t\n\t\twhile(!isDone()) {\n\t\t\tstep();\n\t\t}\n\n\t}", "public void step(SimState simState) {\n if (state.agents.length > 0 && state.agents[0] instanceof EquitableAgent) {\n boolean shouldGenTasks = true;\n for(int i = 0; i < state.numAgents; i++) {\n EquitableAgent a = (EquitableAgent)state.agents[i];\n if (!EquitablePartitions.nearlyEqual(a.getRateInMyPolygon(), 1.0 / state.numAgents, .05)) {\n shouldGenTasks = false;\n }\n }\n if(shouldGenTasks) {\n generateTasks();\n }else if (state.schedule.getSteps() == 30000) {\n EquitableAgent a = (EquitableAgent)state.agents[0];\n a.setEp(null);\n }\n }else {\n generateTasks();\n }\n }", "public interface MainFillingStep {\n CheeseStep meat(String meat);\n\n VegetableStep fish(String fish);\n }", "public static void main(String[] args) {\r\n\t\t//初始状态为A\r\n\t\tContextState contextState=new ContextState(new SpecificStateA());\r\n\t\t//不断更新状态(在A,B,C之间不断切换)\r\n\t\tfor(int i=0;i<10;i++){\r\n\t\t\tcontextState.reauest();\r\n\t\t}\r\n\t}", "public static void init(){\t\t\n\t\tParameters p = RunEnvironment.getInstance().getParameters();\n\n\t\tSIM_RANDOM_SEED = (Integer)p.getValue(\"randomSeed\");\n\t\tSIM_NUM_AGENTS = (Integer)p.getValue(\"maxAgents\");\n\t\tSIM_NORM_VIOLATION_RATE = (Float) p.getValue(\"Norm Violation Rate\");\n\t\tNUM_TICKS_TO_CONVERGE = (Long)p.getValue(\"NumTicksToConverge\");\n\t\tCONTENTS_QUEUE_SIZE = (Long)p.getValue(\"ContentsQueueSize\");\n\t\t\n\t\tNORM_GEN_EFF_THRESHOLD = (Double)p.getValue(\"NormsGenEffThreshold\");\n\t\tNORM_GEN_NEC_THRESHOLD = (Double)p.getValue(\"NormsGenNecThreshold\");\n\t\tNORM_SPEC_EFF_THRESHOLD = (Double)p.getValue(\"NormsSpecEffThreshold\");\n\t\tNORM_SPEC_NEC_THRESHOLD = (Double)p.getValue(\"NormsSpecNecThreshold\");\n\t\tNORM_UTILITY_WINDOW_SIZE = (Integer)p.getValue(\"NormsPerfRangeSize\");\n\t\tNORM_DEFAULT_UTILITY = (Double)p.getValue(\"NormsDefaultUtility\");\n\n\t\tNORM_SYNTHESIS_STRATEGY = (Integer)p.getValue(\"NormSynthesisStrategy\");\n\t\tNORM_GENERATION_REACTIVE = (Boolean)p.getValue(\"NormGenerationReactive\");\n\t\tNORM_GENERALISATION_MODE = (Integer)p.getValue(\"NormGeneralisationMode\");\n\t\tNORM_GENERALISATION_STEP = (Integer)p.getValue(\"NormGeneralisationStep\");\n\t\tNORM_SPEC_THRESHOLD_EPSILON = (Double)p.getValue(\"NormsSpecThresholdEpsilon\");\n\t\tNORMS_MIN_EVALS_CLASSIFY = (Integer)p.getValue(\"NormsMinEvaluationsToClassify\");\n\t\tNORMS_WITH_USER_ID = (Boolean)p.getValue(\"NormsWithUserId\");\n\n\t\t\n\t\t\n\t\t// System goals and their constants\n\t\tsystemGoals = new ArrayList<Goal>();\n\t\tsystemGoals.add(new GComplaints());\n\n\t\t//\t\tdouble tMinusEpsilon = NORM_SPEC_NEC_THRESHOLD - NORM_SPEC_THRESHOLD_EPSILON;\n\t\t//\t\t\n\t\t//\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\t//\t\tif(NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) {\n\t\t//\t\t\tNORM_DEFAULT_UTILITY = (float)(tMinusEpsilon * (NORM_MIN_EVALS+1)); \n\t\t//\t\t}\n\n\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\tif((NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) &&\n\t\t\t\t!NORM_GENERATION_REACTIVE) \n\t\t{\n\t\t\tNORM_DEFAULT_UTILITY = 0f; \n\t\t\tSystem.out.println(\"Norm generation is set as Deliberative\");\n\t\t}\n\t}", "private void enterSequence_mainRegion_State1_default() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.mainRegion_State1;\n\t}" ]
[ "0.6224529", "0.61697567", "0.60706884", "0.5923241", "0.58162487", "0.5721451", "0.5707097", "0.56935203", "0.5627575", "0.5596782", "0.5578239", "0.5566124", "0.5531312", "0.5514238", "0.5506183", "0.5501952", "0.5498498", "0.546476", "0.54579306", "0.54579306", "0.54518044", "0.5439147", "0.5439147", "0.54196924", "0.54117185", "0.540504", "0.5400525", "0.5370896", "0.5366022", "0.5363491", "0.5362335", "0.53510046", "0.5320998", "0.53139305", "0.5310765", "0.5309693", "0.5294051", "0.5279457", "0.52618676", "0.5259148", "0.5259148", "0.524922", "0.52308875", "0.5227663", "0.5187754", "0.5182613", "0.5180954", "0.51740426", "0.51724344", "0.5168577", "0.5165951", "0.51647455", "0.516113", "0.51591116", "0.5154311", "0.51526797", "0.51470387", "0.51393986", "0.51327693", "0.5131014", "0.51304626", "0.5130452", "0.5127509", "0.5111113", "0.5110394", "0.51083875", "0.51040953", "0.51017016", "0.5094242", "0.50931096", "0.50882274", "0.5087563", "0.5084937", "0.50826645", "0.50811386", "0.50810814", "0.5078893", "0.50768685", "0.5076282", "0.50752985", "0.50673044", "0.50566465", "0.5056572", "0.50522447", "0.50501657", "0.50498044", "0.5047047", "0.5035811", "0.503399", "0.50336003", "0.5030419", "0.50291044", "0.50283265", "0.5022077", "0.50180966", "0.501374", "0.5000687", "0.4994298", "0.49938878", "0.49929884" ]
0.82326055
0
Method for retrieving the (cheapest) sequence of steps for changing the the configuration of the application from "start" to "target"
public List<String> getSequentialPlan() { // ========================================== // Computing the (cheapest) sequence of steps // ========================================== // Maps of steps and cost from the global state s to the others Map<GlobalState,List<Step>> steps = new HashMap(); steps.put(current,new ArrayList()); Map<GlobalState,Integer> costs = new HashMap(); costs.put(current,0); // List of visited states List<GlobalState> visited = new ArrayList(); visited.add(current); // List of global states still to be visited List<GlobalState> toBeVisited = new ArrayList(); // Adding the states reachable from start to "toBeVisited" for(Step step : current.getSteps()) { GlobalState next = step.getNextGlobalState(); // Adding the sequence of operations towards "next" List<Step> stepSeq = new ArrayList(); stepSeq.add(step); steps.put(next,stepSeq); // Adding the cost of the sequence of operation towards "next" costs.put(next,step.getCost()); toBeVisited.add(next); } // Exploring the graph of global states by exploiting "toBeVisited" while(toBeVisited.size() > 0) { // Removing the first global state to be visited and marking it // as visited GlobalState current = toBeVisited.remove(0); visited.add(current); for(Step step : current.getSteps()) { GlobalState next = step.getNextGlobalState(); // Adding the sequence of operations from "start" to "next" // (if more convenient) int nextCost = costs.get(current) + step.getCost(); if(visited.contains(next)) { // If current path is cheaper, updates "steps" and "costs" if(costs.get(next) > nextCost) { List<Step> stepSeq = new ArrayList(); stepSeq.addAll(steps.get(current)); stepSeq.add(step); steps.put(next,stepSeq); costs.put(next,nextCost); } } else { List<Step> stepSeq = new ArrayList(); stepSeq.addAll(steps.get(current)); stepSeq.add(step); steps.put(next,stepSeq); costs.put(next, nextCost); if(!(toBeVisited.contains(next))) toBeVisited.add(next); } } } // ==================================================== // Computing the sequence of operations from "s" to "t" // ==================================================== // If no plan is available, return null if(steps.get(target) == null) return null; // Otherwise, return the corresponding sequence of operations List<String> opSequence = new ArrayList(); for(Step step : steps.get(target)) { if(!(step.getReason().contains(Step.handling))) { opSequence.add(step.getReason()); } } return opSequence; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[] args) {\n\n Config config = ConfigUtils.loadConfig(\"/home/gregor/git/matsim/examples/scenarios/pt-tutorial/0.config.xml\");\n// config.controler().setLastIteration(0);\n// config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n// Scenario scenario = ScenarioUtils.loadScenario(config);\n// Controler controler = new Controler(scenario);\n// controler.run();\n\n\n// Config config = this.utils.loadConfig(IOUtils.extendUrl(ExamplesUtils.getTestScenarioURL(\"pt-tutorial\"), \"0.config.xml\"));\n config.controler().setLastIteration(1);\n config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n\n\n// try {\n Controler controler = new Controler(config);\n// final EnterVehicleEventCounter enterVehicleEventCounter = new EnterVehicleEventCounter();\n// final StageActivityDurationChecker stageActivityDurationChecker = new StageActivityDurationChecker();\n// controler.addOverridingModule( new AbstractModule(){\n// @Override public void install() {\n// this.addEventHandlerBinding().toInstance( enterVehicleEventCounter );\n// this.addEventHandlerBinding().toInstance( stageActivityDurationChecker );\n// }\n// });\n controler.run();\n }", "java.lang.String getNextStep();", "CdapStartAppStep createCdapStartAppStep();", "public String nextStep();", "private static int getLaunchOrder()\r\n\t{\r\n\t\treturn launchOrder;\r\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint jump= jumpSteps(5);\n\t\tSystem.out.println(\"Total possible jumps: \"+jump);\n\t\t\n\t}", "private void generateSteps() {\n for (GlobalState g : this.globalStates) {\n List<String> faults = g.getPendingFaults(); \n if(faults.isEmpty()) {\n // Identifying all available operation transitions (when there \n // are no faults), and adding them as steps\n List<String> gSatisfiableReqs = g.getSatisfiableReqs();\n \n for(Node n : nodes) {\n String nName = n.getName();\n String nState = g.getStateOf(nName);\n List<Transition> nTau = n.getProtocol().getTau().get(nState);\n for(Transition t : nTau) {\n boolean firable = true;\n for(String req : t.getRequirements()) {\n if(!(gSatisfiableReqs.contains(n.getName() + \"/\" + req)))\n firable = false;\n }\n if(firable) {\n // Creating a new mapping for the actual state of n\n Map<String,String> nextMapping = new HashMap();\n nextMapping.putAll(g.getMapping());\n nextMapping.put(nName, t.getTargetState());\n // Searching the ref to the corresponding global \n // state in the list globalStates\n GlobalState next = search(nextMapping);\n // Adding the step to list of steps in g\n g.addStep(new Step(nName,t.getOperation(),next));\n }\n }\n }\n } else {\n // Identifying all settling handlers for handling the faults\n // pending in this global state\n for(Node n: nodes) {\n // Computing the \"targetState\" of the settling handler for n\n String targetState = null;\n \n String nName = n.getName();\n String nState = g.getStateOf(nName);\n Map<String,List<String>> nRho = n.getProtocol().getRho();\n \n List<String> nFaults = new ArrayList();\n for(String req : nRho.get(nState)) {\n if(faults.contains(nName + \"/\" + req)) \n nFaults.add(req);\n }\n\n // TODO : Assuming handlers to be complete \n\n if(nFaults.size() > 0) {\n Map<String,List<String>> nPhi = n.getProtocol().getPhi();\n for(String handlingState : nPhi.get(nState)) {\n // Check if handling state is handling all faults\n boolean handles = true;\n for(String req : nRho.get(handlingState)) {\n if(nFaults.contains(req))\n handles = false;\n }\n\n // TODO : Assuming handlers to be race-free\n\n // Updating targetState (if the handlingState is \n // assuming a bigger set of requirements)\n if(handles) {\n if(targetState == null || nRho.get(handlingState).size() > nRho.get(targetState).size())\n targetState = handlingState;\n }\n }\n // Creating a new mapping for the actual state of n\n Map<String,String> nextMapping = new HashMap();\n nextMapping.putAll(g.getMapping());\n nextMapping.put(nName, targetState);\n // Searching the ref to the corresponding global \n // state in the list globalStates\n GlobalState next = search(nextMapping);\n // Adding the step to list of steps in g\n g.addStep(new Step(nName,next));\n }\n }\n }\n }\n }", "abstract int steps();", "public void testOpenJavaProgramLaunchConfigurationDialog2() {\n // warm run..depends on testOpenJavaProgramLaunchConfigurationDialog1 for cold start\n ILaunchConfiguration config = getLaunchConfiguration(\"Breakpoints\");\n IStructuredSelection selection = new StructuredSelection(config);\n openLCD(selection, fgIdentifier);\n }", "private static void startLifecycleSteps()\n throws LifecycleException\n {\n // Create a scanner to find the lifecycle steps in the current classpath.\n LifecycleStepScanner scanner = new LifecycleStepScanner(context);\n try {\n scanner.scan();\n lifecycleStepList = scanner.getLifecycleStepList();\n }\n catch( ScanException se ) {\n throw new LifecycleException(\"An exception was thrown while scanning for lifecycle steps.\", se);\n }\n\n if( log.isInfoEnabled() ) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \").append(lifecycleStepList.size()).append(\" lifecycle steps:\\n\");\n for( LifecycleStep lifecycleStep : lifecycleStepList ) {\n message.append(\" \").append(lifecycleStep.getQName()).append(\"\\n\");\n }\n log.info(message.toString());\n }\n\n // Start all the found lifecycle steps.\n ListIterator<LifecycleStep> iterator = lifecycleStepList.listIterator();\n try {\n while( iterator.hasNext() ) {\n LifecycleStep lifecycleStep = iterator.next();\n\n if( log.isInfoEnabled() ) {\n log.info(\"Starting Lifecycle Step '\"+lifecycleStep.getQName()+\"'.\");\n }\n lifecycleStep.startLifecycle(context, Lifecycle.configDocumentContext);\n if( log.isInfoEnabled() ) {\n log.info(\"Finished Lifecycle Step '\"+lifecycleStep.getQName()+\"'.\");\n }\n }\n }\n catch( LifecycleException le ) {\n if( log.isErrorEnabled() ) {\n log.error(\"Stopping the lifecycle startup due to a lifecycle exception.\", le);\n }\n iterator.previous();\n while( iterator.hasPrevious() ) {\n LifecycleStep lifecycleStep = iterator.previous();\n try {\n lifecycleStep.stopLifecycle(context);\n }\n catch( Throwable t ) {\n if( log.isWarnEnabled() ) {\n log.warn(\"An exception was thrown while stopping a lifecycle exception.\", t);\n }\n }\n }\n\n // clear the lifecycle step list.\n lifecycleStepList.clear();\n\n // we should throw the lifecycle exception here.\n throw le;\n } \n finally {\n // make sure the configuration DOM gets garbage collected, no reason to keep it around once everyone is configured.\n Lifecycle.configDocumentContext = null;\n }\n \n }", "private static void incrementLaunchOrder()\r\n\t{\r\n\t\tlaunchOrder++;\r\n\t}", "void determineNextAction();", "public void obtainStepsProcess(){\n String comp=\"\";\n int pos=0;\n int paso=0;\n for(String i:ejemplo.getCadena()){\n String[] pendExec= i.split(\"pend\");\n String last=\"\";\n if(!pendExec[0].equals(\"\"))\n last=pendExec[0].substring(pendExec[0].length()-1);\n if(!last.equals(comp)){\n stepProcess.put(pos, paso);\n pos++;\n comp=last;\n }\n paso++;\n }\n paso--;\n stepProcess.put(pos, paso);\n }", "@Test(invocationCount=1,skipFailedInvocations=false)\n public void testDemo() throws TimeOut{\n \tMentalStateManager msmAgent1_0DeploymentUnitByType3=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType3\");\n \t \t\t\t\n \t// wait for Agent1_0DeploymentUnitByType2 to initialise\n \tMentalStateManager msmAgent1_0DeploymentUnitByType2=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType2\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType1 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType1=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType1\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType0 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType0=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType0\");\n \t\n \t\n \tGenericAutomata ga=null;\n \tga=new GenericAutomata();\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState0\");\t\t\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState1\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addFinalState(\"WFTestFinalState0\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState0\",\"Agent0_0DeploymentUnitByType0-Task0\",\"WFTestInitialState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState0\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState1\",\"Agent0_0DeploymentUnitByType1-Task0\",\"WFTestInitialState1\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState1\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\t\n\t\t\t\n\t\t\tTaskExecutionValidation tev=new TaskExecutionValidation(ga);\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType0\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType1\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\t\n \t\t\n \tRetrieveExecutionData cwfe=new \tRetrieveExecutionData();\n \tEventManager.getInstance().register(cwfe);\n\t\tlong step=100;\n\t\tlong currentTime=0;\n\t\tlong finishedTime=0;\n\t\tlong duration=2000;\n\t\tlong maxtimepercycle=2000;\n\t\t \n\t\tMainInteractionManager.goAutomatic(); // tells the agents to start working\t\t\t\n\t\twhile (currentTime<finishedTime){\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep(step);\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentTime=currentTime+step;\n\t\t\t}\n\t\t\t\n\t\t\tif (currentTime<duration){\n\t\t\t\tTestUtils.doNothing(duration-currentTime); // waits for tasks to execute\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\tMainInteractionManager.goManual(); // now it commands to not execute more tasks\t\t\n\t\t\tEventManager.getInstance().unregister(cwfe);\n\t\t\t\n\t\t Vector<String> counterExamples=tev.validatePartialTermination(cwfe,ga,maxtimepercycle);\n\t\t assertTrue(\"The execution does not match the expected sequences. I found the following counter examples \"+counterExamples,counterExamples.isEmpty());\t\t\n\t\t\t\t\t\t\t\n }", "static String[] getNavigateArgs()\n \t{\n \t\tint os = PropertiesAndDirectories.os();\n \t\tString[] result = cachedNavigateArgs;\n \t\tif (result == null)\n \t\t{\n \t\t\tswitch (os)\n \t\t\t{\n \t\t\tcase PropertiesAndDirectories.XP:\n \t\t\tcase PropertiesAndDirectories.VISTA_AND_7:\n \t\t\t\tString path = null;\n \t\t\t\tif (!Pref.lookupBoolean(\"navigate_with_ie\"))\n \t\t\t\t\tpath = FIREFOX_PATH_WINDOWS;\n \t\t\t\tif (path != null)\n \t\t\t\t{\n \t\t\t\t\tFile existentialTester = new File(path);\n \t\t\t\t\tfirefoxExists = existentialTester.exists();\n \t\t\t\t\tif (!firefoxExists)\n \t\t\t\t\t{\n \t\t\t\t\t\tpath = FIREFOX_PATH_WINDOWS_64;\n \t\t\t\t\t\texistentialTester = new File(path);\n \t\t\t\t\t\tfirefoxExists = existentialTester.exists();\n \t\t\t\t\t}\n \t\t\t\t\tif (firefoxExists)\n \t\t\t\t\t{ // cool! firefox\n \t\t\t\t\t\tresult = new String[3];\n \t\t\t\t\t\tresult[0] = path;\n \t\t\t\t\t\tresult[1] = \"-new-tab\";\n \t\t\t\t\t} else {\n \t\t\t\t\t\t//Use the SCC Virtualization Path\n \t\t\t\t\t\tpath = FIREFOX_PATH_VIRT;\n \t\t\t\t\t\texistentialTester = new File(path);\n \t\t\t\t\t\tfirefoxExists = existentialTester.exists();\n \t\t\t\t\t\tif(firefoxExists)\n \t\t\t\t\t\t{\n\t\t\t\t\t\t\tresult = new String[5];\n \t\t\t\t\t\t\tresult[0] = path;\n\t\t\t\t\t\t\tresult[1] = \"/launch\";\n\t\t\t\t\t\t\tresult[2] = \"\\\"Mozilla Firefox 11\\\"\";\n\t\t\t\t\t\t\tresult[3] = \"-new-tab\";\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t}\n \t\t\t\tif (result == null)\n \t\t\t\t{\n \t\t\t\t\tpath = IE_PATH_WINDOWS;\n \t\t\t\t\tFile existentialTester = new File(path);\n \t\t\t\t\tif (existentialTester.exists())\n \t\t\t\t\t{\n \t\t\t\t\t\tresult = new String[2];\n \t\t\t\t\t\tresult[0] = path;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase PropertiesAndDirectories.MAC:\n \t\t\t\tresult = new String[4];\n \t\t\t\tresult[0] = \"/usr/bin/open\";\n \t\t\t\tresult[1] = \"-a\";\n \t\t\t\tresult[2] = \"firefox\";\n \t\t\t\tfirefoxExists = true;\n \t\t\t\tbreak;\n \t\t\tcase PropertiesAndDirectories.LINUX:\n \t\t\t\tresult = new String[2];\n \t\t\t\tresult[0] = FIREFOX_PATH_LINUX;\n \t\t\t\tfirefoxExists = true;\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\terror(PropertiesAndDirectories.getOsName(), \"go(ParsedURL) not supported\");\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (result != null)\n \t\t\t{\n \t\t\t\tcachedNavigateArgs = result;\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}", "private void showExecutionStart() {\n log.info(\"##############################################################\");\n log.info(\"Creating a new web application with the following parameters: \");\n log.info(\"##############################################################\");\n log.info(\"Name: \" + data.getApplicationName());\n log.info(\"Package: \" + data.getPackageName());\n log.info(\"Database Choice: \" + data.getDatabaseChoice());\n log.info(\"Database Name: \" + data.getDatabaseName());\n log.info(\"Persistence Module: \" + data.getPersistenceChoice());\n log.info(\"Web Module: \" + data.getWebChoice());\n }", "public boolean getCustomBuildStep();", "private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }", "ViewCycleExecutionSequence getExecutionSequence();", "public void start()\n\t{\n\t\t\n//\t\tlistExample();\n\t\tlistExample2();\n\t\t\n//\t\tstart1();\n\t\t// forPractice();\n\t//\t askUser();\n\t//\t Looooop2();\n//\t\t myLooooop();\n\t//\t JOptionPane.showMessageDialog(null, myProperties); //THIS WOULD PRINT THE\n\t\t// DEFAULT VALUES!!!\n\t\t \n\n\t}", "@Override\n\tprotected void setup() {\n\t\tObject[] args = getArguments();\n\t\tif (args != null && args.length == 3) {\n\t\t\tnumAttempts = Integer.parseInt((String) args[0]);\n\t\t\tinitLaps = Integer.parseInt((String) args[1]);\n\t\t\tstep = Integer.parseInt((String) args[2]);\n\t\t\tlogger.info(\"Init experiment (a:\" + numAttempts + \", i:\" + initLaps + \", s:\" + step);\n\t\t} else {\n\t\t\tlogger.log(Logger.SEVERE, \"Agent \" + getLocalName() + \" - Incorrect number of arguments\");\n\t\t\tdoDelete();\n\t\t}\n\t\t// Init experiment\n\t\taddBehaviour(new ExperimentBehaviour(numAttempts, initLaps, step));\n\t}", "@Override\r\n\tpublic int getSteps() {\n\t\treturn 0;\r\n\t}", "void addPathToStart() {\n for (int i=0; i<pathFromStart.size(); i++) {\n newFutureTargets.push(composeWebviewBackMessage());\n }\n }", "boolean nextStep();", "public void testOpenJavaProgramLaunchConfigurationDialog1() {\n // cold run\n ILaunchConfiguration config = getLaunchConfiguration(\"Breakpoints\");\n IStructuredSelection selection = new StructuredSelection(config);\n for (int i = 0; i < 100; i++) {\n openLCD(selection, fgIdentifier);\n }\n commitMeasurements();\n assertPerformance();\n }", "public static void jumpToApp(String paramString1, String paramString2, String paramString3, String paramString4, boolean paramBoolean, String paramString5, String paramString6, int paramInt, String paramString7) {\n }", "void doNextPlannedAction(ArrayList<WebElement> possibleTargets) {\n String action = futureTargets.pop();\n\n if (action.equals(composeWebviewBackMessage())) {pathFromStart.remove(pathFromStart.size()-1);}\n else if (isClickButton(action) && !isInput(possibleTargets.get(0))) {pathFromStart.add(action);}\n\n doAction(action, possibleTargets);\n }", "private void addAutoStartupswitch() {\n\n try {\n Intent intent = new Intent();\n String manufacturer = android.os.Build.MANUFACTURER .toLowerCase();\n\n switch (manufacturer){\n case \"xiaomi\":\n intent.setComponent(new ComponentName(\"com.miui.securitycenter\", \"com.miui.permcenter.autostart.AutoStartManagementActivity\"));\n break;\n case \"oppo\":\n intent.setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.StartupAppListActivity\"));\n break;\n case \"vivo\":\n intent.setComponent(new ComponentName(\"com.vivo.permissionmanager\", \"com.vivo.permissionmanager.activity.BgStartUpManagerActivity\"));\n break;\n case \"Letv\":\n intent.setComponent(new ComponentName(\"com.letv.android.letvsafe\", \"com.letv.android.letvsafe.AutobootManageActivity\"));\n break;\n case \"Honor\":\n intent.setComponent(new ComponentName(\"com.huawei.systemmanager\", \"com.huawei.systemmanager.optimize.process.ProtectActivity\"));\n break;\n case \"oneplus\":\n intent.setComponent(new ComponentName(\"com.oneplus.security\", \"com.oneplus.security.chainlaunch.view.ChainLaunchAppListAct‌​ivity\"));\n break;\n }\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() > 0) {\n startActivity(intent);\n }\n } catch (Exception e) {\n Log.e(\"exceptionAutostarti2pd\" , String.valueOf(e));\n }\n\n }", "@Override\n protected void defineSteps() {\n addStep(new StepStartDriveUsingMotionProfile(80, 0.0));\n addStep(new StepWaitForDriveMotionProfile());\n addStep(new StepStopDriveUsingMotionProfile());\n addStep(new AutoStepDelay(500));\n addStep(new StepSetIntakeState(true));\n addStep(new StepSetNoseState(true));\n addStep(new AutoStepDelay(500));\n addStep(new StepStartDriveUsingMotionProfile(-5, 0.0));\n addStep(new StepWaitForDriveMotionProfile());\n addStep(new StepStopDriveUsingMotionProfile());\n addStep(new AutoStepDelay(500));\n\n AutoParallelStepGroup crossCheval = new AutoParallelStepGroup();\n AutoSerialStepGroup driveOver = new AutoSerialStepGroup();\n\n driveOver.addStep(new StepStartDriveUsingMotionProfile(80, 0.0));\n driveOver.addStep(new StepWaitForDriveMotionProfile());\n driveOver.addStep(new StepStopDriveUsingMotionProfile());\n // Medium flywheel speed.\n crossCheval.addStep(new StepRunFlywheel(Shooter.FLYWHEEL_SPEED_MEDIUM));\n crossCheval.addStep(driveOver);\n addStep(crossCheval);\n addStep(new AutoStepDelay(500));\n addStep(new StepSetIntakeState(false));\n addStep(new StepSetNoseState(false));\n addStep(new AutoStepDelay(1000));\n\n addStep(new StepQuickTurn(180));\n addStep(new AutoStepDelay(1000));\n addStep(new StepVisionAdjustment());\n addStep(new AutoStepDelay(500));\n addStep(new StepSetShooterPosition(true));\n addStep(new StepResetShooterPositionToggle());\n addStep(new AutoStepDelay(2000));\n addStep(new StepShoot());\n addStep(new AutoStepDelay(1000));\n addStep(new StepResetShotToggle());\n addStep(new StepRunFlywheel(Shooter.FLYWHEEL_SPEED_ZERO));\n\n // total delay time: 7.5 seconds\n }", "public abstract String getLaunchCommand();", "private void firstSteps() {\n\t\tturnLeft();\n\t\tmove();\n\t\tmove();\n\t\tturnRight();\n\t\tmove();\n\t}", "public static void main(String[] args) {\n Steps ways = new Steps();\n int n=5;\n System.out.println(\"Recursion ways: \"+ways.getStepsRecur(n));\n \n System.out.println(\"DP ways: \"+ways.getStepDP(n));\n \n }", "public void setUp() throws Exception {\n\n processDefinition = new ProcessDefinition();\n\n processDefinition.setProcessVariables(new ProcessVariable[]{\n ProcessVariable.forName(\"var1\"),\n ProcessVariable.forName(\"var2\")\n });\n\n Activity theLastJoinActivity = null;\n\n\n for(int i=1; i<20; i++) {\n Activity a1 = new DefaultActivity();\n\n // a1.setQueuingEnabled(true);\n\n if(i == 7 || i==1){\n a1 = new GatewayActivity();\n }\n\n a1.setTracingTag(\"a\" + i);\n processDefinition.addChildActivity(a1);\n\n if(i==7){\n theLastJoinActivity = a1;\n }\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a9\");\n t1.setTarget(\"a1\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a10\");\n t1.setTarget(\"a9\");\n\n processDefinition.addTransition(t1);\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a2\");\n t1.setCondition(new Evaluate(\"var1\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a5\");\n t1.setCondition(new Evaluate(\"var2\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a3\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a5\");\n t1.setTarget(\"a6\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a6\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a3\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a4\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a7\");\n t1.setTarget(\"a11\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a11\");\n t1.setTarget(\"a12\");\n\n processDefinition.addTransition(t1);\n }\n\n processDefinition.afterDeserialization();\n\n ProcessInstance.USE_CLASS = DefaultProcessInstance.class;\n\n\n }", "@Override\r\n\tpublic List<CandidateSteps> candidateSteps() {\n\t\treturn new InstanceStepsFactory(configuration(), new AmxBpmSteps()).createCandidateSteps();\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tboolean part1 = false; \r\n\r\n\t\tString[] input = Day2.getInput().split(\"\\n\");\r\n\t\t//String[] input = \"0 3 0 1 -3\".split(\" \");\r\n\t\t\r\n\t\t//get jump offsets\r\n\t\tint[] instr = new int[input.length];\r\n\t\tfor(int i=0;i<input.length;i++) {\r\n\t\t\tinstr[i] = Integer.parseInt(input[i]);\r\n\t\t}\r\n\t\t\r\n\t\t//follow them\r\n\t\tint pos = 0;\r\n\t\tint count =0;\r\n\t\twhile(pos < instr.length) {\r\n\t\t\tint next = instr[pos];\r\n\t\t\tif( (!part1) && next >= 3) {\r\n\t\t\t\tinstr[pos]--; //part 2, and need to decrement\r\n\t\t\t}else {\r\n\t\t\t\tinstr[pos]++; //increment\r\n\t\t\t}\r\n\t\t\tpos += next;\r\n\t\t\tcount++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"steps: \"+count);\r\n\r\n\t}", "public void startWorkflow(String wfName) {\n\tlog(_processorName);\n\tlog(_tcpPort);\n\tlog(_wfDefPath);\n\tfor (int i = 0; i < _capabilities.size(); i++) {\n\t log(_capabilities.get(i).toString());\n\t}\n\t// TODO actually start the first task on an appropriate host\n }", "public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }", "void doManualStart();", "protected void setup() {\n\t\tgetContentManager().registerOntology(JADEManagementOntology.getInstance());\r\n getContentManager().registerLanguage(new SLCodec(), FIPANames.ContentLanguage.FIPA_SL0);\r\n\t\tSystem.out.println(\"Agent FixCop cree : \"+getLocalName());\r\n\t\tObject[] args = getArguments();\r\n\t\tList<String> itinerary = (List<String>) args[0];\r\n\t\tint period = (int) args[1];\r\n\t\t\r\n\t\t\r\n\t// POLICIER STATIONNAIRE DO THE CYCLIC BEHAVIOUR TO SCAN THE ROOT , IF THE INTRUDER IS IN ROOT, POLICIER STATIO KILLS HIM.\r\n addBehaviour(new StationScanRootBehaviour(this));\r\n\r\n\t// RESPAWN ANOTHER POLICIER MOBILE AFTER EACH POLICIER MOBILE's LIFETIME DURATION ELAPSES.\r\n addBehaviour(new RespawnCopBehaviour(this, period, itinerary));\r\n\r\n\t}", "protected void setup(){\n\n\t\tsuper.setup();\n\n\t\tfinal Object[] args = getArguments();\n\t\tif(args!=null && args[0]!=null && args[1]!=null){\n\t\t\tdeployAgent((Environment) args[0],(EntityType)args[1]);\n\t\t}else{\n\t\t\tSystem.err.println(\"Malfunction during parameter's loading of agent\"+ this.getClass().getName());\n System.exit(-1);\n }\n\t\t\n\t\t//############ PARAMS ##########\n\n\t\tthis.nbmodifsmin \t\t= 30;\t\t\t//nb modifs minimum pour renvoyer la carte\n\t\tthis.timeOut \t\t\t= 1000 * 4;\t\t//secondes pour timeout des messages (*1000 car il faut en ms)\n\t\tthis.sleepbetweenmove \t= 200;\t\t\t//in MS\n\t\tthis.nbmoverandom\t\t= 4;\t\t\t// nb random moves by default\n\t\t\n\t\t//#############################\n\t\t//setup graph\n\t\t//setupgraph();\n\t\tthis.graph = new SingleGraph(\"graphAgent\");\n\t\tinitMyGraph();\n\t\tthis.step = 0;\n\t\tthis.stepMap = new HashMap<String, Integer>();\n\t\tthis.path = new ArrayList<String>();\n\t\tthis.mailbox = new Messages(this);\n\t\tthis.lastMsg = null;\n\t\tthis.switchPath = true;\n\t\tthis.lastsender = null;\n\t\tthis.lastSentMap = new HashMap<String, Integer>(); //nbmodifs\n\t\tthis.remakepath = false; // changes to true if the map changed in a way that requires a new path\n\t\tthis.nbmoverandomoriginal = this.nbmoverandom;\n\t\t\n\t\tthis.toSendMap = new HashMap<String, Graph>(); //actual hashmap graph\n\t\t\n\t\tSystem.out.println(\"the agent \"+this.getLocalName()+ \" is started\");\n\t}", "@Override\n public void start() {\n swerveDebug(500, \"SwerveAutoTEST::start\", \"START\");\n\n // Call the super/base class start method.\n super.start();\n\n\n // *************************************************\n // *************************************************\n // ****** set debugging on or off and options ******\n // *************************************************\n // *************************************************\n debugActive = Boolean.TRUE;\n // always add one for the state set in init below\n debugStates = 2;\n debugStartState = autoStates.SWERVE_AUTO_TESTING_TURN_BACK;\n // *************************************************\n // *************************************************\n \n\n swerveDebug( 500, \"SwerveAutoTEST::start\", \"DONE\");\n }", "public static void main(String[] args) {\n // size of square board\n int N = 6;\n int[] knightPos= {4, 5};\n int[] targetPos= {1, 1};\n System.out.println(minStepToReachTarget(knightPos, targetPos, N));\n \n N = 201;\n knightPos = new int[] {200, 200};\n targetPos = new int[] {0, 0};\n System.out.println(minStepToReachTarget(knightPos, targetPos, N));\n }", "protected void runBeforeStep() {}", "private static void doStartConfiguration(final Configuration config) {\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSetup setup = new Setup(config);\r\n\t\t\t\tsetup.setLocationRelativeTo(null);\r\n\t\t\t\tsetup.setVisible(true);\r\n\t\t\t\tsetup.pack();\r\n\t\t\t\tsetup.onRun.add(new Act() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void act() {\r\n\t\t\t\t\t\tdoStartProgram(config);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void makeNextMove() {\n\t\ttakeNextNonTabuedCheapestStep();\n\t\t}", "public IConfigurationElement getCommandLineGeneratorElement();", "java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;", "public ProofStep [ ] getSteps ( ) ;", "CdapStartFlowStep createCdapStartFlowStep();", "@Override\r\n\tpublic void generateWorkflow() throws NoConfigFoundException, DBAccessException{\n\t\tsteps = cr.getWorkflowSteps();\r\n\t\t\r\n\t\tif(steps != null){\r\n\t\t\t// Ablauf in DB eintragen\r\n\t\t\tdb.saveWorkflow(steps);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// falls keine Steps vorhanden\r\n\t\t\tthrow new NoConfigFoundException(\"Keine Config für den Ablauf gefunden!\");\r\n\t\t}\r\n\t}", "void addPathFromStart() {\n for (String aPathFromStart : pathFromStart) {\n newFutureTargets.push(aPathFromStart);\n }\n }", "@Override public List<ExecutionStep> getSteps() {\n return Collections.singletonList(step);\n }", "public static void beginStep() {\n\t\tTestNotify.log(STEP_SEPARATOR);\n\t TestNotify.log(GenLogTC() + \"is being tested ...\");\n\t}", "public void step();", "public void step();", "CdapDeployAppStep createCdapDeployAppStep();", "public static List<Long> straightHome(UTM start, UTM goal)\n\t\t{\n\t\t\t\tList<Long> path_sequence = new ArrayList<>();\n\t\t\t\tlong start_index = newCrumb(start);\n\t\t\t\tlong goal_index = newCrumb(goal);\n\t\t\t\tpath_sequence.add(start_index);\n\t\t\t\tpath_sequence.add(goal_index);\n\t\t\t\treturn path_sequence;\n\t\t}", "void start() {\n \tm_e.step(); // 1, 3\n }", "public void initialConfig() {\n }", "static Configuration parseArguments(String[] args) {\n \n // Global config\n GlobalConfiguration globalConfig = new GlobalConfiguration();\n \n // Module-specific options.\n List<ModuleSpecificProperty> moduleConfigs = new LinkedList<>();\n \n \n // For each argument...\n for (String arg : args) {\n arg = StringUtils.removeStart( arg, \"--\" );\n \n if( arg.equals(\"help\") ){\n Utils.writeHelp();\n return null;\n }\n if( arg.startsWith(\"as5.dir=\") || arg.startsWith(\"eap5.dir=\") || arg.startsWith(\"src.dir=\") ) {\n globalConfig.getAS5Config().setDir(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.dir=\") || arg.startsWith(\"eap6.dir=\") || arg.startsWith(\"dest.dir=\") || arg.startsWith(\"wfly.dir=\") ) {\n globalConfig.getAS7Config().setDir(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"as5.profile=\") || arg.startsWith(\"eap5.profile=\") || arg.startsWith(\"src.profile=\") ) {\n globalConfig.getAS5Config().setProfileName(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.confPath=\") || arg.startsWith(\"eap6.confPath=\") || arg.startsWith(\"dest.conf.file=\") || arg.startsWith(\"wfly.confPath=\") ) {\n globalConfig.getAS7Config().setConfigPath(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.mgmt=\") || arg.startsWith(\"eap6.mgmt=\") || arg.startsWith(\"dest.mgmt=\") || arg.startsWith(\"wfly.mgmt=\") ) {\n parseMgmtConn( StringUtils.substringAfter(arg, \"=\"), globalConfig.getAS7Config() );\n continue;\n }\n\n if( arg.startsWith(\"app.path=\") ) {\n globalConfig.addDeploymentPath( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"valid.skip\") ) {\n globalConfig.setSkipValidation(true);\n continue;\n }\n\n if( arg.equals(\"dry\") || arg.equals(\"dryRun\") || arg.equals(\"dry-run\") ) {\n globalConfig.setDryRun(true);\n continue;\n }\n \n if( arg.equals(\"test\") || arg.equals(\"testRun\") || arg.equals(\"test-run\") ) {\n globalConfig.setTestRun(true);\n continue;\n }\n \n if( arg.startsWith(\"report.dir=\") ) {\n globalConfig.setReportDir( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"migrators.dir=\") || arg.startsWith(\"migr.dir=\") ) {\n globalConfig.setExternalMigratorsDir( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n // User variables available in EL and Groovy in external migrators.\n if (arg.startsWith(\"userVar.\")) {\n \n // --userVar.<property.name>=<value>\n String rest = StringUtils.substringAfter(arg, \".\");\n String name = StringUtils.substringBefore(rest, \"=\");\n String value = StringUtils.substringAfter(rest, \"=\");\n \n globalConfig.getUserVars().put( name, value );\n }\n \n\n // Module-specific configurations.\n // TODO: Process by calling IMigrator instances' callback.\n if (arg.startsWith(\"conf.\")) {\n \n // --conf.<module>.<property.name>[=<value>]\n String conf = StringUtils.substringAfter(arg, \".\");\n String module = StringUtils.substringBefore(conf, \".\");\n String propName = StringUtils.substringAfter(conf, \".\");\n int pos = propName.indexOf('=');\n String value = null;\n if( pos == -1 ){\n value = propName.substring(pos+1);\n propName = propName.substring(0, pos);\n }\n \n moduleConfigs.add( new ModuleSpecificProperty(module, propName, value));\n }\n\n \n // Unrecognized.\n \n if( ! arg.contains(\"=\") ){\n // TODO: Could be AS5 or AS7 dir.\n }\n \n System.err.println(\"Warning: Unknown argument: \" + arg + \" !\");\n Utils.writeHelp();\n continue;\n }\n\n Configuration configuration = new Configuration();\n configuration.setModuleConfigs(moduleConfigs);\n configuration.setGlobalConfig(globalConfig);\n \n return configuration;\n \n }", "@Override\n public void init(int maxSteps) {\n }", "@Test\n\tpublic void testStep() {\n\t\tsimulator.step();\n\t\tassertEquals(0, (int)simulator.averageWaitTime());\n\t\tassertEquals(0, (int)simulator.averageProcessTime());\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\n\t\tfor (int i = 0; i < 28; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(287, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1525, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\t\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(614, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1457, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(true, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(false, simulator.moreSteps());\t\n\t}", "public static void main(String[] args) {\n int val = determineSequence(7);\n System.out.println(val);\n }", "@Override\n protected void setup() {\n // exception handling for invoke the main2();\n try {\n main2();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // create central agent of the application\n try {\n AgentController Main = main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n try {\n showResualt();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void startUp() {\n\t\twhile (startupSettings.getContinue()) {\n\t\t\tstartView.showLogo();\n\t\t\tthis.setupNewMatch();\n\t\t\tstartView.showNewMatchStarting();\n\t\t\tcurrentMatch.start();\n\t\t\tstartupSettings = startView.askNewStartupSettings();\n\t\t}\n\t\tthis.ending();\n\t}", "private void initToLastToolRun() {\n\n try {\n\n final String p = Application.getToolManager().getLastToolName();\n\n if (p == null) {\n return;\n }\n\n fToolSelectorTree.selectTool(p);\n\n } catch (Throwable t) {\n klog.warn(t);\n }\n }", "static void startJavaTrainer() {\n initializeMap();\n promptUser();\n startProgram();\n }", "public abstract void startup();", "@StartStep(localName=\"config\", xmlns={\"xmlns:config='http://xchain.org/config/1.0'\"})\n public static void startConfiguration(LifecycleContext context, ConfigDocumentContext configDocContext) \n throws MalformedURLException \n {\n // Read DOM and set values on configContext\n ConfigContext configContext = Lifecycle.getLifecycleContext().getConfigContext();\n Boolean monitor = (Boolean)configDocContext.getValue(\"/config:config/config:monitor\", Boolean.class);\n if( monitor != null ) configContext.setMonitored(monitor);\n Integer catalogCacheSize = (Integer)configDocContext.getValue(\"/config:config/config:catalog-cache-size\", Integer.class);\n if( catalogCacheSize != null ) configContext.setCatalogCacheSize(catalogCacheSize);\n Integer templateCacheSize = (Integer)configDocContext.getValue(\"/config:config/config:templates-cache-size\", Integer.class);\n if( templateCacheSize != null ) configContext.setTemplatesCacheSize(templateCacheSize);\n \n addUrls(configDocContext, \"/config:config/config:resource-base-url/@config:system-id\", configContext.getResourceUrlList());\n addUrls(configDocContext, \"/config:config/config:source-base-url/@config:system-id\", configContext.getSourceUrlList());\n addUrls(configDocContext, \"/config:config/config:webapp-base-url/@config:system-id\", configContext.getWebappUrlList());\n \n // configure the URLFactory for file monitoring if requested\n if( configContext.isMonitored() ) {\n\n if( log.isDebugEnabled() ) {\n log.debug( \"Config: Monitoring is enabled, configuring URL translation strategies...\" );\n }\n\n // configure the resource protocol 'context-class-loader' authority for monitoring\n if( !configContext.getResourceUrlList().isEmpty() ) {\n\n CompositeUrlTranslationStrategy contextClassLoaderStrategy = new CompositeUrlTranslationStrategy();\n \n for( Iterator<URL> it = configContext.getResourceUrlList().iterator(); it.hasNext(); ) {\n URL baseUrl = it.next();\n BaseUrlUrlTranslationStrategy baseUrlStrategy =\n new BaseUrlUrlTranslationStrategy( baseUrl, BaseUrlUrlTranslationStrategy.URL_FACTORY_URL_SOURCE );\n contextClassLoaderStrategy.getTranslatorList().add( baseUrlStrategy );\n if( log.isDebugEnabled() ) {\n log.debug( \" Adding resource URL: \" + baseUrl );\n }\n }\n \n // now add the standard context class loader strategy\n contextClassLoaderStrategy.getTranslatorList().add( new ContextClassLoaderUrlTranslationStrategy() );\n \n // override the standard strategy with the new composite strategy\n ResourceUrlConnection.registerUrlTranslationStrategy( ResourceUrlConnection.CONTEXT_CLASS_LOADER_ATHORITY,\n contextClassLoaderStrategy );\n }\n }\n }", "public void start() {\n io.println(\"Welcome to 2SAT-solver app!\\n\");\n String command = \"\";\n run = true;\n while (run) {\n while (true) {\n io.println(\"\\nType \\\"new\\\" to insert an CNF, \\\"help\\\" for help or \\\"exit\\\" to exit the application\");\n command = io.nextLine();\n if (command.equals(\"new\") || command.equals(\"help\") || command.equals(\"exit\")) {\n break;\n }\n io.println(\"Invalid command. Please try again.\");\n }\n switch (command) {\n case \"new\":\n insertNew();\n break;\n case \"help\":\n displayHelp();\n break;\n case \"exit\":\n io.println(\"Thank you for using this app.\");\n run = false;\n }\n\n }\n }", "private void presentShowcaseSequence() {\n }", "void setup(CommandLine cmd);", "int getStep();", "int getStep();", "int getStep();", "protected void sequence_Config(EObject context, ConfigLogic semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Test\r\n\tpublic void testTargetsTwoSteps() {\r\n\t\tboard.calcTargets(10, 1, 2);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 0)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\t\r\n\t\tboard.calcTargets(17, 13, 2);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(5, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 14)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(16, 14)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(16, 12)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(15, 13)));\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t/* If the user clicks the Begin button */\n\t\tif (arg0.getActionCommand().equals(\"Begin\")){\n\n\t\t\t/* And both source/initial and target configurations are loaded */\n\t\t\tif(loaded==1){\n\n\t\t\t\t/* Enable/disable GUI components appropriately */\n\t\t\t\tstartcheck.setEnabled(false);\n\t\t\t\tstopcheck.setEnabled(true);\n\t\t\t\tclose.setEnabled(false);\n\t\t\t\tpath1.setEnabled(false);\n\t\t\t\tpath2.setEnabled(false);\n\t\t\t\tresult.setText(\"N/A\");\n\t\t\t\tautomata.setEnabled(false);\n\t\t\t\tload.setEnabled(false);\n\t\t\t\trepeat.setEnabled(false);\n\n\t\t\t\t/* Wake up the execution updater thread */\n\t\t\t\tunPause();\n\n\t\t\t\t/* Block the GUI until the updater thread has paused */\n\t\t\t\twhile(updater.getState()==Thread.State.WAITING){\n\t\t\t\t\tThread.yield();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* If the user clicks the End button */\n\t\telse if (arg0.getActionCommand().equals(\"End\")){\n\n\t\t\t/* Set the global run variable to false, forcing\n\t\t\t * the execution thread to stop */\n\t\t\tpause();\n\n\t\t\t/* Block the GUI until the updater thread has paused */\n\t\t\twhile(updater.getState()!=Thread.State.WAITING){\n\t\t\t\tThread.yield();\n\t\t\t}\n\n\t\t\t/* Enable/disable GUI components appropriately */\n\t\t\tstopcheck.setEnabled(false);\n\t\t\tstartcheck.setEnabled(true);\n\t\t\tclose.setEnabled(true);\t\t\n\t\t\tpath1.setEnabled(true);\n\t\t\tpath2.setEnabled(true);\n\t\t\tautomata.setEnabled(true);\n\t\t\tload.setEnabled(true);\n\t\t\trepeat.setEnabled(true);\n\t\t}\n\n\t\t/* If the user clicks the Close button */\n\t\telse if (arg0.getActionCommand().equals(\"Close\")){\n\n\t\t\t/* Re-enable the main window and destroy this one */\n\t\t\tMainFrame.instance.setEnabled(true);\n\t\t\tthis.dispose();\n\t\t}\n\n\t\t/* If the user clicks the Load button */\n\t\telse if (arg0.getActionCommand().equals(\"Load\")){\n\n\t\t\t/* And if valid source and target configurations are both selected */\n\t\t\tif(path1.getSelectedIndex()!=-1 && path2.getSelectedIndex()!=-1){\n\n\t\t\t\t/* Load the two configurations into program memory */\n\t\t\t\tloadEnds(path1.getSelectedItem().toString()+\".con\",\n\t\t\t\t\t\tpath2.getSelectedItem().toString()+\".con\");\n\t\t\t\tloaded=1;\n\t\t\t\tresult.setText(\"N/A\");\n\t\t\t}\n\t\t}\n\t}", "public void help(Context context, String[] args) throws Exception\r\n {\r\n if(!context.isConnected())\r\n {\r\n throw new Exception(\"not supported on desktop client\");\r\n }\r\n\r\n writer.write(\"================================================================================================\\n\");\r\n writer.write(\" Variant Configuration Intermediate Object Migration is a two step process \\n\");\r\n writer.write(\" Step1: Find all objects that need to be migrated and save them into flat files \\n\");\r\n writer.write(\" Example: \\n\");\r\n writer.write(\" execute program emxVariantConfigurationIntermediateObjectMigrationFindObjects 1000 C:/Temp/oids/; \\n\");\r\n writer.write(\" First parameter = indicates number of object per file \\n\");\r\n writer.write(\" Second Parameter = the directory where files should be written \\n\");\r\n writer.write(\" \\n\");\r\n writer.write(\" Step2: Migrate the objects \\n\");\r\n writer.write(\" Example: \\n\");\r\n writer.write(\" execute program emxVariantConfigurationIntermediateObjectMigration 'C:/Temp/oids/' 1 n ; \\n\");\r\n writer.write(\" First parameter = the directory to read the files from\\n\");\r\n writer.write(\" Second Parameter = minimum range of file to start migrating \\n\");\r\n writer.write(\" Third Parameter = maximum range of file to end migrating \\n\");\r\n writer.write(\" - value of 'n' means all the files starting from mimimum range\\n\");\r\n writer.write(\"================================================================================================\\n\");\r\n writer.close();\r\n }", "@Given(\"prepare to Analysis\")\npublic void preanalysis(){\n}", "public void startTestLoop() {\n boolean shouldGoBack = false;\n Activity currentActivity = getActivityInstance();\n if (currentActivity != null) {\n evaluateAccessibility(currentActivity);\n } else {\n shouldGoBack = true;\n }\n\n\n // TODO: If goal state has been reached, terminate the test loop\n if (actionCount >= MAX_ACTIONS) {\n return;\n }\n\n // Then, come up with an estimate for what next action to take\n UiInputActionType nextAction = !shouldGoBack ? getNextActionType() : UiInputActionType.BACK;\n UiObject subject = getNextActionSubject(nextAction);\n\n // If no subject was found for this action, retry\n if (subject == null) {\n\n startTestLoop();\n\n } else {\n\n // Finally, execute that action\n try {\n Log.e(\"ACTION\", \"Performing \" + nextAction + \" on \" + subject.getClassName());\n } catch (UiObjectNotFoundException e) {\n e.printStackTrace();\n }\n executeNextAction(nextAction, subject);\n\n // Call the start loop again\n uiDevice.waitForIdle(2000);\n startTestLoop();\n\n }\n\n }", "void launch();", "void launch();", "void launch();", "public abstract void performStep();", "public static void main(String[] args) {\n\t\tApplicationContext context = SpringApplication.run(SpringbootIn10StepsApplication.class, args);\n\t\t//**SpringApplication.run(...)**\n\t\t//Used to run a Spring Context. Also, \"run\" returns an ApplicationContext.\n\n\n\t\tfor (String name : context.getBeanDefinitionNames()) {\n\t\t\tSystem.out.println(name);\n\t\t}\t// We can see from this that the auto-configuration wires in 120+ beans!!\n\t}", "@FXML\n void onActionButtonStart(ActionEvent event) {\n \n //searching selected config\n String companySelected = (String) appList.getValue();\n String appConfigSelected = \"\";\n int i = 0;\n while (i < arrayItemList.length) {\n if (arrayItemList[i][0].equals(companySelected)) {\n appConfigSelected = arrayItemList[i][1];\n }\n i++;\n }\n\n //copy selected config file\n try {\n PathConfigFile.configFileCopy(appName, appConfig, appConfigSelected);\n } catch (IOException ex) {\n Logger.getLogger(StarterController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n //run application\n Runtime r = Runtime.getRuntime();\n try {\n r.exec(appExe);\n } catch (IOException ex) {\n Logger.getLogger(StarterController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String[] args) {\n\t\tString configfileLocation = System.getProperty(\"user.dir\") + File.separator + \"WebContent\" +File.separator + \"config.json\";\n\t\tlong size = new File(configfileLocation).length()/(1024*1024);\n\t\t\n\t\tSystem.out.println(size);\n\t\tString content = null;\n\t\tStringBuilder contentBuilder = new StringBuilder();\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(configfileLocation)))\n\t {\n\t \n\t String sCurrentLine;\n\t while ((sCurrentLine = br.readLine()) != null)\n\t {\n\t \tcontentBuilder.append(sCurrentLine).append(\"\\n\");\n\t }\n\t }\n\t catch (IOException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t\tcontent = contentBuilder.toString();\n\t\tJSONParser jsonParser = new JSONParser(content);\n\t\tJSONObject obj = jsonParser.parseJSONObject();\n\t\t\n\t\t\n\t\t\n\t\t// step 1: create a workflow\n\t\tWorkflowVisualization frame = new WorkflowVisualization();\t\n\t\tDiagnosis w = new Diagnosis();\n\t\t\n\t\t// step 2: Design a workflow\n\t\tw.design();\n\t\tframe.drawWorkflowGraph(w);\n\t\t\n\t\t/*\n\t\tString workflowplanner = obj.get(\"WorkflowPlanner\").toString();\n\t\tString workflowexecutor = obj.get(\"WorkflowExecutor\").toString();\n\t\t\n\t\tSystem.out.println(workflowplanner);\n\t\t\n\t\t\n\t\tWorkflowPlanner wp = null;\n\t\ttry {\n\t\t\tClass<?> clazz = Class.forName(\"dataview.planners.WorkflowPlanner\");\n\t\t\t\n\t\t\tConstructor<?> constructor= clazz.getDeclaredConstructor(dataview.models.Workflow.class);\n\t\t\twp = (WorkflowPlanner) constructor.newInstance(w);\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tGlobalSchedule gsch = wp.plan();\n\t\t\n//\t\tSystem.out.println()\n\t\t\n\t\tSystem.out.println(gsch.getSpecification());\n\t\t*/\n\n\t\t// step 3: choose a workflow planner\n\t\tWorkflowPlanner wp = new WorkflowPlanner_T_Cluster(w);\n\t\tGlobalSchedule gsch = wp.plan();\n\t\ttry {\n\t\t// step 4: choose a workflow executor\t\n\t\t\tWorkflowExecutor we = new WorkflowExecutor_Beta(obj, gsch);\n\t\t\twe.execute();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public IManagedCommandLineGenerator getCommandLineGenerator();", "public int getSearchSteps();", "public boolean runWizard() throws Exception\n{\n\t// Tells us what came before each state\n\tMap<Wiz,Wiz> prevWizs = new TreeMap();\n\t// v = (xv == null ? new TypedHashMap() : xv);\n\tscreenCache = new TreeMap();\n\tcon = new WizContext();\n\tWiz wiz = nav.getStart();\t\t// Current state\n\tfor (; wiz != null; ) {\n\n\t\t// Get the screen for this Wiz\n\t\tWizScreen screen = screenCache.get(wiz);\n\t\tif (screen == null) {\n\t\t\tscreen = wiz.newScreen(con);\n\t\t\tif (wiz.isCached(Wiz.NAVIGATE_BACK)) screenCache.put(wiz,screen);\n\t\t}\n\n\t\t// Prepare and show the Wiz\n\t\tpreWiz(wiz, con);\n\t\tMap<String,Object> values = new TreeMap();\n\t\tshowScreen(screen, values);\n\n\t\t// Run the post-processing\n\t\twiz.getAllValues(values);\n\t\tcon.localValues = values;\n\t\tString suggestedNextName = postWiz(wiz, con);\n\n\t\t// Figure out where we're going next\n\t\tWiz nextWiz = null;\n\t\tString submit = (String)values.get(\"submit\");\nSystem.out.println(\"submit = \" + submit);\n\t\tif (\"next\".equals(submit)) {\n\t\t\tif (suggestedNextName != null) {\n\t\t\t\tnextWiz = nav.getWiz(suggestedNextName);\n\t\t\t} else {\n\t\t\t\tnextWiz = nav.getNext(wiz, Wiz.NAVIGATE_FWD);\n\t\t\t}\n\t\t\tcon.addValues(values);\n\t\t} else if (\"back\".equals(submit)) {\n\t\t\t// Remove it from the cache so we re-make\n\t\t\t// it going \"forward\" in the Wizard\n\t\t\tif (!wiz.isCached(Wiz.NAVIGATE_FWD)) screenCache.remove(wiz);\n\n\t\t\t// Nav will usually NOT set a NAVIGATE_BACK...\n\t\t\tnextWiz = nav.getNext(wiz, Wiz.NAVIGATE_BACK);\n\n\t\t\t// ... which leaves us free to do it from our history\n\t\t\tif (nextWiz == null) nextWiz = prevWizs.get(wiz);\n\n\t\t\t// Falling off the beginning of our history...\n\t\t\tif (nextWiz == null && reallyCancel()) return false;\n\t\t\tcontinue;\n\t\t} else if (\"cancel\".equals(submit) && reallyCancel()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\t// Navigation without a \"submit\"; rare but possible...\n\t\t\tif (suggestedNextName != null) {\n\t\t\t\tnextWiz = nav.getWiz(suggestedNextName);\n\t\t\t}\n\t\t\t// Custom navigation!\n\t\t\t// Incorporate the values into the main WizContext\n\t\t\tcon.addValues(values);\n\t\t}\n\n\t\t// ================= Finish up\n\t\twiz.post(con);\n\t\twiz = nextWiz;\n\t}\n\treturn true;\t\t// Won't get here\n}", "public void initializeFrom(ILaunchConfiguration configuration) {\n\t\tupdateTargetInfoFromConfig(configuration);\r\n\t}", "void launchAsMaster();", "private void requestAutoStartPermission() {\n if (Build.MANUFACTURER.equals(\"OPPO\")) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.FakeActivity\")));\n } catch (Exception e) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupapp.StartupAppListActivity\")));\n } catch (Exception e1) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupmanager.StartupAppListActivity\")));\n } catch (Exception e2) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startup.StartupAppListActivity\")));\n } catch (Exception e3) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startupapp.StartupAppListActivity\")));\n } catch (Exception e4) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startupmanager.StartupAppListActivity\")));\n } catch (Exception e5) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startsettings\")));\n } catch (Exception e6) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupapp.startupmanager\")));\n } catch (Exception e7) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupmanager.startupActivity\")));\n } catch (Exception e8) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.startupapp.startupmanager\")));\n } catch (Exception e9) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.privacypermissionsentry.PermissionTopActivity.Startupmanager\")));\n } catch (Exception e10) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.privacypermissionsentry.PermissionTopActivity\")));\n } catch (Exception e11) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.FakeActivity\")));\n } catch (Exception e12) {\n e12.printStackTrace();\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}" ]
[ "0.5420811", "0.5416279", "0.53591204", "0.5338737", "0.5222951", "0.5180447", "0.51508075", "0.5074213", "0.5045812", "0.5026508", "0.5003043", "0.49788225", "0.49781623", "0.49466836", "0.49278232", "0.49038473", "0.49004555", "0.48418388", "0.47849143", "0.47668868", "0.47637638", "0.47563502", "0.4749693", "0.4747966", "0.47467777", "0.4745658", "0.4742685", "0.47220784", "0.47143543", "0.47125247", "0.46984458", "0.46979272", "0.46872026", "0.46747333", "0.46738958", "0.46717334", "0.46687534", "0.46666524", "0.46597844", "0.46449357", "0.46388194", "0.46347696", "0.46161252", "0.46155214", "0.461454", "0.46112442", "0.4606512", "0.459706", "0.45866895", "0.4581621", "0.4580419", "0.45789182", "0.45744562", "0.4573816", "0.4573816", "0.4564482", "0.45539892", "0.45522165", "0.45501783", "0.45494705", "0.45486632", "0.45460358", "0.45442724", "0.45313537", "0.45301864", "0.4529999", "0.45215628", "0.45202205", "0.45078275", "0.44942817", "0.4487281", "0.4483973", "0.44780648", "0.44780648", "0.44780648", "0.44780254", "0.44674373", "0.44665268", "0.4466039", "0.44638398", "0.44625306", "0.44561946", "0.4455897", "0.4455897", "0.4455897", "0.44556287", "0.44547513", "0.44529855", "0.44518697", "0.4449959", "0.44494846", "0.44486317", "0.4446592", "0.44425148", "0.44414705", "0.44346416", "0.44346416", "0.44346416", "0.44346416", "0.44346416" ]
0.47402644
27
Private method for searching a global state corresponding to a given "stateMapping" (null, if not found)
private GlobalState search(Map<String,String> stateMapping) { GlobalState desired = new GlobalState(nodes,binding); desired.addMapping(stateMapping); for(GlobalState g : globalStates) { if(g.equals(desired)) return g; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic State qStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "@Override\n\tpublic State eStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "public static String parseSelectedState(String s) {\n if (!fullMap.containsKey(s)) {\n return \"\";\n } else {\n return fullMap.get(s);\n }\n/* if (s.equals(\"Alabama\")) {\n return \"AL\";\n }\n if (s.equals(\"Alaska\")) {\n return \"AK\";\n }\n if (s.equals(\"Arizona\")) {\n return \"AZ\";\n }\n if (s.equals(\"Arkansas\")) {\n return \"AR\";\n }\n if (s.equals(\"California\")) {\n return \"CA\";\n }\n // more states here*/\n }", "public String searchByStateUI() {\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++\");\n console.promptForPrintPrompt(\" + PLEASE ENTER STATE TO SEARCH BY +\");\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++\");\n console.promptForString(\"\");\n String state = console.promptForString(\" STATE: \");\n return state;\n }", "public State findStateByName(String stateName) throws Exception {\n for (State state : getStates()) {\n if (state.getStateName().equals(stateName))\n return state;\n }\n return null;\n }", "public UsState[] findWhereStateEquals(String state) throws UsStateDaoException;", "private NFAState checkIfExists(String name) {\n\t\tNFAState ret = null;\n\t\tfor(NFAState s : states){\n\t\t\tif(s.getName().equals(name)){\n\t\t\t\tret = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "List<S> getAllPossibleStates(S state);", "private NFAState checkIfExists(String name) {\r\n\t\tNFAState ret = null;\r\n\t\tfor (NFAState s : states) {\r\n\t\t\tif (s.getName().equals(name)) {\r\n\t\t\t\tret = s;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "State getState(Long stateId);", "public String match(String state) {\n\t\tSet<Entry<String, String>> set = mapList.entrySet(); \t// Converting to Set in order to traverse\n\t\tIterator<Entry<String, String>> i = set.iterator(); \n\t\tString result = new String();\n\t\t\n\t\t// Iterate until you find the state and region\n\t\twhile (i.hasNext()) {\n\t\t\t\n\t\t\t// Convert to Map.Entry to get key and value separately\n\t\t\tMap.Entry<String, String> entry = (Map.Entry<String, String>) i.next(); \n\t\t\t\n\t\t\t// Finding values from map in order to get the correct value associated with the state\n\t\t\tString compareState = entry.getKey().toString();\n\t\t\tString[] region = entry.getKey().toString().split(\",\");\n\t\t\tString match = entry.getValue().toString().split(\",\")[region.length - 1]; \n\t\t\t\n\t\t\t// Found match\n\t\t\tif (compareState.equals(state)) {\n\t\t\t\tresult = match;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\t// Returns the match of given state, i.e. State: ID Region: West\n\t}", "public Map<Integer, State> getMyStateMap() { return myStateMap; }", "@Override\n public String findState(String name) {\n int hash = getHash(name); // Calculate the hash for the input value \n String message;\n int pos = 1;\n Node temp = hashTable[hash]; // Go to the first node in the appropriate linked list\n\n // Traverse the linked list until the value is found or the end of the list is reached\n while (temp != null && name.compareTo(temp.getState().getName()) != 0) {\n temp = temp.getNext();\n pos++;\n }\n if (temp == null) { // Was the end of the list reached\n message = String.format(\"%s was not found\", name);\n } else {\n message = String.format(\"%s is located at Hash: %d Position: %d\", name, hash, pos);\n }\n return message;\n }", "public void searchAreaState(Connection connection, String state) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE state = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setState(state);\n pStmt.setString(1, getState());\n\n try {\n\n System.out.printf(\" Hotels in %s:\\n\", getState());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }", "public static State findState(String string) {\n String find = string.toUpperCase();\n\n if (find.contains(WAITING.name())) {\n return WAITING;\n }\n else if (find.contains(STARTING.name())) {\n return STARTING;\n }\n else if (find.contains(PLAYING.name())) {\n return PLAYING;\n }\n else if (find.contains(ENDING.name())) {\n return ENDING;\n }\n else if (find.contains(ENDED.name())) {\n return ENDED;\n }\n else {\n return OFFLINE;\n }\n }", "State findByPrimaryKey( int nIdState );", "public TIndiaState findTIndiaStateById(final Integer tIndiaStateId) {\n\t\tLOGGER.info(\"find TIndiaState instance with stateId: \" + tIndiaStateId);\n//\t\treturn gisDAO.get(clazz, tIndiaStateId);\n\t\treturn null;\n\t}", "public UsState findByPrimaryKey(UsStatePk pk) throws UsStateDaoException;", "private NodeState getNodeState(String nodeStateId) {\n \t\tNodeState result = null;\n\n \t\tif (nodeStateId != null) {\n \t\t\t// if NodeState doesn't exist, create it\n \t\t\tif (!nodeStates.containsKey(nodeStateId)) {\n \t\t\t\tresult = new NodeState();\n \t\t\t\tresult.setNodeStateId(nodeStateId);\n \t\t\t\tnodeStates.put(nodeStateId, result);\n \t\t\t} else {\n \t\t\t\tresult = nodeStates.get(nodeStateId);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}", "private Stack<MapLocation> findPath(State.StateView state)\n {\n Unit.UnitView townhallUnit = state.getUnit(townhallID);\n Unit.UnitView footmanUnit = state.getUnit(footmanID);\n \n MapLocation startLoc = new MapLocation(footmanUnit.getXPosition(), footmanUnit.getYPosition(), null, 0);\n \n MapLocation goalLoc = new MapLocation(townhallUnit.getXPosition(), townhallUnit.getYPosition(), null, 0);\n \n MapLocation footmanLoc = null;\n if(enemyFootmanID != -1) {\n Unit.UnitView enemyFootmanUnit = state.getUnit(enemyFootmanID);\n footmanLoc = new MapLocation(enemyFootmanUnit.getXPosition(), enemyFootmanUnit.getYPosition(), null, 0);\n }\n \n // get resource locations\n List<Integer> resourceIDs = state.getAllResourceIds();\n Set<MapLocation> resourceLocations = new HashSet<MapLocation>();\n for(Integer resourceID : resourceIDs)\n {\n ResourceNode.ResourceView resource = state.getResourceNode(resourceID);\n \n resourceLocations.add(new MapLocation(resource.getXPosition(), resource.getYPosition(), null, 0));\n }\n \n return AstarSearch(startLoc, goalLoc, state.getXExtent(), state.getYExtent(), footmanLoc, resourceLocations);\n }", "public boolean getContainsKey(String state) {\r\n boolean result = table.containsKey(state);//calling containsKey method to check is required \r\n //state is present\r\n return result;\r\n }", "public RegionState getRegionForState(String state);", "public static GlobalStates getStatesFromAllLocations()\n {\n GlobalStates globalStates = new GlobalStates();\n try {\n\n List<LocalStates> compileRes = new ArrayList<>();\n getLocationIds().getLocationIds().forEach(\n (locn) -> {\n LocalStates ls = new LocalStates();\n StateVariables sv = IoTGateway.getGlobalStates().get(locn);\n ls.setLocation(locn);\n ls.setStateVariable(sv);\n ls.setFire(IoTGateway.getIsFireLocn().get(locn));\n ls.setSmokeAlert(IoTGateway.getSmokeWarn().get(locn));\n compileRes.add(ls);\n\n }\n );\n globalStates.setLocalStates(compileRes);\n }\n catch (NullPointerException npe)\n {\n LOGGER.error(\"Null Pointer Exception at Horizon.Restart project and open browser after atleast one timestep\");\n }\n return globalStates;\n }", "@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgentHasKey()){\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add to visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){ //this is important else if(cTemp!='~'), not barely else,\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' &&s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasAxe()){ //only have axe\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\treturn null;\n\t\t}else if(m.isAgentHasKey()){ //only have key\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation());\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head,in this fashion, return the right order of route\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY()); \n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY()); //state that move west\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1); //state move north\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1); //state move south\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\treturn null;\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * \n\t\t **/\t\t\n\t\telse{ //have no key and axe\n\t\t\tSystem.out.println(\"come into the last elas clause\");\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\tVisited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\t//int i=0;\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\t//i++;\n\t\t\t\t//System.out.println(\"come into while: \"+i);\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited, let program won't stuck in \n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tSystem.out.println(\"return computed route\");\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\tfor(MapCoordinate mc:route){\n\t\t\t\t\t\t//System.out.println(\"print returned route in bfssearch\");\n\t\t\t\t\t\tSystem.out.print(\"mc:\"+mc.getX()+\" \"+mc.getY()+\"->\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\t//System.out.println(\"1 if\");\n\t\t\t\t\tif(s.getPrevState()!=null &&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if\");\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 if\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 if\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 else\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.add(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*'&&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\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\treturn null;\n\t\t}\n\t}", "int findState(String str){\n int i = 0;\n\n for (i = 0; i < states.size(); i++) {\n if(Objects.equals(str, states.get(i))){\n return i;\n }\n }\n /** Could not find the state */\n return -1;\n }", "public UsState[] findWhereStateAbbrEquals(String stateAbbr) throws UsStateDaoException;", "private int get(Map<T, Integer> state, T key) {\n return state.getOrDefault(key, 0);\n }", "public int stateIndexOfString (String s)\n\t{\n\t\tfor (int i = 0; i < this.numStates(); i++) {\n\t\t\tString state = this.getState (i).getName();\n\t\t\tif (state.equals (s))\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\t\t\n\t}", "public String getConditionFromState(String state) {\n if (state2conditionMapping.containsKey(state)) {\n return state2conditionMapping.get(state);\n }\n return null;\n }", "public MD2_ModelState getState(int stateNo){\n\t\tif(stateNo < 0 || stateNo >= state.length)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn state[stateNo];\n\t}", "private static String getStateInput() {\n\t\treturn getQuery(\"Valid State\");\n\t}", "@Override\n protected int matchErrorState(Map<Integer,Set<String>> errorStates, SQLException ex) {\n String errorState = \"\"+ex.getErrorCode();\n for (Map.Entry<Integer,Set<String>> states : errorStates.entrySet()) {\n if (states.getValue().contains(errorState))\n return states.getKey();\n }\n return ExceptionInfo.GENERAL;\n }", "private TaskState getState(String type, String state) {\r\n\t\tTaskType tt = getType(type);\r\n\t\tif (tt != null) {\r\n\t\t\tfor (TaskState ts : tt.states) {\r\n\t\t\t\tif (ts.name.equals(state))\r\n\t\t\t\t\treturn ts;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static State fromString(String s) {\n if (s != null) {\n State[] vs = values();\n for (int i = 0; i < vs.length; i++) {\n if (vs[i].toString().equalsIgnoreCase(s)) {\n return vs[i];\n }\n }\n }\n return null;\n }", "@Override\n\tpublic State maxStateAbsMapping(State state, MaxNode maxNode) {\n\t\treturn null;\n\t}", "@Override\n public Optional<Bytes> getStateTrieNode(final Bytes location) {\n BonsaiLayeredWorldState currentLayer = this;\n while (currentLayer != null) {\n if (currentLayer.getNextWorldView().isEmpty()) {\n currentLayer = null;\n } else if (currentLayer.getNextWorldView().get() instanceof BonsaiLayeredWorldState) {\n currentLayer = (BonsaiLayeredWorldState) currentLayer.getNextWorldView().get();\n } else {\n return currentLayer.getNextWorldView().get().getStateTrieNode(location);\n }\n }\n return Optional.empty();\n }", "void stateBacktracked (Search search);", "public GlobalState getState() throws IOException {\n StateReponse state = getRequest(\"/state?address=\" + stateAddress, StateReponse.class);\n if (state.getData().size() == 0) {\n // No data, return identity\n return new GlobalState();\n }\n String stateEntry = state.getData().get(0).getData();\n String base64 = new String(Base64.getDecoder().decode(stateEntry));\n return DataUtil.StringToGlobalState(base64);\n }", "public static List<State> getStateMapper() throws SQLException{\n\t\tList<State> stateList = new ArrayList<State>(52);\n\t\tConnection conn = DBConnector.getInstance().getConn();\n\t\tStatement statement = conn.createStatement();\n\t\t\n\t\tString sql = \"select * from mhtc_sch.getStates(FALSE)\";\n\t\tstatement.execute(sql);\n\t\t\n\t\tResultSet rs = statement.getResultSet();\n \n\t\t/*\n\t\t * index 1 : StateID\n\t\t * index 2 : State initial\n\t\t * index 3 : StateName\n\t\t */\n while (rs.next()) {\n \tint stateID = rs.getInt(1);\n \tString initial = rs.getString(2).toLowerCase();\n \tString stateName = rs.getString(3).toLowerCase();\n \tState state = new State(stateID, stateName, initial);\n \tstateList.add(state);\n \t//System.out.println(state.getFullName() + \" \" + state.getInitial());\n }\n\t\treturn stateList;\n\t}", "static InsnLookupSwitch read (InsnReadEnv insnEnv, int myPC) {\n int thisPC = myPC +1;\n for (int pads = ((thisPC + 3) & ~3) - thisPC; pads > 0; pads--)\n insnEnv.getByte();\n InsnTarget defaultTarget = insnEnv.getTarget(insnEnv.getInt() + myPC);\n int npairs = insnEnv.getInt();\n int matches[] = new int[npairs];\n InsnTarget[] offsets = new InsnTarget[npairs];\n for (int i=0; i<npairs; i++) {\n matches[i] = insnEnv.getInt();\n offsets[i] = insnEnv.getTarget(insnEnv.getInt() + myPC);\n }\n return new InsnLookupSwitch(defaultTarget, matches, offsets, myPC);\n }", "public abstract String getState();", "public StateName getCurrentState() {\n for (Map.Entry<StateName, StateI> entry : availableStates.entrySet()) {\n if (entry.getValue().equals(curState)) {\n return entry.getKey();\n }\n }\n return null;\n }", "public Object getState(String key) {\n\t\treturn null;\n\t}", "public static int findStateLabelIndex(ArrayStr labels, String desired) {\n return opensimCommonJNI.TableUtilities_findStateLabelIndex__SWIG_0(ArrayStr.getCPtr(labels), labels, desired);\n }", "public String CheckStateExists(String userInput)\n {\n String state = \"UNK\"; //will return an unknown state - user did not input a known US state\n userInput = FormatState(userInput);\n \n if(userInput.length() >= 2)\n {\n for(States getState : States.values())\n {\n if(getState.toString().contains(userInput))\n {\n state = getState.toString();\n }\n }\n }\n \n return state;\n }", "public static OperationType stateOf(String state) {\n for (OperationType stateEnum : values()) {\n if (stateEnum.getOperation().equals(state)) {\n return stateEnum;\n }\n }\n return null;\n }", "public interface StatePac {\n\n /**\n * Identify the leaf of StatePac.\n */\n public enum LeafIdentifier {\n /**\n * Represents operationalState.\n */\n OPERATIONALSTATE(1),\n /**\n * Represents administrativeControl.\n */\n ADMINISTRATIVECONTROL(2),\n /**\n * Represents adminsatratveState.\n */\n ADMINSATRATVESTATE(3),\n /**\n * Represents lifecycleState.\n */\n LIFECYCLESTATE(4);\n\n private int leafIndex;\n\n public int getLeafIndex() {\n return leafIndex;\n }\n\n LeafIdentifier(int value) {\n this.leafIndex = value;\n }\n }\n\n /**\n * Returns the attribute operationalState.\n *\n * @return operationalState value of operationalState\n */\n OperationalState operationalState();\n\n /**\n * Returns the attribute administrativeControl.\n *\n * @return administrativeControl value of administrativeControl\n */\n AdministrativeControl administrativeControl();\n\n /**\n * Returns the attribute adminsatratveState.\n *\n * @return adminsatratveState value of adminsatratveState\n */\n AdministrativeState adminsatratveState();\n\n /**\n * Returns the attribute lifecycleState.\n *\n * @return lifecycleState value of lifecycleState\n */\n LifecycleState lifecycleState();\n\n /**\n * Returns the attribute valueLeafFlags.\n *\n * @return valueLeafFlags value of valueLeafFlags\n */\n BitSet valueLeafFlags();\n\n /**\n * Returns the attribute yangStatePacOpType.\n *\n * @return yangStatePacOpType value of yangStatePacOpType\n */\n OnosYangOpType yangStatePacOpType();\n\n /**\n * Returns the attribute selectLeafFlags.\n *\n * @return selectLeafFlags value of selectLeafFlags\n */\n BitSet selectLeafFlags();\n\n /**\n * Returns the attribute yangAugmentedInfoMap.\n *\n * @return yangAugmentedInfoMap value of yangAugmentedInfoMap\n */\n Map<Class<?>, Object> yangAugmentedInfoMap();\n\n\n /**\n * Returns the attribute yangAugmentedInfo.\n *\n * @param classObject value of yangAugmentedInfo\n * @return yangAugmentedInfo\n */\n Object yangAugmentedInfo(Class classObject);\n\n /**\n * Checks if the leaf value is set.\n *\n * @param leaf leaf whose value status needs to checked\n * @return result of leaf value set in object\n */\n boolean isLeafValueSet(LeafIdentifier leaf);\n\n /**\n * Checks if the leaf is set to be a selected leaf.\n *\n * @param leaf if leaf needs to be selected\n * @return result of leaf value set in object\n */\n boolean isSelectLeaf(LeafIdentifier leaf);\n\n /**\n * Builder for statePac.\n */\n interface StatePacBuilder {\n /**\n * Returns the attribute operationalState.\n *\n * @return operationalState value of operationalState\n */\n OperationalState operationalState();\n\n /**\n * Returns the attribute administrativeControl.\n *\n * @return administrativeControl value of administrativeControl\n */\n AdministrativeControl administrativeControl();\n\n /**\n * Returns the attribute adminsatratveState.\n *\n * @return adminsatratveState value of adminsatratveState\n */\n AdministrativeState adminsatratveState();\n\n /**\n * Returns the attribute lifecycleState.\n *\n * @return lifecycleState value of lifecycleState\n */\n LifecycleState lifecycleState();\n\n /**\n * Returns the attribute valueLeafFlags.\n *\n * @return valueLeafFlags value of valueLeafFlags\n */\n BitSet valueLeafFlags();\n\n /**\n * Returns the attribute yangStatePacOpType.\n *\n * @return yangStatePacOpType value of yangStatePacOpType\n */\n OnosYangOpType yangStatePacOpType();\n\n /**\n * Returns the attribute selectLeafFlags.\n *\n * @return selectLeafFlags value of selectLeafFlags\n */\n BitSet selectLeafFlags();\n\n /**\n * Returns the attribute yangAugmentedInfoMap.\n *\n * @return yangAugmentedInfoMap value of yangAugmentedInfoMap\n */\n Map<Class<?>, Object> yangAugmentedInfoMap();\n\n /**\n * Returns the builder object of operationalState.\n *\n * @param operationalState value of operationalState\n * @return operationalState\n */\n StatePacBuilder operationalState(OperationalState operationalState);\n\n /**\n * Returns the builder object of administrativeControl.\n *\n * @param administrativeControl value of administrativeControl\n * @return administrativeControl\n */\n StatePacBuilder administrativeControl(AdministrativeControl administrativeControl);\n\n /**\n * Returns the builder object of adminsatratveState.\n *\n * @param adminsatratveState value of adminsatratveState\n * @return adminsatratveState\n */\n StatePacBuilder adminsatratveState(AdministrativeState adminsatratveState);\n\n /**\n * Returns the builder object of lifecycleState.\n *\n * @param lifecycleState value of lifecycleState\n * @return lifecycleState\n */\n StatePacBuilder lifecycleState(LifecycleState lifecycleState);\n\n /**\n * Returns the builder object of yangStatePacOpType.\n *\n * @param yangStatePacOpType value of yangStatePacOpType\n * @return yangStatePacOpType\n */\n StatePacBuilder yangStatePacOpType(OnosYangOpType yangStatePacOpType);\n\n /**\n * Sets the value of yangAugmentedInfo.\n *\n * @param value value of yangAugmentedInfo\n * @param classObject value of yangAugmentedInfo\n */\n StatePacBuilder addYangAugmentedInfo(Object value, Class classObject);\n\n /**\n * Returns the attribute yangAugmentedInfo.\n *\n * @param classObject value of yangAugmentedInfo\n * @return yangAugmentedInfo\n */\n Object yangAugmentedInfo(Class classObject);\n /**\n * Set a leaf to be selected.\n *\n * @param leaf leaf needs to be selected\n * @return builder object for select leaf\n */\n StatePacBuilder selectLeaf(LeafIdentifier leaf);\n\n /**\n * Builds object of statePac.\n *\n * @return statePac\n */\n StatePac build();\n }\n}", "public abstract State getSourceState ();", "public abstract boolean lookup(Key key);", "Object getState();", "private Object getState() {\n\treturn null;\r\n}", "java.lang.String getState();", "void stateStored (Search search);", "public static void readAndUpdateStates() {\n\t\tString states = state.toString();\n\t\tScanner scanner = new Scanner(states);\n\t\tscanner.useDelimiter(\"\\n\");\n\t\tString[] tmps;\n\t\twhile (scanner.hasNext()) {\n\t\t\tString oneLine = scanner.next();\n\t\t\tif (oneLine.equals(\"GLOBALS\")) {\n\t\t\t\tString turnLine = scanner.next();\n\t\t\t\tString playerLine = scanner.next();\n\t\t\t\tString IDLine = scanner.next();\n\t\t\t\ttmps = turnLine.split(\": \");\n\t\t\t\tglobalTurn = Integer.valueOf(tmps[1]);\n\t\t\t\ttmps = playerLine.split(\": \");\n\t\t\t\tplayerCount = Integer.valueOf(tmps[1]);\n\t\t\t\ttmps = IDLine.split(\": \");\n\t\t\t\tmyID = Integer.valueOf(tmps[1]);\n\t\t\t} else if (oneLine.equals(\"PLAYER SCORES\")) {\n\t\t\t\tString scoreLine = scanner.next();\n\t\t\t\ttmps = scoreLine.split(\": \");\n\t\t\t\tscore[0] = Float.valueOf(tmps[1]);\n\t\t\t\tscoreLine = scanner.next();\n\t\t\t\ttmps = scoreLine.split(\": \");\n\t\t\t\tscore[1] = Float.valueOf(tmps[1]);\n\n\t\t\t} else if (oneLine.equals(\"BOARD STATE\")) {\n\t\t\t\tString pointLine;\n\t\t\t\twhile ((pointLine = scanner.next()) != null) {\n\t\t\t\t\tif (pointLine.length() == 0)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\ttmps = pointLine.split(\": \");\n\t\t\t\t\tint playerId = Integer.parseInt(tmps[0]);\n\t\t\t\t\ttmps = tmps[1].split(\" \");\n\t\t\t\t\tPoint newPoint = new Point(Integer.parseInt(tmps[0]),\n\t\t\t\t\t\t\tInteger.parseInt(tmps[1]));\n\t\t\t\t\tif (!map.containsKey(playerId)) {\n\t\t\t\t\t\tSet<Point> pointSet = new TreeSet<Point>();\n\t\t\t\t\t\tpointSet.add(newPoint);\n\t\t\t\t\t\tmap.put(playerId, pointSet);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSet<Point> pointSet = map.get(playerId);\n\t\t\t\t\t\tif (!pointSet.contains(newPoint)) {\n\t\t\t\t\t\t\tpointSet.add(newPoint);\n\t\t\t\t\t\t\tmap.put(playerId, pointSet);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "AdministrativeState adminsatratveState();", "AdministrativeState adminsatratveState();", "protected StateVariable findRelatedStateVariable(String declaredName, String argumentName, String methodName) throws LocalServiceBindingException {\n/* 263 */ StateVariable relatedStateVariable = null;\n/* */ \n/* 265 */ if (declaredName != null && declaredName.length() > 0) {\n/* 266 */ relatedStateVariable = getStateVariable(declaredName);\n/* */ }\n/* */ \n/* 269 */ if (relatedStateVariable == null && argumentName != null && argumentName.length() > 0) {\n/* 270 */ String actualName = AnnotationLocalServiceBinder.toUpnpStateVariableName(argumentName);\n/* 271 */ log.finer(\"Finding related state variable with argument name (converted to UPnP name): \" + actualName);\n/* 272 */ relatedStateVariable = getStateVariable(argumentName);\n/* */ } \n/* */ \n/* 275 */ if (relatedStateVariable == null && argumentName != null && argumentName.length() > 0) {\n/* */ \n/* 277 */ String actualName = AnnotationLocalServiceBinder.toUpnpStateVariableName(argumentName);\n/* 278 */ actualName = \"A_ARG_TYPE_\" + actualName;\n/* 279 */ log.finer(\"Finding related state variable with prefixed argument name (converted to UPnP name): \" + actualName);\n/* 280 */ relatedStateVariable = getStateVariable(actualName);\n/* */ } \n/* */ \n/* 283 */ if (relatedStateVariable == null && methodName != null && methodName.length() > 0) {\n/* */ \n/* 285 */ String methodPropertyName = Reflections.getMethodPropertyName(methodName);\n/* 286 */ if (methodPropertyName != null) {\n/* 287 */ log.finer(\"Finding related state variable with method property name: \" + methodPropertyName);\n/* */ \n/* 289 */ relatedStateVariable = getStateVariable(\n/* 290 */ AnnotationLocalServiceBinder.toUpnpStateVariableName(methodPropertyName));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 295 */ return relatedStateVariable;\n/* */ }", "public UsState findByPrimaryKey(int id) throws UsStateDaoException;", "String getState();", "String getState();", "String getState();", "int getStateValue2();", "public static int getIndex(String state) {\n int index = 0;\n for (String stateName : stateAbbreviations.keySet()) {\n if (stateName.equals(state)) {\n return index;\n }\n index++;\n }\n return index;\n }", "void mo15871a(StateT statet);", "State getState();", "State getState();", "State getState();", "State getState();", "public List<String> findIndiaStates(){\n\t\treturn null;\n\t}", "protected SearchState getSearchStateFromUserContext() {\n \tSearchState searchState = null;\n \tif (UserContextService.isAvailable()) {\n \t\tsearchState = UserContextService.getSearchState();\n \t}\n \t\n if (searchState == null) {\n searchState = new SearchState();\n }\n if (UserContextService.isAvailable()) {\n UserContextService.setSearchState(searchState);\n }\n\n return searchState;\n\n }", "public MapColor getMapColor(IBlockState state)\r\n {\r\n return MapColor.BLACK;\r\n }", "@Step(\"Work Order Sub State Search Lookup\")\n public boolean lookupWorkOrderSubStateSearch(String searchText) {\n boolean flag = false;\n pageActions.clickAt(workOrderSubStateLookup, \"Clicking on Work Order Sub State Look Up Search\");\n try {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n pageActions.typeAndPressEnterKey(searchInSubStateGrid, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 20).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }", "public int get(String s) {\n boolean val=search(s);\n if(val==true){\n int a=(int) hmap.get(s);\n System.out.println(\"Found\");\n return a;\n }\n else {\n return -1;\n }\n\n }", "public static String getStateName(String abbreviation) {\n for (String name : stateAbbreviations.keySet()) {\n if (stateAbbreviations.get(name).equalsIgnoreCase(abbreviation)) {\n return name;\n }\n }\n return null;\n }", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "public HashMap<String,SLR1_automat.State> get_switches();", "private HashMap<String, String> getDefaultInEmergency(String state) {\n HashMap<Integer,HashMap<String,String>> defult\n = dbController.getDefaultInEmergency(state);\n\n for (Map.Entry<Integer,HashMap<String,String>> objs : defult.entrySet()){\n HashMap<String,String> obj = objs.getValue();\n String code = obj.get(\"default_caller\");\n HashMap<String,String> response = convertCodeToDefaultCallerSettings(code);\n //return value of who default in emergency\n return response;\n\n }\n return null;\n }", "String getLookupKey();", "public void test_findMapBySqlMap() {\r\n\t\t// step 1:\r\n\t\tMap personMap = this.persistenceService.findMapBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0], RETURN_MAP_KEY);\r\n\t\tassertForFindMapGoogle(personMap);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonMap = null;\r\n\t\t// step 2:\r\n\t\tpersonMap = this.persistenceService.findMapBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0], RETURN_MAP_KEY, RETURN_MAP_VALUE);\r\n\t\tassertForFindMapGoogle(personMap);\r\n\t}", "public int askMap();", "private static ContextState stringToContextState(String s) \n {\n for (ContextState enumVal : ContextState.values())\n {\n if (enumVal.toString().equals(s))\n return enumVal;\n }\n \n // in case of failure:\n return ContextState.PUBLISHED;\n }", "int getStateValue1();", "String getSelectedStateName();", "InsnLookupSwitch (InsnTarget defaultOp, int[] matchesOp,\n\t\t InsnTarget[] targetsOp, int offset) {\n super(opc_lookupswitch, offset);\n\n this.defaultOp = defaultOp; \n this.matchesOp = matchesOp;\n this.targetsOp = targetsOp;\n\n if (defaultOp == null || targetsOp == null || matchesOp == null ||\n\ttargetsOp.length != matchesOp.length)\n throw new InsnError (\"attempt to create an opc_lookupswitch\" +//NOI18N\n \" with invalid operands\");//NOI18N\n }", "public S getCurrentState();", "public abstract State getDestinationState ();", "private TileState getStateOf(long pos) {\r\n\t\tif ((pos & darkTiles) != 0L) {\r\n return TileState.DARK;\r\n } else if ((pos & lightTiles) != 0L) {\r\n return TileState.LIGHT;\r\n } else {\r\n return TileState.EMPTY;\r\n }\r\n\t}", "void mapChosen(int map);", "public StateType getStateTypeFromName(String name) {\n\t\tfor(StateType stateType : StateType.values()) {\n\t\t\tif(stateType.toString().equals(name)) {\n\t\t\t\treturn stateType;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "org.landxml.schema.landXML11.StateType.Enum getState();", "private Cell searchPowerUp() {\n for (Cell[] row : gameState.map) {\n for (Cell column : row) {\n if (column.powerUp != null)\n return column;\n }\n }\n\n return null;\n }", "public static AGG_State getReference( String s )\n {\n return( (AGG_State)( nameHash.get( s ) ) );\n }", "public int getStateSwitchPosition();", "Long getStateId(String stateName);", "public interface STATE_TYPE {\r\n public static final int RESERVED = 1;\r\n public static final int PARKED = 2;\r\n public static final int UNPARKED = 3;\r\n public static final int CANCELED = 4;\r\n }" ]
[ "0.5793493", "0.57359505", "0.5614117", "0.55938673", "0.5515383", "0.55066735", "0.54791087", "0.54709", "0.54442364", "0.5413895", "0.53495455", "0.53363985", "0.53074414", "0.5282868", "0.5255358", "0.5213665", "0.5211431", "0.520898", "0.5207788", "0.5203801", "0.51398885", "0.5131617", "0.51037663", "0.50922275", "0.50850976", "0.50779426", "0.50252473", "0.49976474", "0.49714318", "0.49656034", "0.4957018", "0.494188", "0.4932654", "0.4918503", "0.49179015", "0.49100962", "0.49078193", "0.4903793", "0.49026927", "0.4869227", "0.48670936", "0.48625952", "0.48463023", "0.48452008", "0.48383087", "0.48240995", "0.48150524", "0.48107794", "0.48023388", "0.47951695", "0.47831133", "0.47768438", "0.4775155", "0.47743756", "0.47730547", "0.47730547", "0.4771668", "0.47704378", "0.47591856", "0.47591856", "0.47591856", "0.47552398", "0.47463557", "0.4744679", "0.47425684", "0.47425684", "0.47425684", "0.47425684", "0.4736917", "0.47363666", "0.47290677", "0.4717812", "0.4709011", "0.4705023", "0.46972016", "0.46972016", "0.46972016", "0.46972016", "0.46972016", "0.46972016", "0.46953154", "0.46865508", "0.46817717", "0.46788335", "0.46767777", "0.46644238", "0.46640593", "0.46586907", "0.4641265", "0.46410483", "0.46378657", "0.4636189", "0.46335727", "0.46307918", "0.4627615", "0.46274465", "0.46222848", "0.4620097", "0.46152222", "0.46136653" ]
0.87462854
0
called after bean construction
@PostConstruct public void init() { this.facts.addAll(checkExtractor.obtainFactList()); this.facts.addAll(facebookExtractor.obtainFactList()); this.facts.addAll(googleExtractor.obtainFactList()); this.facts.addAll(linkedinExtractor.obtainFactList()); this.facts.addAll(twitterExtractor.obtainFactList()); this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList()); this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList()); this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList()); this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList()); this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n public void postConstruct() {\n \n }", "@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }", "@Override public void postInit()\n\t\t{\n\t\t}", "@PostConstruct\n\tpublic void init() {\n\n\t}", "@PostConstruct\n\tpublic void init() {\n\n\t}", "@PostConstruct\n\tpublic void init() {\n\t}", "@PostConstruct\n\tpublic void init() {\n\t}", "@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }", "@PostConstruct\n public void init() {\n }", "@Override\n\tpublic void postInit() {\n\t\t\n\t}", "@PostConstruct\n public void postConstructFn (){\n LOOGER.info(\" ==== post constructor of the bean ====> {}:\");\n }", "@PostConstruct\r\n\tvoid init() {\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@PostConstruct\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }", "public void afterInit(){\n System.out.println(\"## afterInit() - After Init - called by Bean Post Processor\");\n }", "@Override\n protected void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void init() {}", "@PostConstruct\n\tpublic void postConstruct() throws Exception {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@PostConstruct\n\tpublic void inicializar() {\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 public void init() {}", "@Override\n public void init() {\n }", "@PostConstruct\r\n public void init(){\n\r\n }", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "void afterInit(Object bean, Class<?> clazz) throws Exception;", "public void postInit() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMapper());\n\t\t\n\t\t//print all beans initiated by container\n\t\t\t\tString[] beanNames = ctx.getBeanDefinitionNames();\n\t\t\t\tSystem.out.println(\"鎵�浠eanNames涓暟锛�\"+beanNames.length);\n\t\t\t\tfor(String bn:beanNames){\n\t\t\t\t\tSystem.out.println(bn);\n\t\t\t\t}\n\n\t}", "public void myInit() {\n\t\tSystem.out.println(\">> myInit for Bean Executed\");\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "private AggregatorBeanAssistant() { }", "@Override\n\tpublic void init() {\n\t}", "public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override public void init()\n\t\t{\n\t\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t\tSystem.out.println(\"Bean Initialization is completed from class!!\");\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\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\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"InitializingBean.afterPropertiesSet\");\r\n\t}", "@PostConstruct\n public void init() {\n inceputBreadcrumbs();\n }", "@Override\n public void afterPropertiesSet() {\n }", "protected void onInit() {\n super.onInit();\n ruleManager = getBean(RuleManager.BEAN_NAME);\n }", "@Override\n public void initialize() {\n }", "@ServiceInit\n public void init() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic final void init() {\r\n\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 init() {\r\n\t\t// to override\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@PostConstruct\n protected void init() {\n // Look up the associated batch data\n job = batchService.findByInstanceId(jobContext.getInstanceId());\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@OnInit\n public void init() {\n }", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n public void initialize()\r\n {\n }", "public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n\tpublic Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {\n\t\tSystem.out.println(\"Step8:执行 postProcessAfterInitialization 方法\");\n\t\treturn bean;\n\t}", "public ObjetosBeans() {\n this.init();\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@PostConstruct\n\tpublic void initializer()\n\t{\n\t\tCustomerDTO customerDTO = new CustomerDTO();\n\t\tcustomerDTO.setFuellid(true);\n\t\tcustomerDTO.setCity(\"DL\"); \n\t}" ]
[ "0.7332368", "0.7309924", "0.72492266", "0.7206007", "0.7206007", "0.7186335", "0.7186335", "0.7157692", "0.71407247", "0.71133417", "0.7100277", "0.708613", "0.7075258", "0.7075258", "0.7056183", "0.70045906", "0.6978766", "0.69592047", "0.69247836", "0.679153", "0.67902523", "0.67842376", "0.6780977", "0.67770404", "0.67770404", "0.67770404", "0.67748284", "0.6735279", "0.6722285", "0.6711281", "0.67017573", "0.6698933", "0.6697806", "0.66822904", "0.6677544", "0.6677544", "0.6677544", "0.6677544", "0.6677544", "0.6677544", "0.6676797", "0.6672704", "0.66618013", "0.6649477", "0.6649477", "0.66480523", "0.66404736", "0.663567", "0.66258377", "0.66103935", "0.6595082", "0.6593647", "0.65766644", "0.65766644", "0.65766644", "0.6569646", "0.6564591", "0.65587866", "0.6541015", "0.6541015", "0.6541015", "0.65291995", "0.6517805", "0.65120816", "0.6499532", "0.6499002", "0.6486869", "0.6478333", "0.6478015", "0.6476953", "0.6476953", "0.6476953", "0.6476953", "0.6476953", "0.6465902", "0.6464352", "0.64534706", "0.6445566", "0.6445566", "0.6445566", "0.6438724", "0.6438724", "0.64361686", "0.643169", "0.6429992", "0.6421363", "0.64196694", "0.6414965", "0.6414965", "0.6414965", "0.6414965", "0.6414965", "0.6414965", "0.6414965", "0.6414965", "0.6414965", "0.6414965", "0.64111197", "0.6407893", "0.64001137", "0.63994735" ]
0.0
-1
Create an instance with overall features
@Override public Instance createInstance(IdOSAPIFactory factory, Instances dataset, IUser user) { Instance checkInst = this.checkExtractor.createInstance(factory, checkHeader, user); Instance facebookInst = this.facebookExtractor.createInstance(factory, facebookHeader, user); Instance googleInst = this.googleExtractor.createInstance(factory, googleHeader, user); Instance linkedinInst = this.linkedinExtractor.createInstance(factory, linkedinHeader, user); Instance twitterInst = this.twitterExtractor.createInstance(factory, twitterHeader, user); if (DEBUG) { System.out.println("----------------------------"); System.out.println("individual instances generated for overall:"); System.out.println(checkInst); System.out.println(facebookInst); System.out.println(googleInst); System.out.println(linkedinInst); System.out.println(twitterInst); } Instance mergedInstance = this.utils .mergeInstances(dataset, checkInst, facebookInst, googleInst, linkedinInst, twitterInst); mergedInstance.setDataset(dataset); // figure out what is the supervision if we're creating instances for training if (user instanceof IFakeUsUser) { IFakeUsUser fuser = (IFakeUsUser) user; ArrayList<ICandidate> candidates = fuser.getAttributesMap().get(new Attribute("overall")); if (candidates == null) mergedInstance.setClassValue("fake"); else { boolean isReal = candidates.get(0).isReal(); String sup = isReal ? "real" : "fake"; mergedInstance.setClassValue(sup); } } else mergedInstance.setClassMissing(); if (DEBUG) { System.out.println("--------------------------"); System.out.println(String.format("Resulting instance for user %s", user.getId())); System.out.println(mergedInstance); System.out.println("--------------------------"); } return mergedInstance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Feature createFeature();", "private void createFeatures() {\n\t\tfeatures = new Feature[NUM_FEATURES];\n\n\t\t// Create dummy feature\n\t\tfeatures[0] = new DummyFeature(width, height, 0, 0 - THRESHOLD);\n\n\t\t// Create the rest of the features\n\t\tfor (int i = 1; i < NUM_FEATURES; i++) {\n\t\t\tfeatures[i] = new Feature(width, height, i);\n\t\t}\n\t}", "abstract Feature createFeature(boolean enabled, int count);", "public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "void addFeatures(Features features);", "FeatureConcept createFeatureConcept();", "public MdnFeatures()\n {\n }", "public FeatureExtraction() {\n\t}", "public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\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 hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "public Feature createFeature(Feature.Template ft)\n throws BioException, ChangeVetoException;", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "void setFeatures(Features f) throws Exception;", "private Map<String, Feature> initializeFeatures(GameState state) {\n // initializes the features (values will be set within getFeatures)\n Map<String, Feature> features = new HashMap<>();\n\n // adds the 'global' features\n features.put(FeatureNames.RESOURCES_OWN, new Feature(FeatureNames.RESOURCES_OWN, 0, 0, 20));\n features.put(FeatureNames.RESOURCES_OPP, new Feature(FeatureNames.RESOURCES_OPP, 0, 0, 20));\n features.put(FeatureNames.GAME_TIME, new Feature(FeatureNames.GAME_TIME, 0, 0, 12000));\n features.put(FeatureNames.BIAS, new Feature(FeatureNames.BIAS, 1, 0, 1));\n\n // adds the 'per-quadrant' features\n int horizQuadLength = state.getPhysicalGameState().getWidth() / numQuadrants;\n int vertQuadLength = state.getPhysicalGameState().getHeight() / numQuadrants;\n\n int tilesPerQuadrant = horizQuadLength * vertQuadLength;\n\n // FIXME hardcoded to the HP of the base (which is the highest in microRTS)\n int maxHitPoints = 10;\n\n // the first two for traverse the quadrants\n for (int horizQuad = 0; horizQuad < numQuadrants; horizQuad++) {\n for (int vertQuad = 0; vertQuad < numQuadrants; vertQuad++) {\n\n // the third for traverses the players\n for (int player = 0; player < 2; player++) {\n String healthFeatName = FeatureNames.avgHealthPerQuad(horizQuad, vertQuad, player);\n\n features.put(healthFeatName, new Feature(healthFeatName, 0, 0, tilesPerQuadrant * maxHitPoints));\n\n // the fourth for traverses the unit types\n for (UnitType type : state.getUnitTypeTable().getUnitTypes()) {\n if (type.isResource)\n continue; // ignores resources\n String countFeatName = FeatureNames.unitsOfTypePerQuad(horizQuad, vertQuad, player, type);\n features.put(countFeatName, new Feature(countFeatName, 0, 0, tilesPerQuadrant));\n }\n }\n }\n }\n\n return features;\n }", "UMLStructuralFeature createUMLStructuralFeature();", "public RealConjunctiveFeature() { }", "private void trainFeatures() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.FEATURE);\n\t\tSystem.out.println(\"Starting reading Feature Trainingset ..\");\n\t\tPipe serialpipe = getFeaturePipe();\n\t\tInstanceList feature_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Feature Trainingset ..\");\n\t\tfeature_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Feature Training set : \" + feature_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(feature_instances, Train + \"F.bin\");\n\t\tSystem.out.println(\"Saving Features data ..\");\n\t\tfeature_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"feature.dat\")));\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Feature training set ..\");\n\t\tClassifier classifier = trainer.train(feature_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Feature_Train);\n\t\tSystem.out.println(\"Feature classifier saved to : \" + Feature_Train);\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "public DefaultFeatureTable() {\n }", "void addFeature(Feature feature);", "public void addFeatures(IFeature feature);", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "public ExteriorFeature() {\n this.exteriorFeature = \"Generic\";\n }", "private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }", "private void initializeFeatures() {\n\t\tint buttonLength = 2*super.getXLength()/3;\n\t\tint buttonHeight = super.getYLength()/6;\n\t\tint startX = super.getXPos() + super.getXLength()/2 - buttonLength/2; \n\t\tint startY = super.getYPos() + super.getYLength()/2 - buttonHeight/2;\n\t\tint spacingBetweenButtons = 10; \n\t\tstart = new StartButton(parent,startX,startY,buttonLength,buttonHeight);\n\t\tinstructions = new InstructionsButton(parent,startX,startY + spacingBetweenButtons+buttonHeight,buttonLength,buttonHeight);\n\t\tquit = new QuitButton(parent,startX,startY + 2*(buttonHeight + spacingBetweenButtons),buttonLength,buttonHeight);\n\t}", "void addFeature(int index, Feature feature);", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmealyMachineEClass = createEClass(MEALY_MACHINE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INITIAL_STATE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__STATES);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__OUTPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__TRANSITIONS);\n\n\t\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\n\t\talphabetEClass = createEClass(ALPHABET);\n\t\tcreateEAttribute(alphabetEClass, ALPHABET__CHARACTERS);\n\n\t\ttransitionEClass = createEClass(TRANSITION);\n\t\tcreateEReference(transitionEClass, TRANSITION__SOURCE_STATE);\n\t\tcreateEReference(transitionEClass, TRANSITION__TARGET_STATE);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__INPUT);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__OUTPUT);\n\t}", "UMLBehavioralFeature createUMLBehavioralFeature();", "public void addFeatures(Feature... f) {\r\n addFeatures(Arrays.asList(f));\r\n }", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);", "public org.w3c.dom.Element createFeaturesElement(Document xmldoc) {\n\tElement e = xmldoc.createElement(XML.FEATURES);\n\tStringBuffer b=new StringBuffer();\n\tfor(int i=0; i< id2label.size();i++) {\n\t if (b.length()>0) b.append(\" \");\n\t b.append(getLabel(i));\n\t}\n\tText textNode = xmldoc.createTextNode(b.toString());\n\te.appendChild(textNode);\n\treturn e;\n }", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }", "public void setInstances(List<double[]> features) {\n\t\tthis.instances = features;\n\t}", "List<Feature> getFeatures();", "public void addInstances (InstanceList training)\n\t{\n\t\tSystem.out.println(\"LabeledLDA Model : Adding training instances ..%\");\n\t\t//Data Alphabet\n\t\talphabet = training.getDataAlphabet();\n\t\tnumTypes = alphabet.size();\n\t\tbetaSum = beta * numTypes;\n\t\t\n\t\t// We have one topic for every possible label.\n\t\tlabelAlphabet = training.getTargetAlphabet();\n\t\tnumTopics = labelAlphabet.size();\n\t\toneDocTopicCounts = new int[numTopics];\n\t\ttokensPerTopic = new int[numTopics];\n\t\ttypeTopicCounts = new int[numTypes][numTopics];\n\n\t\t//topicAlphabet = AlphabetFactory.labelAlphabetOfSize(numTopics); //generate d0,d1 [3shan target string w hwa 3wzo label]\n topicAlphabet = new LabelAlphabet();\n\t\tfor (int i = 0; i < numTopics; i++) {\n\t\t\tString target = labelAlphabet.lookupObject(i).toString();\n topicAlphabet.lookupLabel(target);\n\t\t}\n //System.out.println(topicAlphabet);\n\n for (Instance instance : training)\n\t\t{\n\t\t\tFeatureSequence tokens = (FeatureSequence) instance.getData(); //read data featureSequence\n\t\t\tLabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n FeatureVector labels = (FeatureVector) instance.getTarget(); //read target featurevector\n\n\t\t\tint[] topics = topicSequence.getFeatures();\n\t\t\tfor (int position = 0; position < tokens.size(); position++)\n\t\t\t{\n\t\t\t\tint topic = labels.indexAtLocation(random.nextInt(labels.numLocations()));\n\t\t\t\ttopics[position] = topic;\n\t\t\t\ttokensPerTopic[topic]++;\n\t\t\t\tint type = tokens.getIndexAtPosition(position);\n\t\t\t\ttypeTopicCounts[type][topic]++;\n\t\t\t}\n\t\t\tTopicAssignment t = new TopicAssignment(instance, topicSequence);\n\t\t\tdata.add(t);\n\t\t}\n\t\t/*\n for (Instance instance : training)\n {\n FeatureSequence tokens = (FeatureSequence) instance.getData();\n LabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n\n int[] topics = topicSequence.getFeatures();\n for (int position = 0; position < topics.length; position++) {\n int topic = random.nextInt(numTopics);\n topics[position] = topic;\n }\n TopicAssignment t = new TopicAssignment(instance, topicSequence);\n data.add(t);\n }\n\n buildInitialTypeTopicCounts();\n initializeHistograms();\n\t\t */\n\t\tSystem.out.println(\"Data loaded.\");\n\t}", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "public static ClassifiedFeature createAliveFeature(Feature feature) {\n return createClassifiedFeature(feature, Classifier.ALIVE);\n }", "com.google.protobuf.Struct getCustomFeatures();", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__AGENT);\n\n agentEClass = createEClass(AGENT);\n createEAttribute(agentEClass, AGENT__NAME);\n\n intentEClass = createEClass(INTENT);\n createEReference(intentEClass, INTENT__SUPER_TYPE);\n createEReference(intentEClass, INTENT__IS_FOLLOW_UP);\n createEReference(intentEClass, INTENT__QUESTION);\n createEReference(intentEClass, INTENT__TRAINING);\n\n isFollowUpEClass = createEClass(IS_FOLLOW_UP);\n createEReference(isFollowUpEClass, IS_FOLLOW_UP__INTENT);\n\n entityEClass = createEClass(ENTITY);\n createEReference(entityEClass, ENTITY__EXAMPLE);\n\n questionEClass = createEClass(QUESTION);\n createEReference(questionEClass, QUESTION__QUESTION_ENTITY);\n createEAttribute(questionEClass, QUESTION__PROMPT);\n\n questionEntityEClass = createEClass(QUESTION_ENTITY);\n createEReference(questionEntityEClass, QUESTION_ENTITY__WITH_ENTITY);\n\n trainingEClass = createEClass(TRAINING);\n createEReference(trainingEClass, TRAINING__TRAININGREF);\n\n trainingRefEClass = createEClass(TRAINING_REF);\n createEAttribute(trainingRefEClass, TRAINING_REF__PHRASE);\n createEReference(trainingRefEClass, TRAINING_REF__DECLARATION);\n\n declarationEClass = createEClass(DECLARATION);\n createEAttribute(declarationEClass, DECLARATION__TRAININGSTRING);\n createEReference(declarationEClass, DECLARATION__REFERENCE);\n\n entityExampleEClass = createEClass(ENTITY_EXAMPLE);\n createEAttribute(entityExampleEClass, ENTITY_EXAMPLE__NAME);\n\n sysvariableEClass = createEClass(SYSVARIABLE);\n createEAttribute(sysvariableEClass, SYSVARIABLE__VALUE);\n\n referenceEClass = createEClass(REFERENCE);\n createEReference(referenceEClass, REFERENCE__ENTITY);\n createEReference(referenceEClass, REFERENCE__SYSVAR);\n }", "public interface FeatureBuilder {\r\n\t\r\n\tpublic SimpleFeatureType getType() ;\r\n\r\n\tpublic SimpleFeature buildFeature(Geometry geometry);\r\n\r\n\tpublic SimpleFeatureCollection buildFeatureCollection(Collection<Geometry> geometryCollection);\r\n\t\r\n\tpublic SimpleFeatureBuilder createFeatureBuilder();\r\n\t\r\n\tpublic SimpleFeatureTypeBuilder createFeatureTypeBuilder(SimpleFeatureType sft, String typeName);\r\n\t\t\r\n}", "TrainingTest createTrainingTest();", "public static void main(String args[]){\n featureBase Engine = new featureEngine(\"Engine!\",\n \"This is an engine test!\", 356.99,1.0, 24.5,1000.0);\n\n featureBase Wheels = new featureWheels(\"Wheels\",\n \"This is a wheels test!\", 359.9,1.0,\"Somber\", 21.0);\n\n featureBase Color = new featureColor(\"Test part!\",\n \"This is a test part cool huh?\",364.99,1.0,\"Stylish\");\n\n //Constructing a new nodeArray\n nodeArray test = new nodeArray();\n\n //inserting the objects into the array (Duplicate to test the LLL as well)\n test.insert(Wheels);\n test.insert(Engine);\n test.insert(Color);\n\n System.out.print(test.display());\n }", "public static ClassifiedFeature createClassifiedFeature(Feature feature, Classifier classifier) {\n ClassifiedFeature classifiedFeature = ClassificationFactory.eINSTANCE.createClassifiedFeature();\n classifiedFeature.setFeature(feature);\n classifiedFeature.setClassified(classifier);\n return classifiedFeature;\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\theuristicStrategyEClass = createEClass(HEURISTIC_STRATEGY);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__GRAPHIC_REPRESENTATION);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__NEMF);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__ECORE_CONTAINMENT);\n\t\tcreateEAttribute(heuristicStrategyEClass, HEURISTIC_STRATEGY__CURRENT_REPRESENTATION);\n\t\tcreateEAttribute(heuristicStrategyEClass, HEURISTIC_STRATEGY__CURRENT_MMGR);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__LIST_REPRESENTATION);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_HEURISTICS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_ROOT_ELEMENT);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_GRAPHICAL_ELEMENTS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___GET_FEATURE_NAME__ECLASS_ECLASS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___GET_ELIST_ECLASSFROM_EREFERENCE__EREFERENCE);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_DIRECT_PATH_MATRIX);\n\n\t\tconcreteStrategyLinkEClass = createEClass(CONCRETE_STRATEGY_LINK);\n\n\t\tstrategyLabelEClass = createEClass(STRATEGY_LABEL);\n\t\tcreateEOperation(strategyLabelEClass, STRATEGY_LABEL___GET_LABEL__ECLASS);\n\n\t\tconcreteStrategyLabelFirstStringEClass = createEClass(CONCRETE_STRATEGY_LABEL_FIRST_STRING);\n\n\t\tconcreteStrategyLabelIdentifierEClass = createEClass(CONCRETE_STRATEGY_LABEL_IDENTIFIER);\n\n\t\tconcreteStrategyLabelParameterEClass = createEClass(CONCRETE_STRATEGY_LABEL_PARAMETER);\n\t\tcreateEReference(concreteStrategyLabelParameterEClass, CONCRETE_STRATEGY_LABEL_PARAMETER__LABEL_PARAMETER);\n\n\t\tlabelParameterEClass = createEClass(LABEL_PARAMETER);\n\t\tcreateEAttribute(labelParameterEClass, LABEL_PARAMETER__LIST_LABEL);\n\t\tcreateEOperation(labelParameterEClass, LABEL_PARAMETER___TO_COMMA_SEPARATED_STRING_LABEL);\n\t\tcreateEOperation(labelParameterEClass, LABEL_PARAMETER___DEFAULT_PARAMETERS);\n\n\t\tstrategyRootSelectionEClass = createEClass(STRATEGY_ROOT_SELECTION);\n\t\tcreateEOperation(strategyRootSelectionEClass, STRATEGY_ROOT_SELECTION___GET_ROOT__ELIST_ELIST);\n\t\tcreateEOperation(strategyRootSelectionEClass, STRATEGY_ROOT_SELECTION___LIST_ROOT__ELIST_ELIST);\n\n\t\tconcreteStrategyMaxContainmentEClass = createEClass(CONCRETE_STRATEGY_MAX_CONTAINMENT);\n\n\t\tconcreteStrategyNoParentEClass = createEClass(CONCRETE_STRATEGY_NO_PARENT);\n\n\t\tstrategyPaletteEClass = createEClass(STRATEGY_PALETTE);\n\t\tcreateEOperation(strategyPaletteEClass, STRATEGY_PALETTE___GET_PALETTE__EOBJECT);\n\n\t\tconcreteStrategyPaletteEClass = createEClass(CONCRETE_STRATEGY_PALETTE);\n\n\t\tstrategyArcSelectionEClass = createEClass(STRATEGY_ARC_SELECTION);\n\t\tcreateEReference(strategyArcSelectionEClass, STRATEGY_ARC_SELECTION__ARC_DIRECTION);\n\t\tcreateEOperation(strategyArcSelectionEClass, STRATEGY_ARC_SELECTION___IS_ARC__ECLASS);\n\n\t\tconcreteStrategyArcSelectionEClass = createEClass(CONCRETE_STRATEGY_ARC_SELECTION);\n\n\t\tstrategyArcDirectionEClass = createEClass(STRATEGY_ARC_DIRECTION);\n\t\tcreateEOperation(strategyArcDirectionEClass, STRATEGY_ARC_DIRECTION___GET_DIRECTION__ECLASS);\n\n\t\tarcParameterEClass = createEClass(ARC_PARAMETER);\n\t\tcreateEAttribute(arcParameterEClass, ARC_PARAMETER__SOURCE);\n\t\tcreateEAttribute(arcParameterEClass, ARC_PARAMETER__TARGET);\n\t\tcreateEOperation(arcParameterEClass, ARC_PARAMETER___DEFAULT_PARAM);\n\n\t\tdefaultArcParameterEClass = createEClass(DEFAULT_ARC_PARAMETER);\n\t\tcreateEOperation(defaultArcParameterEClass, DEFAULT_ARC_PARAMETER___TO_COMMA_SEPARATED_STRING_SOURCE);\n\t\tcreateEOperation(defaultArcParameterEClass, DEFAULT_ARC_PARAMETER___TO_COMMA_SEPARATED_STRING_TARGET);\n\n\t\tconcreteStrategyArcDirectionEClass = createEClass(CONCRETE_STRATEGY_ARC_DIRECTION);\n\t\tcreateEReference(concreteStrategyArcDirectionEClass, CONCRETE_STRATEGY_ARC_DIRECTION__PARAM);\n\t\tcreateEOperation(concreteStrategyArcDirectionEClass, CONCRETE_STRATEGY_ARC_DIRECTION___CONTAINS_STRING_EREFERENCE_NAME__ELIST_STRING);\n\n\t\tconcreteStrategyDefaultDirectionEClass = createEClass(CONCRETE_STRATEGY_DEFAULT_DIRECTION);\n\n\t\tstrategyNodeSelectionEClass = createEClass(STRATEGY_NODE_SELECTION);\n\t\tcreateEOperation(strategyNodeSelectionEClass, STRATEGY_NODE_SELECTION___IS_NODE__ECLASS);\n\n\t\tconcreteStrategyDefaultNodeSelectionEClass = createEClass(CONCRETE_STRATEGY_DEFAULT_NODE_SELECTION);\n\n\t\tstrategyPossibleElementsEClass = createEClass(STRATEGY_POSSIBLE_ELEMENTS);\n\t\tcreateEReference(strategyPossibleElementsEClass, STRATEGY_POSSIBLE_ELEMENTS__ECLASS_NO_ELEMENTS);\n\t\tcreateEOperation(strategyPossibleElementsEClass, STRATEGY_POSSIBLE_ELEMENTS___POSSIBLE_ELEMENTS__ECLASS_ELIST_ELIST);\n\n\t\tconcreteStrategyContainmentDiagramElementEClass = createEClass(CONCRETE_STRATEGY_CONTAINMENT_DIAGRAM_ELEMENT);\n\n\t\tecoreMatrixContainmentEClass = createEClass(ECORE_MATRIX_CONTAINMENT);\n\t\tcreateEAttribute(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT__DIRECT_MATRIX_CONTAINMENT);\n\t\tcreateEAttribute(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT__PATH_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_PARENT__INTEGER);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_DIRECT_MATRIX_CONTAINMENT__ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_PATH_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___COPY_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___PRINT_DIRECT_MATRIX_CONTAINMENT__ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_EALL_CHILDS__ECLASS_ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_ALL_PARENTS__INTEGER);\n\n\t\theuristicStrategySettingsEClass = createEClass(HEURISTIC_STRATEGY_SETTINGS);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_LABEL);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_ROOT);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_PALETTE);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_ARC_SELECTION);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_NODE_SELECTION);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_POSSIBLE_ELEMENTS);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_LINKCOMPARTMENT);\n\n\t\tstrategyLinkCompartmentEClass = createEClass(STRATEGY_LINK_COMPARTMENT);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_LINKS);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_COMPARTMENT);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_AFFIXED);\n\t\tcreateEOperation(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT___EXECUTE_LINK_COMPARTMENTS_HEURISTICS__ECLASS);\n\n\t\tconcreteContainmentasAffixedEClass = createEClass(CONCRETE_CONTAINMENTAS_AFFIXED);\n\n\t\tconcreteContainmentasLinksEClass = createEClass(CONCRETE_CONTAINMENTAS_LINKS);\n\n\t\tconcreteContainmentasCompartmentsEClass = createEClass(CONCRETE_CONTAINMENTAS_COMPARTMENTS);\n\n\t\trepreHeurSSEClass = createEClass(REPRE_HEUR_SS);\n\t\tcreateEReference(repreHeurSSEClass, REPRE_HEUR_SS__HEURISTIC_STRATEGY_SETTINGS);\n\t}", "@DISPID(1611006020) //= 0x60060044. The runtime will prefer the VTID if present\n @VTID(95)\n boolean expandSketchBasedFeaturesNodeAtCreation();", "public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }", "WithCreate withHyperVGeneration(HyperVGeneration hyperVGeneration);", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }", "public static TransformGroup createTrain() {\n\t\tTransformGroup trainTG = new TransformGroup();\r\n\r\n\t\t// ----------------- COLORS ------------------------- //\r\n\t\tAppearance blueApp = new Appearance();\r\n\t\tColor3f blueColor = new Color3f(0.0f, 0.0f, 1.0f);\r\n\t\tColoringAttributes blueCA = new ColoringAttributes();\r\n\t\tblueCA.setColor(blueColor);\r\n\t\tblueApp.setColoringAttributes(blueCA);\r\n\r\n\t\tAppearance redApp = new Appearance();\r\n\t\tColor3f redColor = new Color3f(0.8f, 0.0f, 0.0f);\r\n\t\tColoringAttributes redCA = new ColoringAttributes();\r\n\t\tredCA.setColor(redColor);\r\n\t\tredApp.setColoringAttributes(redCA);\r\n\r\n\t\tAppearance greenApp = new Appearance();\r\n\t\tColor3f greenColor = new Color3f(0.0f, 1.0f, 0.0f);\r\n\t\tColoringAttributes greenCA = new ColoringAttributes();\r\n\t\tgreenCA.setColor(greenColor);\r\n\t\tgreenApp.setColoringAttributes(greenCA);\r\n\r\n\t\t// BLUE APPEARANCE\r\n\t\t\r\n\t\t// 1 ambient color: amount of ambient light reflected\r\n\t\t// 2 emissive color: light emitted\r\n\t\t// 3 diffuse color: used to calculate amount of ...\r\n\t\t// 4 specular color: ... diffuse and specular reflection\r\n\t\t// 5 shininess value: larger value ==> shinier\r\n\t\tColor3f ambientColourBlue = new Color3f(0.0f, 0.0f, 0.2f);\r\n\t\tColor3f emissiveColourBlue = new Color3f(0.0f, 0.0f, 0.8f);\r\n\t\tColor3f diffuseColourBlue = new Color3f(0.0f, 0.0f, 0.5f);\r\n\t\tColor3f specularColourBlue = new Color3f(0.0f, 0.0f, 1.5f);\r\n\t\tfloat shininessBlue = 10.0f;\r\n\t\tAppearance newBlueApp = new Appearance();\r\n\t\tnewBlueApp.setMaterial(new Material(ambientColourBlue, emissiveColourBlue, diffuseColourBlue, specularColourBlue,\r\n\t\t\t\tshininessBlue));\r\n\r\n\t\t// GREEN APPEARANCE\r\n\t\tColor3f ambientColourG = new Color3f(0.0f, 0.5f, 0.0f);\r\n\t\tColor3f emissiveColourG = new Color3f(0.0f, 0.7f, 0.0f);\r\n\t\tColor3f diffuseColourG = new Color3f(0.0f, 0.8f, 0.0f);\r\n\t\tColor3f specularColourG = new Color3f(0.0f, 4.0f, 0.0f);\r\n\t\tfloat shininessG = 0.8f;\r\n\t\tAppearance newGreenApp = new Appearance();\r\n\t\tnewGreenApp.setMaterial(new Material(ambientColourG, emissiveColourG, diffuseColourG,\r\n\t\t\t\tspecularColourG, shininessG));\r\n\r\n\t\t// RED APPEARANCE\r\n\t\tColor3f ambientColourRed = new Color3f(0.2f, 0.0f, 0.0f);\r\n\t\tColor3f emissiveColourRed = new Color3f(0.8f, 0.0f, 0.0f);\r\n\t\tColor3f diffuseColourRed = new Color3f(0.8f, 0.0f, 0.0f);\r\n\t\tColor3f specularColourRed = new Color3f(10.5f, 0.0f, 0.0f);\r\n\t\tfloat shininessRed = 1.0f;\r\n\t\tAppearance newRedApp = new Appearance();\r\n\t\tnewRedApp.setMaterial(new Material(ambientColourRed, emissiveColourRed, diffuseColourRed, specularColourRed,\r\n\t\t\t\tshininessRed));\r\n\r\n\t\t// ------------------------- END OF COLORS ----------------------- //\r\n\r\n\t\t// --------------------- START OF MAKING TRAIN --------------- //\r\n\t\t\r\n\t\t// -- MAIN TRAIN BODY -- //\r\n\t\tBox trainBody = new Box(0.09f, 0.04f, 0.15f, newBlueApp);\r\n\r\n\t\t// -- CABIN BOX OBJECT -- //\r\n\t\tBox cabin = new Box(-0.045f, 0.04f, 0.02f, newBlueApp);\r\n\t\tTransform3D cabinTrans = new Transform3D();\r\n\t\tcabinTrans.setScale(new Vector3d(2.0, 2.0, 2.0));\r\n\t\tcabinTrans.setTranslation(new Vector3d(0.0, 0.11, -0.11));\r\n\t\tTransformGroup trainCabinTG = new TransformGroup(cabinTrans);\r\n\r\n\t\t// -- FRONT WHEELS RIGHT -- //\r\n\t\tCylinder frontRWheel = new Cylinder(0.025f, 0.025f, newRedApp);\r\n\t\tTransform3D frontRTrans = new Transform3D();\r\n\t\tfrontRTrans.rotZ(Math.PI / 2);\r\n\t\tfrontRTrans.setScale(new Vector3d(2.0, 2.0, 2.0));\r\n\t\tfrontRTrans.setTranslation(new Vector3d(-0.07, -0.06, 0.1));\r\n\t\tTransformGroup frontRWheelTG = new TransformGroup(frontRTrans);\r\n\r\n\t\t// -- FRONT WHEELS LEFT -- //\r\n\t\tCylinder frontLWheel = new Cylinder(0.025f, 0.025f, newRedApp);\r\n\t\tTransform3D frontLTrans = new Transform3D();\r\n\t\tfrontLTrans.rotZ(Math.PI / 2);\r\n\t\tfrontLTrans.setScale(new Vector3d(2.0, 2.0, 2.0));\r\n\t\tfrontLTrans.setTranslation(new Vector3d(0.07, -0.06, 0.1));\r\n\t\tTransformGroup fWheelLTG = new TransformGroup(frontLTrans);\r\n\r\n\t\t// -- REAR WHEELS RIGHT -- //\r\n\t\tCylinder rearRWheel = new Cylinder(0.025f, 0.025f, newRedApp);\r\n\t\tTransform3D rearRWheelTrans = new Transform3D();\r\n\t\trearRWheelTrans.rotZ(Math.PI / 2);\r\n\t\trearRWheelTrans.setScale(new Vector3d(2.0, 2.0, 2.0));\r\n\t\trearRWheelTrans.setTranslation(new Vector3d(-0.07, -0.06, -0.1));\r\n\t\tTransformGroup rearWheelRTG = new TransformGroup(rearRWheelTrans);\r\n\r\n\t\t// -- REAR WHEELS LEFT -- //\r\n\t\tCylinder rearLWheel = new Cylinder(0.025f, 0.025f, newRedApp);\r\n\t\tTransform3D rearLWheelTrans = new Transform3D();\r\n\t\trearLWheelTrans.rotZ(Math.PI / 2);\r\n\t\trearLWheelTrans.setScale(new Vector3d(2.0, 2.0, 2.0));\r\n\t\trearLWheelTrans.setTranslation(new Vector3d(0.07, -0.06, -0.1));\r\n\t\tTransformGroup rearWheelLTG = new TransformGroup(rearLWheelTrans);\r\n\r\n\t\t// -- CHIMNEY -- //\r\n\t\tCylinder chimney = new Cylinder(0.006f, 0.06f, newRedApp);\r\n\t\tTransform3D chimneyTrans = new Transform3D();\r\n\t\tchimneyTrans.setScale(new Vector3d(2.0, 2.0, 2.0));\r\n\t\tchimneyTrans.setTranslation(new Vector3d(0.0, 0.18, 0.03));\r\n\t\tTransformGroup chimneyTG = new TransformGroup(chimneyTrans);\r\n\r\n\t\t// -- CHIMNEY CONE -- //\r\n\t\tCone chimneyCone = new Cone(0.009f, 0.03f, newRedApp);\r\n\t\tTransform3D coneTrans = new Transform3D();\r\n\t\tconeTrans.rotX(Math.PI);\r\n\t\tconeTrans.setScale(new Vector3d(2.0, 2.0, 2.0));\r\n\t\tconeTrans.setTranslation(new Vector3d(0.0, 0.22, 0.03));\r\n\t\tTransformGroup chimneyConeTG = new TransformGroup(coneTrans);\r\n\r\n\t\t// --- CYLINDER TRAIN BODY --- //\r\n\t\tCylinder trainBody2 = new Cylinder(0.025f, 0.11f, newGreenApp);\r\n\t\tTransform3D cylinderTrans = new Transform3D();\r\n\t\tcylinderTrans.rotX(Math.PI / 2);\r\n\t\tcylinderTrans.setScale(new Vector3d(2.0, 2.0, 2.0));\r\n\t\tcylinderTrans.setTranslation(new Vector3d(0.0, 0.08, 0.041));\r\n\t\tTransformGroup trainBodyTG = new TransformGroup(cylinderTrans);\r\n\r\n\t\t// -------------------- END OF MAKING TRAIN ---------------------- //\r\n\r\n\t\t// make edge relations with the scene graph nodes\r\n\t\ttrainTG.addChild(trainBody);\r\n\t\ttrainTG.addChild(trainCabinTG);\r\n\t\ttrainCabinTG.addChild(cabin);\r\n\t\ttrainTG.addChild(frontRWheelTG);\r\n\t\tfrontRWheelTG.addChild(frontRWheel);\r\n\t\ttrainTG.addChild(fWheelLTG);\r\n\t\tfWheelLTG.addChild(frontLWheel);\r\n\t\ttrainTG.addChild(rearWheelRTG);\r\n\t\trearWheelRTG.addChild(rearRWheel);\r\n\t\ttrainTG.addChild(rearWheelLTG);\r\n\t\trearWheelLTG.addChild(rearLWheel);\r\n\t\ttrainTG.addChild(chimneyTG);\r\n\t\tchimneyTG.addChild(chimney);\r\n\t\ttrainTG.addChild(chimneyConeTG);\r\n\t\tchimneyConeTG.addChild(chimneyCone);\r\n\t\ttrainTG.addChild(trainBodyTG);\r\n\t\ttrainBodyTG.addChild(trainBody2);\r\n\r\n\t\treturn trainTG;\r\n\r\n\t}", "public abstract T _withMapperFeatures(int i);", "public void addFeature() throws UMUserManagementException {\n UMFeature uMFeature = convertFeatureDataBeanToFeatureModel(featureDataBean);\n featureService.createFeature(uMFeature);\n clearFeatureData();\n }", "protected BaseFeat()\n {\n super(TYPE);\n }", "interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithNetworkProfile,\n DefinitionStages.WithAutoShutdownProfile,\n DefinitionStages.WithConnectionProfile,\n DefinitionStages.WithVirtualMachineProfile,\n DefinitionStages.WithSecurityProfile,\n DefinitionStages.WithRosterProfile,\n DefinitionStages.WithLabPlanId,\n DefinitionStages.WithTitle,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Lab create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Lab create(Context context);\n }", "public VisionSubsystem() {\n\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }", "private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tliveScoreEClass = createEClass(LIVE_SCORE);\n\t\tcreateEReference(liveScoreEClass, LIVE_SCORE__PREFEREDPLAYER);\n\t\tcreateEAttribute(liveScoreEClass, LIVE_SCORE__SALONNAME);\n\n\t\tpreferedPlayerEClass = createEClass(PREFERED_PLAYER);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__NAME);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__WON);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__PLAYINGS);\n\t}", "@Action( ACTION_CREATE_FEATURE )\r\n public String doCreateFeature( HttpServletRequest request )\r\n {\r\n populate( _feature, request );\r\n\r\n // Check constraints\r\n if ( !validateBean( _feature, VALIDATION_ATTRIBUTES_PREFIX ) )\r\n {\r\n return redirectView( request, VIEW_CREATE_FEATURE );\r\n }\r\n\r\n FeatureHome.create( _feature );\r\n addInfo( INFO_FEATURE_CREATED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tsutEClass = createEClass(SUT);\n\t\tcreateEAttribute(sutEClass, SUT__HOSTNAME);\n\t\tcreateEAttribute(sutEClass, SUT__IP);\n\t\tcreateEAttribute(sutEClass, SUT__HARDWARE);\n\t\tcreateEReference(sutEClass, SUT__SUT);\n\t\tcreateEReference(sutEClass, SUT__METRICMODEL);\n\t\tcreateEAttribute(sutEClass, SUT__TYPE);\n\n\t\tloadGeneratorEClass = createEClass(LOAD_GENERATOR);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HOSTNAME);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IP);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IS_MONITOR);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__SUT);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__METRICMODEL);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HARDWARE);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__MONITOR);\n\n\t\tmonitorEClass = createEClass(MONITOR);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HOSTNAME);\n\t\tcreateEAttribute(monitorEClass, MONITOR__IP);\n\t\tcreateEReference(monitorEClass, MONITOR__SUT);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HARDWARE);\n\t\tcreateEAttribute(monitorEClass, MONITOR__DESCRIPTION);\n\n\t\tmetricModelEClass = createEClass(METRIC_MODEL);\n\t\tcreateEAttribute(metricModelEClass, METRIC_MODEL__NAME);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__CRITERIA);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__THRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__ASSOCIATIONCOUNTERCRITERIATHRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__METRIC);\n\n\t\t// Create enums\n\t\tsuT_TYPEEEnum = createEEnum(SUT_TYPE);\n\t\thardwareEEnum = createEEnum(HARDWARE);\n\t}", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "public void createAttractors_step2() {\n\t\t// make a bunch of Attractors and sprinkle them around in the hypercube\n\t\tdouble count = Math.sqrt(observations.size());\n\t\tcount *= 2; \n\t\tint result = (int) count;\n\t\tif (result < 2) {\n\t\t\tresult = 2;\n\t\t}\n\t\tCaller.log(\"COUNT: \" + count);\n\t\tfor (int i = 0; i < result; i++) {\n\t\t\tdouble[] d = new double[shape];\n\t\t\tfor (int j = 0; j < shape; j++) {\n\t\t\t\td[j] = Math.random() * 4 - 2;\n\t\t\t}\n\t\t\tattractors.put(i, new _ReduxAttractor(i, d));\n\t\t}\n\t}", "@Unstable\npublic interface FeatureClusterView extends Feature\n{\n /**\n * Returns the reference features, if any.\n * \n * @return a potentially empty, unmodifiable collection of the features from the reference patient\n */\n Collection<Feature> getReference();\n\n /**\n * Returns the features matched by this feature, if any.\n * \n * @return a potentially empty, unmodifiable collection of the features from the reference patient, with\n * {@code null} values corresponding to undisclosed features\n */\n Collection<Feature> getMatch();\n\n /**\n * Returns the root/ancestor of the cluster.\n * \n * @return the root feature for the reference and match features\n */\n OntologyTerm getRoot();\n\n /**\n * How similar are the match and reference features.\n * \n * @return a similarity score, between {@code -1} for opposite features and {@code 1} for an exact match, with\n * {@code 0} for features with no similarities, and {@code NaN} if one of the collections of features is\n * empty\n */\n double getScore();\n\n /**\n * Retrieve all information about the cluster of features. For example:\n * \n * <pre>\n * {\n * \"id\": \"HP:0100247\",\n * \"name\": \"Recurrent singultus\",\n * \"type\": \"ancestor\",\n * \"reference\": [\n * \"HP:0001201\",\n * \"HP:0000100\"\n * ],\n * \"match\": [\n * \"HP:0001201\"\n * ]\n * }\n * </pre>\n * \n * @return the feature data, using the json-lib classes\n */\n JSONObject toJSON();\n}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__ELEMENTS);\n\n elementEClass = createEClass(ELEMENT);\n createEReference(elementEClass, ELEMENT__STATE);\n createEReference(elementEClass, ELEMENT__TRANSITION);\n\n stateEClass = createEClass(STATE);\n createEAttribute(stateEClass, STATE__NAME);\n createEReference(stateEClass, STATE__STATES_PROPERTIES);\n\n statesPropertiesEClass = createEClass(STATES_PROPERTIES);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__COLOR);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__THICKNESS);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__POSITION);\n\n transitionEClass = createEClass(TRANSITION);\n createEReference(transitionEClass, TRANSITION__START);\n createEReference(transitionEClass, TRANSITION__END);\n createEReference(transitionEClass, TRANSITION__TRANSITION_PROPERTIES);\n createEReference(transitionEClass, TRANSITION__LABEL);\n createEAttribute(transitionEClass, TRANSITION__INIT);\n\n labelEClass = createEClass(LABEL);\n createEAttribute(labelEClass, LABEL__TEXT);\n createEAttribute(labelEClass, LABEL__POSITION);\n\n coordinatesStatesTransitionEClass = createEClass(COORDINATES_STATES_TRANSITION);\n createEAttribute(coordinatesStatesTransitionEClass, COORDINATES_STATES_TRANSITION__STATE_TRANSITION);\n\n transitionPropertiesEClass = createEClass(TRANSITION_PROPERTIES);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__COLOR);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__THICKNESS);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__CURVE);\n }", "BehavioralFeatureConcept createBehavioralFeatureConcept();", "protected static Instance constructWekaInstance(ArrayList<Attribute> attributes, Word data_point,\n String class_attribute) {\n Instances instances = new Instances(\"single_instance_set\", attributes, 0);\n\n setWekaClassAttribute(instances, class_attribute);\n return assignWekaAttributes(instances, data_point);\n }", "public void loadFeatures(Class<?> classToRun) throws Exception {\n List<Features> annos = FeaturesRunner.getScanner().getAnnotations(classToRun, Features.class);\n for (Features anno : annos) {\n for (Class<? extends RunnerFeature> cl : anno.value()) {\n loadFeature(new HashSet<>(), cl);\n }\n }\n\n }", "public Factory() {\n\t\tnb_rounds = 0; \n\t\tnb_to_train = 0; \n\t\ttraining_queue = new LinkedList<Pair<Soldier, Integer>>(); \n\t\tcurrent = null;\n\t}", "public interface Features {\n /**\n * Loads the image at the given filename into the controller's model.\n *\n * @param filename the location of the image to load\n * @throws IOException if the provided file path is invalid\n */\n void loadPhoto(String filename) throws IOException;\n\n /**\n * Loads a generated rainbow image into the controller's model.\n *\n * @param width width of image to generate in pixels\n * @param height height of image to generate in pixels\n * @param isHorizontal True for horizontal stripes, else vertical stripes\n */\n void loadRainbow(int width, int height, boolean isHorizontal);\n\n /**\n * Loads a generated checker board image into the controller's model.\n *\n * @param tileSize the side length of tiles for the generated image in pixels.\n */\n void loadCheckerBoard(int tileSize);\n\n /**\n * Saves the current state of the image in the controller's model to the specified file location.\n *\n * @param filename the location to save the image\n * @throws IOException if the provided file path is invalid\n */\n void saveToFile(String filename) throws IOException;\n\n /**\n * Applies the blur effect to the image loaded in the controller's model.\n */\n void blur();\n\n /**\n * Applies the sharpen effect to the image loaded in the controller's model.\n */\n void sharpen();\n\n /**\n * Applies the greyscale effect to the image loaded in the controller's model.\n */\n void greyscale();\n\n /**\n * Applies the sepia effect to the image loaded in the controller's model.\n */\n void sepia();\n\n /**\n * Applies the dither effect to the image loaded in the controller's model.\n */\n void dither();\n\n /**\n * Applies the Mosaic effect to the image loaded in the controller's model.\n *\n * @param seeds number of panes to generate in mosaic\n */\n void mosaic(int seeds);\n\n /**\n * reverts the controller's model to the image prior to the most recent effect.\n *\n * @throws IllegalStateException if no changes yet to undo\n */\n void undo();\n\n /**\n * reverts the controller's model to the image after the most recent effect.\n *\n * @throws IllegalStateException if no undos yet to restore\n */\n void redo();\n\n /**\n * Retrieves a copy of the image data stored in the controller's model image.\n *\n * @return a copy of the image data stored in the controller's model image\n */\n BufferedImage outputImage();\n\n /**\n * Runs the batch script commands provided in the given readable.\n *\n * @throws IOException if any issues with accessing the Readable\n */\n void executeScript(Readable script) throws IOException;\n}", "@Override\r\n public void buildClassifier(Instances instances) throws Exception {\n getCapabilities().testWithFail(instances);\r\n\r\n // remove instances with missing class\r\n instances = new Instances(instances);\r\n instances.deleteWithMissingClass();\r\n\r\n // ensure we have a data set with discrete variables only and with no\r\n // missing values\r\n instances = normalizeDataSet(instances);\r\n\r\n // copy instances to local field\r\n// m_Instances = new Instances(instances);\r\n m_Instances = instances;\r\n\r\n // initialize arrays\r\n int numClasses = m_Instances.classAttribute().numValues();\r\n m_Structures = new BayesNet[numClasses];\r\n m_cInstances = new Instances[numClasses];\r\n // m_cEstimator = new DiscreteEstimatorBayes(numClasses, m_fAlpha);\r\n\r\n for (int iClass = 0; iClass < numClasses; iClass++) {\r\n splitInstances(iClass);\r\n }\r\n\r\n // update probabilty of class label, using Bayesian network associated\r\n // with the class attribute only\r\n Remove rFilter = new Remove();\r\n rFilter.setAttributeIndices(\"\" + (m_Instances.classIndex() + 1));\r\n rFilter.setInvertSelection(true);\r\n rFilter.setInputFormat(m_Instances);\r\n Instances classInstances = new Instances(m_Instances);\r\n classInstances = Filter.useFilter(classInstances, rFilter);\r\n\r\n m_cEstimator = new BayesNet();\r\n SimpleEstimator classEstimator = new SimpleEstimator();\r\n classEstimator.setAlpha(m_fAlpha);\r\n m_cEstimator.setEstimator(classEstimator);\r\n m_cEstimator.buildClassifier(classInstances);\r\n\r\n /*combiner = new LibSVM(); \r\n FastVector classFv = new FastVector(2);\r\n classFv.addElement(CNTL);\r\n classFv.addElement(CASE);\r\n Attribute classAt = new Attribute(m_Instances.classAttribute().name(), \r\n classFv);\r\n attributesFv = new FastVector(m_Structures.length);\r\n attributesFv.addElement(classAt);\r\n for (int i = 0; i < m_Instances.classAttribute().numValues(); i++){\r\n if (!m_Instances.classAttribute().value(i).equals(CNTL))\r\n attributesFv.addElement(new Attribute(m_Instances.classAttribute\r\n ().value(i)));\r\n }\r\n combinerTrain = new Instances(\"combinertrain\", attributesFv, \r\n m_Instances.numInstances());\r\n combinerTrain.setClassIndex(0);\r\n for (int i = 0; i < m_Instances.numInstances(); i++){\r\n double[] probs = super.distributionForInstance(m_Instances.instance(i));\r\n Instance result = new Instance(attributesFv.size()); \r\n if (!m_Instances.classAttribute().value(m_Instances.instance(i).\r\n classIndex()).equals(CNTL))\r\n result.setValue(classAt, CASE);\r\n else\r\n result.setValue(classAt, CNTL);\r\n for (int j = 0; j < attributesFv.size(); j++){\r\n if (!attributesFv.elementAt(j).equals(classAt)){\r\n Attribute current = (Attribute) attributesFv.elementAt(j);\r\n result.setValue(current, \r\n probs[m_Instances.classAttribute().indexOfValue\r\n (current.name())]);\r\n }\r\n }\r\n combinerTrain.add(result);\r\n }\r\n combinerTrain = discretize(combinerTrain);\r\n combiner.buildClassifier(combinerTrain);*/\r\n }", "public static void main(String[] args) throws IOException {\n \n CreateInstance createInstance = new CreateInstance();\n\n try {\n createInstance.init(args);\n Flavor flavor = createInstance.getFlavor();\n createInstance.createInstance(flavor);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n createInstance.close();\n }\n }", "ShipmentItemFeature createShipmentItemFeature();", "@Override\r\n\tpublic void buildClassifier(Instances data) throws Exception {\n\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbluetoothPortEClass = createEClass(BLUETOOTH_PORT);\n\n\t\tl2CAPInJobEClass = createEClass(L2CAP_IN_JOB);\n\n\t\tl2CAPoutJobEClass = createEClass(L2CA_POUT_JOB);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\t\tcreateEAttribute(stateEClass, STATE__INVARIANT);\n\t\tcreateEAttribute(stateEClass, STATE__INITIAL);\n\t\tcreateEAttribute(stateEClass, STATE__URGENT);\n\t\tcreateEAttribute(stateEClass, STATE__COMMITTED);\n\n\t\tconnectorEClass = createEClass(CONNECTOR);\n\t\tcreateEAttribute(connectorEClass, CONNECTOR__NAME);\n\t\tcreateEReference(connectorEClass, CONNECTOR__DIAGRAM);\n\n\t\tdiagramEClass = createEClass(DIAGRAM);\n\t\tcreateEAttribute(diagramEClass, DIAGRAM__NAME);\n\t\tcreateEReference(diagramEClass, DIAGRAM__CONNECTORS);\n\t\tcreateEReference(diagramEClass, DIAGRAM__STATES);\n\t\tcreateEReference(diagramEClass, DIAGRAM__SUBDIAGRAMS);\n\t\tcreateEReference(diagramEClass, DIAGRAM__EDGES);\n\t\tcreateEAttribute(diagramEClass, DIAGRAM__IS_PARALLEL);\n\n\t\tedgeEClass = createEClass(EDGE);\n\t\tcreateEReference(edgeEClass, EDGE__START);\n\t\tcreateEReference(edgeEClass, EDGE__END);\n\t\tcreateEReference(edgeEClass, EDGE__EREFERENCE0);\n\t\tcreateEAttribute(edgeEClass, EDGE__SELECT);\n\t\tcreateEAttribute(edgeEClass, EDGE__GUARD);\n\t\tcreateEAttribute(edgeEClass, EDGE__SYNC);\n\t\tcreateEAttribute(edgeEClass, EDGE__UPDATE);\n\t\tcreateEAttribute(edgeEClass, EDGE__COMMENTS);\n\n\t\tendPointEClass = createEClass(END_POINT);\n\t\tcreateEReference(endPointEClass, END_POINT__OUTGOING_EDGES);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__IMPLEMENTATIONS);\n\n\t\timplementationEClass = createEClass(IMPLEMENTATION);\n\t\tcreateEAttribute(implementationEClass, IMPLEMENTATION__CODE);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__TECHNOLOGY);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__LANGUAGE);\n\n\t\tsemanticsEClass = createEClass(SEMANTICS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__ANNOTATIONS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__LANGUAGES);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__TECHNOLOGIES);\n\n\t\ttargetLanguageEClass = createEClass(TARGET_LANGUAGE);\n\n\t\ttechnologyEClass = createEClass(TECHNOLOGY);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\t}", "public FeatureSynthesisMain() {\n super();\n }", "public void induceModel(Graph graph, DataSplit split) {\r\n super.induceModel(graph, split);\r\n Node[] trainingSet = split.getTrainSet();\r\n if(trainingSet == null || trainingSet.length == 0)\r\n return;\r\n\r\n Attributes attribs = trainingSet[0].getAttributes();\r\n FastVector attInfo = new FastVector(tmpVector.length);\r\n logger.finer(\"Setting up WEKA attributes\");\r\n if(useIntrinsic)\r\n {\r\n for(Attribute attrib : attribs)\r\n {\r\n // do not include the KEY attribute\r\n if(attrib == attribs.getKey())\r\n continue;\r\n\r\n switch(attrib.getType())\r\n {\r\n case CATEGORICAL:\r\n String[] tokens = ((AttributeCategorical)attrib).getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(attrib.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+attrib.getName()+\":Categorical\");\r\n break;\r\n\r\n default:\r\n attInfo.addElement(new weka.core.Attribute(attrib.getName()));\r\n logger.finer(\"Adding WEKA attribute \"+attrib.getName()+\":Numerical\");\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n String[] tokens = attribute.getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(attribute.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+attribute.getName()+\":Categorical\");\r\n }\r\n\r\n for(Aggregator agg : aggregators)\r\n {\r\n Attribute attrib = agg.getAttribute();\r\n switch(agg.getType())\r\n {\r\n case CATEGORICAL:\r\n String[] tokens = ((AttributeCategorical)attrib).getTokens();\r\n FastVector values = new FastVector(tokens.length);\r\n for(String token : tokens)\r\n values.addElement(token);\r\n attInfo.addElement(new weka.core.Attribute(agg.getName(),values));\r\n logger.finer(\"Adding WEKA attribute \"+agg.getName()+\":Categorical\");\r\n break;\r\n\r\n default:\r\n attInfo.addElement(new weka.core.Attribute(agg.getName()));\r\n logger.finer(\"Adding WEKA attribute \"+agg.getName()+\":Numerical\");\r\n break;\r\n }\r\n }\r\n\r\n Instances train = new Instances(\"train\",attInfo,split.getTrainSetSize());\r\n train.setClassIndex(vectorClsIdx);\r\n\r\n for(Node node : split.getTrainSet())\r\n {\r\n double[] v = new double[attInfo.size()];\r\n makeVector(node,v);\r\n train.add(new Instance(1,v));\r\n }\r\n try\r\n {\r\n classifier.buildClassifier(train);\r\n }\r\n catch(Exception e)\r\n {\r\n throw new RuntimeException(\"Failed to build classifier \"+classifier.getClass().getName(),e);\r\n }\r\n testInstance = new Instance(1,tmpVector);\r\n testInstances = new Instances(\"test\",attInfo,1);\r\n testInstances.setClassIndex(vectorClsIdx);\r\n testInstances.add(testInstance);\r\n testInstance = testInstances.firstInstance();\r\n }", "@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }", "public void setFeatureFactory(FeatureFactory featureFactory) {\n factory = featureFactory;\n }", "public void createPackageContents()\r\n {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n productEClass = createEClass(PRODUCT);\r\n createEAttribute(productEClass, PRODUCT__PRICE);\r\n createEAttribute(productEClass, PRODUCT__NAME);\r\n createEAttribute(productEClass, PRODUCT__ID);\r\n createEReference(productEClass, PRODUCT__PRODUCER);\r\n createEReference(productEClass, PRODUCT__WISHLISTS);\r\n createEReference(productEClass, PRODUCT__OFFERED_BY);\r\n\r\n customerEClass = createEClass(CUSTOMER);\r\n createEReference(customerEClass, CUSTOMER__ALL_BOUGHT_PRODUCTS);\r\n createEAttribute(customerEClass, CUSTOMER__NAME);\r\n createEAttribute(customerEClass, CUSTOMER__AGE);\r\n createEAttribute(customerEClass, CUSTOMER__ID);\r\n createEReference(customerEClass, CUSTOMER__WISHLISTS);\r\n createEAttribute(customerEClass, CUSTOMER__USERNAME);\r\n\r\n producerEClass = createEClass(PRODUCER);\r\n createEAttribute(producerEClass, PRODUCER__ID);\r\n createEAttribute(producerEClass, PRODUCER__NAME);\r\n createEReference(producerEClass, PRODUCER__PRODUCTS);\r\n\r\n storeEClass = createEClass(STORE);\r\n createEReference(storeEClass, STORE__CUSTOMERS);\r\n createEReference(storeEClass, STORE__PRODUCTS);\r\n createEReference(storeEClass, STORE__PRODUCERS);\r\n createEReference(storeEClass, STORE__SELLERS);\r\n\r\n bookEClass = createEClass(BOOK);\r\n createEAttribute(bookEClass, BOOK__AUTHOR);\r\n\r\n dvdEClass = createEClass(DVD);\r\n createEAttribute(dvdEClass, DVD__INTERPRET);\r\n\r\n wishlistEClass = createEClass(WISHLIST);\r\n createEReference(wishlistEClass, WISHLIST__PRODUCTS);\r\n\r\n sellerEClass = createEClass(SELLER);\r\n createEAttribute(sellerEClass, SELLER__NAME);\r\n createEAttribute(sellerEClass, SELLER__ID);\r\n createEAttribute(sellerEClass, SELLER__USERNAME);\r\n createEReference(sellerEClass, SELLER__ALL_PRODUCTS_TO_SELL);\r\n createEReference(sellerEClass, SELLER__EREFERENCE0);\r\n createEReference(sellerEClass, SELLER__SOLD_PRODUCTS);\r\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\troleEClass = createEClass(ROLE);\n\t\tcreateEReference(roleEClass, ROLE__SOCIETY);\n\t\tcreateEReference(roleEClass, ROLE__IS_REALIZED_BY_INDIVIDUAL);\n\t\tcreateEReference(roleEClass, ROLE__PARENT);\n\t\tcreateEReference(roleEClass, ROLE__CHILDREN);\n\t\tcreateEAttribute(roleEClass, ROLE__ID);\n\t\tcreateEAttribute(roleEClass, ROLE__NAME);\n\n\t\tindividualRealizationEClass = createEClass(INDIVIDUAL_REALIZATION);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__TARGET);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__SOURCE);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__SOCIETY);\n\t\tcreateEAttribute(individualRealizationEClass, INDIVIDUAL_REALIZATION__ID);\n\n\t\tsocietyEClass = createEClass(SOCIETY);\n\t\tcreateEReference(societyEClass, SOCIETY__GENERALIZATIONS);\n\t\tcreateEReference(societyEClass, SOCIETY__RELAIZATIONS);\n\t\tcreateEReference(societyEClass, SOCIETY__INDIVIDUALS);\n\t\tcreateEAttribute(societyEClass, SOCIETY__NAME);\n\t\tcreateEReference(societyEClass, SOCIETY__ROLES);\n\n\t\tspecializationEClass = createEClass(SPECIALIZATION);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__TARGET);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__SOURCE);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__SOCIETY);\n\t\tcreateEAttribute(specializationEClass, SPECIALIZATION__ID);\n\n\t\tindividualInstanceEClass = createEClass(INDIVIDUAL_INSTANCE);\n\t\tcreateEReference(individualInstanceEClass, INDIVIDUAL_INSTANCE__REALIZES);\n\t\tcreateEAttribute(individualInstanceEClass, INDIVIDUAL_INSTANCE__ID);\n\t\tcreateEAttribute(individualInstanceEClass, INDIVIDUAL_INSTANCE__NAME);\n\t\tcreateEReference(individualInstanceEClass, INDIVIDUAL_INSTANCE__SOCIETY);\n\n\t\tsocialInstanceEClass = createEClass(SOCIAL_INSTANCE);\n\t\tcreateEOperation(socialInstanceEClass, SOCIAL_INSTANCE___GET_ID);\n\t\tcreateEOperation(socialInstanceEClass, SOCIAL_INSTANCE___GET_NAME);\n\t}", "public void createPackageContents() {\n if(isCreated) {\n return;\n }\n isCreated = true;\n\n // Create classes and their features\n namedElementEClass = createEClass(NAMED_ELEMENT);\n createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n modularizationModelEClass = createEClass(MODULARIZATION_MODEL);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__MODULES);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__CLASSES);\n\n moduleEClass = createEClass(MODULE);\n createEReference(moduleEClass, MODULE__CLASSES);\n\n classEClass = createEClass(CLASS);\n createEReference(classEClass, CLASS__MODULE);\n createEReference(classEClass, CLASS__DEPENDS_ON);\n createEReference(classEClass, CLASS__DEPENDED_ON_BY);\n }", "public void buildClassifier(Instances instances) throws Exception {\r\n\t\tif (instances.checkForStringAttributes()) {\r\n\t\t\tthrow new UnsupportedAttributeTypeException(\"Cannot handle string attributes!\");\r\n\t\t} \r\n\t\tif (instances.numInstances() == 0) {\r\n\t\t\t//throw new IllegalArgumentException(\"No training instances.\");\r\n\t\t}\r\n\t\tif (instances.numAttributes() == 1) {\r\n\t\t\tSystem.err.println(\"No training instances found - only classes.\");\r\n\t\t\tthrow new IllegalArgumentException(\"No training instances found - only classes.\");\r\n\t\t}\r\n\t\t\r\n\t\tinstances = initClassifier(instances);\r\n\r\n\t\tcreateInputLayer(instances);\r\n\t\tcreateOutputLayer(instances);\r\n\t\tcreateHiddenLayer();\r\n\r\n\t\t// connections done.\r\n\t\t// learnClassifier(instances);\r\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\trunnableEClass = createEClass(RUNNABLE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PORT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PERIOD);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__LABEL_ACCESSES);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__DEADLINE);\r\n\r\n\t\tlabelEClass = createEClass(LABEL);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_STATECHART);\r\n\t\tcreateEAttribute(labelEClass, LABEL__IS_CONSTANT);\r\n\r\n\t\tlabelAccessEClass = createEClass(LABEL_ACCESS);\r\n\t\tcreateEAttribute(labelAccessEClass, LABEL_ACCESS__ACCESS_KIND);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESS_LABEL);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESSING_RUNNABLE);\r\n\r\n\t\t// Create enums\r\n\t\tlabelAccessKindEEnum = createEEnum(LABEL_ACCESS_KIND);\r\n\t}", "public abstract void generateFeatureVector(Factor<Scope> f);", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "Individual createIndividual();", "public void setFeatures(List<String> features) {\n this.features = features;\n }", "public void createPackageContents()\n {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tclarityAbstractObjectEClass = createEClass(CLARITY_ABSTRACT_OBJECT);\n\t\tcreateEAttribute(clarityAbstractObjectEClass, CLARITY_ABSTRACT_OBJECT__CLARITY_CONNECTION);\n\n\t\tclarityAddFilesEClass = createEClass(CLARITY_ADD_FILES);\n\n\t\tclarityGetBatchResultEClass = createEClass(CLARITY_GET_BATCH_RESULT);\n\n\t\tclarityGetKeyEClass = createEClass(CLARITY_GET_KEY);\n\n\t\tclarityQueryBatchEClass = createEClass(CLARITY_QUERY_BATCH);\n\n\t\tclarityReloadFileEClass = createEClass(CLARITY_RELOAD_FILE);\n\n\t\tclarityRemoveFilesEClass = createEClass(CLARITY_REMOVE_FILES);\n\n\t\tstartBatchEClass = createEClass(START_BATCH);\n\t}", "private Proxy createProxyOne() {\n\t\t\n\t\tWorkingMemoryPointer origin = createWorkingMemoryPointer (\"fakevision\", \"blibli\", \"VisualObject\");\n\t\tProxy proxy = createNewProxy(origin, 0.35f);\n\t\t\n\t\tFeatureValue red = createStringValue (\"red\", 0.73f);\n\t\tFeature feat = createFeatureWithUniqueFeatureValue (\"colour\", red);\n\t\taddFeatureToProxy (proxy, feat);\n\t\t\t\t\n\t\tFeatureValue cylindrical = createStringValue (\"cylindrical\", 0.63f);\n\t\tFeature feat2 = createFeatureWithUniqueFeatureValue (\"shape\", cylindrical);\n\t\taddFeatureToProxy (proxy, feat2);\n\t\t\n\t\tlog(\"Proxy one for belief model successfully created\");\n\t\treturn proxy;\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcharacteristicComponentEClass = createEClass(CHARACTERISTIC_COMPONENT);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__NAME);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__MODULE);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PREFIX);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__CONTAINER);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ACTIONS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ATTRIBUTES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PROPERTIES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_BACI_TYPES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_DEV_IOS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__COMPONENT_INSTANCES);\n\n\t\tactionEClass = createEClass(ACTION);\n\t\tcreateEAttribute(actionEClass, ACTION__NAME);\n\t\tcreateEAttribute(actionEClass, ACTION__TYPE);\n\t\tcreateEReference(actionEClass, ACTION__PARAMETERS);\n\n\t\tparameterEClass = createEClass(PARAMETER);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__NAME);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__TYPE);\n\n\t\tattributeEClass = createEClass(ATTRIBUTE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__REQUIRED);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__DEFAULT_VALUE);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEReference(propertyEClass, PROPERTY__BACI_TYPE);\n\t\tcreateEReference(propertyEClass, PROPERTY__DEV_IO);\n\n\t\tusedDevIOsEClass = createEClass(USED_DEV_IOS);\n\t\tcreateEReference(usedDevIOsEClass, USED_DEV_IOS__DEV_IOS);\n\n\t\tdevIOEClass = createEClass(DEV_IO);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__NAME);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__REQUIRED_LIBRARIES);\n\t\tcreateEReference(devIOEClass, DEV_IO__DEV_IO_VARIABLES);\n\n\t\tdevIOVariableEClass = createEClass(DEV_IO_VARIABLE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__NAME);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__TYPE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_READ);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_WRITE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_PROPERTY_SPECIFIC);\n\n\t\tusedBaciTypesEClass = createEClass(USED_BACI_TYPES);\n\t\tcreateEReference(usedBaciTypesEClass, USED_BACI_TYPES__BACI_TYPES);\n\n\t\tbaciTypeEClass = createEClass(BACI_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__NAME);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__ACCESS_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__BASIC_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__SEQ_TYPE);\n\n\t\tcomponentInstancesEClass = createEClass(COMPONENT_INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__CONTAINING_CARACTERISTIC_COMPONENT);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__NAME);\n\t\tcreateEReference(instanceEClass, INSTANCE__CONTAINING_COMPONENT_INSTANCES);\n\t\tcreateEReference(instanceEClass, INSTANCE__ATTRIBUTE_VALUES_CONTAINER);\n\t\tcreateEReference(instanceEClass, INSTANCE__CHARACTERISTIC_VALUES_CONTAINER);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__AUTO_START);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__DEFAULT);\n\n\t\tattributeValuesEClass = createEClass(ATTRIBUTE_VALUES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__INSTANCE_ATTRIBUTES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__CONTAINING_INSTANCE);\n\n\t\tattributeValueEClass = createEClass(ATTRIBUTE_VALUE);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__NAME);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__VALUE);\n\n\t\tcharacteristicValuesEClass = createEClass(CHARACTERISTIC_VALUES);\n\t\tcreateEAttribute(characteristicValuesEClass, CHARACTERISTIC_VALUES__PROPERTY_NAME);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__INSTANCE_CHARACTERISTICS);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__CONTAINING_INSTANCE);\n\n\t\tcharacteristicValueEClass = createEClass(CHARACTERISTIC_VALUE);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__NAME);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__VALUE);\n\n\t\tpropertyDefinitionEClass = createEClass(PROPERTY_DEFINITION);\n\n\t\t// Create enums\n\t\taccessTypeEEnum = createEEnum(ACCESS_TYPE);\n\t\tbasicTypeEEnum = createEEnum(BASIC_TYPE);\n\t\tseqTypeEEnum = createEEnum(SEQ_TYPE);\n\t}", "public void buildClassifier(Instances data) throws Exception {\n\n // can classifier handle the data?\n getCapabilities().testWithFail(data);\n\n // remove instances with missing class\n data = new Instances(data);\n data.deleteWithMissingClass();\n \n /* initialize the classifier */\n\n m_Train = new Instances(data, 0);\n m_Exemplars = null;\n m_ExemplarsByClass = new Exemplar[m_Train.numClasses()];\n for(int i = 0; i < m_Train.numClasses(); i++){\n m_ExemplarsByClass[i] = null;\n }\n m_MaxArray = new double[m_Train.numAttributes()];\n m_MinArray = new double[m_Train.numAttributes()];\n for(int i = 0; i < m_Train.numAttributes(); i++){\n m_MinArray[i] = Double.POSITIVE_INFINITY;\n m_MaxArray[i] = Double.NEGATIVE_INFINITY;\n }\n\n m_MI_MinArray = new double [data.numAttributes()];\n m_MI_MaxArray = new double [data.numAttributes()];\n m_MI_NumAttrClassInter = new int[data.numAttributes()][][];\n m_MI_NumAttrInter = new int[data.numAttributes()][];\n m_MI_NumAttrClassValue = new int[data.numAttributes()][][];\n m_MI_NumAttrValue = new int[data.numAttributes()][];\n m_MI_NumClass = new int[data.numClasses()];\n m_MI = new double[data.numAttributes()];\n m_MI_NumInst = 0;\n for(int cclass = 0; cclass < data.numClasses(); cclass++)\n m_MI_NumClass[cclass] = 0;\n for (int attrIndex = 0; attrIndex < data.numAttributes(); attrIndex++) {\n\t \n if(attrIndex == data.classIndex())\n\tcontinue;\n\t \n m_MI_MaxArray[attrIndex] = m_MI_MinArray[attrIndex] = Double.NaN;\n m_MI[attrIndex] = Double.NaN;\n\t \n if(data.attribute(attrIndex).isNumeric()){\n\tm_MI_NumAttrInter[attrIndex] = new int[m_NumFoldersMI];\n\tfor(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrInter[attrIndex][inter] = 0;\n\t}\n } else {\n\tm_MI_NumAttrValue[attrIndex] = new int[data.attribute(attrIndex).numValues() + 1];\n\tfor(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrValue[attrIndex][attrValue] = 0;\n\t}\n }\n\t \n m_MI_NumAttrClassInter[attrIndex] = new int[data.numClasses()][];\n m_MI_NumAttrClassValue[attrIndex] = new int[data.numClasses()][];\n\n for(int cclass = 0; cclass < data.numClasses(); cclass++){\n\tif(data.attribute(attrIndex).isNumeric()){\n\t m_MI_NumAttrClassInter[attrIndex][cclass] = new int[m_NumFoldersMI];\n\t for(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrClassInter[attrIndex][cclass][inter] = 0;\n\t }\n\t} else if(data.attribute(attrIndex).isNominal()){\n\t m_MI_NumAttrClassValue[attrIndex][cclass] = new int[data.attribute(attrIndex).numValues() + 1];\t\t\n\t for(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrClassValue[attrIndex][cclass][attrValue] = 0;\n\t }\n\t}\n }\n }\n m_MissingVector = new double[data.numAttributes()];\n for(int i = 0; i < data.numAttributes(); i++){\n if(i == data.classIndex()){\n\tm_MissingVector[i] = Double.NaN;\n } else {\n\tm_MissingVector[i] = data.attribute(i).numValues();\n }\n }\n\n /* update the classifier with data */\n Enumeration enu = data.enumerateInstances();\n while(enu.hasMoreElements()){\n update((Instance) enu.nextElement());\n }\t\n }", "@Test\n\tpublic void testClassifier() {\n\t\t// Ensure there are no intermediate files left in tmp directory\n\t\tFile exampleFile = FileUtils.getTmpFile(FusionClassifier.EXAMPLE_FILE_NAME);\n\t\tFile predictionsFile = FileUtils.getTmpFile(FusionClassifier.PREDICTIONS_FILE_NAME);\n\t\texampleFile.delete();\n\t\tpredictionsFile.delete();\n\t\t\n\t\tList<List<Double>> columnFeatures = new ArrayList<>();\n\t\tSet<String> inputRecognizers = new HashSet();\n\t\tList<Map<String, Double>> supportingCandidates = new ArrayList();\n\t\tList<Map<String, Double>> competingCandidates = new ArrayList();\n\t\t\n\t\t// Supporting candidates\n\t\tMap<String, Double> supportingCandidatesTipo = new HashMap();\n\t\tsupportingCandidatesTipo.put(INPUT_RECOGNIZER_ID, TIPO_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesTipo);\n\n\t\tMap<String, Double> supportingCandidatesInsegna = new HashMap();\n\t\tsupportingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, INSEGNA_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesInsegna);\n\t\t\n\t\t// Competing candidates\n\t\tMap<String, Double> competingCandidatesTipo = new HashMap();\n\t\tcompetingCandidatesTipo.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesTipo);\n\t\tMap<String, Double> competingCandidatesInsegna = new HashMap();\n\t\tcompetingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesInsegna);\n\n\t\t// Two columns: insegna and tipo from osterie_tipiche\n\t\t// A single column feature: uniqueness\n\t\tList<Double> featuresTipo = new ArrayList();\n\t\tfeaturesTipo.add(0.145833);\n\t\tcolumnFeatures.add(featuresTipo);\n\t\t\n\t\tList<Double> featuresInsegna = new ArrayList();\n\t\tfeaturesInsegna.add(1.0);\n\t\tcolumnFeatures.add(featuresInsegna);\n\t\t\n\t\t// A single input recognizer\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\n\t\t// Create the classifier\n\t\tFusionClassifier classifier \n\t\t\t= new FusionClassifier(FileUtils.getSVMModelFile(MINIMAL_FUSION_CR_NAME), \n\t\t\t\t\tcolumnFeatures, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tinputRecognizers);\n\t\tList<Double> predictions \n\t\t\t= classifier.classifyColumns(supportingCandidates, competingCandidates);\n\t\t\n\t\tboolean tipoIsNegativeExample = predictions.get(0) < -0.5;\n\t\t\n//\t\tTODO This currently doesn't work -- need to investigate\n//\t\tboolean insegnaIsPositiveExample = predictions.get(1) > 0.5;\n\t\t\n\t\tassertTrue(tipoIsNegativeExample);\n//\t\tassertTrue(insegnaIsPositiveExample);\n\t\t\n\ttry {\n\t\tSystem.out.println(new File(\".\").getCanonicalPath());\n\t\tSystem.out.println(getClass().getProtectionDomain().getCodeSource().getLocation());\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\t\n\t}", "Lab create();", "private HyperplaneSubsets() {\n }" ]
[ "0.7448475", "0.7178418", "0.70876545", "0.6753025", "0.6526324", "0.63779265", "0.63360906", "0.6280575", "0.6239544", "0.60917044", "0.6070799", "0.6036933", "0.5972219", "0.59446895", "0.5926935", "0.5908712", "0.58499306", "0.5825129", "0.58032197", "0.58032197", "0.5791781", "0.57558036", "0.5749912", "0.5725869", "0.5725869", "0.56853664", "0.56734025", "0.5664066", "0.5656721", "0.5645705", "0.5629097", "0.5602102", "0.55945873", "0.55937564", "0.5585511", "0.5543841", "0.55335784", "0.5526536", "0.5517611", "0.5505574", "0.5491646", "0.5471348", "0.54644835", "0.5445365", "0.5436441", "0.5425999", "0.5422211", "0.5420903", "0.5419205", "0.54124594", "0.54082346", "0.54071677", "0.54071677", "0.540383", "0.5395921", "0.5391679", "0.539018", "0.5378652", "0.5377225", "0.53660244", "0.53660226", "0.53616536", "0.5357922", "0.53575224", "0.53556633", "0.5353141", "0.5349183", "0.5347553", "0.5345685", "0.5345391", "0.5331413", "0.5323474", "0.53065336", "0.5302901", "0.53020793", "0.53014153", "0.52976453", "0.5284333", "0.52813804", "0.5277702", "0.52664614", "0.52636766", "0.5260535", "0.52528477", "0.525036", "0.5247021", "0.52384526", "0.52374226", "0.52364767", "0.52348304", "0.5231437", "0.52272755", "0.5225464", "0.52211833", "0.5217955", "0.52140474", "0.52134216", "0.52083194", "0.52006495", "0.52004826" ]
0.5608327
31
Creates new form AdmissionDetails
public AdmissionDetails() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "@Override\r\n\tpublic int saveNewAdmissionDetails() {\n\t\treturn 0;\r\n\t}", "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }", "private void addNewAssessment() {\n //instantiate converters object for LocalDate conversion\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n String status = editTextAssessmentStatus.getText().toString();\n String note = editTextAssessmentNote.getText().toString();\n String type = editTextAssessmentType.getText().toString();\n\n if (title.trim().isEmpty() || dueDate == null || status.trim().isEmpty() || type.trim().isEmpty()) {\n Toast.makeText(this, \"Please complete all fields\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //instantiate Assessment object\n Assessment assessment = new Assessment(courseId, title, dueDate, status, note, type);\n\n //add new assessment\n addEditAssessmentViewModel.insert(assessment);\n\n //notification\n Long longDue = c.localDateToMilliseconds(dueDate);\n makeAlarm(title+\" is due today.\", longDue);\n\n finish();\n }", "public S2SSubmissionDetailForm() {\r\n initComponents();\r\n }", "@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}", "Paper addNewPaper(PaperForm form, Long courseId)throws Exception;", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }", "public Payment saveNewPayment(PaymentFormInDTO dto){\n User user = userService.findDummyTestUser();\n Payment payment = new Payment();\n payment.setUser(user);\n PaymentForm mappedForm = beanMapper.map(dto, PaymentForm.class);\n PaymentForm savedForm = paymentFormRepository.save(mappedForm);\n payment.setForm(savedForm);\n payment.setCreationDate(LocalDateTime.now());\n if (dto.isAddToBasket()){\n payment.setStatus(PaymentStatus.CREATED);\n } else {\n payment.setStatus(PaymentStatus.COMPLETED);\n payment.setCompletedDate(LocalDateTime.now());\n }\n return paymentRepository.save(payment);\n }", "@RequestMapping(\"/{incidentId}/audit/create\")\t\n \tpublic String createAudit(@PathVariable Long incidentId, Model model) {\n \t\tmodel.addAttribute(new AuditForm());\n \t\treturn \"incident/audit/create\";\n \t}", "@Override\n\tpublic Advertisement createNewAdvertisement(String applicationDetails) {\n\t\tAdvert a = new Advert(null, applicationDetails, null);\n\t\tadman.addAd(a);\n\t\treturn a;\n\t}", "DenialReasonDto create(DenialReasonDto denialReason);", "@GetMapping ( \"/patient/foodDiary/addFoodDiaryEntry\" )\r\n @PreAuthorize ( \"hasRole('ROLE_PATIENT')\" )\r\n public String addFoodDiaryEntryForm ( final Model model ) {\r\n return \"/patient/foodDiary/addFoodDiaryEntry\";\r\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "@PostMapping(\"/appointments\")\n @ResponseStatus(HttpStatus.CREATED)\n Appointment createAppointment(@Valid @RequestBody Appointment newApp) {\n\n Appointment appointment = modelMapper.map(newApp, Appointment.class);\n appointment = appointmentService.saveAppointment(appointment);\n\n return appointment;\n }", "@GetMapping(\"/new\")\n public ModelAndView addAttributesForm() {\n return new ModelAndView(\"/sessions/session-create.html\");\n }", "@PostMapping ( BASE_PATH + \"/pharmacies\" )\n @PreAuthorize ( \"hasRole('ROLE_ADMIN') \" )\n public ResponseEntity createPharmacy ( @RequestBody final PharmacyForm pharmacyF ) {\n final Pharmacy pharmacy = new Pharmacy( pharmacyF );\n if ( null != Pharmacy.getByLocation( pharmacy.getAddress(), pharmacy.getZip() ) ) {\n return new ResponseEntity( errorResponse( \"A Pharmacy already exists at the given address\" ),\n HttpStatus.CONFLICT );\n }\n try {\n pharmacy.save();\n LoggerUtil.log( TransactionType.CREATE_PHARMACY, LoggerUtil.currentUser() );\n return new ResponseEntity( pharmacy, HttpStatus.OK );\n }\n catch ( final Exception e ) {\n return new ResponseEntity( errorResponse( \"Error occured while validating or saving \" + pharmacy.toString()\n + \" because of \" + e.getMessage() ), HttpStatus.BAD_REQUEST );\n }\n\n }", "@RequestMapping(value = \"/ad\", method = RequestMethod.POST)\n public String createAdCampaign(@RequestBody AdCampaign ad) \n {\n\n List<AdCampaign> listAd = AdDatabase.getListAd();\n listAd.add(ad);\n\n return \"success\";\n }", "public abstract void addDetails();", "public void createMission(Mission mission) throws IllegalArgumentException;", "@RequestMapping(value = \"/new\", method = RequestMethod.POST)\n public Object newAuctionx(@ModelAttribute @Valid AuctionForm form, BindingResult result) throws SQLException {\n if(result.hasErrors()) {\n StringBuilder message = new StringBuilder();\n for(FieldError error: result.getFieldErrors()) {\n message.append(error.getField()).append(\" - \").append(error.getRejectedValue()).append(\"\\n\");\n }\n ModelAndView modelAndView = (ModelAndView)newAuction();\n modelAndView.addObject(\"message\", message);\n modelAndView.addObject(\"form\", form);\n return modelAndView;\n }\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n UserAuthentication userAuth = UserAuthentication.select(UserAuthentication.class, \"SELECT * FROM user_authentication WHERE username=#1#\", username);\n AuctionWrapper wrapper = new AuctionWrapper();\n wrapper.setDemandResourceId(form.getDemandedResourceId());\n wrapper.setDemandAmount(form.getDemandedAmount());\n wrapper.setOfferResourceId(form.getOfferedResourceId());\n wrapper.setOfferAmount(form.getOfferedAmount());\n wrapper.setSellerId(userAuth.getPlayerId());\n auctionRestTemplate.post(auctionURL + \"/new\", wrapper, String.class);\n return new RedirectView(\"/player/trading\");\n }", "@GetMapping ( \"/patient/appointmentRequest/manageAppointmentRequest\" )\r\n @PreAuthorize ( \"hasRole('ROLE_PATIENT')\" )\r\n public String requestAppointmentForm ( final Model model ) {\r\n return \"/patient/appointmentRequest/manageAppointmentRequest\";\r\n }", "@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }", "@PostMapping(\"/add\")\n public EmptyResponse create(@Valid @RequestBody DiscountAddRequest request){\n discountAddService.createNewDiscount(request);\n\n return new EmptyResponse();\n }", "@PreAuthorize(\"#oauth2.hasScope('pharmacy_inventory') and hasRole('USER')\")\n\t@PostMapping(\"/inventories\")\n\t@ResponseStatus(HttpStatus.CREATED)\n\tpublic void createPharmacyInventory(@RequestBody @Validated PharmacyInventory pharmacyInventory) {\n\t\tpharmacyInventoryService.createPharmacyInventory(pharmacyInventory);\n\t}", "public void createNewPatient(String firstName, String lastName, String tz, String diagnosis, final Context context){\n final DocumentReference myDocPatient = db.collection(Constants.PATIENTS_COLLECTION_FIELD).document();\n final Patient patientToAdd = new Patient(firstName, lastName, myDocPatient.getId(), diagnosis, tz, localUser.getId());\n myDocPatient.set(patientToAdd);\n localUser.addPatientId(patientToAdd.getId());\n updateUserInDatabase(localUser);\n }", "@PostMapping( value = \"/new\", params = \"auto\" )\n public String createEventFormAutoPopulate( @ModelAttribute CreateEventForm createEventForm )\n {\n // provide default values to make user submission easier\n createEventForm.setSummary( \"A new event....\" );\n createEventForm.setDescription( \"This was autopopulated to save time creating a valid event.\" );\n createEventForm.setWhen( new Date() );\n\n // make the attendee not the current user\n CalendarUser currentUser = userContext.getCurrentUser();\n int attendeeId = currentUser.getId() == 0 ? 1 : 0;\n CalendarUser attendee = calendarService.getUser( attendeeId );\n createEventForm.setAttendeeEmail( attendee.getEmail() );\n\n return \"events/create\";\n }", "@PostMapping(\"/addAgence\")\r\n public Agence createAgence(@Valid @RequestBody Agence agence) {\r\n return agenceRepository.save(agence);\r\n }", "private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "@PostMapping(\"/createAccount\")\n public ModelAndView createNewAccount(AccountCreateDTO createDTO){\n ModelAndView modelAndView = new ModelAndView();\n\n accountService.createAccount(createDTO);\n modelAndView.addObject(\"successMessage\", \"Account has been created\");\n modelAndView.setViewName(\"accountPage\");\n\n return modelAndView;\n }", "private static final void addNewAttraction()\r\n { \r\n String attractionID;\r\n String description;\r\n double admissionFee;\r\n boolean duplicateID = false;\r\n \r\n System.out.println(\"Add New Attraction Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Attraction ID: \");\r\n attractionID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Attraction Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n System.out.println();\r\n \r\n // check attractionID with other ID's already in the system\r\n // if duplicate found print error, if no duplicate add object to array\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(attractionID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n } \r\n\r\n if(duplicateID == false)\r\n {\r\n attractionList[attractionCount] = new Attraction(attractionID, description, admissionFee);\r\n attractionCount++;\r\n }\r\n }", "public void addNewPatient(View v) {\n\tDataHandler dh;\n\ttry {\n\t dh = new DataHandler(this.getApplicationContext().getFilesDir(),\n\t\t DataHandler.PATIENT_DATA);\n\t vitalSigns\n\t\t .put(new Date(),\n\t\t\t new VitalSigns(\n\t\t\t\t Double.parseDouble(((EditText) findViewById(R.id.temperature_field))\n\t\t\t\t\t .getText().toString()),\n\t\t\t\t Double.parseDouble(((EditText) findViewById(R.id.heartRate_field))\n\t\t\t\t\t .getText().toString()),\n\t\t\t\t new BloodPressure(\n\t\t\t\t\t Integer.parseInt(((EditText) findViewById(R.id.bloodpressure_systolic_field))\n\t\t\t\t\t\t .getText().toString()),\n\t\t\t\t\t Integer.parseInt(((EditText) findViewById(R.id.bloodpressure_diastolic_field))\n\t\t\t\t\t\t .getText().toString()))));\n\t Patient pat = new Patient(personalData, vitalSigns, symptoms,\n\t\t new Date(), new Prescription());\n\n\t dh.appendNewPatient(pat);\n\t try {\n\t\tdh.savePatientsToFile(this\n\t\t\t.getApplicationContext()\n\t\t\t.openFileOutput(DataHandler.PATIENT_DATA, MODE_PRIVATE));\n\t } catch (FileNotFoundException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t }\n\t} catch (NumberFormatException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\n\tIntent newIntent = new Intent(this, DisplayActivityNurse.class);\n\tstartActivity(newIntent);\n }", "@PostMapping(value = \"/create\",consumes = MediaType.APPLICATION_JSON_VALUE)\n public InternationalTournaments create(@RequestBody InternationalTournaments create){\n return service.create(create);\n }", "RentalAgency createRentalAgency();", "private void createSubject(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // Formulareingaben prüfen\n String name = request.getParameter(\"name\");\n\n Subject subject = new Subject(name);\n List<String> errors = this.validationBean.validate(subject);\n\n // Neue Kategorie anlegen\n if (errors.isEmpty()) {\n this.subjectBean.saveNew(subject);\n }\n\n // Browser auffordern, die Seite neuzuladen\n if (!errors.isEmpty()) {\n FormValues formValues = new FormValues();\n formValues.setValues(request.getParameterMap());\n formValues.setErrors(errors);\n\n HttpSession session = request.getSession();\n session.setAttribute(\"subjects_form\", formValues);\n }\n\n response.sendRedirect(request.getRequestURI());\n }", "ClaimSoftgoal createClaimSoftgoal();", "@PostMapping(\"applicant\")\n public Applicant newApplicant(@RequestBody ApplicantDto applicantDto) {\n return applicantService.save(applicantDto);\n }", "@RequestMapping(value = \"/createReservation.htm\", method = RequestMethod.POST)\n\tpublic ModelAndView createReservation(HttpServletRequest request) {\n\t\tModelAndView modelAndView = new ModelAndView();\t\n\t\t\n\t\tif(request.getSession().getAttribute(\"userId\") != null){\n\t\t\n\t\t\t\n\t\t\tBank bank = bankDao.retrieveBank(Integer.parseInt(request.getParameter(\"bankId\")));\t\t\n\t\t\tUser user = userDao.retrieveUser(Integer.parseInt(request.getParameter(\"id\")));\n\t\t\t\n\t\t\t\n\t\t\tNotes notes5 = noteskDao.retrieveNotes(500);\n\t\t\tNotes notes10 = noteskDao.retrieveNotes(1000);\n\t\t\t\n\t\t\tint quantity5 = Integer.parseInt(request.getParameter(\"five\"));\n\t\t\tint quantity10 = Integer.parseInt(request.getParameter(\"thousand\"));\n\t\t\t\n\t\t\t\n\t\t\tReservationDetailsId reservationDetailsId5 = new ReservationDetailsId();\n\t\t\treservationDetailsId5.setNotesId(notes5.getId());\n\t\t\treservationDetailsId5.setQuantity(quantity5);\n\t\t\t\n\t\t\tReservationDetailsId reservationDetailsId10 = new ReservationDetailsId();\n\t\t\treservationDetailsId10.setNotesId(notes10.getId());\n\t\t\treservationDetailsId10.setQuantity(quantity10);\n\t\t\t\n\t\t\t\n\t\t\tReservationDetails reservationDetails5= new ReservationDetails();\n\t\t\treservationDetails5.setId(reservationDetailsId5);\n\t\t\t\n\t\t\t\n\t\t\tReservationDetails reservationDetails10= new ReservationDetails();\n\t\t\treservationDetails10.setId(reservationDetailsId10);\n\t\t\t\n\t\t\t\n\t\t\tReservation reservation = new Reservation();\t\n\t\t\treservation.setBank(bank);\n\t\t\treservation.setDate(request.getParameter(\"date\"));\n\t\t\treservation.setTimeslot(request.getParameter(\"timeslot\"));\n\t\t\treservation.setUser(user);\n\t\t\treservation.setStatus(\"incomplete\");\n\t\t\treservation.getReservationDetailses().add(reservationDetails5);\n\t\t\treservation.getReservationDetailses().add(reservationDetails10);\n\t\t\t\n\t\t\tuser.getResevations().add(reservation);\n\t\t\tuserDao.createUser(user);\n\t\t\t\n\t\t\t\n\t\t\treservationDAO.createReservation(reservation);\n\t\t\treservationDetails5.setResevation(reservation);\n\t\t\treservationDetails10.setResevation(reservation);\n\t\t\t\n\t\t\treservationDetailsId10.setResevationId(reservation.getId());\n\t\t\treservationDetailsId5.setResevationId(reservation.getId());\n\t\t\t\n\t\t\treservationDetailsDAO.createReservationDetails(reservationDetails5);\n\t\t\treservationDetailsDAO.createReservationDetails(reservationDetails10);\n\t\t\t\n\t\t\tmodelAndView.setViewName(\"result_reservation\");\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tmodelAndView.setViewName(\"login\");\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\t\n\t\treturn modelAndView;\n\t}", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "static public ApplicationFormItem createNew(int id, String shortname, boolean required, ApplicationFormItemType type,\n\t\t\t\t\t\t\t\t\t\t\t\tString federationAttribute, String perunSourceAttribute, String perunDestinationAttribute, String regex,\n\t\t\t\t\t\t\t\t\t\t\t\tList<Application.ApplicationType> applicationTypes, Integer ordnum, boolean forDelete)\t{\n\t\tApplicationFormItem afi = new JSONObject().getJavaScriptObject().cast();\n\t\tafi.setId(id);\n\t\tafi.setShortname(shortname);\n\t\tafi.setRequired(required);\n\t\tafi.setType(type);\n\t\tafi.setFederationAttribute(federationAttribute);\n\t\tafi.setPerunSourceAttribute(perunSourceAttribute);\n\t\tafi.setPerunDestinationAttribute(perunDestinationAttribute);\n\t\tafi.setRegex(regex);\n\t\tafi.setApplicationTypes(applicationTypes);\n\t\tafi.setOrdnum(ordnum);\n\t\tafi.setForDelete(forDelete);\n\t\treturn afi;}", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value=\"/add_ad\", method=RequestMethod.POST)\n\tpublic String addAd(@Valid @ModelAttribute(\"ad\") Ad ad, BindingResult bindingResult, Model model, HttpServletRequest request, RedirectAttributes redirectAttributes) {\n\t\tadValidator.validate(ad, bindingResult);\n\t\t/*if (bindingResult.hasErrors()) {\n\t\t\tSystem.out.println(bindingResult.getFieldError());\n\t\t\tmodel.addAttribute(\"whatToDo\", \"Correct your Ad\");\n\t\t\treturn \"add_ad\";\n\t\t}*/\n\t\t/*creating the photos list object to embed it in ad*/\n\t\tList<String> pics = (List<String>) request.getSession().getAttribute(\"pics\");\n\t\tList<Photo> photos = new ArrayList<>();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPhoto p = new Photo();\n\t\t\tp.setUrl(pics.get(i).toString());\n\t\t\tp.setAd(ad);\n\t\t\tphotos.add(p);\n\t\t}\n\t\tad.setPhotos(photos);\n\t\t/*save the ad object*/\n\t\tadService.saveAd(ad);\n\t\tredirectAttributes.addFlashAttribute(\"addingMessage\", \"<strong>Done !</strong> Your ad will be listed once it is validated by our moderators\");\n\t\trequest.getSession().setAttribute(\"pics\", null);\n\t\treturn \"redirect:/myads\";\n\t}", "public BtxDetailsKcFormDefinition() {\n super();\n }", "public PolicyDetailsRecord() {\n\t\tsuper(PolicyDetails.POLICY_DETAILS);\n\t}", "@PostMapping(\"/project-attachemnts\")\n @Timed\n public ResponseEntity<ProjectAttachemntDTO> createProjectAttachemnt(@RequestBody ProjectAttachemntDTO projectAttachemntDTO) throws URISyntaxException {\n log.debug(\"REST request to save ProjectAttachemnt : {}\", projectAttachemntDTO);\n if (projectAttachemntDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new projectAttachemnt cannot already have an ID\")).body(null);\n }\n ProjectAttachemntDTO result = projectAttachemntService.save(projectAttachemntDTO);\n return ResponseEntity.created(new URI(\"/api/project-attachemnts/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@CrossOrigin(origins = \"http://localhost:4200\")\n\t@RequestMapping(value = \"/api/new-surgery\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic @ResponseBody ResponseEntity<SurgeryDTO> addSurgery(@RequestBody SurgeryDTO surgeryDTO) {\n\t\tSurgery surgery = new Surgery();\n\t\tsurgery.setDate(surgeryDTO.getDate());\n\t\tsurgery.setPatient(surgeryDTO.getPatient());\n\t\tsurgery.setDescription(surgeryDTO.getDescription());\n\t\tDoctor doctor = null;\n\t\tClinic clinic = null;\n\t\ttry {\n\t\t\tdoctor = ds.findByUsername(surgeryDTO.getDoctorSurgery());\n\t\t\tclinic = doctor.getClinic();\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\tif (doctor != null) {\n\t\t\tSet<Surgery> surgeries = doctor.getSurgeries();\n\t\t\tSet<Appointment> appointments = doctor.getAppointments();\n\t\t\tboolean available = true;\n\t\t\tfor (Surgery s : surgeries) {\n\t\t\t\tif (available) {\n\t\t\t\t\tif (s.getDate().equals(surgery.getDate())) {\n\t\t\t\t\t\tavailable = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Appointment a : appointments) {\n\t\t\t\tif (available) {\n\t\t\t\t\tif (a.getDate().equals(surgery.getDate())) {\n\t\t\t\t\t\tavailable = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsurgery.setClinic(clinic);\n\t\t\tsurgery.setDuration(2);\n\t\t\tif (available)\n\t\t\t\tsurgery.getDoctor().add(doctor);\n\t\t\tSurgery surgeriesave = ss.save(surgery);\n\n\t\t\ttry {\n\t\t\t\tPatient patient = ps.findByUsername(surgeryDTO.getPatient());\n\t\t\t\tMedicalRecord mr = mrs.findByPatientId(patient.getId());\n\t\t\t\tmr.getSurgeries().add(surgeriesave);\n\t\t\t\tMedicalRecord mr2 = mrs.save(mr);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Operaciju nije moguce dodati u kartom pacijenta!\");\n\t\t\t}\n\t\t}\n\t\treturn new ResponseEntity<>(surgeryDTO, HttpStatus.OK);\n\t}", "@RequestMapping(method = RequestMethod.POST, value = {\"\",\"/\"})\r\n\tpublic ResponseEntity<FormularioDTO> add(@RequestBody @Valid Formulario formulario) throws AuthenticationException {\r\n\t\tformulario.setInstituicao(new Instituicao(authService.getDados().getInstituicaoId()));\r\n\t\treturn new ResponseEntity<>(formularioService.create(formulario), HttpStatus.CREATED);\r\n\t}", "public ActionForward createPlanTimeByYear(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tJSONObject json = new JSONObject();\n\t\tString orgId = UserContextHolder.getCurUserInfo().getUnit().getCode();\n\t\tString year = request.getParameter(\"year\");\n\t\tthis.getService().setPlanTimeByYear(year,orgId);\n\t\tjson.put(\"flag\", true);\n\t\treturn this.renderJson(response, json.toJSONString());\n\t}", "@GetMapping(\"/showFormForAdd\")\n public String showFormForAdd(Model theModel) {\n Associate a=new Associate();\n Skill b = new Skill();\n b.setAssociates(a);\n theModel.addAttribute(\"skill\", b);\n return \"skill-form\";\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public AwardAmountFNADistributionForm() {\r\n initComponents();\r\n }", "@ResponseStatus(value = HttpStatus.CREATED)\n @ApiOperation(value = \"Api Endpoint to create the patient details\")\n @PostMapping\n @LogExecutionTime\n public PatientDto createPatientRecord(@Valid @RequestBody PatientDto patientDto) {\n return patientService.createPatientRecord(patientDto);\n }", "@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }", "FORM createFORM();", "AchievementModel createAchievementModel(AchievementModel achievementModel);", "private AppointmentItem createBasicAppt() throws HarnessException{\n\t\tAppointmentItem appt = new AppointmentItem();\n\t\tappt.setSubject(\"appointment\" + ZimbraSeleniumProperties.getUniqueString());\n\t\tappt.setContent(\"content\" + ZimbraSeleniumProperties.getUniqueString());\n\t\n\n\t\t// Open the new mail form\n\t\tFormApptNew apptForm = (FormApptNew) app.zPageCalendar.zToolbarPressButton(Button.B_NEW);\n\t\tZAssert.assertNotNull(apptForm, \"Verify the new form opened\");\n\n\t\t// Fill out the form with the data\n\t\tapptForm.zFill(appt);\n\n\t\t// Send the message\n\t\tapptForm.zSubmit();\n\t\n\t\treturn appt;\n\t}", "private static LineOfCredit createLineOfCreditObjectForPost() {\n\n\t\tLineOfCredit lineOfCredit = new LineOfCredit();\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\tString notes = \"Line of credit note created via API \" + now.getTime();\n\t\tlineOfCredit.setId(\"LOC\" + now.getTimeInMillis());\n\t\tlineOfCredit.setStartDate(now.getTime());\n\t\tnow.add(Calendar.MONTH, 6);\n\t\tlineOfCredit.setExpiryDate(now.getTime());\n\t\tlineOfCredit.setNotes(notes);\n\t\tlineOfCredit.setAmount(new Money(100000));\n\n\t\treturn lineOfCredit;\n\t}", "public void createNew(PatientBO patient)\n {\n _dietTreatment = new DietTreatmentBO();\n _dietTreatment.setPatient(patient);\n setPatient(patient);\n }", "@RequestMapping(value = \"/{incidentId}/audit/create\", method = RequestMethod.POST)\n \t@Transactional\n \tpublic String createAudit(User user, @PathVariable Long incidentId, @Valid @ModelAttribute AuditForm auditForm, Errors errors, RedirectAttributes ra, Model model) {\n \t\tif (errors.hasErrors()) {\n \t\t\tmodel.addAttribute(Message.MESSAGE_ATTRIBUTE, new Message(\"incident.audit.create.failed\", Type.ERROR));\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\tIncident incident = incidentRepository.findOne(incidentId);\n \t\tAccount creator = accountRepository.findOne(user.getAccountId());\n \t\t\n \t\tAudit audit = new Audit();\n \t\taudit.setDescription(auditForm.getDescription());\t\t\n \t\taudit.setStatus(auditForm.getStatus());\n \t\taudit.setCreated(new Date());\n \t\taudit.setCreator(creator);\n \t\taudit.setPreviousStatus(incident.getStatus());\n \t\taudit.setOperatorId(user.getOperatorId());\n \t\tincident.setStatus(auditForm.getStatus());\n \t\taudit.setIncident(incident);\n \t\tincident.getAudits().add(audit);\n \t\t\n \t\tincident = incidentRepository.save(incident);\n \t\t\n \t\tra.addFlashAttribute(Message.MESSAGE_ATTRIBUTE, new Message(\"incident.audit.create.success\", Message.Type.SUCCESS));\n \t\t\n \t\treturn \"redirect:/incident/\" + incidentId;\n \t}", "public ActionForward insertVisualImpairmentAU(ActionMapping mapping, ActionForm form,\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws SADAREMDBException, SQLException {\r\n int i = 0;\r\n float visualimparment = 0;\r\n String target = \"success\";\r\n String personcode = null;\r\n double visualimparmenttotalvalue = 0;\r\n CardioPulmonaryActionForm cform = (CardioPulmonaryActionForm) form;\r\n CardioPulmonaryDTO cardioPulmonarydto = new CardioPulmonaryDTO();\r\n\r\n HttpSession session = request.getSession();\r\n personcode = (String) session.getAttribute(\"sadaremCodeAu\");\r\n String loginid = (String) session.getAttribute(\"loginid\");\r\n //DataSource ds=getDataSource(request);\r\n\r\n String systemip = request.getRemoteAddr();\r\n try {\r\n ds = getDataSource(request);\r\n if (ds == null || \"null\".equals(ds)) {\r\n ds = JNDIDataSource.getConnection();\r\n }\r\n\r\n if (cform.getVisualimpairment() != null) {\r\n visualimparment = Float.parseFloat(cform.getVisualimpairment());\r\n visualimparmenttotalvalue = Double.parseDouble(cform.getVisualimpairment());\r\n if (visualimparmenttotalvalue == 101.0) {\r\n visualimparmenttotalvalue = 100.0;\r\n }\r\n VisualImpairmentService visulaImpairmentService = VisualImpairmentServiceFactory.getVisualImparmentImpl();\r\n if (visualimparment != 0) {\r\n try {\r\n BeanUtils.copyProperties(cardioPulmonarydto, cform);\r\n } catch (InvocationTargetException ex) {\r\n ex.printStackTrace();\r\n //throw new SADAREMDBException();\r\n } catch (IllegalAccessException ex) {\r\n ex.printStackTrace();\r\n //throw new SADAREMDBException();\r\n }\r\n\r\n i = visulaImpairmentService.insertVisualImparmentAU(ds, personcode, visualimparment, systemip, loginid, cardioPulmonarydto, request);\r\n\r\n }\r\n if (i == 1) {\r\n request.setAttribute(\"msgSuccess\", \"Visual Impairment Details Added Successfully\");\r\n target = \"success\";\r\n // session.setAttribute(\"visualimpairment\",new Double(visualimparmenttotalvalue));\r\n } else {\r\n request.setAttribute(\"msgSuccess\", \"Erro in Visual Impairment Details\");\r\n }\r\n target = \"failure\";\r\n\r\n\r\n } else {\r\n target = \"success\";\r\n }\r\n } catch (SADAREMDBException sADAREMException) {\r\n target = \"exception\";\r\n actionMessages = new ActionMessages();\r\n actionMessages.add(\"sadaremexceptionmessage\", new ActionMessage(\"sadarem.exception.sadaremexceptionmessage\"));\r\n saveErrors(request, actionMessages);\r\n } catch (Exception sADAREMException) {\r\n target = \"exception\";\r\n actionMessages = new ActionMessages();\r\n actionMessages.add(\"sadaremexceptionmessage\", new ActionMessage(\"sadarem.exception.sadaremexceptionmessage\"));\r\n saveErrors(request, actionMessages);\r\n }\r\n return mapping.findForward(target);\r\n }", "@PostMapping(\"/add\")\n\tpublic MedicalHistory addMedicalHistory(@Valid @RequestBody MedicalHistory medicalHistory) {\n\t\t return doctorService.addMedicalHistory(medicalHistory); \n\t}", "public X837Ins_2320_MOA_MedicareOutpatientAdjudicationInformation() {}", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "@PostMapping(\"/attractions\")\n @Timed\n public ResponseEntity<Attraction> createAttraction(@RequestBody Attraction attraction) throws URISyntaxException {\n log.debug(\"REST request to save Attraction : {}\", attraction);\n if (attraction.getId() != null) {\n throw new BadRequestAlertException(\"A new attraction cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Attraction result = attractionRepository.save(attraction);\n return ResponseEntity.created(new URI(\"/api/attractions/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "Accessprofile create(Accessprofile accessprofile);", "@RequestMapping(value = \"/rest/accesss\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void create(@RequestBody Access access) {\n log.debug(\"REST request to save Access : {}\", access);\n accessRepository.save(access);\n }", "@Override\r\n protected void addAdditionalFormFields(AssayDomainIdForm domainIdForm, DataRegion rgn)\r\n {\n rgn.addHiddenFormField(\"providerName\", domainIdForm.getProviderName());\r\n }", "@RequestMapping(value=\"/add\", method = RequestMethod.POST)\r\n public void addAction(@RequestBody Reservation reservation){\n reservationService.create(reservation);\r\n }", "protected void contructPatientInstance() {\r\n\t\tResources resources = getApplicationContext().getResources();\r\n\t\r\n \t// constuct the patient instance\r\n try {\r\n \tsetPatientAssessment((new PatientHandlerUtils()).populateCcmPatientDetails(resources, getReviewItems()));\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\tLoggerUtils.i(LOG_TAG, \"Parse Exception thrown whilst constructing patient instance\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@PostMapping(\"/limitacion-ambientes\")\n @Timed\n public ResponseEntity<LimitacionAmbienteDTO> createLimitacionAmbiente(@Valid @RequestBody LimitacionAmbienteDTO limitacionAmbienteDTO) throws URISyntaxException {\n log.debug(\"REST request to save LimitacionAmbiente : {}\", limitacionAmbienteDTO);\n if (limitacionAmbienteDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new limitacionAmbiente cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n LimitacionAmbienteDTO result = limitacionAmbienteService.save(limitacionAmbienteDTO);\n return ResponseEntity.created(new URI(\"/api/limitacion-ambientes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public FormInfoAdministration(Calendar newTTL) {\n if (newTTL.after(Calendar.getInstance())) {\n this.TTL = newTTL;\n } else {\n throw new IllegalArgumentException(\"Given date is not later than the current time!\");\n }\n \n this.forms = new ArrayList<>();\n }", "MedicalRecord createMedicalRecord(HttpSession session, MedicalRecord medicalRecord);", "@GetMapping(\"/service_requests/new\")\n public String newServiceRequest(Model model){\n String role = userService.getRole(userService.getCurrentUserName());\n model.addAttribute(\"role\", role);\n\n model.addAttribute(\"serviceRequest\", new ServiceRequest());\n\n return \"/forms/new_servicerequest.html\";\n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "Mission createMission();", "private void addArticle() {\n\t\tAdminComposite.display(\"\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\tQuotationDetailsDTO detail = new QuotationDetailsDTO();\n\t\ttry {\n\t\t\tdetail = createQuotationDetail(detail);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (validateMandatoryParameters(detail)) {\n\t\t\taddToArticleTable(detail);\n\t\t}\n\t}", "protected void create(AttributeList attributeList) {\r\n super.create(attributeList);\r\n Date currentDate = new Date();\r\n setEnterDate((Date) currentDate.getCurrentDate());\r\n setLastUpdatedDate((Date) currentDate.getCurrentDate());\r\n SequenceImpl seq = new SequenceImpl(\"DSS_REQ_RESIG_TERM_HEADER_SEQ\", getDBTransaction());\r\n setRfrtHeaderIdPk(seq.getSequenceNumber());\r\n \r\n setBranchStatus(\"INCOMPLETE\");\r\n setDssStatus(\"INCOMPLETE\");\r\n ViewObject vo=getDBTransaction().getRootApplicationModule().findViewObject(\"ReqResUserLocVO\");\r\n if (vo!=null)\r\n {\r\n vo.remove();\r\n } \r\n FacesContext fctx = FacesContext.getCurrentInstance();\r\n ExternalContext ectx = fctx.getExternalContext();\r\n HttpSession userSession = (HttpSession) ectx.getSession(false);\r\n try {\r\n setUserIdFk(new Number(userSession.getAttribute(\"pUserId\")));\r\n setLastUpdatedBy(new Number(userSession.getAttribute(\"pUserId\")));\r\n vo=getDBTransaction().getRootApplicationModule().createViewObjectFromQueryStmt(\"ReqResUserLocVO\", \"select GIS_LOCATION_ID_FK from DSS_SM_USERS WHERE USER_ID_PK=\"+getUserIdFk());\r\n vo.executeQuery();\r\n setGisLocationIdFk(new Number( vo.first().getAttribute(0).toString() ) ); \r\n } catch (SQLException ex) {\r\n setUserIdFk(new Number(0));\r\n setLastUpdatedBy(new Number(0));\r\n }\r\n }", "public void addNewAirplane(){\r\n\t\tuiAirplaneModel.setNewAirplane(new ArrayList<UiAirplaneModel>());\r\n\t\tUiAirplaneModel plane=new UiAirplaneModel();\r\n\t\tplane.setAirplaneModel(\"\");\r\n\t\tplane.setGroupIDs(new ArrayList<String>());\r\n\t\tplane.setStatusCheck(false);\r\n\t\tplane.setApNamesList(new ArrayList<UiAirplaneModel>());\r\n\t\tplane.setAirplaneNames(\"\");\r\n\t\tplane.setStage(\"\");\r\n\t\tuiAirplaneModel.setSelectedGrp(\"\");\r\n\t\tuiAirplaneModel.getNewAirplane().add(plane);\r\n\t}", "public void createAppointment(View v) {\n checkFields();\n\n // grab the info in the fields and turn it into usable stuff\n int mon = parseInt(month.getText().toString());\n int d = Integer.parseInt(day.getText().toString());\n int y = Integer.parseInt(year.getText().toString());\n int h = Integer.parseInt(hour.getText().toString());\n int min = Integer.parseInt(minute.getText().toString());\n String AorP = AMorPM.getText().toString();\n String p = place.getText().toString();\n\n\n // all of the fields have been checked now. Create a new appointment\n //Appointment apt = new Appointment(d, mon, y, h, min, AorP, p);\n Appointment apt = new Appointment();\n apt.setDay(d);\n apt.setMonth(mon);\n apt.setYear(y);\n apt.setHour(h);\n apt.setMinute(min);\n apt.setAmOrPm(AorP);\n apt.setPlace(p);\n apt.setConfirmed(false);\n apt.setTaken(false);\n\n // push it onto the database\n DatabaseReference aptsRef = ref.child(\"appointmentList\");\n aptsRef.push().setValue(apt);\n\n // send out a toast signalling that we've successfully created an appointment\n Toast.makeText(getApplicationContext(), \"Appointment successfully created\", Toast.LENGTH_SHORT).show();\n\n // now send the user back to the main activity -> with their membership number\n Intent intent = new Intent(this, MainActivity.class);\n intent.putExtra(MESSAGE, memberNumber);\n startActivity(intent);\n }", "int insert(AbiFormsForm record);", "@RequestMapping(method = RequestMethod.POST)\n @ResponseStatus(HttpStatus.CREATED)\n public void create(@RequestBody Penalty penalty, HttpServletResponse response) throws Exception {\n Penalty p = rep.save(penalty);\n\n URI location = ServletUriComponentsBuilder\n .fromCurrentRequest().path(\"/{id}\")\n .buildAndExpand(p.getId()).toUri();\n\n response.setHeader(\"location\", location.toString());\n throw new TechnicalException(\"test\");\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //Adds the view by R method layout of the activity assessment details\n setContentView(R.layout.activity_assessment_details);\n //Gets the the intent that started the assessment details activity\n intent = getIntent();\n //Applies instance to the local database.\n db = LocalDB.getInstance(getApplicationContext());\n //Applies the term ID to the assessment details\n termID = intent.getIntExtra(\"termID\", -1);\n //Applies the course ID to the assessment details\n courseID = intent.getIntExtra(\"courseID\", -1);\n //Applies the Assessment ID to the assement details\n assessmentID = intent.getIntExtra(\"assessmentID\", -1);\n //R method to add assessment details name\n adName = findViewById(R.id.adName);\n //R method to add assessment details type\n adType = findViewById(R.id.adType);\n //R method to add assessment details Status\n adStatus = findViewById(R.id.adStatus);\n //R method to add assessment details due date\n adDueDate = findViewById(R.id.adDueDate);\n //R method to add assessment details alert\n adAlert = findViewById(R.id.adAlert);\n //R method to add assessment details edit floating action button\n adEditFAB = findViewById(R.id.adEditFAB);\n setValues();\n //Allows the editing on click listening event for the assement details edit action button\n adEditFAB.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Allows the editing of the assessment class.\n Intent intent = new Intent(getApplicationContext(), EditAssessment.class);\n intent.putExtra(\"termID\", termID);\n intent.putExtra(\"courseID\", courseID);\n intent.putExtra(\"assessmentID\", assessmentID);\n startActivity(intent);\n }\n });\n }", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method allows to create a new requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_CREATED, message = \"Returns the created requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response createRequirement(@ApiParam(value = \"Requirement entity\", required = true) Requirement requirementToCreate) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n // TODO: check whether the current user may create a new requirement\n dalFacade = service.bazaarService.getDBConnection();\n Gson gson = new Gson();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n requirementToCreate.setCreatorId(internalUserId);\n Vtor vtor = service.bazaarService.getValidators();\n vtor.useProfiles(\"create\");\n vtor.validate(requirementToCreate);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n\n // check if all components are in the same project\n for (Component component : requirementToCreate.getComponents()) {\n component = dalFacade.getComponentById(component.getId());\n if (requirementToCreate.getProjectId() != component.getProjectId()) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.VALIDATION, \"Component does not fit with project\");\n }\n }\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Create_REQUIREMENT, String.valueOf(requirementToCreate.getProjectId()), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.create\"));\n }\n Requirement createdRequirement = dalFacade.createRequirement(requirementToCreate, internalUserId);\n dalFacade.followRequirement(internalUserId, createdRequirement.getId());\n\n // check if attachments are given\n if (requirementToCreate.getAttachments() != null && !requirementToCreate.getAttachments().isEmpty()) {\n for (Attachment attachment : requirementToCreate.getAttachments()) {\n attachment.setCreatorId(internalUserId);\n attachment.setRequirementId(createdRequirement.getId());\n vtor.validate(attachment);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n dalFacade.createAttachment(attachment);\n }\n }\n\n createdRequirement = dalFacade.getRequirementById(createdRequirement.getId(), internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, createdRequirement.getCreation_time(), Activity.ActivityAction.CREATE, createdRequirement.getId(),\n Activity.DataType.REQUIREMENT, createdRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.status(Response.Status.CREATED).entity(gson.toJson(createdRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }", "@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }", "public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;", "void addconBooking(detailDTO detail) throws DataAccessException;", "public PatientAdmit_WardRecord() {\n initComponents();\n }", "@GetMapping(\"/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tSkill theSkill = new Skill();\n\t\t\n\t\ttheModel.addAttribute(\"skill\", theSkill);\n\t\t\n\t\treturn \"skill-form\";\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense addNewBusinessIndustryLicenses();", "@POST \n\t\t@Path(\"NewGrant\") \n\t\t@Consumes(MediaType.APPLICATION_FORM_URLENCODED) \n\t\t@Produces(MediaType.TEXT_PLAIN)\n\t\tpublic String insertFund( @FormParam(\"id\") String id,\n\t\t\t\t @FormParam(\"title\") String title,\n\t\t\t\t\t\t\t\t@FormParam(\"full_name\") String full_name,\n\t\t\t\t\t\t\t\t@FormParam(\"email\") String email,\n\t\t\t\t\t\t\t\t@FormParam(\"phone\") String phone,\n\t\t\t\t\t\t\t\t@FormParam(\"research_category\") String research_category,\n\t\t\t\t\t\t\t\t@FormParam(\"budget\") String budget,\n\t\t\t\t\t\t\t\t@FormParam(\"introduction\") String introduction)\n\t\n\t\t{\n\t\t \t{\n\t\t \t\tString output = Obj.insertGrantApplication(id,title,full_name,email,phone,research_category,budget,introduction); \n\t\t \t\treturn output;\n\t\t\t}\n\t\t}", "public AdmissionsBean() {\n }", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "@PostMapping(\"/enrollment\")\n\t@Transactional\n\tpublic EnrollmentDTO addEnrollment(@RequestBody EnrollmentDTO enrollmentDTO) {\n\t\t\n\t\tEnrollment enroll_student = new Enrollment();\n\t\tenroll_student.setStudentName(enrollmentDTO.studentName);\n\t\tenroll_student.setStudentEmail(enrollmentDTO.studentEmail);\t\t\n\t\tenroll_student.setCourse(courseRepository.findByCourse_id(enrollmentDTO.course_id));\n\t\t\n\t\tenrollmentRepository.save(enroll_student);\n\t\t\n\t\treturn enrollmentDTO;\n\t}", "public String post(HttpServletRequest request,\n PageModel model,\n UiUtils ui,\n UiSessionContext session) throws IOException {\n Map<String, Object> params=new HashMap<String, Object>();\n\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date birthDate = df.parse(request.getParameter(\"patient.birthdate\"), new ParsePosition(0));\n Boolean estimated = Boolean.parseBoolean(request.getParameter(\"patient.birthdateEstimated\"));\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyMMddHHmmssS\");\n Calendar calendar = Calendar.getInstance();\n Random random = new Random();\n\n String identifier = sdf.format(calendar.getInstance().getTime()) + random.nextInt(9999);\n String givenName = \"\";\n String familyName = \"\";\n String otherNames = \"\";\n\n String[] nameList = request.getParameter(\"patient.name\").split(\"\\\\s+\");\n\n for (int i=0; i<nameList.length; i++){\n if (i ==0){\n givenName = nameList[i];\n }\n else if (i==1){\n familyName = nameList[i];\n }\n else{\n otherNames += nameList[i] + \" \";\n }\n }\n\n PersonName pn = new PersonName();\n pn.setGivenName(givenName);\n pn.setFamilyName(familyName);\n pn.setMiddleName(otherNames);\n\n PatientIdentifier pi = new PatientIdentifier();\n pi.setIdentifier(identifier);\n pi.setIdentifierType(new PatientIdentifierType(2));\n pi.setLocation(session.getSessionLocation());\n pi.setDateCreated(new Date());\n pi.setCreator(session.getCurrentUser());\n\n PersonAddress pa = new PersonAddress();\n pa.setAddress1(request.getParameter(\"address.address1\"));\n pa.setAddress2(request.getParameter(\"address.telephone\"));\n pa.setCountry(request.getParameter(\"address.country\"));\n pa.setCityVillage(request.getParameter(\"address.cityVillage\"));\n pa.setStateProvince(request.getParameter(\"address.stateProvince\"));\n pa.setPreferred(true);\n pa.setCreator(session.getCurrentUser());\n pa.setDateCreated(new Date());\n\n Patient patient = new Patient();\n patient.addName(pn);\n patient.addAddress(pa);\n patient.addIdentifier(pi);\n patient.setGender(request.getParameter(\"patient.gender\"));\n patient.setBirthdate(birthDate);\n patient.setBirthdateEstimated(estimated);\n patient.setCreator(session.getCurrentUser());\n patient.setDateCreated(new Date());\n\n patient = Context.getPatientService().savePatient(patient);\n\n PersonLocation pl = new PersonLocation();\n pl.setPerson(patient);\n pl.setLocation(session.getSessionLocation());\n pl.setDescription(\"Registration\");\n Context.getService(MdrtbService.class).savePersonLocation(pl);\n\n params.put(\"patient\", patient);\n\n return \"redirect:\" + ui.pageLink(\"mdrtbdashboard\", \"enroll\", params);\n }", "public FormFieldsReport() {}", "public void newApointment(Appointment ap){\n\n this.appointments.add(ap);\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "@GetMapping(\"/trip/{id}/reservation/add\")\n public String showReservationForm(@PathVariable(\"id\") long id, Model model) {\n \n \tReservation reservation = new Reservation();\n \treservation.setAddress(new Address());\n \tTrip trip = tripRepository.findById(id).get();\n model.addAttribute(\"reservation\", reservation);\n model.addAttribute(\"trip\", trip);\n return \"add-reservation\";\n }", "@RequestMapping(value = \"/create\" , method = RequestMethod.POST, params=\"create\")\n\tpublic ModelAndView save(@Valid TripForm tripForm, BindingResult binding){\n\t\tModelAndView res;\n\t\t\t\t\n\t\tif (binding.hasErrors()) {\n\t\t\tfor(ObjectError a : binding.getAllErrors()){\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t\tres = createEditModelAndView(tripForm);\n\t\t}\n\t\telse {\n\t\t\t\tRoute route = routeService.reconstruct(tripForm);\n\t\t\t\tROUTE_CREATED = route;\n\t\t\t//\trouteService.save(route);\n\t\t\t\tres = new ModelAndView(\"redirect:/route/list.do\");\n\n\t\t}\n\treturn res;\n\t}" ]
[ "0.6296938", "0.6177433", "0.58813876", "0.57527435", "0.56032676", "0.5588216", "0.54248095", "0.53085715", "0.5305403", "0.5291991", "0.527246", "0.5262384", "0.52410406", "0.52348727", "0.52341205", "0.5216379", "0.5153567", "0.5151248", "0.5133156", "0.5132737", "0.51268035", "0.51086795", "0.5094525", "0.5088517", "0.50653577", "0.50568235", "0.5033836", "0.5023908", "0.5005178", "0.50024503", "0.5000002", "0.49799082", "0.49712437", "0.4948251", "0.49333927", "0.4928475", "0.49163368", "0.4915308", "0.4913712", "0.49133202", "0.49095127", "0.49087182", "0.48999128", "0.48905623", "0.48900118", "0.4870844", "0.4861259", "0.4857872", "0.4856738", "0.48516983", "0.48456708", "0.4843941", "0.483532", "0.48184872", "0.48162714", "0.4808828", "0.48083925", "0.4800896", "0.4794835", "0.4792818", "0.47896582", "0.478965", "0.4784592", "0.478134", "0.47782987", "0.4774937", "0.4769032", "0.47622567", "0.4752819", "0.47522214", "0.4751063", "0.47399628", "0.47347623", "0.47344422", "0.47315812", "0.4726889", "0.47241104", "0.47223267", "0.47178465", "0.4717816", "0.47117364", "0.47072932", "0.470428", "0.4702121", "0.4696393", "0.4696141", "0.4688794", "0.4683325", "0.46811152", "0.46800947", "0.4678686", "0.46716696", "0.46673238", "0.466656", "0.46647254", "0.46612462", "0.46483222", "0.4647692", "0.4646852", "0.46433818" ]
0.6445684
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory("n1_eas?zeroDateTimeBehavior=convertToNullPU").createEntityManager(); stdRegisterQuery = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery("SELECT s FROM StdRegister s"); stdRegisterList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : stdRegisterQuery.getResultList(); stdRegisterQuery1 = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery("SELECT s FROM StdRegister s"); stdRegisterList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : stdRegisterQuery1.getResultList(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jLabel2 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setUndecorated(true); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jTable1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N org.jdesktop.swingbinding.JTableBinding jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, stdRegisterList1, jTable1); org.jdesktop.swingbinding.JTableBinding.ColumnBinding columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${name}")); columnBinding.setColumnName("Name"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${department}")); columnBinding.setColumnName("Department"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${faculty}")); columnBinding.setColumnName("Faculty"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${contactNo}")); columnBinding.setColumnName("Contact No"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${email}")); columnBinding.setColumnName("Email"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${address}")); columnBinding.setColumnName("Address"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${gender}")); columnBinding.setColumnName("Gender"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${bloodGroup}")); columnBinding.setColumnName("Blood Group"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${dateOfBirth}")); columnBinding.setColumnName("Date Of Birth"); columnBinding.setColumnClass(String.class); columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${password}")); columnBinding.setColumnName("Password"); columnBinding.setColumnClass(String.class); bindingGroup.addBinding(jTableBinding); jTableBinding.bind(); jScrollPane1.setViewportView(jTable1); getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 180, 1030, 460)); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Show Register Details"); getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 110, 440, 60)); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eas/background_UI/project ui bg.png"))); // NOI18N getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1359, -1)); bindingGroup.bind(); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7322098", "0.7292275", "0.7292275", "0.7292275", "0.72872275", "0.72507876", "0.7214814", "0.7209056", "0.7197325", "0.71918863", "0.71856284", "0.7160448", "0.7148918", "0.7094831", "0.70820963", "0.70585436", "0.6988433", "0.6978755", "0.69569016", "0.6955245", "0.6946354", "0.6943946", "0.69372547", "0.69337106", "0.692833", "0.6926309", "0.6925797", "0.6913563", "0.69128335", "0.68947935", "0.68944126", "0.6892644", "0.6892526", "0.6890029", "0.68840426", "0.6883357", "0.68825054", "0.68799883", "0.6877452", "0.68761104", "0.6872709", "0.6860889", "0.685809", "0.68573505", "0.6857084", "0.6855715", "0.6854889", "0.6853878", "0.6853878", "0.68449485", "0.6837977", "0.6837628", "0.68301326", "0.68300813", "0.68270093", "0.68252003", "0.6824086", "0.68179536", "0.6817771", "0.6812606", "0.68101424", "0.6810129", "0.68094033", "0.68090034", "0.6803104", "0.67956436", "0.67945904", "0.67945004", "0.67922586", "0.6791291", "0.6790622", "0.6788877", "0.67824686", "0.6767054", "0.6766772", "0.67666554", "0.6757428", "0.6757375", "0.67544115", "0.6752288", "0.6742188", "0.6740892", "0.673854", "0.6737719", "0.67355186", "0.67291087", "0.67281425", "0.67225796", "0.6716416", "0.6716406", "0.67161214", "0.6709585", "0.67085403", "0.6704994", "0.67029893", "0.6702461", "0.6700217", "0.6700078", "0.6695004", "0.66921735", "0.6690468" ]
0.0
-1
return new TokenStreamComponents(new KiteTokenizer(reader));
@Override protected TokenStreamComponents createComponents(String fieldName, Reader reader) { KiteTokenizer source = new KiteTokenizer(reader); return new TokenStreamComponents(source, new KiteTokenFilter(source)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Tokenizer getTokenizer();", "TokenReader reader(TokenType tokenType);", "private Iterator tokenize(FreeTTSSpeakable speakable) {\n\treturn new FreeTTSSpeakableTokenizer(speakable).iterator();\n }", "WikipediaTokenizerImpl(java.io.Reader in) {\n this.zzReader = in;\n }", "public TemplexTokenMaker(java.io.Reader in) {\r\n this.zzReader = in;\r\n }", "private TokenStream createTokenStream(Reader reader) throws IOException {\n\t\tTokenStream result = new LowerCaseFilter(Version.LUCENE_48,\n\t\t\t\tnew StandardFilter(Version.LUCENE_48, new StandardTokenizer(\n\t\t\t\t\t\tVersion.LUCENE_48, reader)));\n\t\tresult = new StopFilter(Version.LUCENE_48, result,\n\t\t\t\treadCustomStopWords());\n\t\treturn new EnglishMinimalStemFilter(new EnglishPossessiveFilter(\n\t\t\t\tVersion.LUCENE_48, result));\n\t}", "private void init(){\r\n\t\t// already checked that this is a valid file and reader\r\n\t\ttokenizer = new StreamTokenizer(reader);\r\n\t\ttokenizer.slashSlashComments(true);\r\n\t\ttokenizer.slashStarComments(true);\r\n\t\ttokenizer.wordChars('_', '_');\r\n\t\ttokenizer.wordChars('.', '.');\r\n\t\ttokenizer.ordinaryChar('/');\r\n\t\ttokenizer.ordinaryChar('-');\r\n\t\tfillKeywords();\r\n\t\t//tokenChoose = new TokenChooser();\r\n\t}", "Iterator<String> getTokenIterator();", "public interface Tokenizer {\n\n List<Token> parse(String text);\n}", "public Tokenizer(Reader input) {\n this(input, false);\n }", "SentenceTokenizerImpl(java.io.Reader in) {\n this.zzReader = in;\n }", "public OtherTokenizer() {\n super();\n }", "public Tokenizer<CoreLabel> getTokenizer(Reader r) {\n return factory.getTokenizer(r);\n }", "Lexer(java.io.Reader in) {\n this.zzReader = in;\n }", "Lexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public TemplexTokenMaker(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }", "public WordTokenizer(final BufferedReader reader) {\n\t\tthis.iterator = new WordIterator(reader);\n\t}", "private void configuraTokenizer(InputStreamReader reader) {\t\t\n\t\t\t\n\t\ttokens = new StreamTokenizer(reader);\n\t\ttokens.resetSyntax();\t\t\t\t\t\t\t// Resetear la sintaxis\n\t\n\t\ttokens.commentChar('@');\t\t\t\t\t\t// '@' Delimita los comentarios\n\t\ttokens.eolIsSignificant(true);\t\t\t\t\t// EOL es significante\n\t\ttokens.slashSlashComments(false);\t\t\t\t// NO reconocer comentarios C\n\t\ttokens.slashStarComments(false);\t\t\t\t// NO reconocer comentarios C++\n\t\t//tokens.parseNumbers(); \t\t\t\t\t\t// NO parsear numeros (Los convierte a real TODOS)\n\t\t\n\t\t// Sintaxis para reconocer palabras\n\t\ttokens.wordChars('a', 'z');\t\t\t\t\t\t// Rango de caracteres que forman palabras [a-z]\n\t\ttokens.wordChars('A', 'Z');\t\t\t\t\t\t// Rango de caracteres que forman palabras [A-Z]\n\t\t//tokens.wordChars('\\u0081','\\u0082');\t\t\t// Rango de caracteres: 'ü' y 'é' (XXX NO FUNCIONA)\n\t\t//tokens.wordChars('\\u00A0','\\u00AE');\t\t\t// Rango de caracteres: 'á', 'í', 'ó', 'ú', ñ y Ñ (XXX NO FUNCIONA)\n\t\ttokens.wordChars('á','á');\t\t\t\t\t\t// Rango de caracteres: 'á' (A acentuada)\n\t\ttokens.wordChars('é','é');\t\t\t\t\t\t// Rango de caracteres: 'é' (E acentuada)\n\t\ttokens.wordChars('í','í');\t\t\t\t\t\t// Rango de caracteres: 'í' (I acentuada)\n\t\ttokens.wordChars('ó','ó');\t\t\t\t\t\t// Rango de caracteres: 'ó' (O acentuada)\n\t\ttokens.wordChars('ú','ú');\t\t\t\t\t\t// Rango de caracteres: 'ú' (U acentuada)\n\t\ttokens.wordChars('ñ','ñ');\t\t\t\t\t\t// Rango de caracteres: 'ñ' (enye minus)\n\t\ttokens.wordChars('Ñ','Ñ');\t\t\t\t\t\t// Rango de caracteres: 'Ñ' (enye mayus)\n\t\t// Sintaxis Adicional para reconocer los numeros\n\t\ttokens.wordChars('0', '9');\t\t\t\t\t\t// Rango de caracteres que forman numeros [0-9]\n\t\ttokens.wordChars('.', '.');\t\t\t\t\t\t// Rango de caracteres que forman decimales\n\t\t\n\t // Sintaxis adicional para reconocer los chars\n\t\t// Por ahora ninguna\n\t}", "PTB2TextLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public RingFactoryTokenizer() {\n this(new BufferedReader(new InputStreamReader(System.in,Charset.forName(\"UTF8\"))));\n }", "FrenchLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "private Token nextTokenWithWhites() throws IOException {\n\t\tString lexemaActual = \"\";\n\t\t// Si hay lexemas en el buffer, leemos de ahi\n\t\tif (!bufferLocal.esVacia()) {\n\t\t\treturn bufferLocal.extraer();\n\t\t} else {\n\t\t\t// Si no, leemos del Stream\t\t\t\t\t\n\t\t\tint lexema = tokens.nextToken();\n\t\t\tswitch (lexema) {\n\t\t\t\tcase StreamTokenizer.TT_WORD: \n\t\t\t\t\tlexemaActual = tokens.sval; \n\t\t\t\t\tbreak;\n\t\t\t\tcase StreamTokenizer.TT_EOF:\n\t\t\t\t\tlexemaActual = \"fin\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlexemaActual = String.valueOf((char)tokens.ttype);\n\t\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t\t// Sumamos una linea en caso de haber salto de linea\n\t\t\tif (lexemaActual.equals(\"\\n\")) \n\t\t\t\tnumeroLinea++;\t\t\t\n\t\t}\n\t\treturn new Token(lexemaActual,this.numeroLinea);\n\t}", "public WhitespaceTokenizer(Reader r)\n/* */ {\n/* 88 */ this(r, false);\n/* */ }", "@Override\n public Iterator<Token> iterator() {\n return new Iterator<Token>() {\n private int left;\n private int right;\n private TokenType type;\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n\n @Override\n public boolean hasNext() {\n lex();\n return type != null;\n }\n\n @Override\n public Token next() {\n lex();\n if (type == null) {\n throw new NoSuchElementException();\n }\n Token t = new Token(type, left, right);\n left = right;\n right = -1;\n type = null;\n return t;\n }\n\n @SuppressWarnings(\"synthetic-access\")\n private void lex() {\n int n = content.length();\n while (type == null && left < n) {\n Matcher m = TOKEN.matcher(content);\n if (m.find(left)) {\n right = m.end();\n } else {\n // Do orphaned-surrogates cause this?\n throw new AssertionError(\"Index \" + left + \" in \" + content);\n }\n int cp = content.codePointAt(left);\n switch (cp) {\n case '\\t': case '\\n': case '\\r': case ' ':\n break;\n case '/':\n if (right - left == 1) {\n type = TokenType.PUNCTUATION;\n } else {\n type = null;\n if (preserveDocComments && left + 2 < right) {\n if (content.charAt(left + 1) == '*'\n && content.charAt(left + 2) == '*') {\n type = TokenType.DOC_COMMENT;\n }\n }\n }\n break;\n case '\"': case '\\'':\n type = TokenType.STRING;\n break;\n case '.':\n type = right - left == 1\n ? TokenType.PUNCTUATION : TokenType.NUMBER;\n break;\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n type = TokenType.NUMBER;\n break;\n default:\n if (Character.isUnicodeIdentifierStart(cp) || cp == '$') {\n type = TokenType.WORD;\n right = left;\n do {\n right += Character.charCount(cp);\n } while (\n right < n\n && ((cp = content.codePointAt(right)) == '$'\n || Character.isUnicodeIdentifierPart(cp)));\n } else {\n type = TokenType.PUNCTUATION;\n }\n break;\n }\n if (type == null) {\n Preconditions.checkState(right > left);\n left = right;\n }\n }\n }\n };\n }", "Lexico(java.io.Reader in) {\n this.zzReader = in;\n }", "public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}", "Token next();", "public JavaTokenMaker(java.io.Reader in) {\n\t\tthis.zzReader = in;\n\t}", "private Token () { }", "public void Tokenizer(String s) throws FileNotFoundException\r\n {\nInputStream modelIn = new FileInputStream(\"C:/OpenNLP_models/en-token.bin\"); \r\n\t \r\n // InputStream modelIn=getClass().getResourceAsStream(\"en-token.bin\");\r\n try {\r\n TokenizerModel model = new TokenizerModel(modelIn);\r\n TokenizerME tokenizer = new TokenizerME(model);\r\n String tokens[] = tokenizer.tokenize(s);\r\n \r\n for(int i=0; i<tokens.length;i++)\r\n {\r\n System.out.println(tokens[i]);\r\n }\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n if (modelIn != null) {\r\n try {\r\n modelIn.close();\r\n }\r\n catch (IOException e) {\r\n }\r\n } \r\n } \r\n }", "public BStarTokenMaker(java.io.Reader in) {\n this.zzReader = in;\n }", "public Lex()\n {\n num_tags = Tags.num_tags;\n }", "_TurtleLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }", "@Nonnull\r\n public Token token()\r\n throws IOException,\r\n LexerException {\r\n Token tok = _token();\r\n if (getFeature(Feature.DEBUG))\r\n LOG.debug(\"pp: Returning \" + tok);\r\n return tok;\r\n }", "@Override\n public BertTokenizer build() {\n if (doStripAccents == null) {\n doStripAccents = doLowerCase;\n }\n\n if (neverSplit == null) {\n neverSplit = Collections.emptySet();\n }\n\n return new BertJapaneseTokenizer(\n originalVocab,\n vocab,\n doLowerCase,\n doTokenizeCjKChars,\n doStripAccents,\n withSpecialTokens,\n maxSequenceLength,\n neverSplit\n );\n }", "public Tokenizer(TokenHandler tokenHandler) {\n this.tokenHandler = tokenHandler;\n }", "public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }", "Lexer (Reader rdr) {\n inSource = new PushbackReader (rdr);\n lineno = 1;\n }", "public AnalizadorLexico2(java.io.Reader in) {\n this.zzReader = in;\n }", "@Override\n\tpublic TokenStream tokenStream(String fieldName, Reader reader) {\n\t\treturn new StopFilter(Version.LUCENE_35, new LowerCaseFilter(Version.LUCENE_35, new LetterTokenizer(reader)),\n\t\t\t\tstopWords, true);\n\t}", "public WordTokenizer(final InputStream is) {\n\t\tthis(new BufferedReader(new InputStreamReader(is)));\n\t}", "public LexicalAnalyzer(BufferedReader reader)\n\t{\n\t\tthis.reader = reader;\n\t\toperatorSet.add(\"*\");\n\t\toperatorSet.add(\"-\");\n\t\toperatorSet.add(\"+\");\n\t\toperatorSet.add(\"/\");\n\t\toperatorSet.add(\"=\");\n\t\toperatorSet.add(\"<\");\n\t\toperatorSet.add(\">\");\n\t\t\n\t\tsymbolSet.add(\".\");\n\t\tsymbolSet.add(\",\");\n\t\tsymbolSet.add(\";\");\n\t\tsymbolSet.add(\":\");\n\t\tsymbolSet.add(\"(\");\n\t\tsymbolSet.add(\")\");\n\t\t\n\t\tkeyWordSet.add(\"program\");\n\t\tkeyWordSet.add(\"begin\");\n\t\tkeyWordSet.add(\"end.\");\n\t\tkeyWordSet.add(\"integer\");\n\t\tkeyWordSet.add(\"array\");\n\t\tkeyWordSet.add(\"do\");\n\t\tkeyWordSet.add(\"assign\");\n\t\tkeyWordSet.add(\"to\");\n\t\tkeyWordSet.add(\"unless\");\n\t\tkeyWordSet.add(\"when\");\n\t\tkeyWordSet.add(\"in\");\n\t\tkeyWordSet.add(\"out\");\n\t\tkeyWordSet.add(\"else\");\n\t\tkeyWordSet.add(\"and\");\n\t\tkeyWordSet.add(\"or\");\n\t\tkeyWordSet.add(\"not\");\n\t\t\n\t\tsymbolTable.add(new SymbolTableEntry(\"program\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"begin\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"end.\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"integer\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"array\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"do\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"assign\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"to\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"unless\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"when\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"in\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"out\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"else\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"and\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"or\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"not\", \"keyword\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\".\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\",\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\";\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\":\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"(\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\")\", \"symbol\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"+\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"-\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"*\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"/\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"=\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\"<\", \"op\"));\n\t\tsymbolTable.add(new SymbolTableEntry(\">\", \"op\"));\n\t\t\n\t}", "HostsLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public Lexer(java.io.Reader in) {\r\n this.zzReader = in;\r\n }", "public interface Tokenizer {\n\n /**\n * Tokenize the source code and record tokens using the provided token factory.\n */\n void tokenize(TextDocument document, TokenFactory tokens) throws IOException;\n\n /**\n * Wraps a call to {@link #tokenize(TextDocument, TokenFactory)} to properly\n * create and close the token factory.\n */\n static void tokenize(Tokenizer tokenizer, TextDocument textDocument, Tokens tokens) throws IOException {\n try (TokenFactory tf = Tokens.factoryForFile(textDocument, tokens)) {\n tokenizer.tokenize(textDocument, tf);\n }\n }\n}", "@Override\n public Token nextToken(\n PushbackReader r, int cin, Tokenizer t)\n throws IOException {\n\n int i = 0;\n charbuf[i++] = (char) cin;\n int c;\n do {\n c = r.read();\n if (c < 0) {\n c = cin;\n }\n checkBufLength(i);\n charbuf[i++] = (char) c;\n } while (c != cin);\n\n String sval = copyValueOf(charbuf, 0, i);\n return new Token(TT_QUOTED, sval, 0);\n }", "public JavaTokenMaker(java.io.InputStream in) {\n\t\tthis(new java.io.InputStreamReader(in));\n\t}", "public Lexicon lex()\n/* */ {\n/* 505 */ return new BaseLexicon();\n/* */ }", "public IStrStream(String str) {\n\t// the second parameter is the set of token delimeter characters\n\ttokenizer = new StringTokenizer(str, \" \\n\\t\");\n }", "RmsLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "@Test\n public void LexerTest1() {\n String test = \"^^C B [ABC] %Hi \\r [GF_B] \\r % own line comment \\r\";\n for(Token t:(new Lexer(test)).getTokens()){\n System.out.println(t.type+\" : \"+t.value);\n }\n }", "private Token makeOneToken(String word) {\n Tokenizer tokenizer = new Tokenizer(new StringReader(word), keywords);;\n return tokenizer.next();\n }", "private Token nextToken() throws IOException {\n // Si hay lexemas en el buffer, leemos de ahi\n if (!bufferLocal.esVacia()) {\n return bufferLocal.extraer();\n }\n // Si no, leemos del Stream\n String lexemaActual = \"\";\n do {\n int lexema = tokens.nextToken();\n switch (lexema) {\n case StreamTokenizer.TT_WORD:\n lexemaActual = tokens.sval;\n break;\n case StreamTokenizer.TT_EOF:\n lexemaActual = \"fin\";\n break;\n default:\n lexemaActual = String.valueOf((char)tokens.ttype);\n break;\n }\n // Sumamos una linea en caso de haber salto de linea\n if (lexemaActual.equals(\"\\n\"))\n numeroLinea++;\n } while (lexemaActual.matches(\" |\\t|\\n|\\r\"));\n return new Token(lexemaActual,this.numeroLinea);\n }", "public static Token getNextToken() \n{\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n matchedToken = jjFillToken();\n return matchedToken;\n }\n\n for (;;)\n {\n switch(curLexState)\n {\n case 0:\n try { input_stream.backup(0);\n while (curChar <= 32 && (0x100002200L & (1L << curChar)) != 0L)\n curChar = input_stream.BeginToken();\n }\n catch (java.io.IOException e1) { continue EOFLoop; }\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 6)\n {\n jjmatchedKind = 6;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n }\n catch (java.io.IOException e1) { }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n}", "private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }", "public ReasonMLLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "Token peek();", "public AnalisadorLexico(java.io.Reader in) {\n this.zzReader = in;\n }", "void tokenize(TextDocument document, TokenFactory tokens) throws IOException;", "@Override\n public CommonTokenStream getTokens() {\n return null;\n }", "@Test\n public void parseToken() {\n }", "public Analizador_Lexico(java.io.Reader in) {\n this.zzReader = in;\n }", "public Tokenizer(Reader input, boolean ignoreCase) {\n this.buffer = new ReaderBuffer(input);\n this.ignoreCase = ignoreCase;\n }", "public JackTokenizer(File inputFile, FileReader freader){\r\n\t\tfile = inputFile;\r\n\t\treader = freader;\r\n\t\tclassdot = false;\r\n\t\tdotSymbol = false;\r\n\t\tclassdot_Str=null;\r\n\t\tisSymbol = false;\r\n\t\tinit();\r\n\t\t//advanceToNextCommand();\r\n\t}", "private static Stream<String> getTokensFromRawText(String rawText) {\n return Stream.of(rawText.split(\"\\\\s\"));\n }", "public Token getNextToken() \n{\n Token specialToken = null;\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n for (;;)\n {\n switch(curLexState)\n {\n case 0:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n if (jjmatchedPos == 0 && jjmatchedKind > 121)\n {\n jjmatchedKind = 121;\n }\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n break;\n case 2:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_2();\n if (jjmatchedPos == 0 && jjmatchedKind > 9)\n {\n jjmatchedKind = 9;\n }\n break;\n case 3:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_3();\n if (jjmatchedPos == 0 && jjmatchedKind > 9)\n {\n jjmatchedKind = 9;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n TokenLexicalActions(matchedToken);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (specialToken == null)\n specialToken = matchedToken;\n else\n {\n matchedToken.specialToken = specialToken;\n specialToken = (specialToken.next = matchedToken);\n }\n SkipLexicalActions(matchedToken);\n }\n else\n SkipLexicalActions(null);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n MoreLexicalActions();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n }\n catch (java.io.IOException e1) { }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n}", "public StringWordTokenizer(WordFinder wf) {\n\t\tsuper(wf);\n\t}", "FrenchLexer(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public JavaTokenMaker() {\n\t}", "public static Token getNextToken()\n{\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n switch(curLexState)\n {\n case 0:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 8)\n {\n jjmatchedKind = 8;\n }\n break;\n case 2:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_2();\n if (jjmatchedPos == 0 && jjmatchedKind > 8)\n {\n jjmatchedKind = 8;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n TokenLexicalActions(matchedToken);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else\n {\n SkipLexicalActions(null);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n}", "public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }", "public Lexico(java.io.Reader in) {\n this.zzReader = in;\n }", "public Lexico(java.io.Reader in) {\n this.zzReader = in;\n }", "public DLanguageLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public Token getNextToken() \n{\n Token specialToken = null;\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n for (;;)\n {\n switch(curLexState)\n {\n case 0:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n if (jjmatchedPos == 0 && jjmatchedKind > 204)\n {\n jjmatchedKind = 204;\n }\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n case 2:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_2();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n case 3:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_3();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (specialToken == null)\n specialToken = matchedToken;\n else\n {\n matchedToken.specialToken = specialToken;\n specialToken = (specialToken.next = matchedToken);\n }\n SkipLexicalActions(matchedToken);\n }\n else\n SkipLexicalActions(null);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n MoreLexicalActions();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n }\n catch (java.io.IOException e1) { }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n}", "public void tokenize(InputSource is) throws SAXException, IOException {\n if (is == null) {\n throw new IllegalArgumentException(\"InputSource was null.\");\n }\n swallowBom = true;\n this.systemId = is.getSystemId();\n this.publicId = is.getPublicId();\n this.reader = is.getCharacterStream();\n CharsetDecoder decoder = decoderFromExternalDeclaration(is.getEncoding());\n if (this.reader == null) {\n InputStream inputStream = is.getByteStream();\n if (inputStream == null) {\n throw new SAXException(\"Both streams in InputSource were null.\");\n }\n if (decoder == null) {\n this.reader = new HtmlInputStreamReader(inputStream,\n errorHandler, this, this);\n } else {\n this.reader = new HtmlInputStreamReader(inputStream,\n errorHandler, this, this, decoder);\n }\n }\n contentModelFlag = ContentModelFlag.PCDATA;\n escapeFlag = false;\n inContent = true;\n pos = -1;\n cstart = -1;\n line = 1;\n linePrev = 1;\n col = 0;\n colPrev = 0;\n colPrevPrev = 0;\n prev = '\\u0000';\n bufLen = 0;\n nonAsciiProhibited = false;\n alreadyComplainedAboutNonAscii = false;\n html4 = false;\n alreadyWarnedAboutPrivateUseCharacters = false;\n metaBoundaryPassed = false;\n tokenHandler.start(this);\n for (int i = 0; i < characterHandlers.length; i++) {\n CharacterHandler ch = characterHandlers[i];\n ch.start();\n }\n wantsComments = tokenHandler.wantsComments();\n try {\n if (swallowBom) {\n // Swallow the BOM\n char c = read();\n if (c == '\\uFEFF') {\n col = 0;\n } else {\n unread(c);\n }\n }\n dataState();\n } finally {\n systemIdentifier = null;\n publicIdentifier = null;\n doctypeName = null;\n tagName = null;\n attributeName = null;\n tokenHandler.eof();\n for (int i = 0; i < characterHandlers.length; i++) {\n CharacterHandler ch = characterHandlers[i];\n ch.end();\n }\n reader.close();\n }\n }", "LextTest(java.io.Reader in) {\n \tntk = 0; // Isto é copiado direto no construtor do lexer\n this.zzReader = in;\n }", "Token CurrentToken() throws ParseException {\r\n return token;\r\n }", "protected Tokenizer createPrefixTokenizer() {\n return new PrefixTokenizer();\n }", "public Token() {\n }", "private Token consume() throws SyntaxException {\n\t\tToken tmp = t;\n\t\tt = scanner.nextToken();\n\t\treturn tmp;\n\t}", "Token getNextToken() throws IOException, JIPSyntaxErrorException {\n StringBuilder sbTerm = new StringBuilder();\n int curChar = -1;\n int nState = STATE_NONE;\n int nTokenType = TOKEN_UNKNOWN;\n\n if (m_nextToken != null) {\n Token token = m_nextToken;\n m_nextToken = null;\n return token;\n }\n\n while (nState != STATE_END) {\n //m_lnReader.mark(2);\n //System.out.println(\"reading\");\n curChar = m_lnReader.read();\n\n //System.out.println(\"read \" + (char)curChar);\n //System.out.println(\"read \" + curChar);\n\n if (curChar == -1) // EOF\n {\n //System.out.println(\"EOF\");\n nState = STATE_END;\n// m_lnReader.pushback();\n } else {\n switch (nState) {\n case STATE_NONE:\n\n if ((curChar == LINECOMMENT_CHAR)) {\n nState = STATE_LINECOMMENT;\n } else if ((curChar == QUOTE_CHAR)) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nState = STATE_QUOTE;\n } else if ((curChar == DOUBLEQUOTE_CHAR)) {\n sbTerm.append((char) curChar);\n nState = STATE_DOUBLEQUOTE;\n } else if ((LOWERCASE_CHARS.indexOf(curChar) > -1)) {\n nState = STATE_ATOM;\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nTokenType = TOKEN_ATOM;\n } else if ((UPPERCASE_CHARS.indexOf(curChar) > -1)) {\n nState = STATE_VARIABLE;\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nTokenType = TOKEN_VARIABLE;\n }\n// else if((SIGN_CHARS.indexOf(curChar) > -1))\n// {\n// nState = STATE_SIGN;\n// sbTerm.append( (char)curChar;//String.valueOf((char)curChar);\n// nTokenType = TOKEN_SIGN;\n// }\n else if ((SPECIAL_CHARS.indexOf(curChar) > -1)) {\n nState = STATE_SPECIAL_ATOM;\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nTokenType = TOKEN_SPECIAL_ATOM;\n } else if ((NUMBER_CHARS.indexOf(curChar) > -1)) {\n nState = STATE_NUMBER;\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nTokenType = TOKEN_NUMBER;\n } else if (curChar <= 0x20) // whitespace char\n //if((WHITESPACE_CHARS.indexOf(curChar) > -1))\n {\n //System.out.println(\"TOKEN_WHITESPACE\");\n nTokenType = TOKEN_WHITESPACE;\n nState = STATE_END;\n sbTerm = new StringBuilder(\" \");\n// strTerm = \" \";\n }\n// else if(curChar < 0x20) // whitespace char\n// //if((WHITESPACE_CHARS.indexOf(curChar) > -1))\n// {\n// nState = STATE_NONE;\n// }\n else if ((SINGLETON_CHARS.indexOf(curChar) > -1)) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n\n int c = m_lnReader.read();\n if (c == -1) {\n //System.out.println(\"SINGLETON_CHARS EOF\");\n\n nState = STATE_END;\n// m_lnReader.pushback();\n } else {\n if (c == '>' && sbTerm.charAt(sbTerm.length() - 1) == '!')\n// if((strTerm + (char)c).equals(\"!>\"))\n sbTerm.append((char) c);//String.valueOf((char)c);\n else\n m_lnReader.unread(c);\n }\n\n nTokenType = TOKEN_SINGLETON;\n nState = STATE_END;\n\n//// System.out.println(\"Singleton \" + strTerm);\n// nTokenType = TOKEN_SINGLETON;\n//// }\n\n// nState = STATE_END;\n } else {\n throw syntaxError(\"invalid_character('\" + (char) curChar + \"')\");\n }\n break;\n\n case STATE_ATOM:\n if ((UPPERCASE_CHARS.indexOf(curChar) > -1) ||\n (LOWERCASE_CHARS.indexOf(curChar) > -1) ||\n (NUMBER_CHARS.indexOf(curChar) > -1)) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n } else {\n nTokenType = TOKEN_ATOM;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n }\n break;\n\n case STATE_VARIABLE:\n if ((UPPERCASE_CHARS.indexOf(curChar) > -1) ||\n (LOWERCASE_CHARS.indexOf(curChar) > -1) ||\n (NUMBER_CHARS.indexOf(curChar) > -1)) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n } else {\n nTokenType = TOKEN_VARIABLE;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n }\n break;\n\n case STATE_SPECIAL_ATOM:\n char lastChar = sbTerm.charAt(sbTerm.length() - 1);\n if ((curChar == '!' && lastChar == '<') || (curChar == '>' && lastChar == '!'))\n// if((strTerm + (char)curChar).equals(\"<!\") || (strTerm + (char)curChar).equals(\"!>\"))\n {\n sbTerm.append((char) curChar);//String.valueOf((char)c);\n nTokenType = TOKEN_SPECIAL_ATOM;\n nState = STATE_END;\n } else if ((SPECIAL_CHARS.indexOf(curChar) > -1)) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n if (sbTerm.toString().equals(OPENCOMMENT_CHAR)) {\n nState = STATE_COMMENT;\n sbTerm = new StringBuilder(\"\");\n nTokenType = TOKEN_UNKNOWN;\n }\n } else {\n nTokenType = TOKEN_SPECIAL_ATOM;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n// m_lnReader.pushback();\n }\n break;\n\n// case STATE_SIGN:\n// if((SPECIAL_CHARS.indexOf(curChar) > -1))\n// {\n// nState = STATE_SPECIAL_ATOM;\n// sbTerm.append( (char)curChar;//String.valueOf((char)curChar);\n// nTokenType = TOKEN_SPECIAL_ATOM;\n// }\n// else\n// {\n// nTokenType = TOKEN_SIGN;\n// nState = STATE_END;\n// m_lnReader.pushback();\n// }\n// break;\n\n case STATE_NUMBER:\n if (NUMBER_CHARS.indexOf(curChar) > -1) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n } else if (curChar == '.') {\n //m_lnReader.mark(2);\n int c = m_lnReader.read();\n m_lnReader.unread(c);\n// m_lnReader.pushback();\n if (NUMBER_CHARS.indexOf(c) == -1) {\n m_nextToken = new Token();\n\n m_nextToken.m_strToken = \".\";\n m_nextToken.m_nType = TOKEN_SPECIAL_ATOM;//&&TOKEN_DOT;\n nTokenType = TOKEN_NUMBER;\n nState = STATE_END;\n } else {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nState = STATE_DECIMAL;\n }\n } else if (curChar == 'e' || curChar == 'E') {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nState = STATE_EXPONENT;\n } else if (curChar == '\\'') {\n if (sbTerm.charAt(0) == '0')\n// if(strTerm.equals(\"0\"))\n nState = STATE_ASCII;\n else\n throw syntaxError(\"invalid_character('''')\");// + (char)curChar + \"')\");\n } else if (curChar == 'b') {\n if (sbTerm.charAt(0) == '0')\n// if(strTerm.equals(\"0\"))\n nState = STATE_BINARY;\n else\n throw syntaxError(\"invalid_character('''')\");// + (char)curChar + \"')\");\n } else if (curChar == 'o') {\n if (sbTerm.charAt(0) == '0')\n// if(strTerm.equals(\"0\"))\n nState = STATE_OCTAL;\n else\n throw syntaxError(\"invalid_character('''')\");// + (char)curChar + \"')\");\n } else if (curChar == 'x') {\n if (sbTerm.charAt(0) == '0')\n// if(strTerm.equals(\"0\"))\n nState = STATE_HEXADECIMAL;\n else\n throw syntaxError(\"invalid_character('''')\");// + (char)curChar + \"')\");\n } else {\n nTokenType = TOKEN_NUMBER;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n// m_lnReader.pushback();\n }\n break;\n\n case STATE_EXPONENT:\n if (curChar == '+' || curChar == '-') {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nState = STATE_INTEGER;\n } else if (NUMBER_CHARS.indexOf(curChar) > -1) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nState = STATE_INTEGER;\n } else {\n throw syntaxError(\"invalid_character('\" + (char) curChar + \"')\");\n }\n break;\n\n case STATE_DECIMAL:\n if (NUMBER_CHARS.indexOf(curChar) > -1) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n } else if (curChar == 'e' || curChar == 'E') {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nState = STATE_EXPONENT;\n } else {\n nTokenType = TOKEN_NUMBER;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n// m_lnReader.pushback();\n }\n break;\n\n case STATE_INTEGER:\n if (NUMBER_CHARS.indexOf(curChar) > -1) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n } else {\n nTokenType = TOKEN_NUMBER;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n// m_lnReader.pushback();\n }\n break;\n\n case STATE_ASCII:\n if (curChar == '\\\\') {\n sbTerm = new StringBuilder();\n// strTerm = \"\";\n curChar = m_lnReader.read();\n switch (curChar) {\n case 'a': // \\a bell\n sbTerm.append(Integer.toString(7));\n break;\n\n case 'b': // \\b backspace\n sbTerm.append(Integer.toString(8));\n break;\n\n case 'd': // \\d delete\n sbTerm.append(Integer.toString(127));\n break;\n\n case 'e': // \\e escape\n sbTerm.append(Integer.toString(27));\n break;\n\n case 'f': // \\f form feed\n sbTerm.append(Integer.toString(12));\n break;\n\n case 'n': // \\n line feed\n sbTerm.append(Integer.toString(10));\n break;\n\n case 'r': // \\r carriage return\n sbTerm.append(Integer.toString(13));\n break;\n\n case 's': // \\s space\n sbTerm.append(Integer.toString(32));\n break;\n\n case 't': // \\t tab\n sbTerm.append(Integer.toString(9));\n break;\n\n case 'v': // \\v vtab\n sbTerm.append(Integer.toString(11));\n break;\n\n case 'x': // \\xHX\n // legge il prossimo byte\n int d1 = m_lnReader.read();\n // legge il prossimo byte\n int d2 = m_lnReader.read();\n String strHexNum = (char) d1 + \"\" + (char) d2;\n\n try {\n byte[] val = ValueEncoder.hexStringToBytes(strHexNum);\n sbTerm.append(Integer.toString(val[0]));\n } catch (NumberFormatException ex) {\n throw syntaxError(\"bad_escape_sequence('\\\\x\" + strHexNum + \"')\");\n }\n\n // legge il prossimo byte\n d2 = m_lnReader.read();\n if (d2 != '\\\\') // ISO def\n m_lnReader.unread(d2);\n// m_lnReader.pushback();\n break;\n\n default: // ignora \\\n sbTerm.append(Integer.toString(curChar));\n }\n\n } else {\n sbTerm = new StringBuilder(Integer.toString(curChar));\n// strTerm = Integer.toString(curChar);\n }\n\n nTokenType = TOKEN_NUMBER;\n nState = STATE_END;\n break;\n\n case STATE_BINARY:\n if (NUMBER_BINARY_CHARS.indexOf(curChar) > -1) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n } else {\n sbTerm = new StringBuilder().append(Integer.parseInt(sbTerm.toString(), 2));\n// strTerm = \"\" + Integer.parseInt(strTerm, 2);\n nTokenType = TOKEN_NUMBER;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n// m_lnReader.pushback();\n }\n break;\n\n case STATE_OCTAL:\n if (NUMBER_OCTAL_CHARS.indexOf(curChar) > -1) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n } else {\n sbTerm = new StringBuilder().append(Integer.parseInt(sbTerm.toString(), 8));\n// strTerm = \"\" + Integer.parseInt(strTerm, 8);\n nTokenType = TOKEN_NUMBER;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n// m_lnReader.pushback();\n }\n break;\n\n case STATE_HEXADECIMAL:\n if (NUMBER_HEXADECIMAL_CHARS.indexOf(curChar) > -1) {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n } else {\n sbTerm = new StringBuilder().append(Integer.parseInt(sbTerm.toString(), 16));\n// strTerm = \"\" + Integer.parseInt(strTerm, 16);\n nTokenType = TOKEN_NUMBER;\n nState = STATE_END;\n m_lnReader.unread(curChar);\n// m_lnReader.pushback();\n }\n break;\n\n case STATE_LINECOMMENT:\n int c = curChar;\n do {\n if ((c == '\\r') || (c == '\\n'))\n break;\n\n c = m_lnReader.read();\n }\n while (c != -1);\n\n nState = STATE_NONE;\n break;\n\n case STATE_COMMENT: {\n c = curChar;\n int c1;\n do {\n c1 = c;\n c = m_lnReader.read();\n if ((c1 == '*') && (c == '/'))\n break;\n }\n while (c != -1);\n\n // torna allo stato iniziale\n nState = STATE_NONE;\n }\n break;\n\n case STATE_QUOTE:\n case STATE_DOUBLEQUOTE:\n// System.out.println(curChar);\n if (curChar == DOUBLEQUOTE_CHAR) {\n if (nState == STATE_DOUBLEQUOTE) {\n c = m_lnReader.read();\n if (c == DOUBLEQUOTE_CHAR) {\n sbTerm.append('\"');\n } else {\n // fine quoted atom\n m_lnReader.unread(c);\n// m_lnReader.pushback();\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nTokenType = (nState == STATE_QUOTE) ? TOKEN_QUOTE : TOKEN_DBLQUOTE;\n nState = STATE_END;\n }\n } else {\n sbTerm.append((char) curChar);\n }\n } else if (curChar == QUOTE_CHAR) {\n if (nState == STATE_QUOTE) {\n c = m_lnReader.read();\n if (c == QUOTE_CHAR) {\n sbTerm.append('\\'');\n } else {\n // fine quoted atom\n m_lnReader.unread(c);\n// m_lnReader.pushback();\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n nTokenType = (nState == STATE_QUOTE) ? TOKEN_QUOTE : TOKEN_DBLQUOTE;\n nState = STATE_END;\n }\n } else {\n sbTerm.append((char) curChar);\n }\n } else if (nState == STATE_QUOTE && (curChar == '\\r' || curChar == '\\n')) {\n throw syntaxError(\"carriage_return_in_quoted_atom('\" + sbTerm.toString() + \"')\");\n }\n// else if(curChar == '~') // edimburgh prolog\n// {\n// c = m_lnReader.read();\n// if(c == '~')\n// {\n// sbTerm.append( (char)c;//String.valueOf((char)c);\n// }\n// else if(c == '\\'')\n// {\n//// fine quoted atom\n// m_lnReader.pushback();\n// //sbTerm.append( (char)(c - '@');//String.valueOf((char)c - '@');\n// }\n// else if(c >= '@')\n// {\n// sbTerm.append( (char)(c - '@');//String.valueOf((char)c - '@');\n// }\n//\n// else\n// throw syntaxError(\"bad_escape_sequence('~\" + (char)c + \"')\");\n// }\n else if (curChar == '\\\\') // ISO prolog\n {\n c = m_lnReader.read();\n if (c == '\\\\') {\n sbTerm.append((char) c);//String.valueOf((char)c);\n } else if (NUMBER_CHARS.indexOf(c) > -1) {\n String strNum = \"\" + (char) c;\n // legge i prossimi numeri\n int d1 = m_lnReader.read();\n while (NUMBER_CHARS.indexOf(d1) > -1) {\n strNum += \"\" + (char) d1;\n d1 = m_lnReader.read();\n }\n\n // legge il prossimo byte\n if (d1 != '\\\\') // ISO def\n m_lnReader.unread(d1);\n// m_lnReader.pushback();\n\n try {\n BigInteger bival = new BigInteger(strNum, 8);\n\n byte val = bival.byteValue();// Byte.parseByte(strNum);\n sbTerm.append((char) val);\n } catch (NumberFormatException ex) {\n throw syntaxError(\"bad_escape_sequence('\\\\x\" + strNum + \"')\");\n }\n\n } else// if(c >= 'a')\n {\n switch (c) {\n case 'a': // \\a bell\n sbTerm.append((char) (7));\n break;\n\n case 'b': // \\b backspace\n sbTerm.append((char) (8));\n break;\n\n case 'c': // \\c empty\n //sbTerm.append( (char)(8);\n break;\n\n case 'd': // \\d delete\n sbTerm.append((char) (127));\n break;\n\n case 'e': // \\e escape\n sbTerm.append((char) (27));\n break;\n\n case 'f': // \\f form feed\n sbTerm.append((char) (12));\n break;\n\n case 'n': // \\n line feed\n sbTerm.append((char) (10));\n break;\n\n case 'r': // \\r carriage return\n sbTerm.append((char) (13));\n break;\n\n case 's': // \\s space\n sbTerm.append((char) (32));\n break;\n\n case 't': // \\t tab\n sbTerm.append((char) (9));\n break;\n\n case 'v': // \\v vtab\n sbTerm.append((char) (11));\n break;\n\n case 'x': // \\xHX\n // legge il prossimo byte\n int d1 = m_lnReader.read();\n // legge il prossimo byte\n int d2 = m_lnReader.read();\n String strHexNum = (char) d1 + \"\" + (char) d2;\n\n try {\n byte[] val = ValueEncoder.hexStringToBytes(strHexNum);\n sbTerm.append((char) (val[0]));\n } catch (NumberFormatException ex) {\n throw syntaxError(\"bad_escape_sequence('\\\\x\" + strHexNum + \"')\");\n }\n\n // legge il prossimo byte\n d2 = m_lnReader.read();\n if (d2 != '\\\\') // ISO def\n m_lnReader.unread(d2);\n// m_lnReader.pushback();\n break;\n\n case '\\r':\n case '\\n':\n break;\n\n default: // ignora \\\n sbTerm.append((char) (c));\n }\n }\n// else\n// throw syntaxError(\"bad_escape_sequence('\\\\\" + (char)c + \"')\");\n } else {\n sbTerm.append((char) curChar);//String.valueOf((char)curChar);\n }\n break;\n\n// case STATE_DOUBLEQUOTE:\n// if(curChar == DOUBLEQUOTE_CHAR)\n// {\n// sbTerm.append( (char)curChar;\n// nTokenType = TOKEN_DBLQUOTE;\n// nState = STATE_END;\n// }\n// else if(curChar == '\\r' || curChar == '\\n')\n// {\n// throw syntaxError(\"carriage_return_in_string\");\n// }\n// else if(curChar == '~') // edimburgh prolog\n// {\n// c = m_lnReader.read();\n// if(c == '~')\n// {\n// sbTerm.append( (char)c;//String.valueOf((char)c);\n// }\n// else if(c == '\"')\n// {\n// m_lnReader.pushback();\n// //sbTerm.append( (char)(c - '@');//String.valueOf((char)c - '@');\n// }\n// else if(c > '@')\n// {\n// sbTerm.append( (char)(c - '@');//String.valueOf((char)c - '@');\n// }\n// else\n// throw syntaxError(\"bad_escape_sequence('~\" + (char)c + \"')\");\n// }\n// else if(curChar == '\\\\') // ISO prolog\n// {\n// c = m_lnReader.read();\n// if(c == '\\\\')\n// {\n// sbTerm.append( (char)c;//String.valueOf((char)c);\n// }\n// else if(c >= 'a')\n// {\n// switch(c)\n// {\n// case 'a': // \\a bell\n// sbTerm.append( (char)(7);\n// break;\n//\n// case 'b': // \\b backspace\n// sbTerm.append( (char)(8);\n// break;\n//\n// case 'd': // \\d delete\n// sbTerm.append( (char)(127));\n// break;\n//\n// case 'e': // \\e escape\n// sbTerm.append( (char)(27));\n// break;\n//\n// case 'f': // \\f form feed\n// sbTerm.append( (char)(12);\n// break;\n//\n// case 'n': // \\n line feed\n// sbTerm.append( (char)(10);\n// break;\n//\n// case 'r': // \\r carriage return\n// sbTerm.append( (char)(13);\n// break;\n//\n// case 't': // \\t tab\n// sbTerm.append( (char)(9);\n// break;\n//\n// case 'v': // \\v vtab\n// sbTerm.append( (char)(11);\n// break;\n//\n// case 'x': // \\xHX\n// // legge il prossimo byte\n// int d1 = m_lnReader.read();\n// // legge il prossimo byte\n// int d2 = m_lnReader.read();\n// try\n// {\n// String strHexNum = (char)d1 + \"\" + (char)d2;\n//\n// byte[] val = ValueEncoder.hexStringToBytes(strHexNum);\n// sbTerm.append( (char)(val[0]);\n// }\n// catch(NumberFormatException ex)\n// {\n// throw syntaxError(\"bad_escape_sequence('\\\\x')\");\n// }\n//\n// // legge il prossimo byte\n// d2 = m_lnReader.read();\n// if(d2 != '\\\\') // ISO def\n// m_lnReader.pushback();\n// break;\n//\n// default: // ignora \\\n// sbTerm.append( (char)(c);\n// }\n// }\n// }\n// else\n// {\n// sbTerm.append( (char)curChar;//String.valueOf((char)curChar);\n// }\n// break;\n }\n }\n }\n\n if (sbTerm.length() > 0) {\n Token tok = new Token();\n tok.m_strToken = sbTerm.toString();\n tok.m_nType = nTokenType;\n// if(strTerm.equals(\".\"))\n// tok.m_nType = TOKEN_DOT;\n// else\n// tok.m_nType = nTokenType;\n\n return tok;\n } else {\n return null;\n }\n }", "PTB2TextLexer(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public LEParser(java.io.InputStream stream, String encoding) {\n try { jj_input_stream = new JavaCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }\n token_source = new LEParserTokenManager(jj_input_stream);\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 5; i++) jj_la1[i] = -1;\n }", "public StreamReader() {}", "public AnalizadorLexicoPaginas(java.io.Reader in) {\n this.zzReader = in;\n }", "@Override\n\tpublic TokenStream getStream() {\n\t\treturn t_stream;\n\t}", "public OpenNLPTokenizer() throws IOException {\n try (InputStream modelIn = File.getStreamFromResources(\"opennlp/SpanishPOS.bin\")) {\n openNLPTokenizerModel = new opennlp.tools.tokenize.TokenizerModel(modelIn);\n openNLPTokenizer = new TokenizerME(openNLPTokenizerModel);\n }\n }", "public void tokenize(){\n StringReader reader = null;\n try {\n //This returns a StringBuilder with the contents of the file\n reader = buildFileContents(programFile);\n //Next character in file\n int nxt = 0;\n String currentWord = \"\";\n int numAdjEquals = 0;\n int valueBeingBuilt = 0;\n boolean isValBeingBuilt = false;\n //Maps the name of a variable to its memory address on the data segment.\n HashMap<String, Integer> dataSegmentMap = new HashMap<>();\n while ((nxt = reader.read()) != -1){\n char nxtChar = (char)nxt;\n if (currentWord.length() >= 1 && !(((nxtChar >= 'a' && nxtChar <= 'z') || (nxtChar >= 'A' && nxtChar <= 'Z') || (nxtChar >= '0' && nxtChar <= '9')))) {\n //If statement in fun\n if (currentWord.equals(\"if\")){\n //System.out.println(\"if\");\n Token t = new Token(Token.Kind.IF, 0, \"IF\");\n tokenization.add(t);\n }\n //While in fun\n else if (currentWord.equals(\"while\")){\n //System.out.println(\"while\");\n Token t = new Token(Token.Kind.WHILE, 0, \"WHILE\");\n tokenization.add(t);\n }\n //ELse in fun\n else if (currentWord.equals(\"else\")){\n //System.out.println(\"else\");\n Token t = new Token(Token.Kind.ELSE, 0, \"ELSE\");\n tokenization.add(t);\n }\n //Print in fun\n else if (currentWord.equals(\"print\")){\n //System.out.println(\"print\");\n Token t = new Token(Token.Kind.PRINT, 0, \"PRINT\");\n tokenization.add(t);\n }\n //Return in fun\n else if (currentWord.equals(\"return\")){\n Token t = new Token(Token.Kind.RET, 0, \"RET\");\n tokenization.add(t);\n }\n //Start of function definition in fun\n else if (currentWord.equals(\"fun\")){\n //System.out.println(\"fun\");\n Token t = new Token(Token.Kind.FUN, 0, \"FUN\");\n tokenization.add(t);\n }\n //In a fun program, you can put $ + hex to do in-line hex code. E.g. if your program has $0a00\n //the processor will move register A contents to register 0 when it gets thee\n else if (currentWord.charAt(0) == '$'){\n Token t = new Token(Token.Kind.ASIS, 0, \"ASIS\", currentWord.substring(1));\n tokenization.add(t);\n }\n //Variable name\n else{\n //System.out.println(currentWord);\n String varName = \"\";\n //If this is a new variable, put a spot for in the data segment\n if (!dataSegmentMap.containsKey(currentWord)) {\n dataSegmentMap.put(currentWord, nextDataSegmentAddress);\n nextDataSegmentAddress = nextDataSegmentAddress + 2;\n }\n varName = \"var\" + (dataSegmentMap.get(currentWord) / 2);\n Token t = new Token(Token.Kind.ID, 0, \"ID\", varName);\n tokenization.add(t);\n }\n currentWord = \"\";\n }\n //Numeric constant\n else if ((isValBeingBuilt && !((nxtChar >= '0' && nxtChar <= '9') || (nxtChar == '_')) && currentWord.length() == 0)){\n Token t = new Token(Token.Kind.INT, valueBeingBuilt, \"INT\");\n tokenization.add(t);\n isValBeingBuilt = false;\n //System.out.println(valueBeingBuilt);\n valueBeingBuilt = 0;\n }\n if (nxtChar == '=') {\n numAdjEquals++;\n }\n //'='\n else if (numAdjEquals == 1){\n Token t = new Token(Token.Kind.EQ, 0, \"EQ\");\n tokenization.add(t);\n //System.out.println(\"=\");\n numAdjEquals = 0;\n }\n //==\n else if (numAdjEquals == 2){\n Token t = new Token(Token.Kind.EQEQ, 0, \"EQEQ\");\n tokenization.add(t);\n //System.out.println(\"==\");\n numAdjEquals = 0;\n }\n //Braces\n if (nxtChar == '{'){\n Token t = new Token(Token.Kind.LBRACE, 0, \"LBRACE\");\n tokenization.add(t);\n //System.out.println(\"{\");\n }\n else if (nxtChar == '}'){\n Token t = new Token(Token.Kind.RBRACE, 0, \"RBRACE\");\n tokenization.add(t);\n //System.out.println(\"}\");\n }\n //Parenthesis\n else if (nxtChar == '('){\n Token t = new Token(Token.Kind.LEFT, 0, \"LEFT\");\n tokenization.add(t);\n //System.out.println(\"(\");\n }\n else if (nxtChar == ')'){\n Token t = new Token(Token.Kind.RIGHT, 0, \"RIGHT\");\n tokenization.add(t);\n //System.out.println(\")\");\n }\n //Comma (for function arguments like add(x,y)\n else if (nxtChar == ','){\n Token t = new Token(Token.Kind.COMMA, 0, \"COMMA\");\n tokenization.add(t);\n }\n //Addition\n else if (nxtChar == '+'){\n Token t = new Token(Token.Kind.PLUS, 0, \"PLUS\");\n tokenization.add(t);\n //System.out.println(\"+\");\n }\n //Subtraction (multiplication not supported)\n else if (nxtChar == '-'){\n Token t = new Token(Token.Kind.MINUS, 0, \"MINUS\");\n tokenization.add(t);\n }\n //Semicolon\n else if (nxtChar == ';'){\n //System.out.println(\";\");\n }\n //Builds word\n if ((nxtChar >= 'a' && nxtChar <= 'z') || (nxtChar >= 'A' && nxtChar <= 'Z') || (nxtChar >= '0' && nxtChar <= '9' && currentWord.length() >= 1) || (nxtChar == '$' && currentWord.length() == 0)){\n currentWord = currentWord + nxtChar;\n }\n //BUilds numeric value\n if (((nxtChar >= '0' && nxtChar <= '9') || nxtChar == '_') && currentWord.length() == 0){\n if (nxtChar != '_'){\n if (!isValBeingBuilt){\n isValBeingBuilt = true;\n valueBeingBuilt = 0;\n }\n int digit = nxtChar - '0';\n valueBeingBuilt *= 10;\n valueBeingBuilt += digit;\n }\n }\n }\n //At the end, we could still be building a word or numeric value, so we do a final check\n if (currentWord.length() >= 1 ) {\n\n if (currentWord.equals(\"if\")){\n //System.out.println(\"if\");\n Token t = new Token(Token.Kind.IF, 0, \"IF\");\n tokenization.add(t);\n }\n else if (currentWord.equals(\"while\")){\n //System.out.println(\"while\");\n Token t = new Token(Token.Kind.WHILE, 0, \"WHILE\");\n tokenization.add(t);\n }\n else if (currentWord.equals(\"else\")){\n //System.out.println(\"else\");\n Token t = new Token(Token.Kind.ELSE, 0, \"ELSE\");\n tokenization.add(t);\n }\n else if (currentWord.equals(\"print\")){\n //System.out.println(\"print\");\n Token t = new Token(Token.Kind.PRINT, 0, \"PRINT\");\n tokenization.add(t);\n }\n else if (currentWord.equals(\"fun\")){\n //System.out.println(\"fun\");\n Token t = new Token(Token.Kind.FUN, 0, \"FUN\");\n tokenization.add(t);\n }\n else{\n //System.out.println(currentWord);\n Token t = new Token(Token.Kind.ID, 0, \"ID\");\n tokenization.add(t);\n if (!dataSegmentMap.containsKey(currentWord)){\n dataSegmentMap.put(currentWord, nextDataSegmentAddress);\n nextDataSegmentAddress = nextDataSegmentAddress + 2;\n }\n }\n currentWord = \"\";\n }\n else if ((isValBeingBuilt && currentWord.length() == 0)){\n Token t = new Token(Token.Kind.INT, valueBeingBuilt, \"INT\");\n tokenization.add(t);\n isValBeingBuilt = false;\n //System.out.println(valueBeingBuilt);\n valueBeingBuilt = 0;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n tokenization.add(new Token(Token.Kind.END, 0, \"\"));\n substituteStackPointerSet();\n tokenizeFunctionArguments();\n }", "public ArabicTokenizer(Reader r)\n/* */ {\n/* 83 */ this(r, false);\n/* */ }", "public static Token getNextToken() {\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop:\n for (; ; ) {\n try {\n curChar = input_stream.BeginToken();\n } catch (java.io.IOException e) {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n return matchedToken;\n }\n\n for (; ; ) {\n switch (curLexState) {\n case 0:\n try {\n input_stream.backup(0);\n while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L)\n curChar = input_stream.BeginToken();\n } catch (java.io.IOException e1) {\n continue EOFLoop;\n }\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 10) {\n jjmatchedKind = 10;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff) {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {\n matchedToken = jjFillToken();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n } catch (java.io.IOException e1) {\n }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try {\n input_stream.readChar();\n input_stream.backup(1);\n } catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n } else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n }", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public JackTokenizer(File inFile) {\n\n try {\n\n Scanner scanner = new Scanner(inFile);\n String preprocessed = \"\";\n String line = \"\";\n\n while(scanner.hasNext()){\n\n line = noComments(scanner.nextLine()).trim();\n\n if (line.length() > 0) {\n preprocessed += line + \"\\n\";\n }\n }\n\n preprocessed = noBlockComments(preprocessed).trim();\n\n //init all regex\n initRegs();\n\n Matcher m = tokenPatterns.matcher(preprocessed);\n tokens = new ArrayList<String>();\n pointer = 0;\n\n while (m.find()){\n\n tokens.add(m.group());\n\n }\n\n } catch (FileNotFoundException e) {\n\n e.printStackTrace();\n\n }\n\n currentToken = \"\";\n currentTokenType = TYPE.NONE;\n\n }", "public String[] tokenize(String review) throws IOException {\n InputStream is = new FileInputStream(\"en-token.bin\");\n\n TokenizerModel model = new TokenizerModel(is);\n\n TokenizerME tokenizer = new TokenizerME(model);\n\n String tokens[] = tokenizer.tokenize(review);\n\n is.close();\n return tokens;\n }", "Map<String, String> getTokens();", "private void tokenize() {\n\t\t//Checks char-by-char\n\t\tcharLoop:\n\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t//Check if there's a new line\n\t\t\tif (input.charAt(i) == '\\n') {\n\t\t\t\ttokens.add(LINE);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Iterate through the tokens and find if any matches\n\t\t\tfor (Token st : Token.values()) {\n\t\t\t\t//Do not test for these because they have separate cases below\n\t\t\t\tif (st.equals(NUMBER) || st.equals(VARIABLE_NAME) || st.equals(STRING) || st.equals(LINE)) continue;\n\t\t\t\t//Skip whitespace & newlines\n\t\t\t\tif (Character.isWhitespace(input.charAt(i))) continue;\n\t\t\t\t\n\t\t\t\t//Checks for multi-character identifiers\n\t\t\t\ttry {\n\t\t\t\t\tif (input.substring(i, i + st.getValue().length()).equals(st.getValue())) {\n\t\t\t\t\t\ttokens.add(st);\n\t\t\t\t\t\ti += st.getValue().length()-1;\n\t\t\t\t\t\tcontinue charLoop;\n\t\t\t\t\t}\n\t\t\t\t} catch(StringIndexOutOfBoundsException e) {}\n\t\t\t\t//Ignore this exception because the identifiers might be larger than the input string.\n\t\t\t\t\n\t\t\t\t//Checks for mono-character identifiers\n\t\t\t\tif (st.isOneChar() && input.charAt(i) == st.getValue().toCharArray()[0]) {\n\t\t\t\t\ttokens.add(st);\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a string\n\t\t\tif (input.charAt(i) == '\"') {\n\t\t\t\ti++;\n\t\t\t\tif (i >= input.length()) break;\n\t\t\t\tStringBuilder string = new StringBuilder();\n\t\t\t\twhile (input.charAt(i) != '\"') {\n\t\t\t\t\tstring.append(input.charAt(i));\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tstring.insert(0, \"\\\"\");\n\t\t\t\tstring.append(\"\\\"\");\n\t\t\t\ttokens.add(STRING);\n\t\t\t\tmetadata.put(tokens.size()-1, string.toString());\n\t\t\t\tcontinue charLoop;\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a number\n\t\t\tif (Character.isDigit(input.charAt(i))) {\n\t\t\t\tStringBuilder digits = new StringBuilder();\n\t\t\t\twhile (Character.isDigit(input.charAt(i)) || input.charAt(i) == '.') {\n\t\t\t\t\tdigits.append(input.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t}\n\t\t\t\tif (digits.length() != 0) {\n\t\t\t\t\ttokens.add(NUMBER);\n\t\t\t\t\tmetadata.put(tokens.size()-1, digits.toString());\n\t\t\t\t\ti--;\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a variable reference/creation\n\t\t\tif (Character.isAlphabetic(input.charAt(i)) && !Character.isWhitespace(input.charAt(i))) {\n\t\t\t\tStringBuilder varName = new StringBuilder();\n\t\t\t\twhile ( ( Character.isAlphabetic(input.charAt(i)) || Character.isDigit(input.charAt(i)) )\n\t\t\t\t\t\t&& !Character.isWhitespace(input.charAt(i))) {\n\t\t\t\t\tvarName.append(input.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t}\n\t\t\t\tif (varName.length() != 0) {\n\t\t\t\t\ttokens.add(VARIABLE_NAME);\n\t\t\t\t\tmetadata.put(tokens.size()-1, varName.toString());\n\t\t\t\t\ti--;\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public MeinParser(java.io.InputStream stream, String encoding) {\n try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }\n token_source = new MeinParserTokenManager(jj_input_stream);\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 5; i++) jj_la1[i] = -1;\n }", "public interface TokenSource {\n\n /**\n * Returns next token without advancing position. Returns null if EOF was reached.\n * @return next token\n * @throws SyntaxException When the input contains errors.\n */\n Token peekToken() throws SyntaxException;\n\n /**\n * Returns next token and advances position. Returns null if EOF was reached.\n * @return next token\n * @throws SyntaxException When the input contains errors.\n */\n Token readToken() throws SyntaxException;\n\n /**\n * Skips next token.\n * @throws SyntaxException When the input contains errors.\n */\n void skipToken() throws SyntaxException;\n\n /** Gets current position in the source code. */\n CodePosition getCodePosition();\n}", "static void init(InputStream input) {\r\n reader = new BufferedReader(new InputStreamReader(input));\r\n tokenizer = new StringTokenizer(\"\");\r\n }" ]
[ "0.7040475", "0.69054544", "0.6741757", "0.66931635", "0.66552114", "0.66389537", "0.6562251", "0.65609103", "0.6552156", "0.6539046", "0.65269715", "0.6486498", "0.6432503", "0.64272714", "0.64272714", "0.6424155", "0.63991386", "0.6374946", "0.6345255", "0.6314437", "0.6254864", "0.6242208", "0.6239544", "0.62362283", "0.62301075", "0.6143296", "0.6117862", "0.6110312", "0.609622", "0.60825485", "0.6080102", "0.60770094", "0.6075781", "0.6060189", "0.6011218", "0.59943783", "0.59851384", "0.59819275", "0.59692085", "0.5951785", "0.5949047", "0.592715", "0.59244853", "0.5910611", "0.5909114", "0.59027535", "0.5894531", "0.5893729", "0.58586705", "0.5858209", "0.5857594", "0.5849226", "0.58286566", "0.582566", "0.5794895", "0.5791355", "0.57887095", "0.57853776", "0.57780355", "0.5776057", "0.57620984", "0.57580394", "0.5747277", "0.57267225", "0.57231134", "0.57187825", "0.5715139", "0.56979024", "0.56977195", "0.5688079", "0.56848717", "0.5682206", "0.5675394", "0.5675394", "0.56740046", "0.5671797", "0.56706214", "0.56525123", "0.5646618", "0.56393045", "0.5637475", "0.5623275", "0.56127375", "0.55929697", "0.55914265", "0.5590138", "0.55896527", "0.558355", "0.55833685", "0.55831474", "0.5579385", "0.55651844", "0.5563603", "0.5559673", "0.55584705", "0.5543284", "0.5535413", "0.5535171", "0.5534241", "0.55307424" ]
0.7851767
0
pg2 wird Visible gemacht
@Override public void run() { pg2.setVisibility(View.VISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void view() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getConnection(url, databaseUser, databaseUserPass);\n//\t\t\tStatement s = connection.createStatement();\n\t\t\ts = connection.createStatement();\n\t\t\tResultSet rs = s.executeQuery(\"select * from account;\");\n\t\t\t// while (rs.next()) {\n\t\t\tString someobject = rs.getString(\"name\") + \" \" + rs.getString(\"password\");\n\t\t\tSystem.out.println(someobject);\n\t\t\toutput.setText(someobject);\n\t\t\t// output.setText(rs);\n\t\t\t// System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"message\"));\n\t\t\t// rs.getStatement();\n\t\t\t// }\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\tPostgresJDBC();\n\t}", "@Override\n\tpublic void displayTheDatabase() {\n\t\t\n\t}", "public DBViewAllPilot() {\n\t\ttry {\n\t\tstatement = connection.createStatement(); \n\t\tviewAll(); //call the viewAll function; \n\t\t\n\t}catch(SQLException ex) {\n\t\tSystem.out.println(\"Database connection failed DBViewAllAircraft\"); \n\t}\n}", "@Test(timeout = 4000)\n public void test062() throws Throwable {\n DBUtil.checkReadOnly(\"SELECT pronae,oid FROM pg_roc WHEE \", true);\n }", "public void updateVisible (Connection conn) throws SQLException {\r\n\r\n\t\tString query = \r\n\t\t\t\"update gene_list_analyses \"+\r\n\t\t\t\"set visible = 1 \"+\r\n\t\t\t\"where analysis_id = ?\";\r\n\r\n\t\tlog.debug(\"in updateVisible. analysis = \"+this.getDescription());\r\n \t\tPreparedStatement pstmt = conn.prepareStatement(query, \r\n\t\t\t\t\t\tResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\t\t\tResultSet.CONCUR_UPDATABLE);\r\n\t\tpstmt.setInt(1, this.getAnalysis_id());\t\r\n\t\tpstmt.executeUpdate();\r\n\t}", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n DBUtil.checkReadOnly(\"SELECT pronae,oid FROM pg_roc WHEE \", false);\n }", "boolean isAccessible(Object dbobject) throws HsqlException {\n return isAccessible(dbobject, GranteeManager.ALL);\n }", "private static Connection baglan() {\n Connection baglanti = null;\n try {\n baglanti = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/SogutucuKontrolCihazi\",\n \"postgres\", \"159753\");\n if (baglanti != null) //bağlantı varsa\n System.out.println(\"Veritabanına bağlandı!\");\n else\n System.out.println(\"Bağlantı girişimi başarısız!\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return baglanti;\n }", "private boolean _autoShow() throws SessionException\n {\n if (this._argTable.get(CMD.PUSH) != null)\n return this._autoShowPush();\n else if (this._argTable.get(CMD.QUERY) != null)\n return this._autoShowQuery();\n else \n return this._autoShowPull();\n }", "public void updateStatusVisible (DataSource pool,String status) throws SQLException {\r\n Connection conn=null;\r\n\t\ttry{\r\n conn=pool.getConnection();\r\n String query = \r\n \"update gene_list_analyses \"+\r\n \"set status = ?, visible = 1\"+\r\n \"where analysis_id = ?\";\r\n\r\n log.debug(\"in updateStatusVisible. analysis = \"+this.getDescription());\r\n PreparedStatement pstmt = conn.prepareStatement(query, \r\n ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n pstmt.setString(1, this.getStatus());\r\n pstmt.setInt(2, this.getAnalysis_id());\t\r\n pstmt.executeUpdate();\r\n }catch(SQLException e){\r\n \r\n }finally{\r\n if (conn != null) {\r\n try { conn.close(); } catch (SQLException e) { ; }\r\n conn = null;\r\n }\r\n }\r\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public static String view() throws SQLException, ClassNotFoundException {\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\tString displayText = Display.run(conn);\n\t\tconn.close();\n\t\treturn displayText;\n\t}", "public void consoleDisplay() throws SQLException, ClassNotFoundException {\n ConsoleClass obj = new ConsoleClass();\n \n obj.consoleDisplay(this);\n// if(dbStatus == true) {\n// obj.getData(this);\n// }\n \n }", "public static void main(String[] args) {\n\n String select = \"select direccion from cliente where idCliente = 3;\", update;\n Connection conexion = BddConnection.newConexionPostgreSQL(\"Ventas\");\n PreparedStatement sentencia;\n Direccion dirCliente;\n ResultSet resul;\n\n try {\n sentencia = conexion.prepareStatement(select);\n resul = sentencia.executeQuery();\n if (resul.next()){\n dirCliente = Direccion.newInstance(resul.getString(1));\n dirCliente.getPoblacion().getProvincia().setProvincia(\"Granada update\");\n update = \"update cliente set direccion = \" + dirCliente.getStringTypeT_Direccion() + \" where idCliente = 3\";\n sentencia = conexion.prepareStatement(update);\n sentencia.executeUpdate();\n }\n resul.close();\n sentencia.close();\n conexion.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n public boolean isVisible()\n {\n return true;\n }", "public void setToGridPermanently(){\n this.isPermanent = true;\n }", "private boolean inDatabase() {\r\n \t\treturn inDatabase(0, null);\r\n \t}", "void query9InterativaPrint(List<ParQuery9> pares);", "@Override\r\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\r\n\t}", "public static void showAllVillaNotDuplicate(){\n showAllNameNotDuplicate(FuncGeneric.EntityType.VILLA);\n }", "public void show() {\r\n\t\ttry {\r\n\t\t\tdisplayTable();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Show Table SQL Exception: \" + e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\n\t}", "String showPreparedTransactions();", "public void showInfo() throws SQLException { //to show the info when the page is loaded\n \tshowInfoDump();\n \tshowInfoMatl();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "public void show() throws SQLException {\n int done = 0;\n\n show_stmt.registerOutParameter(2, java.sql.Types.INTEGER);\n show_stmt.registerOutParameter(3, java.sql.Types.VARCHAR);\n\n for (;;) {\n show_stmt.setInt(1, 32000);\n show_stmt.executeUpdate();\n System.out.print(show_stmt.getString(3));\n if ((done = show_stmt.getInt(2)) == 1) {\n break;\n }\n }\n }", "private void affiche1(JFrame f) throws ClassNotFoundException, SQLException {\n\t\tMyConnexion.affiche(\"select * from bibliotheque.livre where etat='R'\", f);\n\t}", "private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}", "public void actionPerformed(boolean showSQL) {\n String selection = (String)this.getSelectedItem();\n\n try {\n String cursorId = \"\";\n \n if (selection.equals(\"MTS Dispatchers\")) { \n cursorId = \"dispatchers.sql\";\n }\n \n if (selection.equals(\"MTS Shared Servers\")) {\n cursorId = \"sharedServers.sql\";\n }\n\n Cursor myCursor = new Cursor(cursorId,true);\n Parameters myPars = new Parameters();\n ExecuteDisplay.executeDisplay(myCursor,myPars, scrollP, statusBar, showSQL, resultCache, true);\n }\n catch (Exception e) {\n ConsoleWindow.displayError(e,this);\n }\n }", "public static boolean startProcess() {\n String query = \"UPDATE producto_inicial SET procesado2=2\";\n try (Connection conn = ConnectionPool.getInstance().getConnection();\n PreparedStatement st2 = conn.prepareStatement(query);) {\n st2.executeUpdate();\n st2.close();\n conn.close();\n return true;\n } catch (SQLException e) {\n e.printStackTrace();\n return false;\n }\n }", "private void accederpro() {\n\t\tVprosesor prof= new Vprosesor ();\n\t\t\n\t\tControladorprofesor b = new Controladorprofesor(prof);\n\t\tprof.setControladorprofesor(b);\n\t\tprof.setVisible(true);\n\t\tvb.dispose();\n\t\t\n\t}", "public void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "@VTID(11)\r\n boolean getVisibleInPivotTable();", "@Override\n public void setVisible(boolean arg0)\n {\n \n }", "public static void gExport() throws SQLException, ClassNotFoundException, IOException{\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\tGephi g = new Gephi(conn);\n\t\tg.gpMake();\n\t\tconn.close();\n\t}", "public void afficherStatistiqueProfil() throws SQLException{\n this.statistiqueProfil.maj();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(statistiqueProfil);\n }", "public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "public void afficherPageDesJeux() throws SQLException{\n this.pageDesJeux.maj();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(pageDesJeux);\n }", "void updatePQ() {\n for (int i = 0; i < 1010; i++) {\n PQ_show[i].setVisible(false);\n queueVis[i] = false;\n }\n for (int i = 0; i < pq.size(); i++) {\n PQ_show[i].setText(String.format(\"%d --> %.1f\", pq.arr[i].node, pq.arr[i].dist));\n PQ_show[i].setVisible(true);\n queueVis[i] = true;\n }\n }", "public ResultSet Editbroker(Long broker_id) throws SQLException {\n\t\r\nSystem.out.println(\"edit broker\");\r\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n}", "public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}", "public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "public ResultSet Rebroker2()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='not approved'\");\r\n\treturn rs;\r\n}", "private boolean isAllowed(ProcessInstance instance) {\r\n return true; // xoxox\r\n }", "public void afficherProfil() throws SQLException{\n this.profil.maj();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(profil);\n }", "public void setShowDisplaySlotPanel(boolean b) {\r\n\r\n }", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "public NuevoEmpleadoScreen() {\n initComponents();\n try {\n Class.forName(\"org.postgresql.Driver\");\n conn = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"root\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e, \"Error en conexión\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public boolean isSnapshottable() {\r\n return false;\r\n }", "@Override\r\n public void onShowQueryResult() {\n }", "@Override\n\tpublic boolean isPoolable()\n\t\tthrows SQLException {\n return false;\n }", "@Override\n\tpublic void local_queryTopGiver() {\n\t\tqueryTopGiver();\n\t\t\n\t}", "public void afficherInvitationAmiProfil() throws SQLException{\n this.invitationAmiProfil.maj();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(invitationAmiProfil);\n }", "@Override\n\t\t\t\t\t\t\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\t\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t\t\t\t\t\t\tpd.show();\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\t\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t\t\t\t\t\t\tpd.show();\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\t\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t\t\t\t\t\t\tpd.show();\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\r\n\tpublic boolean isVisible() {\n\t\treturn false;\r\n\t}", "public void setVisible(boolean b) {\n if (b) {\n loadTable();\n }\n }", "public void afficherPartie() throws SQLException{\n this.partie.maj();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(partie);\n }", "private void affiche(JFrame f) throws ClassNotFoundException, SQLException {\n\t\tMyConnexion.affiche(\"select * from bibliotheque.livre where etat='D'\", f);\n\t}", "public abstract boolean isVisible();", "public abstract boolean isVisible();", "@Override\n\t\t\t\t\t\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t\t\t\t\t\tpd.show();\n\t\t\t\t\t\t\t\t\t\t}", "void showDataGeneratedMsg();", "@Override\n\tpublic void setVisible(boolean b) {\n\t\t\n\t}", "public boolean isRecordSetVisible(GraphicsType type) {\r\n\t\tboolean result = false;\r\n\t\tswitch (type) {\r\n\t\tcase COMPARE:\r\n\t\t\tresult = this.compareTabItem != null && !this.compareTabItem.isDisposed() && this.compareTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase HISTO:\r\n\t\t\tresult = this.histoGraphicsTabItem != null && !this.histoGraphicsTabItem.isDisposed() && this.histoGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase UTIL:\r\n\t\t\tresult = this.utilGraphicsTabItem != null && !this.utilGraphicsTabItem.isDisposed() && this.utilGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase NORMAL:\r\n\t\tdefault:\r\n\t\t\tresult = this.graphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public String description()\n {\n return \"Generate Postgres C++ Code ODBC\";\n }", "@Override\n public boolean isVisible(Field field) {\n return true;\n }", "public void Found_project_from_DATABASE(int id){\n print_pro();\n// return project;\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void markOdbPsCreate() throws JNCException {\n markLeafCreate(\"odbPs\");\n }", "default void show1() {\n\t\t\n\t\t\n\t}", "boolean isVisible();", "boolean isVisible();", "public void afficherAdministrateur() throws SQLException{\n this.administrateur.majAffichage();\n VBox fp = ((VBox) windows.getRoot());\n fp.getChildren().remove(1);\n fp.getChildren().add(administrateur);\n }", "public boolean isVisible() {\n return true;\n }", "public String[] browseAdmin(Session session) throws RemoteException{\n\t\tSystem.out.println(\"Server model invokes browseAdmin() method\");\n\t\treturn null;\n\t\t\n\t}", "@Override\n public void showDiaryFromDB() {\n diaryPresenter.showDiaryFromDB();\n }", "public boolean xdbManaged() { throw new UnsupportedOperationException(); }", "public boolean xdbManaged() { throw new UnsupportedOperationException(); }", "public boolean xdbManaged() { throw new UnsupportedOperationException(); }", "public v_home() {\n initComponents();\n koneksi = DatabaseConnection.getKoneksi(\"localhost\", \"5432\", \"postgres\", \"posgre\", \"db_hesco\");\n showData();\n showStok();\n }", "void printGrid() {\n GridHelper.printGrid(hiddenGrid);\n }", "protected void creationAppr(Connection con) {\n try {\n PreparedStatement pst = con.prepareStatement(\"SELECT identifiant, transitionIdentifier, fixIdentifiant, icaoCodeFix, secCodeFix, subCodeFix, aeroportIdentifiant, icaoCode, sequenceNumber FROM procedure where typeProcedure like 'APPR' ORDER BY aeroportIdentifiant, identifiant, transitionIdentifier ,sequenceNumber asc\");\n ResultSet rs = pst.executeQuery();\n rs.next();\n String runwayIdentifiant = rs.getString(1);\n String transitionIdentifier = rs.getString(2);\n String aeroport = rs.getString(7);\n String icaoCode = rs.getString(8);\n String premierPoint = null;\n if (transitionIdentifier.equals(\"\")) {\n premierPoint = rs.getString(3);\n } else {\n premierPoint = transitionIdentifier;\n }\n\n String sequenceNumber = rs.getString(9);\n List<LatitudeLongitude> couple = new ArrayList<>();\n do {\n System.out.println(\"Premier point\" + premierPoint);\n\n if (!transitionIdentifier.equals(rs.getString(2)) && !sequenceNumber.equals(rs.getString(9))) {\n System.out.println(\"Ajout bdd de \" + premierPoint);\n // ajout en bdd du precedent\n PreparedStatement ajoutSid = con.prepareStatement(\"INSERT INTO appr (runwayIdentifiant, typeApproche, aeroportIdentifiant, icaoCode, premierPoint ,balises) VALUES (?,CAST(? AS typeAppr),?,?,?,?)\");\n ajoutSid.setString(1, runwayIdentifiant);\n ajoutSid.setString(2, runwayIdentifiant.substring(0, 1));\n ajoutSid.setString(3, aeroport);\n ajoutSid.setString(4, icaoCode);\n ajoutSid.setString(5, premierPoint);\n\n\n String[][] tab = new String[couple.size()][2];\n for (int i = 0; i < couple.size(); i++) {\n tab[i][0] = couple.get(i).getLatitude();\n tab[i][1] = couple.get(i).getLongitude();\n }\n\n Array arraySql = con.createArrayOf(\"text\", tab);\n ajoutSid.setArray(6, arraySql);\n ajoutSid.executeUpdate();\n couple.clear();\n\n // on update l'identifiant ds la boucle\n runwayIdentifiant = rs.getString(1);\n transitionIdentifier = rs.getString(2);\n aeroport = rs.getString(7);\n icaoCode = rs.getString(8);\n if (transitionIdentifier.equals(\"\")) {\n premierPoint = rs.getString(3);\n } else {\n premierPoint = transitionIdentifier;\n }\n }\n\n ResultSet rsBalise = null;\n if (!rs.getString(3).equals(\"\")) {\n if (rs.getString(5).equals(\"D\") && rs.getString(6).equals(\"B\")) {\n //NDB\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM ndb where identifiant like ? and icaoCode like ?\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"NDB\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n } else if (rs.getString(5).equals(\"E\") && rs.getString(6).equals(\"A\")) {\n //waypoint en route\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM waypoint where identifiant like ? and icaoCode like ? and aeroport like 'ENRT'\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"WayPoint\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n } else if (rs.getString(5).equals(\"P\") && rs.getString(6).equals(\"C\")) {\n //waypoint terminaux\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM waypoint where identifiant like ? and icaoCode like ? and aeroport like ?\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n pstBalise.setString(3, rs.getString(7));\n rsBalise = pstBalise.executeQuery();\n\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"WayPoint\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n } else if (rs.getString(5).equals(\"D\") && rs.getString(6).equals(\"\")) {\n //VHF\n PreparedStatement pstBalise = con.prepareStatement(\"(SELECT latitude, longitude from vor where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from vorDme where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from dme where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from tacan where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from ilsdme where identifiant=? and icaoCode=?)\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n pstBalise.setString(3, rs.getString(3));\n pstBalise.setString(4, rs.getString(4));\n pstBalise.setString(5, rs.getString(3));\n pstBalise.setString(6, rs.getString(4));\n pstBalise.setString(7, rs.getString(3));\n pstBalise.setString(8, rs.getString(4));\n pstBalise.setString(9, rs.getString(3));\n pstBalise.setString(10, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"VHF\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n\n }\n\n } else {\n System.out.println(\"fix identifier vide\");\n }\n sequenceNumber = rs.getString(9);\n System.out.println(\"FIN\");\n } while (rs.next());\n\n PreparedStatement ajoutSid = con.prepareStatement(\"INSERT INTO appr (runwayIdentifiant, typeApproche, aeroportIdentifiant, icaoCode, premierPoint ,balises) VALUES (?,CAST(? AS typeAppr),?,?,?,?)\");\n ajoutSid.setString(1, runwayIdentifiant);\n ajoutSid.setString(2, runwayIdentifiant.substring(0, 1));\n ajoutSid.setString(3, aeroport);\n ajoutSid.setString(4, icaoCode);\n ajoutSid.setString(5, premierPoint);\n\n String[][] tab = new String[couple.size()][2];\n for (int i = 0; i < couple.size(); i++) {\n tab[i][0] = couple.get(i).getLatitude();\n tab[i][1] = couple.get(i).getLongitude();\n }\n\n Array arraySql = con.createArrayOf(\"text\", tab);\n ajoutSid.setArray(6, arraySql);\n ajoutSid.executeUpdate();\n couple.clear();\n\n rs.close();\n pst.close();\n\n\n } catch (SQLException ex) {\n Logger.getLogger(Approche.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n\n }", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public boolean isGraphActive()\n { \n return false;\n }", "public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}", "public boolean isVisible() { return _visible; }", "private void connect() {\n\t\t//\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(logInfo, user, pwd);\n\t\t\tsmt = conn.createStatement();\n\t\t\tif (conn != null) {\n\t\t\t\tSystem.out.println(\"[System:] Postgres Connection successful\");\n\t\t\t\tstatus = true;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Failed to make connection!\");\n\t\t\t\tstatus = false;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Connection Failed!\");\n\t\t\te.printStackTrace();\n\t\t\tstatus = false;\n\t\t}\n\t\t\n\t}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void setVisible(boolean b) {\n\t\t\n\t}", "private void connect(String host, int port) throws ClassNotFoundException, SQLException, PropertyVetoException {\n\n cpds = new ComboPooledDataSource();\n cpds.setDriverClass(\"org.postgresql.Driver\"); //loads the jdbc driver\n String url = \"jdbc:postgresql://\"+ host + \":\" + port + \"/postgres?currentSchema=lectures\";\n cpds.setJdbcUrl(url);\n cpds.setUser(\"postgres\");\n cpds.setPassword(\"filip123\");\n }", "public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n boolean boolean0 = SQLUtil.isProcedureCall(\"org.h2.store.LobStorage\");\n assertFalse(boolean0);\n }", "private void connectToDB() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n this.conn = DriverManager.getConnection(prs.getProperty(\"url\"),\n prs.getProperty(\"user\"), prs.getProperty(\"password\"));\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void setInDatabase(boolean b) {\n \n }", "public boolean isStoredProcDB2Error(){\r\n\treturn getERR_FLAG().equals(STORED_PROC_ERROR_FLAG) && getRETURN_CODE().equals(DB2_ERROR_CODE);\r\n}", "@Override\n public void onEpgItemVisible(int position) {\n }" ]
[ "0.58768344", "0.5636156", "0.53533673", "0.5350762", "0.5342856", "0.52844113", "0.52081084", "0.5159605", "0.5095754", "0.50852823", "0.50613457", "0.5056178", "0.50542784", "0.50495094", "0.49595147", "0.49586955", "0.49581915", "0.49478683", "0.49440247", "0.49440247", "0.49378097", "0.49373484", "0.49211916", "0.49185446", "0.49058264", "0.4895176", "0.48915714", "0.48717356", "0.48711658", "0.48615286", "0.4852923", "0.4852412", "0.4849979", "0.48480326", "0.48475698", "0.48470214", "0.48434603", "0.48423663", "0.48339975", "0.48310456", "0.4819168", "0.4819028", "0.48185474", "0.48185328", "0.48181406", "0.48162138", "0.48147324", "0.48136467", "0.4809983", "0.48005056", "0.4799839", "0.47964284", "0.47929648", "0.47767904", "0.47753003", "0.4772564", "0.4772564", "0.4772564", "0.47635996", "0.4757373", "0.47494167", "0.47460705", "0.47449666", "0.47449666", "0.47447845", "0.47398362", "0.4737756", "0.47308856", "0.472871", "0.47255078", "0.4724781", "0.4721783", "0.47112396", "0.47099328", "0.47047096", "0.47047096", "0.47039902", "0.47018272", "0.46990117", "0.46981952", "0.46970543", "0.46970543", "0.46970543", "0.46969044", "0.46944648", "0.46933606", "0.46793407", "0.46745837", "0.46736467", "0.467114", "0.4670981", "0.4669481", "0.4661533", "0.46607867", "0.46585387", "0.46573612", "0.4655589", "0.46526334", "0.46502697", "0.4647663" ]
0.5211227
6
return new ModelAndView(new RedirectView("
@RequestMapping("/") public String startPage() { return "redirect:/html/singlelamp/nnlightctl/Index.html"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/\")\n public String order(){\n return \"redirect:/order/list\";\n }", "@RequestMapping(\"\")\n\tpublic String redirectController()\n\t{\n\t\treturn \"redirect:financial/supplier/register\";\n\t}", "@RequestMapping(value=\"/productforsale\")\r\npublic ModelAndView productforsale(ModelAndView model)\r\n{\r\n\tmodel.setViewName(\"productforsale\");\r\n\treturn model;\r\n}", "@GetMapping(\"/\")\n public ModelAndView method() {\n return new ModelAndView(\"redirect:\" + FRONTEND_URL);\n }", "@GetMapping(\"/login-success\")\n public ModelAndView loginSuccess(){\n return new ModelAndView(\"index\");\n }", "@RequestMapping(value=\"/registration\")\r\npublic ModelAndView registration(ModelAndView model)\r\n{\r\n\tmodel.setViewName(\"registration\");\r\n\treturn model;\r\n\t}", "public ModelAndView getSuccessView(FORM form) throws Exception\r\n {\r\n return null;\r\n }", "@RequestMapping(value = \"/redirect\")\n\tpublic String redirect() {\n\t\treturn \"redirect:apply\";\n\t}", "void redirect();", "@RequestMapping(value=\"/homepage\")\r\npublic ModelAndView homePage1(ModelAndView model) throws IOException\r\n{\r\n model.setViewName(\"home\");\r\n\treturn model;\r\n}", "@PostMapping(value=\"users/addNew\")\r\n\tpublic RedirectView addNew(User user, RedirectAttributes redir) {\r\n\t\tuserService.save(user);\t\r\n\t\tRedirectView redirectView= new RedirectView(\"/login\",true);\r\n\t redir.addFlashAttribute(\"message\",\r\n\t \t\t\"You successfully registered! You can now login\");\r\n\t return redirectView;\t\t\t\t\r\n\t}", "@RequestMapping(\"/success\")\n public String success(HttpServletRequest request){\n\n request.setAttribute(\"str\",\"order\");\n request.setAttribute(\"oderid\",request.getParameter(\"oderid\"));\n\n return \"result\";\n// response.sendRedirect(\"result.jsp?str=order&oderid=\"+request.getParameter(\"oderid\"));\n\n }", "@RequestMapping(value=\"/\")\r\npublic ModelAndView homePage(ModelAndView model) throws IOException\r\n{\r\n\tmodel.setViewName(\"home\");\r\n\treturn model;\r\n}", "@RequestMapping(value = \"/cancelar\", method = RequestMethod.GET)\n\tpublic String Regresar() {\n\t\treturn \"redirect:/\";\n\t}", "@RequestMapping \npublic String ForwardToCompanyMainPage (Model model)\n{\n\treturn \"company\";\t\n}", "@RequestMapping(value=\"/welcomepage\")\r\npublic ModelAndView welcomepage(ModelAndView model)\r\n{ \r\n\tmodel.setViewName(\"usertype\");\r\n\treturn model;\r\n\t}", "public abstract String redirectTo();", "@RequestMapping(value = \"/\")\n\tpublic String home(Locale locale, Model model) {\n\t\treturn \"redirect:/loginPage\";\n\t}", "void redirectToLogin();", "@RequestMapping(\"/tyhjenna\")\n public String poistaKaikkiTuotteet() {\n ostoskoriService.tyhjennaOstoskori();\n return \"redirect:/ostoskori\";\n }", "@RequestMapping(method=RequestMethod.GET, path=\"/k\")\n\tpublic String goToXmlViewRsolverRedirect(Model model){\n\t\treturn \"bean/defined_xml_redirect\";\n\t}", "@RequestMapping(\"/\")\n public String index() {\n return \"redirect:/api/v1/tool\";\n }", "@RequestMapping(Mappings.LOGOUT)\n public String logout(){\n return \"redirect:/login\";\n }", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "private ModelAndView returnToLogin(HttpSession session) {\n ModelAndView mv = new ModelAndView(\"login\");\n mv.addObject(\"msg\", \"Sorry try again\");\n session.setAttribute(\"login\", false);\n return mv;\n }", "@RequestMapping(\"/\")\n public ModelAndView landingPage() {\n //create FBConnection instance\n FBConnection fbConnection = new FBConnection();\n //fb.Connection.getFBAuthUrl() directs to FB login and then back to specified REDIRECTURI after successful login\n return new\n ModelAndView(\"landingpage\", \"message\", fbConnection.getFBAuthUrl());\n\n }", "@Override\n\tpublic ModelAndView create() {\n\t\treturn null;\n\t}", "@RequestMapping(value=\"/\", method=RequestMethod.GET)\n \tpublic ModelAndView handleRoot(HttpServletRequest request){\n \t\tRedirectView rv = new RedirectView(\"/search\",true);\n \t\trv.setStatusCode(HttpStatus.MOVED_PERMANENTLY);\n \t\tModelAndView mv = new ModelAndView(rv);\n \t\treturn mv;\n \t}", "@RequestMapping(\"/viewproducts\") \r\n public ModelAndView viewproducts(){ \r\n List<Product> list=productDao.getAllProducts();\r\n return new ModelAndView(\"viewproducts\",\"list\",list); \r\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}", "@GetMapping(\"/\")\n\tpublic ModelAndView mv() {\n\n\t\tModelAndView mv = new ModelAndView(\"index\");\n\t\treturn mv;\n\n\t}", "@Override\n\tpublic ModelAndView execute(HttpServletRequest request) {\n\t\treturn null;\n\t}", "@GetMapping(\"/login\")\n public ModelAndView goToLogin(Model m) {\n \tModelAndView mav = new ModelAndView(\"home\");\n \treturn mav;\n }", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n public ModelAndView login() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.setViewName(\"user/login\");\n return modelAndView;\n }", "private ModelAndView returnToAdminLogin(HttpSession session) {\n ModelAndView mv = new ModelAndView(\"redirect:adminlogin.secu\");\n mv.addObject(\"msg\", \"Sorry try again\");\n session.setAttribute(\"login\", false);\n return mv;\n }", "@GetMapping(\"/forgot-password\")\n\tpublic ModelAndView goToForgotPassword(){\n\t\tModelAndView modelAndView = new ModelAndView(\"forgot-password\");\n\t\treturn modelAndView;\n\t}", "public Result homeEst() {\n String correo = ctx().session().get(\"correo\");\n // System.out.println(\"correo\" + correo);\n if (correo!=null) {\n // System.out.println(\"entra aqui 2\");\n RegistroUsuario user = RegistroUsuario.findByUsername(correo);//busca el coreo\n // System.out.println(\"user\"+user);\n if (user != null) {\n // System.out.println(\"entra aqui 3\");\n return redirect(routes.ControllerEstudiante.listarFormularioEstudiante());//revisar este render\n //linea 34 error de anios silvia ya lo arreglo :v\n } else {\n // System.out.println(\"entra aqui 4\");\n session().clear();\n }\n }\n // session().clear();\n // System.out.println(\"entra aqui 5\");\n return ok(iniciarSesionEstudiante.render(\"Error\",form(ApplicationEstudiante.Login.class)));\n }", "@RequestMapping(value = \"/someaction6\", method = RequestMethod.POST)\n public ModelAndView someMethod6(@ModelAttribute(\"student\") Student student1, BindingResult result) {\n if(result.hasErrors()) {\n ModelAndView mv = new ModelAndView(\"testjsp1\");\n return mv;\n }\n\n ModelAndView mv = new ModelAndView();\n mv.setViewName(\"testjsp2\");\n\n return mv;\n }", "@RequestMapping(method = RequestMethod.GET)\r\n public String home(ModelMap model) throws Exception\r\n {\t\t\r\n return \"Home\";\r\n }", "@RequestMapping(\"/auth\") \r\n\tpublic String redirect(Model model,HttpServletRequest httpRequest) { \r\n\t\t String path = httpRequest.getContextPath();\r\n\t String basePath = httpRequest.getScheme()+\"://\"+httpRequest.getServerName()+\":\"+httpRequest.getServerPort()+path; \r\n\t model.addAttribute(\"base\", basePath);\r\n\t\treturn \"/index/login\"; \r\n\t}", "@RequestMapping(value = \"/\")\n\tpublic String showSplash() {\n\t\treturn \"forward:/dashboard\";\n\t}", "ModelAndView handleResponse(HttpServletRequest request,HttpServletResponse response, String actionName, Map model);", "@RequestMapping(\"callproj\")\r\n\t\r\n\tpublic String Home()\r\n\t{\n\t\treturn \"Home\";//register.jsp==form action=register\r\n\t}", "@RequestMapping(value = \"/opsgis\", method = RequestMethod.GET)\r\n public String opsgis(HttpServletRequest request, ModelMap model) throws ServletException, IOException {\r\n return(\"redirect:/restricted/opsgis\"); \r\n }", "@RequestMapping(\"/returnIndex\")\r\n\tpublic ModelAndView returnIndex(HttpServletRequest request) {\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n\t\tUser user = us.findUserSessionByUsername(principal);\r\n\t\treturn new ModelAndView(\"redirect:/users/\" + user.getUserId());\r\n\t}", "@RequestMapping(\"/request2\")\n public String view(){\n request.setAttribute(\"result\", \"request2\");\n // session.setAttribute(\"result\", \"session2\");\n return \"result\";\n }", "@RequestMapping(\"hello\")\n\tpublic ModelAndView sayHello(){\n\t\treturn new ModelAndView(\"hello\",\"msg\",\"Hello All\");\n\t}", "@RequestMapping(value = \"/postLogin\", method = RequestMethod.GET)\n\tpublic String printWelcome(Model model, Principal principal) {\n\t\tlogger.debug(\" A user logged in sucessfully\");\n\t\t// ModelAndView mv = new ModelAndView(\"home-page\",\"projectSearchForm\",\n\t\t// new ProjectSearchForm());\n\t\treturn \"redirect:/index.jsp\";\n\t}", "@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public ModelAndView goToHome(Model m) {\n \tModelAndView mav = new ModelAndView(\"home\");\n \treturn mav;\n }", "@RequestMapping(\"/new\")\n public String newStudent(ModelMap view) {\n Student student = new Student();\n view.addAttribute(\"student\", student);\n view.addAttribute(\"listurl\", listurl);\n return(\"newstudent\");\n }", "@RequestMapping(value = \"/application\", method = RequestMethod.GET)\n\tpublic ModelAndView goToApplicationForm() {\n\n\t\tlogger.info(\"application page requested\");\n\n\t\treturn new ModelAndView(\"application\");\n\n\t}", "@RequestMapping(\"/\")\n public @ResponseBody String homePage()\n {\n return \"homePage\";\n }", "public String redirectToLogin() {\r\n\t\treturn \"/login.jsf?faces-redirect=true\";\r\n\t}", "@RequestMapping(value = {\"/all/products\"})\r\n\r\npublic ModelAndView show_products() {\r\n\t\r\n\tModelAndView mv = new ModelAndView(\"page\");\r\n\tmv.addObject(\"title\",\"All Products\");\r\n\tmv.addObject(\"products\", productdao.list());\r\n\t\r\n\tmv.addObject(\"userClickallproducts\",true);\r\n\treturn mv;\r\n\t\r\n\t\r\n}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\r\n\tpublic ModelAndView login() {\r\n\t\treturn new ModelAndView(\"admin/login\");\r\n\t}", "@RequestMapping(value = \"/toGoodsDetailSearch.act\")\n\tpublic ModelAndView toSave(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tModelAndView mv = new ModelAndView();\n\t\t// mv.addObject(\"seqId\", seqId);\n\t\tmv.setViewName(\"/kqdsFront/ck/search/goods_detail_search.jsp\");\n\t\treturn mv;\n\t}", "@RequestMapping(method=RequestMethod.POST , value = \"/employeelogin\")\npublic ModelAndView openPageAfterCheck(@RequestParam String email, String employee_password, HttpSession session)\n{\n\tModelAndView mv = new ModelAndView();\n\t\n\tEmployeeRegmodel erm = ergserv.employeeLoginCheck(email, employee_password);\n\tif(erm != null)\n\t{\n\t\tsession.setAttribute(\"nm\",email);\n\t\tmv.setViewName(\"EmployeeButtons.jsp\");\n\t\t\n\t}else\n\t{\n\t\tmv.setViewName(\"index1.jsp\");\n\t}\n\treturn mv;\n}", "public String redirectToWelcome() {\r\n\t\treturn \"/admin/welcome.jsf?faces-redirect=true\";\r\n\t}", "@RequestMapping(\"/formPayment\")\n public String formPayment(){\n return \"formPayment\";\n }", "@RequestMapping(value = \"/*/landingPage.do\", method = RequestMethod.GET)\n public String landingPageView(HttpServletRequest request, Model model) {\n logger.debug(\"SMNLOG:Landing page controller\");\n\n\n return \"admin/landingPage\";\n }", "public String redirectToLogin() {\r\n\t\treturn \"/login.xhtml?faces-redirect=true\";\r\n\t}", "@Override\n protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command,\n BindException errors) throws Exception {\n ModelAndView mv = new ModelAndView(this.getSuccessView());\n try{\n \n String s=request.getParameter(\"id\");\n int id=Integer.parseInt(s);\n\n ElderDao elderdao = (ElderDao)getApplicationContext().getBean(\"ElderDao\");\n int i=elderdao.deleteElders(id);\n if(i == 1){\n mv.addObject(\"reminder_s\", \"You have delete the elder info successfully!\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(this.getSuccessView());\n }else {\n mv.addObject(\"reminder\", \"Operation failed! Please try again.\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(\"reminder\");\n } \n }catch(Exception e){\n mv.addObject(\"reminder\", \"Operation failed! Please try again.\");\n mv.addObject(\"backName\",\"index_nursingworker.jsp\");\n mv.setViewName(\"reminder\");\n }\n \n return mv;\n }", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n\tpublic String view(Model model, Locale locale){\n\t\treturn \"view\";\n\t}", "public ModelAndView notifyAboutInvalidData() {\n \tSystem.out.println(\"radi ovo obavestenje\");\n this.template.convertAndSend(\"/nc/errors\", \"Registration failed\");\n //return \"Korisničko ime/email već postoji u sistemu\";\n String projectUrl = \"http://localhost:4200/registration/error\";\n\t\treturn new ModelAndView(\"redirect:\" + projectUrl);\n }", "@RequestMapping(\"/\")\n public String home()\n {\n SecurityContext context = SecurityContextHolder.getContext();\n return \"redirect:swagger-ui.html\";\n }", "@RequestMapping(value = \"/saveCompany\", method = RequestMethod.POST)\r\n\t\tpublic ModelAndView saveCompany( HttpServletRequest request,@ModelAttribute(\"companyBean\") CompanyBean companyBean, \r\n\t\t\t\tBindingResult result,final RedirectAttributes redirectAttributes) {\r\n\t\t \r\n\t\t try{\r\n\t\t companyValidator.validate(companyBean, result);\r\n\t\t\tif (result.hasErrors()) {\r\n\t\t//System.out.println(\"Error in form\");\r\n logger.error(\"Error in form\");\r\n \r\n return new ModelAndView(\"addCompany\");\r\n }\r\n\t\t\tCompany company = prepareCompanyModel(companyBean);\r\n\t\t\tHttpSession session=request.getSession();\r\n\t\t\tString user=(String)session.getAttribute(\"userName\");\r\n\t\t\tSystem.out.println(user);\r\n\t\t\t\r\n\t\t\t//this was giving problem so commented @melwyn95\r\n\t\t\tcompanyService.addCompany(user,company);\r\n\r\n//\t\t\treturn new ModelAndView(\"companysuccess\");\r\n\r\n\t\t\t\r\n\t\t\tredirectAttributes.addFlashAttribute(\"msg\", \"Data added successfully\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tModelAndView model1=new ModelAndView(\"redirect:/addCompany\");\r\n\t\t\t//model1.addObject(\"message\", \"Data added successfully \");\r\n\t\t\treturn model1;\r\n\t\t\t\r\n\t\t\r\n\t }\r\n\t catch(Exception e){\r\n\t\t\t//System.out.println(e);\r\n logger.error(e);\r\n\t\t\tModelAndView model1=new ModelAndView(\"500\");\r\n\t\t\tmodel1.addObject(\"message\", \"Your session has timed out. Please login again\");\r\n\t \t\tmodel1.addObject(\"url\", \"form\");\r\n\r\n\t\t\treturn model1;\r\n\t\t}\r\n\r\n\r\n}", "@RequestMapping(\"/deleteemployee\")\npublic ModelAndView deleteEmployeeRecord(@RequestParam int employee_id)\n{\n\tergserv.delEmployee(employee_id);\n\tModelAndView mv= new ModelAndView();\n\tmv.addObject(\"msg\",\"RECORD DELETED\");\n\tmv.setViewName(\"ShowEmployeeDetails.jsp\");\n\treturn mv;\n}", "@RequestMapping(\"/signin\")\n public String signin() throws Exception {\n return \"redirect:\" + baseUrl + \"/cp/auth/callback.html\";\n }", "@RequestMapping(value = \"/success\")\n\tpublic String ictSuccess() {\n\t\treturn \"ict/success\";\n\t}", "@RequestMapping(\"/signup\")\r\n\tpublic ModelAndView signups(HttpServletRequest request,HttpServletResponse response) {\r\n\tModelAndView mv= new ModelAndView();\r\n\t\t\r\n\t\tmv.setViewName(\"signup\");\r\n\r\n\t\treturn mv;\r\n\t}", "@RequestMapping(\n value= {\"\", \"index.htm\"},\n produces = \"text/html\")\n public String forwardUrl() {\n return \"forward:/index.html\";\n }", "public String formFound()\r\n {\r\n return formError(\"302 Found\",\"Object was found\");\r\n }", "@RequestMapping(\"/\")\r\n\t\r\n\tpublic String home()\r\n\t{\n\t\t \r\n\t\treturn \"index\";\r\n\t}", "public String redirectToWelcome() {\r\n\t\treturn \"/secured/wissenstest.xhtml?faces-redirect=true\";\r\n\t}", "@RequestMapping(value = \"/newUserRegistration\", method = RequestMethod.POST)\r\npublic ModelAndView newUserRegistration(ModelAndView model,\r\n\t\t@RequestParam(\"userid\") String userid,\r\n\t\t@RequestParam(\"password\") String password,\r\n\t\t@RequestParam(\"repassword\") String repassword,\r\n\t\t@RequestParam(\"firstname\") String firstname,\r\n\t\t@RequestParam(\"lastname\") String lastname,\r\n\t\t@RequestParam(\"address\") String address,\r\n\t\t@RequestParam(\"city\") String city,\r\n\t\t@RequestParam(\"state\") String state,\r\n\t\t@RequestParam(\"pin\") String pin,\r\n\t\t@RequestParam(\"phone\") String phone,\r\n\t\t@RequestParam(\"email\") String email,\r\n\t\t@RequestParam(\"paypalaccount\") String paypalaccount) {\t\t\r\n\t//the values get inserted into the user table if the password and repassword matches\r\n\t if(password.equals(repassword)) {\r\n\t\t User user = new User();\r\n\t\t user.setUserId(userid);\r\n\t\t user.setFirstName(firstname);\r\n\t\t user.setLastName(lastname);\r\n\t\t user.setPassword(password);\r\n\t\t user.setAddress(address);\r\n\t\t user.setCity(city);\r\n\t\t user.setState(state);\r\n\t\t user.setPin(pin);\r\n\t\t user.setPhone(phone);\r\n\t\t user.setEmail(email);\r\n\t\t user.setPaypalAccount(paypalaccount);\r\n\t userService.newUserRegistration(user);\r\n\t model.setViewName(\"registrationSuccess\");\r\n return model;\r\n\t }\r\n\t else\r\n\t {\r\n\t \t //if password and repassword are not matched then it will redirect to registrationFailure page \r\n\t \t model.setViewName(\"registrationFailure\");\r\n\t return model;\r\n\t }\r\n}", "@RequestMapping(value = { \"/\", \"/home\", \"/index\" })\r\n\tpublic ModelAndView index() {\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tmv.addObject(\"greeting\", \"welcome to spring web mvc new way to done \");\r\n\t\treturn mv;\r\n\t}", "public void sol_nuevasolicitud(){\n try{\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().redirect(\"sol_nuevasolicitud.xhtml\");\n }\n catch(Exception e){\n System.out.println(\"Error: \"+e);\n }\n }", "@RequestMapping(value = \"/updateTransaction\", method = RequestMethod.POST)\r\n\tpublic ModelAndView update(HttpServletRequest request, ModelMap model) {\n\t\treturn new ModelAndView(\"redirect:list\");\r\n\r\n\t}", "@RequestMapping(\"/leaveReject\")\npublic String reJect(HttpServletRequest request)\n{\n\trequest.setAttribute(\"rej\", \"SuccessFully Rejected\");\n\t\n\treturn \"buttons.jsp\";\n\n}", "public String redirectToRegister() {\r\n\t\treturn \"/admin/register.jsf?faces-redirect=true\";\r\n\t}", "public String back() {\r\n\t\treturn \"/private/admin/Admin?faces-redirect=true\";\r\n\t}", "public String indexRecipe() {\r\n\t\treturn \"redirect:/indexRecipe\";\r\n\t}", "public String redirectToUser() {\r\n\t\treturn \"/user/Welcome.jsf?faces-redirect=true\";\r\n\t}", "@RequestMapping(\"/cadastrodeevento\")\n\tpublic ModelAndView cadastroevento() {\n\t\tModelAndView mv = new ModelAndView(\"CadastroEvento\");\n\t\tmv.addObject(new Evento());\n\t\t\n\t\t\n\t\t\n\t\treturn mv;\n\t}", "@RequestMapping(value=\"hao.do\")\n\tpublic void hao_jsp(@ModelAttribute(\"pojo\") Pojo pojo,HttpServletResponse response) throws IOException{\n\t\tSystem.out.println(pojo.getA()+\" \"+pojo.getB());\n\t\tresponse.sendRedirect(\"success.jsp\");\n\t}", "@RequestMapping(value=\"/\")\n\tpublic ModelAndView index(@RequestParam(name=\"userAdded\",required=false )boolean success)\n\t{\n \tModelAndView mv=new ModelAndView();\n \tAuthentication authentication = SecurityContextHolder.getContext().getAuthentication();\n \tlog.info(\"authentication detail\"+authentication);\n\t\tboolean isAdmin=authentication.getAuthorities().stream().anyMatch(r -> r.getAuthority().equals(\"ROLE_ADMIN\"));\n\t\tboolean isUser=authentication.getAuthorities().stream().anyMatch(r -> r.getAuthority().equals(\"ROLE_USER\"));\n\t\tString username = authentication.getName();\n\t\tlog.info(\"username:////////////////////\"+username+ \" is admin: \"+ isAdmin+\" user: \"+isUser);\n\t\tif(success)mv.addObject(\"userAdded\",true);\n\t\tif(isAdmin)\n\t\t{\n\t\t\tmv.addObject(\"username\",username);\n\t\t\tmv.setViewName(\"redirect:/viewuser\");\n\t\t\treturn mv;\n\t\t}\n\t\telse if(isUser)\n\t\t{\n\t\t\tOptional<User> user=userService.getUserByusername(username);\n\t\t\tmv.addObject(\"id\",user.get().getId());\n\t\t\tmv.setViewName(\"redirect:/userDetails\");\n\t\t\treturn mv;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmv.setViewName(\"/login\");\n\t\t\treturn mv;\n\t\t}\n\n\t}", "@RequestMapping(\"altaUsuario\")\n public ModelAndView altaUsuario(@ModelAttribute(\"usuario\")Usuario usuario){\n ModelAndView model = new ModelAndView(\"paginaInicio\");\n setUsuario(usuario);\n model.addObject(\"usuario\",usuario);\n return model;\n }", "@RequestMapping(\"/hello\")\n public String insertUser(){\n return null;\n }", "@RequestMapping(value=\"/\" , method = RequestMethod.GET)\n public ModelAndView welcome_login(){\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n String currentUserName = authentication.getName();\n\n UserEntity userEntity= iUserService.findUserByCurrentUserName(currentUserName);\n ModelAndView welcome = new ModelAndView(\"welcome\");\n welcome.getModel().put(\"currentUserName\", currentUserName);\n welcome.getModel().put(\"userEntity\", userEntity);\n\n return welcome;\n }", "@GetMapping(\"/login.html\")\n\tpublic ModelAndView getLogin() {\n\t\tModelAndView mv = new ModelAndView(\"Login\");\n\t\treturn mv;\n\t}", "@RequestMapping(\"/studentConfirm\")\n\tpublic String studentConfirm(HttpServletRequest req, Model model) {\n\t\tlogger.info(\"student\");\n\t\t\n\t\tString id = req.getParameter(\"id\");\n\t\t\n\t\tif(id.equals(\"abc\")) { //아이디가 abc가 맞으면 studentOk로 가라\n\t\t\treturn \"forward:studentOk\"; //redirect:studentOk\n\t\t}\n\t\t\n\t\treturn \"forward:studentNg\"; //아니면 studentNg로 가라 //redirect:studentNg\n\t}", "@RequestMapping(\"/newuser\")\r\n\tpublic ModelAndView newUser() {\t\t\r\n\t\tRegister reg = new Register();\r\n\t\treg.setUser_type(\"ROLE_INDIVIDUAL\");\r\n\t\treg.setEmail_id(\"[email protected]\");\r\n\t\treg.setFirst_name(\"First Name\");\r\n\t\treg.setCity(\"pune\");\r\n\t\treg.setMb_no(new BigInteger(\"9876543210\"));\r\n\t\treturn new ModelAndView(\"register\", \"rg\", reg);\r\n\t}", "@RequestMapping(value = \"/initSuccess\")\n private String toSuccessPage() {\n return \"dianrong/initpwd/initPwdSuccess\";\n }", "@Bean\n\tpublic SavedRequestAwareAuthenticationSuccessHandler successRedirectHandler() {\n\t\tSavedRequestAwareAuthenticationSuccessHandler successRedirectHandler = new SavedRequestAwareAuthenticationSuccessHandler();\n\t\tsuccessRedirectHandler.setDefaultTargetUrl(\"/authorization_code\");\n\t\treturn successRedirectHandler;\n\t}", "@RequestMapping(\"/spyrjaNotanda\")\r\n public String spyrjaNotandi () {\r\n \treturn \"demo/hvadaNotandi\";\r\n }", "@RequestMapping(\"/newRecipe\")\r\n\tpublic ModelAndView newRecipe() {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\r\n\t\tmav.addObject(\"recipe\", new Recipe());\r\n\t\tmav.addObject(\"newFlag\", true);\r\n\t\tmav.setViewName(\"recipe/editRecipe.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}", "@RequestMapping(\"/absen/kelola/final\")\n public String viewFinal (@NotNull Authentication auth, Model model) {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n PenggunaModel pgn = penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername());\n List<AbsenModel> absen = absenDAO.selectAllAbsen(pgn.getId_employee());\n\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n LocalDate localDate = LocalDate.now();\n System.out.println(\"TANGGAL \"+dtf.format(localDate));\n\n AbsenModel today = new AbsenModel();\n model.addAttribute(\"newAbsen\", today);\n\n model.addAttribute(\"kehadiran\", kehadiranDAO.selectAllKehadiran());\n\n model.addAttribute(\"absen\", absen);\n model.addAttribute(\"penggunaLogin\", penggunaLogin);\n return \"absen_final\";\n }", "public String guardarCliente(){\r\n System.out.println(cliente.getIdCliente());\r\n if(modelo.ingresarCliente(cliente)!=1){\r\n modelo.modificarCliente(cliente);\r\n JsfUtil.setFlashMessage(\"exito\",\"Cliente modificado exitosamente\");\r\n return \"cliente?faces-redirect=true\";\r\n \r\n }//fin if\r\n else{\r\n JsfUtil.setFlashMessage(\"exito\",\"Cliente registrado exitosamente\");\r\n //forzando la redireccion en el cliente\r\n return \"cliente?faces-redirect=true\";\r\n }\r\n }", "public String redirectToResetpassword() {\r\n\t\treturn \"/admin/resetpassword.jsf?faces-redirect=true\";\r\n\t}", "@GetMapping(\"{code}\")\n public ModelAndView redirect(@PathVariable String code){\n ShortURL url = shortUrlService.getByCode(code);\n if (url == null) {\n throw new ResponseStatusException(\n HttpStatus.NOT_FOUND, \"Code is not found \"+ code, new CodeNotFoundException(code));\n }\n redirectStatisticsService.create(url);\n return new ModelAndView(\"redirect:\" + url.getOriginalUrl());\n }" ]
[ "0.72006536", "0.7059186", "0.7040084", "0.703923", "0.68730253", "0.6811156", "0.66410494", "0.65854275", "0.6470899", "0.64494234", "0.6435975", "0.6408917", "0.64047873", "0.63212305", "0.63174164", "0.62939644", "0.6237778", "0.6177573", "0.6155328", "0.607679", "0.6065409", "0.6050463", "0.6039032", "0.60345185", "0.6010039", "0.6009202", "0.5977285", "0.59534615", "0.59342647", "0.5934186", "0.5891153", "0.58902836", "0.58823615", "0.5847566", "0.58455503", "0.58384526", "0.5825355", "0.58194023", "0.58168584", "0.58149093", "0.57906747", "0.5772443", "0.57671124", "0.5750378", "0.5735705", "0.5722407", "0.5714987", "0.5712599", "0.571247", "0.57117736", "0.5709276", "0.5699161", "0.56926227", "0.5681303", "0.56657207", "0.5664297", "0.56615704", "0.56318694", "0.56318355", "0.5630498", "0.5630467", "0.5630137", "0.56254077", "0.5619271", "0.56171393", "0.5616319", "0.56156814", "0.5613493", "0.5610111", "0.56081223", "0.5606482", "0.55950373", "0.55889344", "0.558836", "0.55820495", "0.5577705", "0.55736417", "0.5566954", "0.5551165", "0.55440634", "0.55389756", "0.5536206", "0.55288804", "0.5525369", "0.5525009", "0.551062", "0.55038893", "0.54900306", "0.5487722", "0.54877216", "0.54843634", "0.54840404", "0.548392", "0.547434", "0.54743385", "0.54689854", "0.54684997", "0.54681534", "0.5459445", "0.5458976" ]
0.5999715
26
we can get All the CRUD method of Topic using this interface that spring data jpa provide we need a method that takes a course id and returs lessons of that course
public List<Lesson> findByCourseId(String courseId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Course> findByTopicId(int topicId);", "@Repository\npublic interface CourseRepository extends CrudRepository<Course, String> {\n\n\tpublic List<Course> findByTopicId(String topicId);\n}", "public interface ITopicDao {\n public List<Topic> findTopicswithplatOption( platForumType type);\n\n}", "public interface Topic {\n int getId();\n String getTitle();\n User getAdmin();\n List<Comment> getComments();\n}", "public interface TopicService {\n\nboolean topicsave(Topic topic, HttpServletRequest request);\n List<Topic> getTopicList(String query);\n Topic findByname(String name);\n}", "public List<Course> getAllCourses(String topicId){\n//\t\treturn topics;\n\t\tList<Course> courses = new ArrayList<Course>();\n\t\tcourseRepo.findByTopicId(topicId).forEach(courses::add);\n\t\treturn courses;\n\t}", "public interface ITopicsRepository {\n\n @NonNull\n LiveData<List<Topic>> getTopics();\n\n void updateTopic(@NonNull Topic topic);\n\n void createTopic(@NonNull String text);\n\n}", "public interface ICourseInfoService {\n\n Integer selectCount(Map<String, Object> params);\n\n List<Map<String, Object>> selectList(Map<String, Object> params);\n List<CourseInfo> selectAll();\n /**\n * 通过课程主键id查询课程\n *\n * @param ids\n * @return\n */\n List<CourseInfo> selectCourseByIds(Map<String, Object> ids);\n\n /**\n * 通过课程id查询课程总数\n *\n * @param ids\n * @return\n */\n Integer selectCourseCountByIds(Map<String, Object> ids);\n /**\n * 通过课程id查询课程信息\n *\n * @param courseId\n * @return\n */\n CourseInfo selectOne(String courseId);\n\n /**\n * 将projectInfo中的学时要求,必选题量与courseInfo中的数据组装到map中\n *\n * @param projectCourses\n * @param courseInfos\n * @return\n */\n List<Map<String, Object>> saveProjectCourseInfoDate(List<ProjectCourse> projectCourses, List<CourseInfo> courseInfos);\n\n /**\n * 通过课程id查询课程信息\n *\n * @param courseId\n * @return\n */\n CourseInfo selectCourseInfoByCourseId(String courseId);\n\n /**\n * 根据courseTypeId或者courseName查询课程\n *\n * @param params\n * @return\n */\n List<Map<String, Object>> selectCourseList(Map<String, Object> params);\n\n /**\n * 根据courseTypeId或者courseName查询课程总条数\n *\n * @param params\n * @return\n */\n Integer selectCourseCount(Map<String, Object> params);\n\n /**\n * 课程下的总题量\n *\n * @param params\n * @return\n */\n int selectCourseQuestionCount(Map<String, Object> params);\n\n /**\n * 课程转移\n *\n * @param params\n */\n\n\n void courseMove(Map<String, Object> params);\n\n int insertSelective(Map<String, Object> params);\n\n int insertMessage(CourseMessage courseMessage);\n\n int updateMessage(CourseMessage courseMessage);\n\n int insertBatch(List< Map<String, Object>> list);\n\n int updateBatch(List< Map<String, Object>> list);\n\n int updateByPrimaryKeySelective(Map<String, Object> params);\n\n int deleteByPrimaryKey(Map<String, Object> params);\n\n void deleteByCourseId(Map<String, Object> params);\n\n /**\n * 根据courseIds查询课程信息\n * @param courseIds\n * @return\n */\n List<CourseInfo> selectCourses(List<String> courseIds);\n}", "public List<Course> getAllCourses(String topicId){\n\t\t//return courses;\n\t\tArrayList<Course> course = new ArrayList<>();\n\t\tcourseRepository.findByTopicId(topicId).forEach(course::add);\n\t\treturn course;\n\t}", "@RequestMapping(value = \"/topics/{id}/courses\", method = RequestMethod.GET)\n public List<Course> getAllCourses(@PathVariable String id) {\n return courseService.getAllCourses(id);\n }", "public interface TutorialService {\n public Tutorial create(Tutorial Tutorial);\n\n public Tutorial get(long id);\n public List<Tutorial> getAll(int limit, int offset);\n public List<Tutorial> getByCategoryId(long categoryId, int limit);\n public List<Tutorial> getByTag(String tag, int limit);\n public List<Tutorial> getPopularByCategory(long categoryId, int limit);\n\n public Tutorial update(Tutorial Tutorial);\n\n public Tutorial delete(Tutorial Tutorial);\n}", "@Service\n@Transactional\npublic interface CourseService {\n\n public ResultVO<String> create(Course course);\n\n public ResultVO<CourseVO> update(CourseVO course);\n\n public ResultVO<String> delete(Integer courseId);\n\n public ResultVO<List<CourseVO>> getAllCourses(Page page);\n\n public ResultVO<List<CourseVO>> selectByTeacher(Page page, String teacherName);\n\n public ResultVO<List<CourseVO>> selectByCategory(Page page, Integer categoryId);\n\n public ResultVO<List<CourseVO>> selectByCourseName(Page page, String courseName);\n\n public ResultVO<CourseVO> selectByCourseId(Integer courseId);\n\n public ResultVO<Integer> findCount();\n\n public ResultVO<Integer> findCountByName(String courseName);\n\n public ResultVO<List<CourseVO>> getAllPreviousCourses();\n\n public ResultVO<Integer> findCountByTeacher(String teacherName);\n\n public ResultVO<Integer> findCountByCategory(Category category);\n\n public ResultVO<List<CategoryVO>> getCategoryVO();\n\n public ResultVO<List<Course>> getAllCourse();\n}", "@Component\npublic interface FetchSubscribedTopicsDao {\n List<Susbcription> getTopics(String topicname,String username);\n}", "@Query(\"select * from course where _id = :id\")\n List<Course> loadById(int id);", "public interface TopicRepository extends CrudRepository<Topic, String> {\n\n}", "public interface TopicRepository extends CrudRepository<Topic,Integer> {\n}", "public interface HomeworkService extends CRUDService<Homework>{\n\n List<Homework> findByTitle(String title);\n List<Homework> findByLesson(Lesson lesson);\n List<Homework> findByLesson_Subject_User(User user);\n}", "public interface HelpCenterService {\n /**\n * 查询所有分类问题\n */\n public List<HelpCenterBean> getHelpCategoryList(HelpCenterBean helpCategoryModel);\n /* *\n * 所有分类问题的页数\n */\n public Integer getHelpCategoryCount(HelpCenterBean helpCategoryModel);\n /**\n * 根据主表id查询主表信息\n */\n public HelpCategoryModel findCategoryByhelpCategoryID(Integer helpCategoryID);\n /**\n * 根据附表id查询附表信息\n */\n public HelpQuestionModel findQuestionByhelpQuestionID(Integer helpQuestionID);\n /**\n * 主表添加问题类型\n */\n public Integer insertQuestion(HelpCenterBean helpCenterBean);\n /**\n * 主表修改问题类型\n */\n public Integer updateQuestion(HelpCenterBean helpCenterBean);\n /**\n * 附表添加问题\n */\n public Integer insertQuestionContent(HelpCenterBean helpCenterBean);\n /**\n * 附表修改问题\n */\n public Integer updateQuestionContent(HelpCenterBean helpCenterBean);\n /**\n * 附表修改问题\n */\n public Integer update(Integer sortNo,Integer helpQuestionID);\n /**\n * 删除问题附表\n */\n public Integer deleteQuestion(Integer helpQuestionID);\n /**\n * 根据版本类型,问题类型查询数据\n */\n public HelpCategoryModel findByNameAndVersion(String name,Integer version);\n}", "@Repository\npublic interface CourseRepository extends PagingAndSortingRepository<Course, Long>, JpaSpecificationExecutor<Course> {\n \n\t//根据课程id查询课程表\n\t@Query(value=\"SELECT c.*, ch.*, cl.* FROM t_course c LEFT JOIN t_chapter ch ON c.id = ch.course_id LEFT JOIN t_course_lesson cl ON cl.chapter_id = ch.id WHERE c.id = ?1\",nativeQuery = true)\n\tList<Course> findByCourseId(Long courseId);\n\t\n\t//根据用户id查询课程表\n\t@Query(value=\"SELECT c.* FROM t_course c LEFT JOIN t_user u ON c.user_id = u.id WHERE c.user_id = ?1\",nativeQuery = true)\n\tList<Course> findByUserId(Long userId);\n\t\n\t//根据课程类型查询课程列表\n\tPage<Course> findAllByCourseType(String courseType, Pageable pageable);\n\t\n\t//根据课程来源查询课程列表\n\tPage<Course> findAllByCourseSource(String courseSource, Pageable pageable);\n\t\n\t//根据课程来源及课程类型查询课程列表\n\tPage<Course> findAllByCourseSourceAndCourseType(String courseSource, String courseType, Pageable pageable);\n\t\n\tList<Course> findAll();\n\t\n\tvoid saveAndFlush(Course course);\n\t\n}", "Collection<Lesson> getLessons() throws DataAccessException;", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface LectureRepository extends JpaRepository<Lecture, Long> {\n\n @Query(\"select l FROM Lecture l WHERE l.course.id = :#{#courseId}\")\n List<Lecture> findAllByCourseId(@Param(\"courseId\") Long courseId);\n\n}", "public interface TeacherRepository extends CrudRepository<Teacher,Long> {\n List<Teacher> findAll();\n\n}", "@RequestMapping(\"/topics\")\r\n\t\r\n\t// Returns all topics created from'TopicService' class\r\n\tpublic List<Topic> getAllTopics() {\r\n\t\treturn topicService.getAllTopics();\r\n\t}", "Collection<Lesson> getActiveLessons() throws DataAccessException;", "@PreAuthorize(\"isAuthenticated()\")\n List<Feedback> findFeedbackForCourse(Long id);", "public List<Topic> getAllTopics() {\n\t\tlogger.info(\"getAllTopics executed\");\n\t\t//return topics;\n\t\tList<Topic> topics = new ArrayList<Topic>();\n\t\ttopicRepository.findAll().forEach(topics::add);\n\t\treturn topics;\n\t}", "public interface CourseDao {\n\n /**\n * 通过课程ID查询课程\n * @param courseId\n * @return\n */\n Course queryCourseById(String courseId);\n\n /**\n * 插入课程\n * @param course\n * @return\n */\n int insertCourse(@Param(\"course\") Course course);\n\n /**\n * 通过ID删除课程\n * @param courseId\n * @return\n */\n int deleteCourseById(String courseId);\n\n /**\n * 查询全部课程\n * @return\n */\n List<Course> queryAllCourses();\n}", "public interface ForumService{\r\n\r\n\t/**\r\n\t * Method return list forum which crated between dates. If forums\r\n\t * are not exist return empty list.\r\n\t * \r\n\t * @type Date\r\n\t * @param minDate\r\n\t * @param maxDate\r\n\t * \r\n\t * @exception DataRetrievalFailureException\r\n\t * @exception DataAccessException\r\n\t * \r\n\t * @return List<Forum>\r\n\t */\r\n\tpublic List<Forum> getListForumCreatedBetweenDateByIdForum(Date minDate,Date maxDate); \r\n\t\r\n\t/**\r\n\t * Method return total count of forums. If forums are not exist return zero. \r\n\t * \r\n\t * @type int\r\n\t * @exception DataAccessException\r\n\t * \r\n\t * @return int\r\n\t */\r\n\tpublic int getCountForum();\r\n\r\n\t/**\r\n\t * Method return list forum by forum name. If forums are not\r\n\t * exist return empty list\r\n\t * \r\n\t * @type String \r\n\t * @param forumName\r\n\t * \r\n\t * @exception DataRetrievalFailureException\r\n\t * @exception DataAccessException\r\n\t * \r\n\t * @return List<Forum>\r\n\t */\r\n\tpublic List<Forum> searchForumByForumName(String forumName);\r\n\t\r\n\t/**\r\n\t * Method return list forum with view status. If forums are not\r\n\t * exist return empty list.\r\n\t * \r\n\t * @type String \r\n\t * @param viewStatus\r\n\t * \r\n\t * @exception DataRetrievalFailureException\r\n\t * @exception DataAccessException\r\n\t * \r\n\t * @return List<Forum>\r\n\t */\r\n\tpublic List<Forum> getListForumWithStatus(String viewStatus);\r\n\t\r\n\t/**\r\n\t * Method return result of check forum on private view status.\r\n\t * \r\n\t * @type Long\r\n\t * @type Boolean\r\n\t * @param idForum\r\n\t * \r\n\t * @exception DataRetrievalFailureException\r\n\t * @exception DataAccessException\r\n\t * \r\n\t * @return Boolean\r\n\t */\r\n\tpublic Boolean isPrivateForum(Long idForum);\r\n\t\r\n\t/**\r\n\t * This method is basic for all entities.The method is one of CRUD methods.\r\n\t * Method return entity by idEntity. If entity not exist return null(use\r\n\t * hibernateTamplate method get)\r\n\t * \r\n\t * @type Long\r\n\t * @param idForum\r\n\t * \r\n\t * @exception DataRetrievalFailureException\r\n\t * @exception DataAccessException\r\n\t * \r\n\t * @return Forum\r\n\t */\r\n\tpublic Forum getForumById(Long idForum);\r\n\t\r\n\t/**\r\n\t * This method is basic for all entities.The method is one of CRUD methods.\r\n\t * Method save entity if entity not null.\r\n\t * \r\n\t * @type Forum\r\n\t * @param forum\r\n\t * \r\n\t * @exception TypeMismatchDataAccessException\r\n\t * @exception DataAccessException\r\n\t */\r\n\tpublic void saveForum(Forum forum);\r\n\t\r\n\t/**\r\n\t * This method is basic for all entities.The method is one of CRUD methods.\r\n\t * Method update entity if entity not null.\r\n\t * \r\n\t * @type Forum\r\n\t * @param forum\r\n\t * \r\n\t * @exception TypeMismatchDataAccessException\r\n\t * @exception DataAccessException\r\n\t */\r\n\tpublic void updateForum(Forum forum);\r\n\t\r\n\t/**\r\n\t * This method is basic for all entities.The method is one of CRUD methods.\r\n\t * Method delete entity by id if entity not null.\r\n\t * \r\n\t * @type Long\r\n\t * @param idForum\r\n\t * \r\n\t * @exception DataRetrievalFailureException\r\n\t * @exception DataAccessException\r\n\t */\r\n\tpublic void deleteForumById(Long idForum);\r\n\t\r\n\t/**\r\n\t * This method is basic for all entities.The method is one of CRUD methods.\r\n\t * Method delete entity if entity not null.\r\n\t * \r\n\t * @type Forum\r\n\t * @param forum\r\n\t * @exception DataAccessException\r\n\t */\r\n\tpublic void deleteForum(Forum forum);\r\n\t\r\n\t/**\r\n\t * This method is basic for all entities. Method return list of entity. If entyty\r\n\t * list not load return empty list.\r\n\t * \r\n\t * @exception DataRetrievalFailureException\r\n\t * @exception DataAccessException\r\n\t * \r\n\t * @return List<Object>\r\n\t */\r\n\tpublic List<Object> getListForum(); \r\n}", "public interface TitleDao {\r\n public List<Topic> findAllTopic(@Param(value = \"begin\") int begin, @Param(value = \"end\") int end);\r\n\r\n public Integer findAllCount();\r\n\r\n public Integer getReplayCount(int replayId);\r\n}", "public interface ISujetForumRepository {\n\n ArrayList<SujetForum> findAll();\n List<SujetForum> findByCours(int id_cours);\n SujetForum findById(int id);\n Boolean create(SujetForum c);\n}", "@GetMapping(path = \"/{id}/courses/all\")\n public Set<CourseCommand> getStudentCourses(@PathVariable Integer id) {\n Set<CourseCommand> courseCommands = new HashSet<>();\n Optional<Student> student = studentService.findStudentById(id);\n\n if (!student.isPresent()) {\n throw new NotFoundException();\n }\n\n for (Course c : student.get().getCourses()) {\n CourseCommand command = courseToCourseCommand.converter(c);\n courseCommands.add(command);\n }\n\n return courseCommands;\n }", "public interface CourseRepository extends CrudRepository<Courses, String> { }", "@Override\r\n\tpublic List<Courseschedule> getCourseschedulesByTeacherId(int teacherId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"from Courseschedule where teacherId=:teacherId and state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Courseschedule> lists = session.createQuery(hql).setInteger(\"teacherId\", teacherId).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getCourseschedulesByTeacherId(int teacherId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public interface TopicService {\n Topic saveNew(Topic topic);\n Topic findOne(int id);\n Topic update(int id, int parentId, Stream<Integer> relatedTopicIds);\n Topic update(int id, int parentId, List<Integer> relatedTopicIds);\n Topic findByName(String name);\n Stream<Topic> getLatestTopics(int authorId);\n}", "public interface CourseDAO {\r\n\r\n \r\n public void create(Integer id, String name, String teacher, Integer studyyear);\r\n\r\n public void setDataSource(DataSource ds);\r\n\r\n\r\n public Course getCourse(Integer id);\r\n\r\n public List<Course> listCourses();\r\n\r\n public void delete(Integer id);\r\n\r\n public void updateTeacher(Integer id, String teacher);\r\n\r\n public void updateCourseName (Integer id, String name);\r\n}", "public interface ChapterService {\n //分页\n Map<String, Object> findByPage(Integer page, Integer rows, String Sid);\n\n //添加\n Map add(Chapter chapter);\n\n //修改\n Map update(Chapter chapter);\n\n //删除\n Map delete(String id);\n\n //修改路径\n void updateUrl(Chapter chapter);\n\n //////////////////////接口////////////////////////////\n List<Chapter> findById(String id);\n}", "List<Topic> findAllByPageNumber(Integer page);", "public interface CourseService {\n\n List<Course> findAll();\n}", "public interface CourseService {\n public List<SysCourse> courseList();\n public void deleteCourse(Integer id);\n\n public void updateCourse(SysCourse sysCourse);\n\n public void courseadd(SysCourse sysCourse);\n}", "TrainingCourse selectByPrimaryKey(String id);", "public interface EssayService extends DomainCRUDService<ComEssay, Integer> {\n\n /**\n * 添加文章和标签和作者\n * param ComEssay essay, List<Integer> lab_num, Integer user_id\n * return 0 or 1\n */\n public void addEssay(ComEssay essay) throws NotFoundException;\n\n /**\n * 删除文章\n * param Integer essay_id\n * return 0 or 1\n */\n public int deleteEssay(Integer essay_id, Timestamp delete_time) throws NotFoundException;\n\n /**\n * 更新文章\n * 更新文章和文章作者对应关系\n * 更新文章标签\n * param ComEssay essay, Integer user_id\n * return 1\n */\n public int updateEssay(ComEssay essay) throws NotFoundException;\n\n /**\n * 根据文章id获取文章\n * param Integer essay_id\n * return ComEssay\n */\n public ComEssay getEssay(Integer essay_id) throws NotFoundException;\n\n /**\n * 根据文章List<id>获取文章List\n * param Integer essay_id\n * return ComEssay\n */\n public List<ComEssay> getEssay(List<Integer> essayId) throws NotFoundException;\n\n /**\n * 获取最新10个文章\n * param\n * return List<ComEssay>\n */\n public List<ComEssay> getEssayLatest();\n\n /**\n * 根据用户id 获取他的所有文章\n * param Integer user_id\n * return List<ComEssay>\n */\n public List<ComEssay> getAllEssayByUserId(Integer user_id);\n}", "public Course getCourseById(String id);", "public interface IJavaDocAttributDao\n{\n List<JavaDocAttribut> getJavaDocAttributs(int idJavaDocMethode);\n}", "public interface TermDao {\n /**\n * 根据学校编号查询\n * @param universityId 学校编号\n * @return\n */\n public List<Term> queryByUniversity(@Param(\"universityId\")int universityId);\n}", "public interface TopicDao {\r\n public boolean create(Topic topic);\r\n}", "public interface CourseService {\n List<Course> getCourses();\n}", "@Override\r\n\t//得到任一都是老师对应的课程种类Id\r\n\tpublic List<Integer> getAllcourseCategoryIDsFormTeacher(int teacherId) {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select courseCategoryIds from Teacher where state=:state and id=:teacherId\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<String> lists = session.createQuery(hql).setInteger(\"state\", 0).setInteger(\"teacherId\",teacherId).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tList<Integer> list =new ArrayList<Integer>();\r\n\t\tlogger.debug(\"use the method named :getAllcourseCategoryIDsFormTeacher(int teacherId)\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\tString[] target= lists.get(0).split(\",\");\r\n\t\t\tfor(int i=0;i<target.length;i++){\r\n\t\t\t\tlist.add(Integer.parseInt(target[i]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Test\n\tpublic void shouldEstablishCourseToTopicsRelationships(){\n\t\tTopic java = topicRepo.save(new Topic(\"Java\")); // create Topic first\n\t\tTopic ruby = topicRepo.save(new Topic(\"Ruby\"));\n\t\tCourse course = new Course(\"OO Languages\", \"description\", java, ruby); // including Topic objects in our course table \n\t\tcourse = courseRepo.save(course); // saving course in repo \n\t\tlong courseId = course.getId(); \n\t\tentityManager.flush(); \n\t\tentityManager.clear();\n\t\t\n\t\tOptional<Course> result = courseRepo.findById(courseId);\n\t\tcourse = result.get();\n\t\t\n\t\tassertThat(course.getTopics(), containsInAnyOrder(java,ruby));\t\n\t\t\t\t\n\t}", "@Repository\npublic interface CourseDao extends CrudRepository<Course, Long>\n{\n\tArrayList<Course> findByCourseId(long courseId);\n}", "public interface LectureService {\n\n /**\n * Save a lecture.\n *\n * @param lectureDTO the entity to save\n * @return the persisted entity\n */\n LectureDTO save(LectureDTO lectureDTO);\n\n /**\n * Get all the lectures.\n *\n * @return the list of entities\n */\n List<LectureDTO> findAll();\n\n\n /**\n * Get the \"id\" lecture.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<LectureDTO> findOne(Long id);\n\n /**\n * Delete the \"id\" lecture.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the lecture corresponding to the query.\n *\n * @param query the query of the search\n * \n * @return the list of entities\n */\n List<LectureDTO> search(String query);\n}", "Lesson loadLesson(int id) throws DataAccessException;", "@GetMapping(\"/tickets/{courseId}\")\n public ResponseEntity getCourseTickets(@PathVariable(name = \"courseId\") Integer courseId) {\n\n if (courseRepository.findById(courseId).isPresent()) {\n List<Ticket> tickets = ticketRepository.findByCourseId(courseId);\n if (tickets.size() == 0) {\n return ResponseEntity.noContent().build();\n }\n\n // väliaikainen\n setOldestTicketActiveToAllCourses(); // courseRepository.findById(2).get()\n\n return ResponseEntity.ok(tickets);\n }\n return ResponseEntity.notFound().build();\n\n }", "@Produces(MediaType.APPLICATION_JSON)\n @Override\n public List<Teacher> getAllTeachers() {\n List<Map<String, Object>> teachersIds = getJdbcTemplate().queryForList(sqlGetAllTeachersIds);\n if (teachersIds.size() == 0) {\n return null;\n }\n // find list of lessons by ID's\n List<Teacher> resultTeachers = new ArrayList<>();\n for (Map<String, Object> teacherId : teachersIds) {\n resultTeachers.add(getTeacherById((int) teacherId.get(\"id\")));\n }\n return resultTeachers;\n }", "List<UserTopic> selectByExample(UserTopicExample example);", "List<UserTopic> selectByExample(UserTopicExample example);", "@Transactional\n\t@Override\n\tpublic List<Lesson> showLesson(int qid) throws Exception {\n\t\treturn lessonDao.findAllByQid(qid);\n\t}", "public interface STagTopicDAO extends BaseDAO<STagTopic> {\n /**\n * Retrieves semantic tags of topics with given id from table \"STAGTopic\"\n * @param id the id of topic\n * @return list of Semantic Tags\n */\n List<SemanticTag> getSTagByTopicId(long id);\n\n /**\n * Retrieves result set by checking semantic tags related to query\n * @param keywords search query\n * @return list of topics\n */\n List<Topic> searchTopicBySTag(String[] keywords);\n}", "Topic getTopic();", "public interface CourseDAO {\n\t\n Course saveCourse(Course course);\n\n Course getCourseById(int id);\n \n CourseDTO getCourseDTOById(int id);\n\n List<Course> getCourseByTeacherId(int id);\n\n void updateCourse(Course course);\n \n CourseDTO updateCourse(int id, CourseDTO course);\n \n void deleteCourse(int id);\n}", "public interface TeacherService {\n\n public boolean isValid(Integer id,\n String lastName,\n String firstName,\n String password);\n public boolean validateRegister(String lastName, String firstName,\n String fatherInitial, String username,\n String password);\n public Teacher getTeacher(Integer id);\n public void addStudent(String lastName, String firstName,\n String fatherInitial, String username,\n String password,\n Integer courseId, Integer teacherId);\n public Integer getStudentId(String username);\n public void addGrade(String studentName, String courseName, Integer teacherId, Integer nota);\n public Integer getCourseID(Integer id, String courseName);\n public List<Course> getCourses(Integer id);\n public List<Student> getStudents(int courseId, int teacherId);\n public int CountStudents(int courseId, int teacherId);\n public List<StudentperCourse> getPopulation (int teacherId);\n public List<StudentwithGrades> getStudentAtCourse(int teacherId, int courseId);\n}", "@Override\n public ArrayList<Course> getAll() {\n ArrayList<Course> allCourses = new ArrayList();\n String statement = FINDALL;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAll()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return allCourses;\n }", "public interface IstoryCategoryDAO {\n\n\tpublic List<StoryCategory> findAll();\n\n}", "@Dao\npublic interface CourseDAO {\n\n // get all courses\n @Query(\"select * from course\")\n LiveData<List<Course>> getAll();\n\n // get a single course by primary key\n @Query(\"select * from course where _id = :id\")\n List<Course> loadById(int id);\n\n // edit selected course\n @Update\n void editCourse(Course course);\n\n //delete selected course\n @Delete\n void delete(Course course);\n\n //delete all courses\n @Query(\"Delete from course\")\n void deleteAll();\n\n // add one or more courses\n @Insert\n void insert(Course... courses);\n}", "public Set<Topic> getTopics();", "List<Course> findByCustomer(Long id);", "public ArrayList<Trainer> getTrainersForCourse(Course course){\n ArrayList<Trainer> result = new ArrayList();\n \n String statement = GET_TRAINERS_FOR_COURSE;\n\n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Trainer trainer = new Trainer(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getString(\"subject\"));\n result.add(trainer);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getTrainersForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }", "public interface StudentScheduleDaoI {\n /**\n * 保存学生选课记录\n *\n * @param studentSchedule 选课记录\n */\n void saveStudentSchedule(StudentSchedule studentSchedule);\n\n /**\n * 删除学生选课记录\n *\n * @param stuId 学号\n * @param tchId 教师号\n * @param dpmId 学院号\n * @param crsId 课程号\n * @return 返回删除条数\n */\n int deleteStudentSchedule(String stuId, String tchId, String dpmId, String crsId);\n\n /**\n * 通过特定条件查找学生选课记录,并返回对应实体对象\n *\n * @param conditions 条件。key-字段,value-对应值。\n * @param equalConditions 对应于每个键值对,是采用=匹配,还是采用like模糊匹配的标志,不传值默认为=\n * @return 实体对象集合\n */\n List<StudentSchedule> findStudentScheduleByConditions(Map<String, Object> conditions, boolean... equalConditions);\n\n /**\n * 分页查找学生已选课程\n * @param stuId 学号\n * @param pageNumber 页码\n * @return 学生选课实体\n */\n List<StudentSchedule> findStudentSchedules(String stuId, int pageNumber);\n\n List<Student> findStudentsByCrsAndDpm(String dpm, String crs);\n\n StudentSchedule findByStuAndCrsAndDpm(String stu, String crs, String dpm);\n\n List<StudentSchedule> findTeacherCourses(String tid);\n\n List<Object[]> findTeacherCoursess(String tid);\n}", "private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }", "public interface CourseService {\n\n List<Course> getList();\n\n List<Course> getUnselectedList(int studentId);\n\n Course find(int id);\n\n boolean selectCourse(String[] array, int studentId);\n\n boolean dropCourse(String[] array, int studentId);\n\n boolean addRequest(AddCourseRequest addCourseRequest);\n\n boolean editRequest(EditCourseRequest editCourseRequest);\n\n List<StudentGradesVO> getStudentGrades(int courseId);\n\n}", "public interface ITeacherService {\n\n List<Teacher> getAllTeacher();\n}", "public List<Course> getAllCourses(String topicId) {\n\t\tList<Course> courses = new ArrayList<>();\n\t\tcourseRepository.findByTopicId(topicId)\n\t\t.forEach(courses::add);\n\t\treturn courses;\n\t}", "public interface CommentService extends Service<Comment>{\n\n List<Comment> findByCourses(Integer id);\n\n void delete(Integer id);\n\n}", "public interface PostRepository extends JpaRepository<Post, Long> {\n\n Page<Post> findAllByTopicId(Pageable pageable, Long topicId);\n}", "@Component\npublic interface gradeDao {\n /**\n * 添加学生成绩\n * @param studentName\n * @param courseName\n * @param grade\n * @return\n */\n public Integer insertStudentGrade(@Param(\"studentName\")String studentName,@Param(\"courseName\")String courseName,@Param(\"grade\")Integer grade);\n\n\n public User selectSubject(@Param(\"id\")String id);\n}", "@GetMapping(\"/topic/{id}\") // se captura lo que se pone entre llaves\n\tpublic Topic getTopicById(@PathVariable int id) {\n\t\treturn topicService.getTopicById(id);\n\t}", "@Override\n public List<Course> getCourses() {\n return courseDao.findAll();\n }", "public static List<Subject> getAllbyLectID(int id) {\n List<Subject> list = new ArrayList<>();\n try {\n Connection connection = MySQL.getConnection();\n Statement stmt = connection.createStatement();\n String sqlSelect = \"select * from subjects where lect_id=\" + id + \" group by subject_name\";\n ResultSet rs = stmt.executeQuery(sqlSelect);\n while (rs.next()) {\n Subject e = new Subject();\n e.setSubjectID(rs.getInt(1));\n e.setSubjectCode(rs.getString(2));\n e.setSubjectName(rs.getString(3));\n e.setFacultyID(rs.getInt(4));\n e.setLectID(rs.getInt(5));\n list.add(e);\n\n }\n } catch (SQLException ex) {\n ex.getMessage();\n }\n\n return list;\n }", "public interface CourseService {\n Course addCourse(CourseRequest courseRequest);\n Course getCourseByCourseId(String courseId);\n List<Course> getCourseList();\n List<Course> getCourseListByDegree(long degreeId);\n List<Course> getCourseListBySemester(Integer semester);\n Course editCourse(CourseRequest courseRequest);\n Course deleteCourse(String courseId);\n}", "public Courses getCourseTable();", "@GetMapping(\"/tickets/course/{courseName}\")\n public ResponseEntity getCourseTickets(@PathVariable(name = \"courseName\") String courseName) {\n\n// if (courseRepository.findBy(courseName)) {\n List<Ticket> tickets = ticketRepository.findByCourseName(courseName);\n if (tickets.size() == 0) {\n return ResponseEntity.noContent().build();\n }else{\n\n setOldestTicketActiveToAllCourses(); // courseRepository.findById(2).get()\n\n return ResponseEntity.ok(tickets);\n }\n// return ResponseEntity.notFound().build();\n\n }", "public interface KnowledgeService extends BaseServiceHelper<Knowledge> {\n\n /**\n * 获取某个科目的顶级知识点信息\n * @param subjectId 科目ID\n */\n List<Module> findModule(int subjectId);\n\n /**\n * 获取某个知识点的详情\n * @param knowledgeId\n * @return\n */\n QuestionPoint findById(int knowledgeId);\n}", "public interface ForumPostDao {\n\n List<ForumPostPO> getPostModels(int topic_id,int page, int page_size);\n\n ForumPostPO getPostModel(int id);\n\n int addPostModel(ForumPostPO post);\n\n int deletePostModels(int topic_id);\n\n int deletePostModel(int id);\n\n int updatePostModel(int id, ForumPostPO post);\n\n int getNumOfPosts(int topic_id);\n\n}", "public interface TEndProjectCommentDAO extends BaseDao<TEndProjectComment> {\n //获取一个教师可以评审的结题\n List<TEndProjectComment> findMyReviewEndPros(String teaCode, PageBean pageBean);\n\n int findMyReviewEndProsCount(String teaCode);\n\n List findByEndprojectcommentAdvise(Object endprojectcommentAdvise);\n\n List findByEndprojectcommentContent(Object endprojectcommentContent);\n\n List findByIsdeleted(Object isdeleted);\n}", "@Override\n\tpublic List<Chapter> findByCourse(Integer idCourse) {\n\t\treturn rDao.findByCourse(idCourse);\n\t}", "public interface IAdminQuestionService {\n\n public AdminDTO<List<Question>> findAll(Integer pageNo , Integer pageSize);\n\n public AdminDTO addReply (Long questionId,String replyContent,Long userId,String quetsionTitle);\n\n public AdminDTO deleteQuestion(Long[] questionId);\n\n public Integer questionCount();\n\n public AdminDTO checkQuestion(Long questionId);\n\n}", "@Transactional\n\t@Override\n\tpublic VOutputLesson getLessonById(int id) throws Exception {\n\t\treturn lessonDao.findById(id);\n\t}", "public interface Product_introduceService {\n\n public List<Product_introduce> sellistpibypd_id(int pd_id);\n}", "public Optional<Course> getCourse(String id) {\n//\t\treturn topics.stream().filter(t -> t.getId().equals(id)).findFirst().get();\n\t\treturn courseRepository.findById(id);\n\t}", "@Override\n public Course getById(int id) {\n Course result = null;\n String statement = FINDBYID;\n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)id});\n try {\n while(rs.next()){\n result = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getById()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n return result;\n }", "public List<String>ViewCourseDAO(int id) {\n\t\tList<String> courses = new ArrayList<String>();\n\t\ttry {\n stmt = connection.prepareStatement(SqlQueries.ViewAssignCourse);\n stmt.setInt(1, id);\n stmt.execute();\t \n ResultSet rs =stmt.executeQuery();\n while(rs.next())\n {\n \tcourses.add(rs.getString(1));\n }\n } catch(Exception ex){\n \tlogger.error(ex.getMessage());\n \n }finally{\n \t//close resources\n \tDBUtil.closeStmt(stmt);\n }\n\treturn courses ;\n\t}", "List<Question> getQuestions();", "List<TrainingCourse> selectByExample(TrainingCourseExample example);", "UserTopic selectByPrimaryKey(Integer id);", "@RequestMapping(value = \"course\", method = RequestMethod.GET)\n public String course(Model model, @RequestParam int id){\n Course cor = courseDao.findOne(id);\n List<Recipe> recipes = cor.getRecipes();\n model.addAttribute(\"recipes\", recipes);\n model.addAttribute(\"title\", cor.getCourseName() + \" recipes\");\n return \"recipe/list-under\";\n }", "TrainCourse selectByPrimaryKey(Long id);", "public interface ICriticPresenter extends BasePresenter{\n /**\n * @创建用户 crash\n * @创建时间 2018/10/28 14:50\n * @方法说明:获取某条评论\n */\n void getContentDynamic(String courseId);\n String ID=\"id\";\n String PID=\"pid\";//课程id\n String USER=\"user\";//发布评论人\n String SAY=\"say\";//评论内容\n String TIME=\"time\";//发布时间\n\n\n}", "public interface CategoryDAO extends DAO<AbsractCategory> {\n\n /**\n * getting exactly one category specified by the given id\n *\n * @param identificaitonNumber of the category to search for\n * @return exactely one category\n * @throws PersistenceException\n */\n AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;\n\n /**\n * getting a list of all equipment categorys\n *\n * @return a list of all equipment categorys like, kurzhantel, langhantel, springschnur ...\n * @throws PersistenceException\n */\n List<EquipmentCategory> getAllEquipment() throws PersistenceException;\n\n /**\n * getting a list of all muscle groups\n *\n * @return a list of all muslce groups like, bauchmuskeln, oberschenkel, unterschenkel ...\n * @throws PersistenceException\n */\n List<MusclegroupCategory> getAllMusclegroup() throws PersistenceException;\n\n /**\n * getting a list of all trainingstypes\n *\n * @return a list of all trainingstypes: ausdauer, kraft, balance, flexibilitaet\n * @throws PersistenceException\n */\n List<TrainingsCategory> getAllTrainingstype() throws PersistenceException;\n\n}", "@Override\r\n\tpublic Subjects getById( int id) {\n\t\treturn subectsDao.getById( id);\r\n\t}", "List<FAQModel> getFAQs();", "@Override\n\tpublic List<Course> show(Course course) {\n\t\tString hql=\"select pro from Profession pro left outer join fetch pro.courses where pro.ProfessionID=?\";\n\t\tString[] parmas={course.getProfession().getProfessionID()};\n\t\treturn dao.select(hql,parmas);\n\t}" ]
[ "0.70378053", "0.6671556", "0.6550332", "0.62850314", "0.6098824", "0.6062238", "0.6010867", "0.6002946", "0.59908056", "0.5975984", "0.59579414", "0.58967555", "0.5892682", "0.58617723", "0.58592236", "0.5818239", "0.57591534", "0.5752471", "0.5746539", "0.5727235", "0.56792545", "0.56407404", "0.56358564", "0.56324536", "0.5620778", "0.5596639", "0.5592804", "0.55825716", "0.55799246", "0.5561401", "0.55576193", "0.55442494", "0.5538974", "0.55321443", "0.5532028", "0.5521224", "0.55149615", "0.5507015", "0.5505039", "0.5504521", "0.5504196", "0.5503105", "0.5502139", "0.54984194", "0.54964983", "0.54778004", "0.5468466", "0.5466226", "0.5454832", "0.54420996", "0.543714", "0.5428648", "0.5422548", "0.5420231", "0.5420231", "0.5417931", "0.5408241", "0.5407906", "0.53954816", "0.5385337", "0.5381942", "0.53774464", "0.5366783", "0.53620577", "0.5353924", "0.53520644", "0.5347398", "0.53430545", "0.53412753", "0.5336746", "0.5334415", "0.5333189", "0.533228", "0.5330387", "0.5323649", "0.53221446", "0.53153884", "0.53107274", "0.5303611", "0.53024733", "0.5298613", "0.5297873", "0.5293581", "0.5285337", "0.52828735", "0.5275519", "0.52710825", "0.52660775", "0.52475625", "0.52359456", "0.5234524", "0.5232544", "0.5228159", "0.52273685", "0.5224069", "0.5218749", "0.5217476", "0.5212115", "0.52114546", "0.5207298" ]
0.62719375
4
Get the transparency based on the scroll position. Transparency will approach 100% as the scroll reaches the height of the referenced view.
private float getAlphaForView(float position, float referenceHeight) { if (position < 0) { return 0; } if (position > referenceHeight) { return 1; } return position / referenceHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getOpacity(){\n\t\t\n\t\tif(this.isDestroyed()){\n\t\t\treturn 0;\n\t\t}\n\t\tlong time = System.currentTimeMillis() - creationTime;\n\t\t\n\t\tfloat opacity;\n\t\tif(time == 0 || time == visibleTime){\n\t\t\topacity = 0;\n\t\t}else if(time < visibleTime/4){\n\t\t\topacity = (float)easingInOut(time, 0, 1 , visibleTime/4);\n\t\t}else if (time > (visibleTime/4)*3){\n\t\t\topacity = (float)easingInOut(visibleTime - time, 0, 1,visibleTime/4);\n\t\t}else{\n\t\t\topacity = 1;\n\t\t}\n\t\treturn Math.max(0, Math.min(1,opacity));\n\t}", "int getOpacity();", "private float calculateAlpha() {\n float alpha = 1.2f*(myCamera.getViewportWidth()/(2*Const.WORLD_WIDTH-myCamera.getViewportWidth()))-0.2f;\n if(alpha < 0) alpha = 0;\n if(alpha > 1) alpha = 1;\n return alpha;\n }", "@Override\n public int getOpacity() {\n return DrawableUtils.getOpacityFromColor(DrawableUtils.multiplyColorAlpha(mColor, mAlpha));\n }", "public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }", "protected int getShadeAlpha() {\n int a = currAlpha - 80;\n if (a < 0)\n a = 0;\n return a;\n }", "public float getAlpha() {\n if (this.isConnectedToGame)\n return 1.0f;\n else\n return 0.5f;\n }", "@Override\n public void onScrollChanged() {\n int maxDistance = binding.get().coverImageView.getHeight();\n /* how much we have scrolled */\n int movement = binding.get().nestedScrollView.getScrollY();\n /*finally calculate the alpha factor and set on the view */\n float alphaFactor = ((movement * 1.0f) / (maxDistance - binding.get().toolbar.getHeight()));\n\n if (movement >= 0 && movement <= maxDistance) {\n /*for image parallax with scroll */\n // binding.get().itemNameTextView.setTranslationY(-movement/2);\n /* set visibility */\n binding.get().toolbar.setAlpha(alphaFactor);\n binding.get().toolbarTextView.setText(\"\");\n } else {\n binding.get().toolbarTextView.setText(binding.get().itemNameTextView.getText());\n }\n\n }", "double getTransparency();", "public int getScrollNeededToBeFullScreen() {\n return getTransparentViewHeight();\n }", "public int getScroll() {\n return mTransparentStartHeight - getTransparentViewHeight() + getMaximumScrollableHeaderHeight()\n - getToolbarHeight() + mScrollView.getScrollY();\n }", "public float getOpacity() { Number n = (Number)get(\"Opacity\"); return n!=null? n.floatValue() : 1; }", "private static boolean viewIsOpaque(View view) {\n if (ViewCompat.isOpaque(view)) {\n return true;\n }\n if (Build.VERSION.SDK_INT >= 18) {\n return false;\n }\n if ((view = view.getBackground()) == null) return false;\n if (view.getOpacity() == -1) return true;\n return false;\n }", "protected int getColor() {\n return Color.TRANSPARENT;\n }", "public float getAlpha();", "public float getAlpha();", "public Color getScrollBorderColor();", "@Override\n public void onScrollChanged() {\n int maxDistance = binding.get().layoutnull.getHeight();\n /* how much we have scrolled */\n int movement = binding.get().nestedScrollView.getScrollY();\n /*finally calculate the alpha factor and set on the view */\n // float alphaFactor = ((movement * 1.0f) / (maxDistance - binding.get().toolbar.getHeight()));\n\n if (movement >= 0 && movement <= maxDistance) {\n /*for image parallax with scroll */\n // binding.get().itemNameTextView.setTranslationY(-movement/2);\n /* set visibility */\n // binding.get().toolbar.setAlpha(alphaFactor);\n binding.get().toolbarTextView2.setText(\"\");\n } else {\n binding.get().toolbarTextView2.setText(binding.get().itemNameTextView.getText());\n }\n\n }", "@Override\n public int getAlpha() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n return patternDrawable.getAlpha();\n }\n\n return 0xFF;\n }", "private boolean rightFade(View v, int i, float scrollProgress){\n if( scrollProgress >= 0 ){\n v.setScaleX(1);\n v.setScaleY(1);\n v.setAlpha(1);\n v.setTranslationX(0);\n return true;\n }\n\n double gapOfCellLayouts = ( getWidth() - v.getWidth() ) / 2;\n float scale = 0.5f + 0.5f * (float)(1+scrollProgress);\n float alpha = (1+scrollProgress);\n float trans = Math.abs(scrollProgress) * (float)(gapOfCellLayouts + v.getWidth());\n\n v.setPivotX(v.getWidth()/2);\n v.setPivotY(v.getHeight()/2);\n v.setScaleX(scale);\n v.setScaleY(scale);\n v.setAlpha(alpha);\n v.setTranslationX(-trans);\n\n return true;\n }", "public Integer getOpacity() {\n return opacity;\n }", "public int getPointOpacity()\n {\n return myPointOpacity;\n }", "@Override\n\t\t\tpublic int getOpacity() {\n\t\t\t\treturn 0;\n\t\t\t}", "public int getTransparency() {\n return Color.TRANSLUCENT;\n }", "@Override\r\n\t\tpublic int getOpacity()\r\n\t\t{\n\t\t\treturn 0;\r\n\t\t}", "float getAlpha();", "@Override\n\tpublic int getOpacity() {\n\t\treturn 0;\n\t}", "@Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n int colorUpdate = (Integer) evaluator.evaluate(positionOffset, colorList[position], colorList[position == 2 ? position : position + 1]);\n mViewPager.setBackgroundColor(colorUpdate);\n }", "@Override\n public double getGlobalAlpha() {\n return graphicsEnvironmentImpl.getGlobalAlpha(canvas);\n }", "@JSProperty(\"overscroll\")\n double getOverscroll();", "public int getTransparency() {\n/* 148 */ return this.bufImg.getColorModel().getTransparency();\n/* */ }", "public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }", "@FloatRange(from = 0.0, to = 1.0)\n public float getTargetAlpha() {\n return mImpl.getTargetAlpha();\n }", "public void onScrollChanged(ScrollView who, int l, int t, int oldl, int oldt) {\n final float headerHeight = ViewHelper.getY(mTitleView) - (mNavigationTop.getHeight() - mTitleView.getHeight());\n final float ratio = (float) Math.min(Math.max(t, 0), headerHeight) / headerHeight;\n final int newAlpha = (int) (ratio * 255);\n mNavigationTop.getBackground().setAlpha(newAlpha);\n\n Animation animationFadeIn = AnimationUtils.loadAnimation(getActivity().getApplicationContext(), R.anim.fadein);\n Animation animationFadeOut = AnimationUtils.loadAnimation(getActivity().getApplicationContext(),R.anim.fadeout);\n\n if (newAlpha == 255 && mNavigationTitle.getVisibility() != View.VISIBLE && !animationFadeIn.hasStarted()){\n mNavigationTitle.setVisibility(View.VISIBLE);\n mNavigationTitle.startAnimation(animationFadeIn);\n } else if (newAlpha < 255 && !animationFadeOut.hasStarted() && mNavigationTitle.getVisibility() != View.INVISIBLE) {\n mNavigationTitle.startAnimation(animationFadeOut);\n mNavigationTitle.setVisibility(View.INVISIBLE);\n\n }\n\n }", "public boolean getTransparent() {\n\t\treturn _transparent;\n\t}", "public int getScrollOffset() {\n return visibility.getValue();\n }", "public float getConstantOpacity() {\n/* 185 */ return getCOSObject().getFloat(COSName.CA, 1.0F);\n/* */ }", "@Override\n\tpublic int getOpacity() {\n\t\treturn PixelFormat.OPAQUE;\n\t}", "public int getAlpha()\n {\n return getColor().alpha();\n }", "private static float m36211g(View view) {\n float alpha = view.getAlpha();\n while (view != null && view.getParent() != null && ((double) alpha) != 0.0d && (view.getParent() instanceof View)) {\n alpha *= ((View) view.getParent()).getAlpha();\n view = (View) view.getParent();\n }\n return alpha;\n }", "public void onDraw(Canvas canvas) {\n float f = 1.0f;\n if (SharedDocumentCell.this.thumbImageView.getImageReceiver().hasBitmapImage()) {\n f = 1.0f - SharedDocumentCell.this.thumbImageView.getImageReceiver().getCurrentAlpha();\n }\n SharedDocumentCell.this.extTextView.setAlpha(f);\n SharedDocumentCell.this.placeholderImageView.setAlpha(f);\n super.onDraw(canvas);\n }", "public int getGridOpacity() {\n return this.gridOpacity;\n }", "private void prepareScrollViewAndWishlist(View view) {\n final View productBackground = view.findViewById(R.id.product_background);\n wishlistButton = (FabButton) view.findViewById(R.id.product_add_to_wish_list);\n\n scrollViewListener = new ViewTreeObserver.OnScrollChangedListener() {\n private boolean alphaFull = false;\n\n @Override\n public void onScrollChanged() {\n int scrollY = contentScrollLayout.getScrollY();\n if (productImagesRecycler != null) {\n\n if (wishlistButton.getWidth() * 2 > scrollY) {\n wishlistButton.setTranslationX(scrollY / 4);\n } else {\n wishlistButton.setTranslationX(wishlistButton.getWidth() / 2);\n }\n\n float alphaRatio;\n if (productImagesRecycler.getHeight() > scrollY) {\n productImagesRecycler.setTranslationY(scrollY / 2);\n alphaRatio = (float) scrollY / productImagesRecycler.getHeight();\n } else {\n alphaRatio = 1;\n }\n// Timber.e(\"scrollY:\" + scrollY + \". Alpha:\" + alphaRatio);\n\n if (alphaFull) {\n if (alphaRatio <= 0.99) alphaFull = false;\n } else {\n if (alphaRatio >= 0.9) alphaFull = true;\n productBackground.setAlpha(alphaRatio);\n }\n } else {\n Timber.e(\"Null productImagesScroll\");\n }\n }\n };\n }", "private AlphaComposite makeTransparent(float alpha){\n return(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,alpha));\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineOpacity() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineOpacity());\n }", "@Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n if (position < (pagerAdapter.getCount() - 1) && position < (color.length - 1)) {\n viewPager.setBackgroundColor((Integer) argbEvaluator.evaluate(positionOffset, color[position], color[position + 1]));\n } else {\n viewPager.setBackgroundColor(color[color.length - 1]);\n }\n }", "PositionEffect getPositionEffect();", "public TransparencyDemo() {\r\n super();\r\n view3DButton.addItemListener(this);\r\n drawBehindButton.addItemListener(this);\r\n transparencySlider.addChangeListener(this);\r\n }", "public float getDayOpacity() {\r\n //Gdx.app.debug(\"Clock\", \"h: \" + (24f * (seconds / 60f)));\r\n if (dayOpacity < 0.25) {\r\n return 0;\r\n } else if (dayOpacity < 0.5) {\r\n return (dayOpacity - 0.25f) / 0.25f;\r\n } else {\r\n return 1;\r\n }\r\n }", "public float getAlpha() {\n \t\treturn alpha;\n\t}", "public PDColor getInteriorColor() {\n/* 435 */ return getColor(COSName.IC);\n/* */ }", "public int getPointerAlphaOnTouch() {\r\n\t\treturn mPointerAlphaOnTouch;\r\n\t}", "protected boolean getTransparent() {\n\treturn isTransparent;\n }", "@Override\n\tpublic void setTransparency(float transparency) {\n\t\t\n\t}", "public float getColorFadeLevel() {\n return mColorFadeLevel;\n }", "public boolean isOpaque()\n/* */ {\n/* 83 */ Color back = getBackground();\n/* 84 */ Component p = getParent();\n/* 85 */ if (p != null) {\n/* 86 */ p = p.getParent();\n/* */ }\n/* */ \n/* 89 */ boolean colorMatch = (back != null) && (p != null) && (back.equals(p.getBackground())) && (p.isOpaque());\n/* */ \n/* */ \n/* 92 */ return (!colorMatch) && (super.isOpaque());\n/* */ }", "public int getPropertyFade()\n {\n return iPropertyFade.getValue();\n }", "public String getTransparency() {\n return transparency;\n }", "public void drawAlpha(ItemListener item) {\n if (this.mFocus != null) {\n AlphaParams alphaParams = this.mFocus.getParams().getAlphaParams();\n float dstAlpha = alphaParams.getFromAlpha();\n float diffAlpha = alphaParams.getToAlpha() - alphaParams.getFromAlpha();\n float coef = ((float) this.mFrame) / ((float) alphaParams.getAlphaFrameRate());\n Interpolator alphaInterpolator = this.mFocus.getParams().getAlphaParams().getAlphaInteroplator();\n if (alphaInterpolator == null) {\n alphaInterpolator = new LinearInterpolator();\n }\n float dstAlpha2 = dstAlpha + (diffAlpha * alphaInterpolator.getInterpolation(coef));\n if (this.mLastItem == item) {\n dstAlpha2 = alphaParams.getToAlpha();\n }\n if (this.mConvertSelector != null) {\n this.mConvertSelector.setAlpha(dstAlpha2);\n if (this.mSelector != null) {\n this.mSelector.setAlpha(0.0f);\n }\n } else if (this.mSelector != null) {\n this.mSelector.setAlpha(dstAlpha2);\n }\n }\n }", "@Override\n protected void onLayout(boolean changed,\n int left,\n int top,\n int right,\n int bottom) {\n // Layout children.\n super.onLayout(changed, left, top, right, bottom);\n\n // Set translation Y of the movable child view.\n if (!isInEditMode() &&\n mElasticScrollView instanceof NestedScrollingChild &&\n changed && !isOpened()) {\n ViewCompat.setTranslationY(mElasticScrollView,\n mElasticScrollView.getMeasuredHeight());\n }\n // TODO: Handle scroll-view header and footer.\n\n // Set the cover boundary.\n if (changed) {\n mBgFadeRect.set(getLeft(),\n getTop(),\n getRight(),\n getBottom());\n }\n }", "public boolean isTranslucent() {\n return false;\n }", "public int getPropertyFade();", "void onFadingViewVisibilityChanged(boolean visible);", "public int getScrollPositionIfEndless(){\n\t\treturn mScrollPositionIfEndless;\n\t}", "private void setupNestedScrollView() {\n mBinding.include.tvPdpBrandName.setAlpha(POINT_ZERO);\n mBinding.nsPdp.setOnScrollChangeListener(\n (NestedScrollView.OnScrollChangeListener) (v, scrollX, scrollY, oldScrollX, oldScrollY) -> {\n if (scrollY < ONE_FIFTY) {\n mBinding.include.tvPdpBrandName.setAlpha(POINT_ZERO);\n } else if (scrollY > ONE_FIFTY && scrollY < TWO_FIFTY) {\n mBinding.include.tvPdpBrandName.setAlpha(POINT_THREE);\n } else if (scrollY > TWO_FIFTY && scrollY < THREE_FIFTY) {\n mBinding.include.tvPdpBrandName.setAlpha(POINT_SIX);\n } else if (scrollY > THREE_FIFTY && scrollY < FIVE_HUNDRED) {\n mBinding.include.tvPdpBrandName.setAlpha(POINT_EIGHT);\n } else {\n mBinding.include.tvPdpBrandName.setAlpha(ONE);\n }\n });\n }", "private int getScrollVal() {\n return Math.abs((int)scrollBar.getValue());\n }", "int getShade(){\n return getPercentageValue(\"shade\");\n }", "public int getPointerAlpha() {\r\n\t\treturn mPointerAlpha;\r\n\t}", "@Override\n public void onPageScrolled(int position, float positionOffset,\n int positionOffsetPixels) {\n\n if (positionOffset > 0 && position < mTabIndicator.size() - 1) {\n ChangeColorIconWithTextView left = mTabIndicator.get(position);\n ChangeColorIconWithTextView right = mTabIndicator.get(position + 1);\n\n left.setIconAlpha(1 - positionOffset);\n right.setIconAlpha(positionOffset);\n }\n\n }", "public abstract View getBlackBackground();", "private static boolean m36212h(View view) {\n return view.isShown() && ((double) view.getAlpha()) > 0.0d;\n }", "public float getStartAlpha() {\n return startAlpha;\n }", "public void onDraw(Canvas canvas) {\n float f;\n int dp = AndroidUtilities.dp(13.0f);\n int access$1100 = (StickerMasksAlert.this.scrollOffsetY - StickerMasksAlert.this.backgroundPaddingTop) - dp;\n if (StickerMasksAlert.this.currentSheetAnimationType == 1) {\n access$1100 = (int) (((float) access$1100) + StickerMasksAlert.this.gridView.getTranslationY());\n }\n int dp2 = AndroidUtilities.dp(20.0f) + access$1100;\n int measuredHeight = getMeasuredHeight() + AndroidUtilities.dp(15.0f) + StickerMasksAlert.this.backgroundPaddingTop;\n int dp3 = AndroidUtilities.dp(12.0f);\n if (StickerMasksAlert.this.backgroundPaddingTop + access$1100 < dp3) {\n float dp4 = (float) (dp + AndroidUtilities.dp(4.0f));\n float min = Math.min(1.0f, ((float) ((dp3 - access$1100) - StickerMasksAlert.this.backgroundPaddingTop)) / dp4);\n int i = (int) ((((float) dp3) - dp4) * min);\n access$1100 -= i;\n dp2 -= i;\n measuredHeight += i;\n f = 1.0f - min;\n } else {\n f = 1.0f;\n }\n if (Build.VERSION.SDK_INT >= 21) {\n int i2 = AndroidUtilities.statusBarHeight;\n access$1100 += i2;\n dp2 += i2;\n }\n StickerMasksAlert.this.shadowDrawable.setBounds(0, access$1100, getMeasuredWidth(), measuredHeight);\n StickerMasksAlert.this.shadowDrawable.draw(canvas);\n if (f != 1.0f) {\n Theme.dialogs_onlineCirclePaint.setColor(-14342875);\n this.rect.set((float) StickerMasksAlert.this.backgroundPaddingLeft, (float) (StickerMasksAlert.this.backgroundPaddingTop + access$1100), (float) (getMeasuredWidth() - StickerMasksAlert.this.backgroundPaddingLeft), (float) (StickerMasksAlert.this.backgroundPaddingTop + access$1100 + AndroidUtilities.dp(24.0f)));\n canvas.drawRoundRect(this.rect, ((float) AndroidUtilities.dp(12.0f)) * f, ((float) AndroidUtilities.dp(12.0f)) * f, Theme.dialogs_onlineCirclePaint);\n }\n long elapsedRealtime = SystemClock.elapsedRealtime();\n long j = elapsedRealtime - this.lastUpdateTime;\n if (j > 18) {\n j = 18;\n }\n this.lastUpdateTime = elapsedRealtime;\n if (f > 0.0f) {\n int dp5 = AndroidUtilities.dp(36.0f);\n this.rect.set((float) ((getMeasuredWidth() - dp5) / 2), (float) dp2, (float) ((getMeasuredWidth() + dp5) / 2), (float) (dp2 + AndroidUtilities.dp(4.0f)));\n int alpha = Color.alpha(-11842741);\n Theme.dialogs_onlineCirclePaint.setColor(-11842741);\n Theme.dialogs_onlineCirclePaint.setAlpha((int) (((float) alpha) * 1.0f * f));\n canvas.drawRoundRect(this.rect, (float) AndroidUtilities.dp(2.0f), (float) AndroidUtilities.dp(2.0f), Theme.dialogs_onlineCirclePaint);\n float f2 = this.statusBarProgress;\n if (f2 > 0.0f) {\n float f3 = f2 - (((float) j) / 180.0f);\n this.statusBarProgress = f3;\n if (f3 < 0.0f) {\n this.statusBarProgress = 0.0f;\n } else {\n invalidate();\n }\n }\n } else {\n float f4 = this.statusBarProgress;\n if (f4 < 1.0f) {\n float f5 = f4 + (((float) j) / 180.0f);\n this.statusBarProgress = f5;\n if (f5 > 1.0f) {\n this.statusBarProgress = 1.0f;\n } else {\n invalidate();\n }\n }\n }\n Theme.dialogs_onlineCirclePaint.setColor(Color.argb((int) (this.statusBarProgress * 255.0f), (int) (((float) Color.red(-14342875)) * 0.8f), (int) (((float) Color.green(-14342875)) * 0.8f), (int) (((float) Color.blue(-14342875)) * 0.8f)));\n canvas.drawRect((float) StickerMasksAlert.this.backgroundPaddingLeft, 0.0f, (float) (getMeasuredWidth() - StickerMasksAlert.this.backgroundPaddingLeft), (float) AndroidUtilities.statusBarHeight, Theme.dialogs_onlineCirclePaint);\n }", "public Color getSupportEdgeFadeDestinationColor() {\n return (_supportEdgeFadeDestinationColor);\n }", "@Override\n public int getAlpha() {\n return mAlpha;\n }", "public Animation inAlpha() {\n\t\treturn getAlphaInAnim(mInDuration, false);\n\t}", "@SuppressWarnings(\"unused\")\n public void scrollRectToVisible() {\n }", "public native int getScrollIndocatorStyle() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.scrollIndicatorStyle;\n }-*/;", "@Override\n public void onAbsoluteScrollChange(int i) {\n }", "public int getZIndex()\n {\n return zIndex;\n }", "protected static native String getComputedBackgroundColor(Element e)/*-{\n var cs = $wnd.document.defaultView.getComputedStyle(e, null);\n return cs.getPropertyValue('background-color');\n }-*/;", "@Override\n public void setAlpha(float alpha) {\n super.setAlpha(alpha);\n\n int newVisibility = alpha <= 0f ? View.GONE : View.VISIBLE;\n setVisibility(newVisibility);\n }", "static C11001a m36193a(Rect rect, View view) {\n String str = \"VisibilityInfo\";\n C11001a aVar = new C11001a();\n try {\n ArrayDeque i = m36213i(view);\n if (i != null) {\n if (!i.isEmpty()) {\n C10969p.m36117b(2, str, view, \"starting covering rect search\");\n C11002b bVar = null;\n loop0:\n while (true) {\n if (i.isEmpty()) {\n break;\n }\n View view2 = (View) i.pollLast();\n C11002b bVar2 = new C11002b(view2, bVar);\n if (view2.getParent() != null && (view2.getParent() instanceof ViewGroup)) {\n ViewGroup viewGroup = (ViewGroup) view2.getParent();\n int childCount = viewGroup.getChildCount();\n boolean z = false;\n for (int i2 = 0; i2 < childCount; i2++) {\n if (aVar.f33610a >= 500) {\n C10969p.m36113a(3, str, (Object) null, \"Short-circuiting cover retrieval, reached max\");\n break loop0;\n }\n View childAt = viewGroup.getChildAt(i2);\n if (childAt == view2) {\n z = true;\n } else {\n aVar.f33610a++;\n if (m36200a(childAt, view2, z)) {\n m36206b(new C11002b(childAt, bVar), rect, aVar);\n if (aVar.f33612c) {\n return aVar;\n }\n } else {\n continue;\n }\n }\n }\n continue;\n }\n bVar = bVar2;\n }\n return aVar;\n }\n }\n return aVar;\n } catch (Exception e) {\n C10960m.m36077a(e);\n }\n }", "public int getPlayerVisiblePosition(Colour colour);", "int getAlphaOff(){\n return getPercentageValue(\"alphaOff\");\n }", "protected View getDecorContent() {\n return mDecorContent;\n }", "@Override\n public void onScroll(AbsListView absListView, int i, int i1, int i2) {\n if ((LifeLabActivity.this.filteredLabData.getAllCount() == 0) || LifeLabActivity.this.filteredLabData.isAllLoaded()) {\n LifeLabActivity.this.foot.setVisibility(View.GONE);\n Log.w(TAG, String.format(\"onScroll: allCount:%d isAllLoaded:%b\", LifeLabActivity.this.filteredLabData.getAllCount(), LifeLabActivity.this.filteredLabData.isAllLoaded()));\n return;\n }\n LifeLabActivity.this.foot.setVisibility(View.VISIBLE);\n ImageView imageViewCircle1 = (ImageView) foot.findViewById(R.id.imageViewCircle1);\n ImageView imageViewCircle2 = (ImageView) foot.findViewById(R.id.imageViewCircle2);\n ImageView imageViewCircle3 = (ImageView) foot.findViewById(R.id.imageViewCircle3);\n startAlphaAnimation(imageViewCircle1, 0.8f, 0.2f);\n startAlphaAnimation(imageViewCircle2, 0.5f, 0.8f);\n startAlphaAnimation(imageViewCircle3, 0.2f, 0.8f);\n if (i + i1 == i2) {\n Log.d(TAG, \"onScroll: Show refresh\");\n LifeLabActivity.this.foot.setVisibility(View.VISIBLE);\n startAlphaAnimation(imageViewCircle1, 0.8f, 0.2f);\n startAlphaAnimation(imageViewCircle2, 0.5f, 0.8f);\n startAlphaAnimation(imageViewCircle3, 0.2f, 0.8f);\n LifeLabActivity.this.startDataLoading();\n }\n }", "public float getOverExpansionPixels() {\n return this.mNotificationStackScroller.getCurrentOverScrolledPixels(true);\n }", "@Override\n\tpublic void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n\t\tif (positionOffset > 0) {\n\t\t\tMain_bottom_change left = mTabIndicator.get(position);\n\t\t\tMain_bottom_change right = mTabIndicator.get(position + 1);\n\n\t\t\tleft.setIconAlpha(1 - positionOffset);\n\t\t\tright.setIconAlpha(positionOffset);\n\t\t}\n\n\t}", "@Override\n public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {\n float alpha = (float) Math.abs(verticalOffset) / (lp.height - toolbar.getHeight());\n // Log.d(TAG, \"onOffsetChanged: \"+alpha);\n if ((Math.abs(verticalOffset)) > 150) {\n toolbar.setBackgroundColor(Utils.getColorWithAlpha(ContextCompat.getColor(HubungiKamiActivity.this, R.color.colorPrimary_ppob), alpha));\n if (alpha >= 1.0) {\n toolbar.setBackground(ContextCompat.getDrawable(HubungiKamiActivity.this, R.drawable.toolbar));\n }\n appBarExpanded = false;\n invalidateOptionsMenu();\n } else {\n toolbar.setBackgroundColor(0);\n appBarExpanded = true;\n invalidateOptionsMenu();\n }\n }", "public native void setOpacity(int opacity);", "@Override\r\n\tprotected void onOverScrolled(int scrollX, int scrollY, boolean clampedX,\r\n\t\t\tboolean clampedY) {\n\t\tsuper.scrollTo(scrollX, scrollY);\r\n\t}", "public Color getBackground();", "public int getColorPos() {\n return mColorPos;\n }", "int getScrollTop();", "public Color getSupportEdgeFadeSourceColor() {\n return (_supportEdgeFadeSourceColor);\n }", "@Override\n\tpublic boolean isVisible(float t) \n\t{\n\t\treturn !_buttonHit && _tbeg <= t && t <= _tend;\n\t}", "private void m113393a() {\n ViewPager viewPager = this.f91930a.getViewPager();\n ObjectAnimator ofInt = ObjectAnimator.ofInt(this.f91930a, \"backgroundColor\", new int[]{this.f91930a.mo89500a(this.f91930a.f92028d), this.f91930a.mo89500a(255.0f)});\n ofInt.setEvaluator(new ArgbEvaluator());\n ObjectAnimator ofFloat = ObjectAnimator.ofFloat(viewPager, \"translationY\", new float[]{viewPager.getTranslationY(), 0.0f});\n AnimatorSet animatorSet = new AnimatorSet();\n animatorSet.playTogether(new Animator[]{ofInt, ofFloat});\n animatorSet.start();\n }", "private void drawScrollBar() {\r\n\r\n\t _scrollOffsetX = 68;\r\n\t _scrollOffsetY = _resolutionResolver.getScaledHeight() % 2 == 1 ? -33 : -32;\r\n\r\n\t ResourceLocation rl = getContentHeight() > getViewableHeight() ? SLIDER_RESOURCE : SLIDER_FULL_RESOURCE;\r\n\t int ySizeScrollToUse = getContentHeight() > getViewableHeight() ? SIZE_SCROLL_Y : SIZE_SCROLL_FULL_Y;\r\n\t int xTextureSize = getContentHeight() > getViewableHeight() ? 32 : 16;\r\n\t int yTextureSize = getContentHeight() > getViewableHeight() ? 32 : 128;\r\n\t _curScrollValue = getContentHeight() > getViewableHeight() ? _curScrollValue : 0;\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(rl);\r\n\t\tint x1 = (width - SIZE_SCROLL_X) / 2;\r\n\t\tint y1 = (height - SIZE_SCROLL_Y) / 2;\r\n\t\t\r\n\t\t// draw the scroll bar\r\n\t\tHubbyUtils.drawTexturedRectHelper(0.0f, x1 + _scrollOffsetX, y1 + _scrollOffsetY + _curScrollValue, SIZE_SCROLL_X, ySizeScrollToUse, 0, 0, (256 / xTextureSize) * SIZE_SCROLL_X, (256 / yTextureSize) * ySizeScrollToUse);\r\n\t}", "private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}" ]
[ "0.59833616", "0.59317297", "0.56543934", "0.56142926", "0.55986637", "0.55664", "0.5504932", "0.5494172", "0.5468317", "0.5419264", "0.5393558", "0.5390127", "0.53809696", "0.53222203", "0.52958345", "0.52958345", "0.526887", "0.5232421", "0.52236867", "0.52230227", "0.51855296", "0.5158605", "0.51550126", "0.5152064", "0.51428443", "0.5138012", "0.51264435", "0.51253647", "0.51234835", "0.5096038", "0.5083337", "0.5047948", "0.50428224", "0.50361866", "0.50323045", "0.5019886", "0.50195843", "0.50192434", "0.5005627", "0.50043386", "0.49542603", "0.49469376", "0.49354962", "0.49293476", "0.4922058", "0.48997018", "0.48972255", "0.48877466", "0.4879085", "0.4846164", "0.48406336", "0.4823098", "0.48219472", "0.48027974", "0.4802618", "0.4781345", "0.47571117", "0.47528335", "0.4745589", "0.4706393", "0.46802795", "0.46772578", "0.46602842", "0.4656349", "0.46551108", "0.46535176", "0.46516728", "0.46493363", "0.4639001", "0.4638496", "0.46277133", "0.46248344", "0.4620147", "0.46090344", "0.46048325", "0.45920858", "0.459124", "0.4590959", "0.45900887", "0.4582007", "0.45809975", "0.45616108", "0.45598108", "0.4545527", "0.45370248", "0.4514451", "0.45140418", "0.45129383", "0.45108527", "0.45102823", "0.4509074", "0.45026585", "0.44969696", "0.4492667", "0.44883803", "0.44832465", "0.44824266", "0.44742435", "0.4469866", "0.44698548" ]
0.6759734
0
Sets the alpha layer on a color.
public int adjustAlpha(int color, float factor) { int alpha = Math.round(Color.alpha(color) * factor); int red = Color.red(color); int green = Color.green(color); int blue = Color.blue(color); return Color.argb(alpha, red, green, blue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int setAlpha(int color, int alpha) {\n return (color & 0x00FFFFFF) | (alpha << 24);\n }", "public void setAlpha(int newAlpha)\n {\n setColor(getColor().withAlpha(newAlpha));\n }", "public void setAlpha(float alpha);", "public void setAlpha(float alpha) {\n\t\tthis.alpha = alpha;\n\t}", "public void setAlpha(double alpha);", "@Override\n public void setAlpha(int alpha) {\n if (alpha != mAlpha) {\n mAlpha = alpha;\n invalidateSelf();\n }\n }", "@Override\n public void setAlpha(int alpha) {\n patternDrawable.setAlpha(alpha);\n }", "public void setPaintAlpha(int newAlpha){\n paintAlpha=Math.round((float)newAlpha/100*255);\n drawPaint.setColor(paintColor);\n drawPaint.setAlpha(paintAlpha);\n }", "public void setAlpha(int alpha)\n {\n \tthis.alpha=alpha; \n }", "@Override\n\t\t\tpublic void setAlpha(int alpha) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void setAlpha(int alpha) {\n\n\t}", "public static int applyAlphaToColor(int color, float alpha) {\n return (int) (0xFF * alpha) << 24 | color & 0xFFFFFF;\n }", "void setAlpha(double alpha) {\n this.alpha = alpha;\n }", "private int adjustAlpha( int color, float alphaArg ) {\n \t\tint alpha = Math.round( alphaArg );\n \t\tint red = Color.red( color );\n \t\tint green = Color.green( color );\n \t\tint blue = Color.blue( color );\n \t\treturn Color.argb( alpha, red, green, blue );\n \t}", "public void setSymbolAlpha(int alpha) {\n symbol.setAlpha(alpha);\n }", "public void setAmbientAlpha(float alpha) {\n\t\tambientColor.a = alpha;\n\t\trayHandler.setAmbientLight(ambientColor);\n\t}", "public void setColorTransform(CXformWithAlpha colorTransform) {\n this.colorTransform = colorTransform;\n }", "public void setAlpha(double aAlpha);", "@SuppressWarnings(\"unchecked\")\n public AnimatorType alpha(int alpha)\n {\n addTransformer(new AlphaTransformer(getShape(), alpha));\n return (AnimatorType) this;\n }", "public void setAlpha(int a)\n { \n alpha = (float) a / 100.0F;\n repaint();\n }", "public static int getAlpha(int color) {\n return (color >> 24) & 0xFF;\n }", "protected int setPaintAlpha(Paint paint, int alpha) {\n final int prevAlpha = paint.getAlpha();\n paint.setAlpha(Ui.modulateAlpha(prevAlpha, alpha));\n return prevAlpha;\n }", "public void alpha(int alpha);", "public void setLetterboxColor(ColorRGBA letterboxColor) {\n this.letterboxColor.set(letterboxColor);\n }", "public static Color alphaBlend(Color o, int a){\n\t\treturn new Color(o.getRed(), o.getGreen(), o.getBlue(), a);\n\t}", "public abstract void setBackgroundHover(final int rgba);", "public void setPointerAlpha(int alpha) {\r\n\t\tif (alpha >=0 && alpha <= 255) {\r\n\t\t\tmPointerAlpha = alpha;\r\n\t\t\tmPointerHaloPaint.setAlpha(mPointerAlpha);\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}", "public void setColor(final float red, final float green, final float blue, final float alpha) {\n hasColor = true;\n color = new GLColor(red, green, blue, alpha);\n }", "public void setAlpha(double newAlpha) {\n\t\talpha = newAlpha;\n\t}", "public static void setAlpha(double alp)\n\t{\n\t\talpha = alp;\t\n\t}", "public void setBackgroundTranslucence(float alpha) {\n\t\tthis.bgAC = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);\n\t}", "public void setDefaultAlpha(double alpha) {\n defaultAlpha = alpha;\n invalidate();\n }", "public void setImageAlpha(int imageAlpha) {\n\t\tthis.imageAlpha = imageAlpha;\n\t}", "public int getAlpha()\n {\n return getColor().alpha();\n }", "public void saveLayerAlpha(int sx, int sy, int i, int j, int multipliedAlpha) {\n\t\t\n\t}", "@Override\n public void setAlpha(float alpha) {\n super.setAlpha(alpha);\n\n int newVisibility = alpha <= 0f ? View.GONE : View.VISIBLE;\n setVisibility(newVisibility);\n }", "public abstract void setForegroundHover(final int rgba);", "T setStartAlpha(Double startAlpha);", "public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }", "@Field(1) \n\tpublic D2D1_PIXEL_FORMAT alphaMode(ValuedEnum<D2D1_ALPHA_MODE> alphaMode) {\n\t\tthis.io.setEnumField(this, 1, alphaMode);\n\t\treturn this;\n\t}", "public void setBackgroundColor(int red, int green, int blue, int alpha){\n if(isTheColorInputCorrect(red, green, blue, alpha)){\n backgroundColor = new Color(red, green, blue, alpha); \n }\n }", "@Override\n\tpublic void setColor(final float pRed, final float pGreen, final float pBlue, final float pAlpha) {\n\t\tthis.setColor(pRed, pGreen, pBlue);\n\t\tthis.mAlpha = pAlpha;\n\t}", "public void setOpacity(float opacity)\n\t{\n\t\tthis.particleColor.setA(opacity);\n\t}", "public StockEvent setBackgroundAlpha(Double backgroundAlpha) {\n this.backgroundAlpha = backgroundAlpha;\n return this;\n }", "public static int getColorWithAlpha(float alpha, int baseColor) {\n int a = Math.min(255, Math.max(0, (int) (alpha * 255))) << 24;\n int rgb = 0x00ffffff & baseColor;\n return a + rgb;\n }", "private AlphaComposite makeTransparent(float alpha){\n return(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,alpha));\n }", "@Override\n\tpublic void setTransparency(float transparency) {\n\t\t\n\t}", "public void changeAlpha(double d, float f, boolean bl) {\n block2: {\n void difference;\n void dragging;\n if (dragging == false) break block2;\n if (difference == Double.longBitsToDouble(Double.doubleToLongBits(7.977172206938858E307) ^ 0x7FDC6651265A7509L)) {\n this.setting.setValue(new Color(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), 0));\n } else {\n void alpha;\n this.setting.setValue(new Color(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), (int)(alpha * Float.intBitsToFloat(Float.floatToIntBits(0.015395311f) ^ 0x7F033C9D))));\n }\n }\n }", "public void setAlphaF(float p_82338_1_) {\n/* 102 */ if (this.particleAlpha == 1.0F && p_82338_1_ < 1.0F) {\n/* */ \n/* 104 */ (Minecraft.getMinecraft()).effectRenderer.func_178928_b(this);\n/* */ }\n/* 106 */ else if (this.particleAlpha < 1.0F && p_82338_1_ == 1.0F) {\n/* */ \n/* 108 */ (Minecraft.getMinecraft()).effectRenderer.func_178931_c(this);\n/* */ } \n/* */ \n/* 111 */ this.particleAlpha = p_82338_1_;\n/* */ }", "protected void fading(float alpha) { }", "public void setOldImageAlpha(int oldImageAlpha) {\n\t\tthis.oldImageAlpha = oldImageAlpha;\n\t}", "@Override\n public int getOpacity() {\n return DrawableUtils.getOpacityFromColor(DrawableUtils.multiplyColorAlpha(mColor, mAlpha));\n }", "protected Color getAlphaCopy(Color copy, Color orig) {\r\n if (copy==null)\r\n copy = new Color(orig);\r\n copy.r = orig.r;\r\n copy.g = orig.g;\r\n copy.b = orig.b;\r\n copy.a = alphaFilter!=null ? alphaFilter.a : orig.a;\r\n return copy;\r\n }", "public void setForegroundTranslucence(float alpha) {\n\t\tthis.fgAC = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);\n\t}", "public native void setOpacity(int opacity);", "public abstract void setBackgroundPressed(final int rgba);", "public Builder setAlphaInfoValue(int value) {\n copyOnWrite();\n instance.setAlphaInfoValue(value);\n return this;\n }", "public float getAlpha() {\n \t\treturn alpha;\n\t}", "public abstract void setForegroundPressed(final int rgba);", "protected void setScrimAlpha(float alpha) {\n mShowScrim = alpha > 0f;\n mRenderer.getPaint().setAlpha((int) (alpha * 255));\n invalidate();\n }", "public void setColor(float r, float g, float b, float a);", "public Bitmap3DColor(float red, float green, float blue, float alpha) {\n this(red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha);\n }", "public CXformWithAlpha getColorTransform() {\n return colorTransform;\n }", "@IcalProperty(pindex = PropertyInfoIndex.TRANSP,\n jname = \"transp\",\n eventProperty = true)\n public void setTransparency(final String val) {\n transparency = val;\n }", "public void setBackgroundLayerColor(int color) {\n this.backgroundLayerColor = color;\n }", "public void setAlphaFactor(double a) {\r\n\t\t_alphaFactor = a;\r\n\t}", "@Override\n public void color(double red, double green, double blue, double alpha) {\n GL11.glColor4d(red, green, blue, alpha);\n }", "@Override\n public int getAlpha() {\n return mAlpha;\n }", "public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }", "public AlphaInitializer(final float pAlpha) {\n\t\tsuper(pAlpha, pAlpha);\n\t}", "public void setPointerAlphaOnTouch(int alpha) {\r\n\t\tif (alpha >=0 && alpha <= 255) {\r\n\t\t\tmPointerAlphaOnTouch = alpha;\r\n\t\t}\r\n\t}", "public void resetAlphaValues();", "public float getAlpha() {\n if (this.isConnectedToGame)\n return 1.0f;\n else\n return 0.5f;\n }", "public float getAlpha();", "public float getAlpha();", "private void setAlphaInfo(com.whensunset.wsvideoeditorsdk.model.YuvAlphaType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n alphaInfo_ = value.getNumber();\n }", "public Builder setAlphaInfo(com.whensunset.wsvideoeditorsdk.model.YuvAlphaType value) {\n copyOnWrite();\n instance.setAlphaInfo(value);\n return this;\n }", "@NonNull\n public Builder setTargetAlpha(@FloatRange(from = 0.0, to = 1.0) float targetAlpha) {\n mImpl.setTargetAlpha(targetAlpha);\n mFingerprint.recordPropertyUpdate(1, Float.floatToIntBits(targetAlpha));\n return this;\n }", "@Override\n public int getAlpha() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n return patternDrawable.getAlpha();\n }\n\n return 0xFF;\n }", "@Test @IdeGuiTest\n public void testColorPickerAlpha() throws IOException {\n myProjectFrame = importSimpleApplication();\n ThemeEditorFixture themeEditor = ThemeEditorTestUtils.openThemeEditor(myProjectFrame);\n ThemeEditorTableFixture themeEditorTable = themeEditor.getPropertiesTable();\n\n TableCell cell = row(1).column(0);\n\n JTableCellFixture colorCell = themeEditorTable.cell(cell);\n ResourceComponentFixture resourceComponent = new ResourceComponentFixture(myRobot, (ResourceComponent)colorCell.editor());\n colorCell.startEditing();\n resourceComponent.getSwatchButton().click();\n\n ChooseResourceDialogFixture dialog = ChooseResourceDialogFixture.find(myRobot);\n ColorPickerFixture colorPicker = dialog.getColorPicker();\n Color color = new Color(200, 0, 0, 200);\n colorPicker.setFormat(\"ARGB\");\n colorPicker.setColorWithIntegers(color);\n JTextComponentFixture alphaLabel = colorPicker.getLabel(\"A:\");\n SlideFixture alphaSlide = colorPicker.getAlphaSlide();\n alphaLabel.requireVisible();\n alphaSlide.requireVisible();\n colorPicker.setFormat(\"RGB\");\n alphaLabel.requireNotVisible();\n alphaSlide.requireNotVisible();\n colorPicker.setFormat(\"HSB\");\n alphaLabel.requireNotVisible();\n alphaSlide.requireNotVisible();\n\n dialog.clickOK();\n colorCell.stopEditing();\n }", "float getAlpha();", "public void setFontColor(int red, int green, int blue, int alpha){\n if(isTheColorInputCorrect(red, green, blue, alpha)){\n fontColor = new Color(red, green, blue); \n }\n }", "public void setExpandGrayAlpha(boolean expandGrayAlpha) {\n/* 311 */ this.expandGrayAlpha = expandGrayAlpha;\n/* */ }", "public void fill(Color color){\n fill(color.rgba());\n }", "public Color(int red, int green, int blue, double alpha) {\n\t\tthis(new StringBuilder(21)\n\t\t\t\t.append(\"rgba(\")\n\t\t\t\t.append(red).append(',')\n\t\t\t\t.append(green).append(',')\n\t\t\t\t.append(blue).append(',')\n\t\t\t\t.append(alpha).append(')')\n\t\t\t\t.toString(), \n\t\t\t\tred, green, blue, alpha);\n\t}", "@Override\n public void fade(float delta) {\n colour.a *= (1f - (delta * Constants.COLOURCYCLESPEED));\n\n //Gdx.app.log(TAG, \"Alpha:\" + colour.a);\n //alpha *= (1f - (delta * Constants.COLOURCYCLESPEED));\n //colour.add(0.0f, 0.0f, 0.0f, alpha);\n }", "public void setColor(Color c) { color.set(c); }", "@Override\n public double getGlobalAlpha() {\n return graphicsEnvironmentImpl.getGlobalAlpha(canvas);\n }", "private void setAlphaInfoValue(int value) {\n alphaInfo_ = value;\n }", "public void setColor(final int pRed, final int pGreen, final int pBlue, final int pAlpha) throws IllegalArgumentException {\n\t\tthis.setColor(pRed / COLOR_FACTOR_INT_TO_FLOAT, pGreen / COLOR_FACTOR_INT_TO_FLOAT, pBlue / COLOR_FACTOR_INT_TO_FLOAT, pAlpha / COLOR_FACTOR_INT_TO_FLOAT);\n\t}", "public StockEvent setBorderAlpha(Double borderAlpha) {\n this.borderAlpha = borderAlpha;\n return this;\n }", "public void setEncodingAlpha(boolean encodeAlpha);", "private void parseColorOpacity(ColorPreference color, ColorPreference opacity, int value) {\n final int colorValue;\n final int opacityValue;\n if (!CaptionStyle.hasColor(value)) {\n // \"Default\" color with variable alpha.\n colorValue = CaptionStyle.COLOR_UNSPECIFIED;\n opacityValue = (value & 0xFF) << 24;\n } else if ((value >>> 24) == 0) {\n // \"None\" color with variable alpha.\n colorValue = Color.TRANSPARENT;\n opacityValue = (value & 0xFF) << 24;\n } else {\n // Normal color.\n colorValue = value | 0xFF000000;\n opacityValue = value & 0xFF000000;\n }\n\n // Opacity value is always white.\n opacity.setValue(opacityValue | 0xFFFFFF);\n color.setValue(colorValue);\n }", "private static boolean setGraphicsTransparency(Graphics g, float alpha) {\r\n\t\tif (g instanceof Graphics2D) {\r\n\t\t\tGraphics2D g2d = (Graphics2D) g;\r\n\t\t\tComposite comp = g2d.getComposite();\r\n\t\t\tif (comp instanceof AlphaComposite) {\r\n\t\t\t\tAlphaComposite acomp = (AlphaComposite) comp;\r\n\r\n\t\t\t\tif (acomp.getAlpha() != alpha) {\r\n\t\t\t\t\tif (alpha < 1.0f) {\r\n\t\t\t\t\t\tg2d.setComposite(AlphaComposite.getInstance(\r\n\t\t\t\t\t\t\t\tAlphaComposite.SRC_OVER, alpha));\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tg2d.setComposite(AlphaComposite.SrcOver);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "void setOnePathNAlpha(float[] a, float[] b, float[] c, float[] d, int index) {\n // calculate and set the alpha of p\n alphas[index] = areaOf(a, b, c, d);\n Path path = faces[index];\n path.reset();\n front[index] = isFacingOut(a, b,c,d);\n if (!front[index]) {\n alphas[index] = Math.min(255, alphas[index] + 10);\n } else {\n alphas[index] = Math.max(0, alphas[index] - 10);\n }\n path.moveTo(a[0], a[1]);\n path.lineTo(b[0], b[1]);\n path.lineTo(c[0], c[1]);\n path.lineTo(d[0], d[1]);\n path.lineTo(a[0], a[1]);\n path.close();\n }", "public void setColor(Color color) {\r\n\t\tthis.color = ColorUtil.convertColorToColorRGBA(color);\r\n\t}", "public void setBorderColor(int red, int green, int blue, int alpha){\n if(isTheColorInputCorrect(red, green, blue, alpha)){\n borderColor = new Color(red, green, blue, alpha); \n }\n }", "private BufferedImage addAlpha(final RenderedImage img) {\n final BufferedImage buffer = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_INT_ARGB);\n buffer.createGraphics().drawRenderedImage(img, new AffineTransform());\n return buffer;\n }", "public final void mALPHA() throws RecognitionException {\n try {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2908:2: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '\\\\u00C0' .. '\\\\u00D6' | '\\\\u00D8' .. '\\\\u00F6' | '\\\\u00F8' .. '\\\\u00FF' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:\n {\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\\u00C0' && input.LA(1)<='\\u00D6')||(input.LA(1)>='\\u00D8' && input.LA(1)<='\\u00F6')||(input.LA(1)>='\\u00F8' && input.LA(1)<='\\u00FF') ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "public void setWallsAlpha(float wallsAlpha) {\n if (wallsAlpha != this.wallsAlpha) {\n float oldWallsAlpha = this.wallsAlpha;\n this.wallsAlpha = wallsAlpha;\n this.propertyChangeSupport.firePropertyChange(Property.WALLS_ALPHA.name(), oldWallsAlpha, wallsAlpha);\n }\n }" ]
[ "0.7609637", "0.7355942", "0.7306572", "0.7038351", "0.70071644", "0.69483143", "0.6908164", "0.68609107", "0.6801161", "0.6758781", "0.6748846", "0.6667216", "0.6640538", "0.66283035", "0.6600191", "0.6590564", "0.65899694", "0.6474488", "0.6463243", "0.6459605", "0.64442766", "0.6357458", "0.63194317", "0.62958", "0.62104183", "0.61903584", "0.61719346", "0.6126448", "0.6099644", "0.609874", "0.60794663", "0.60653365", "0.60303444", "0.6018428", "0.5958021", "0.5953138", "0.59463453", "0.59059167", "0.5895097", "0.58939457", "0.587563", "0.58501107", "0.58163863", "0.58102363", "0.5806679", "0.58055633", "0.5781518", "0.5759146", "0.5738723", "0.5737152", "0.5713737", "0.5712664", "0.56962323", "0.5690927", "0.5682327", "0.5681272", "0.5677554", "0.56772405", "0.5671977", "0.5646185", "0.5636633", "0.55489844", "0.55481666", "0.5541258", "0.55400825", "0.5536802", "0.55256724", "0.55095357", "0.5504357", "0.5470686", "0.5460299", "0.54585385", "0.5448846", "0.5426159", "0.5426159", "0.542594", "0.5417607", "0.5415325", "0.5394033", "0.53920585", "0.53844935", "0.5380304", "0.53770584", "0.5363338", "0.53584826", "0.5343579", "0.531738", "0.53133976", "0.53061694", "0.53038293", "0.5297562", "0.52811897", "0.526951", "0.52561337", "0.52396786", "0.5221213", "0.52149856", "0.52010477", "0.51973873", "0.51804113" ]
0.5998075
34
TODO implement config loading
public void loadConfig() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "private void config() {\n\t}", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public abstract void loaded() throws ConfigurationException;", "public abstract String getConfig();", "private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}", "private static Config loadConfig(String name) {\n\n\t\tString path;\n\t\tif (name == null) {\n\t\t\tpath = \"application.json\";\n\t\t} else {\n\t\t\tpath = \"src/\"+extensionsPackage+\"/\" + name + \"/config.json\";\n\t\t}\n\n\t\tGson gson = new Gson();\n\t\tConfig config = null;\n\n\t\ttry {\n\t\t\tconfig = gson.fromJson(new FileReader(path), Config.class);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn config;\n\t}", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "protected abstract void onLoad() throws IOException, ConfigInvalidException;", "private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }", "private static void processIncludedConfig() {\n String configName = \"config.\" + getRunMode() + \".properties\";\n\n //relative path cannot be recognized and not figure out the reason, so here use absolute path instead\n InputStream configStream = Configuration.class.getResourceAsStream(\"/\" + configName);\n if (configStream == null) {\n log.log(Level.WARNING, \"configuration resource {0} is missing\", configName);\n return;\n }\n\n try (InputStreamReader reader = new InputStreamReader(configStream, StandardCharsets.UTF_8)) {\n Properties props = new Properties();\n props.load(reader);\n CONFIG_VALUES.putAll(props);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Unable to process configuration {0}\", configName);\n }\n\n }", "private Config() {\n }", "void config(Config config);", "public void loadConfig(){\n \t\tFile configDir = this.getDataFolder();\n \t\tif (!configDir.exists())\n \t\t\tconfigDir.mkdir();\n \n \t\t// Check for existance of config file\n \t\tFile configFile = new File(this.getDataFolder().toString() + \"/config.yml\");\n \t\tconfig = YamlConfiguration.loadConfiguration(configFile);\n \t\t\n \t\t// Adding Variables\n \t\tif(!config.contains(\"Debug\"))\n \t\t{\n \t\t\tconfig.addDefault(\"Debug\", false);\n \t \n \t config.addDefault(\"Worlds\", \"ExampleWorld1, ExampleWorld2\");\n \t\n\t config.addDefault(\"Regions.Residence\", \"ExampleWorld.ExampleResRegion1, ExampleWorld.ExampleResRegion2\");\n \t \n\t config.addDefault(\"Regions.WorldGuard\", \"ExampleWorld.ExampleWGRegion1, ExampleWorld.ExampleWGRegion2\"); \n \t\t}\n \n // Loading the variables from config\n \tdebug = (Boolean) config.get(\"Debug\");\n \tpchestWorlds = (String) config.get(\"Worlds\");\n \tpchestResRegions = (String) config.get(\"Regions.Residence\");\n \tpchestWGRegions = (String) config.get(\"Regions.WorldGuard\");\n \n if(pchestWorlds != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Chests Worlds: \" + pchestWorlds);\n }\n \n if(pchestResRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Residence Regions: \" + pchestResRegions);\n }\n \n if(pchestWGRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All World Guard Regions: \" + pchestWGRegions);\n }\n \n config.options().copyDefaults(true);\n try {\n config.save(configFile);\n } catch (IOException ex) {\n Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, \"Could not save config to \" + configFile, ex);\n }\n }", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "private void loadConfig()\n {\n File config = new File(\"config.ini\");\n\n if (config.exists())\n {\n try\n {\n BufferedReader in = new BufferedReader(new FileReader(config));\n\n configLine = Integer.parseInt(in.readLine());\n configString = in.readLine();\n socketSelect = (in.readLine()).split(\",\");\n in.close();\n }\n catch (Exception e)\n {\n System.exit(1);\n }\n }\n else\n {\n System.exit(1);\n }\n }", "private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}", "public void load() throws Exception\n {\n String id = request.getParameter(\"config\");\n if (id != null && id.length() > 0)\n {\n List<DDVConfig> configs = this.getConfigs();\n for (DDVConfig c:configs)\n {\n if (c.getId().equals(id))\n {\n this.config = c;\n return;\n }\n }\n }\n }", "private ConfigReader() {\r\n\t\tsuper();\r\n\t}", "public Config getConfig();", "public void loadConfigs() {\n\t configYML = new ConfigYML();\n\t configYML.setup();\n }", "public static void acceptConfig() {\r\n\t\t//Here, it tries to read over the config file using try-catch in case of Exception\r\n\t\ttry {\r\n\t\t\tProperties properties = new Properties();\r\n\t\t\tFileInputStream fis = new FileInputStream(new File(\"config.properties\"));\r\n\t\t\tproperties.load(fis);\r\n\t\t\tString storage = properties.getProperty(\"storage\");\r\n\t\t\tif(storage == null) \r\n\t\t\t\tthrow new IllegalArgumentException(\"Property 'storage' not found\");\r\n\t\t\tif(storage.equals(\"tree\"))\r\n\t\t\t\tdata = new BinarySearchTree();\r\n\t\t\tif(storage.equals(\"trie\"))\r\n\t\t\t\tdata = new Trie();\r\n\t\t\tif(data == null) \r\n\t\t\t\tthrow new IllegalArgumentException(\"Not valid storage configuration.\");\r\n\t\t}\r\n\t\t//If an Exception occurs, it just prints a message\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Configuration file not found.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error reading the configuration file.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}", "public T loadConfig(File file) throws IOException;", "private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}", "@Override\n\tpublic void loadExtraConfigs(Configuration config)\n\t{\n\n\t}", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void loadFromConfig(ConfigurationSection s) {\n\t\t\n\t}", "@Test\n public final void testConfigurationParser() {\n URL resourceUrl = this.getClass().getResource(configPath);\n File folder = new File(resourceUrl.getFile());\n for (File configFile : folder.listFiles()) {\n try {\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }\n }", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"classpath:test.properties\",\n \"system:properties\",\n \"system:env\"})\npublic interface UserConfiguration extends Config {\n\n @DefaultValue(\"default_Name\")\n @Key(\"user.name\")\n String name();\n @Key(\"user.email\")\n String email();\n @Key(\"user.password\")\n String password();\n}", "public abstract CONFIG build();", "public void initialConfig() {\n }", "public interface Config {\n\t/**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tstring value.\n */\n String getString(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tString value.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tint value.\n */\n int getInt(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tint value.\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Return with string in contents of config file.\n *\n * @return\n * \tContents of config file.\n */\n String getContents();\n\n /**\n * Return with Configuration object in contents of config file.\n *\n * @return\n * \tContents of Configuration object.\n */\n Configuration getConfiguration();\n\n List<Object> getList(String key);\n}", "private ConfigurationModel() {\r\n\tloadConfiguration();\r\n }", "protected abstract void _init(DynMap config);", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "void configure();", "private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }", "private void ReadConfig()\n {\n try\n {\n Yaml yaml = new Yaml();\n\n BufferedReader reader = new BufferedReader(new FileReader(confFileName));\n\n yamlConfig = yaml.loadAll(reader);\n\n for (Object confEntry : yamlConfig)\n {\n //System.out.println(\"Configuration object type: \" + confEntry.getClass());\n\n Map<String, Object> confMap = (Map<String, Object>) confEntry;\n //System.out.println(\"conf contents: \" + confMap);\n\n\n for (String keyName : confMap.keySet())\n {\n //System.out.println(keyName + \" = \" + confMap.get(keyName).toString());\n\n switch (keyName)\n {\n case \"lineInclude\":\n\n for ( String key : ((Map<String, String>) confMap.get(keyName)).keySet())\n {\n lineFindReplace.put(key, ((Map<String, String>) confMap.get(keyName)).get(key).toString());\n }\n\n lineIncludePattern = ConvertToPattern(lineFindReplace.keySet().toString());\n\n break;\n case \"lineExclude\":\n lineExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"fileExclude\":\n fileExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"fileInclude\":\n fileIncludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"dirExclude\":\n dirExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"dirInclude\":\n dirIncludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"urlPattern\":\n urlPattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n }\n }\n }\n\n } catch (Exception e)\n {\n System.err.format(\"Exception occurred trying to read '%s'.\", confFileName);\n e.printStackTrace();\n }\n }", "private OpenApiHandlerConfig(String configName) {\n config = Config.getInstance();\n mappedConfig = config.getJsonMapConfigNoCache(configName);\n setConfigData();\n setConfigMap();\n }", "private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }", "public String getConfig();", "private AppConfigContent() {}", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public void loadConfig(XMLElement xml) {\r\n\r\n }", "public interface ConfigurationManager {\n\n String loadRunAsUser();\n\n void storeRunAsUser(String username);\n\n List<String> loadEnabledProjects();\n\n void storeEnabledProjects(List<String> projectKeys);\n\n Map<String, String> loadBranchFilters();\n \n void storeBranchFilters(Map<String, String> branchFilters);\n \n /**\n * @since v1.2\n */\n Collection<String> loadCrucibleUserNames();\n\n /**\n * @since v1.2\n */\n void storeCrucibleUserNames(Collection<String> usernames);\n\n /**\n * @since v1.3\n */\n Collection<String> loadCrucibleGroups();\n\n /**\n * @since v1.3\n */\n void storeCrucibleGroups(Collection<String> groupnames);\n\n CreateMode loadCreateMode();\n\n void storeCreateMode(CreateMode mode);\n\n /**\n * @since v1.4.1\n */\n boolean loadIterative();\n\n /**\n * @since v1.4.1\n */\n void storeIterative(boolean iterative);\n}", "private void loadConfiguration() {\n // TODO Get schema key value from model and set to text field\n /*\n\t\t * if (!StringUtils.isBlank(schemaKey.getKeyValue())) {\n\t\t * schemaKeyTextField.setText(schemaKey.getKeyValue()); }\n\t\t */\n }", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"system:properties\",\n \"classpath:application.properties\"\n})\npublic interface ProjectConfig extends Config {\n\n @Key(\"app.hostname\")\n String hostname();\n\n @Key(\"browser.name\")\n @DefaultValue(\"chrome\")\n String browser();\n\n}", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "private void initConfig() {\n Path walletPath;\n Wallet wallet;\n\n // load a CCP\n Path networkConfigPath; \n \n try {\n \t\n \tif (!isLoadFile) {\n // Load a file system based wallet for managing identities.\n walletPath = Paths.get(\"wallet\");\n wallet = Wallet.createFileSystemWallet(walletPath);\n\n // load a CCP\n networkConfigPath = Paths.get(\"\", \"..\", \"basic-network\", configFile);\n \n builder = Gateway.createBuilder();\n \n \tbuilder.identity(wallet, userId).networkConfig(networkConfigPath).discovery(false);\n \t\n \tisLoadFile = true;\n \t}\n } catch (Exception e) {\n \te.printStackTrace();\n \tthrow new RuntimeException(e);\n }\n\t}", "public interface ConfigLoader<T> {\n\t/**\n\t * Load configurations from a file. the file name supplied should contain\n\t * absolute path . As the file name is supplied, the method throws\n\t * {@link FileNotFoundException} if file is not found on the classpath.\n\t * \n\t * @param file file name\n\t * @return configurations\n\t */\n\tpublic T loadConfig(String file) throws IOException;\n\n\t/**\n\t * Load configurations from a file.\n\t * \n\t * @param file configuration file\n\t * @return configurations\n\t */\n\tpublic T loadConfig(File file) throws IOException;\n}", "public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void load() {\n tag = getPlugin().getConfig().getString(\"Tag\");\n hologram_prefix = getPlugin().getConfig().getString(\"Prefix\");\n hologram_time_fixed = getPlugin().getConfig().getBoolean(\"Hologram_time_fixed\");\n hologram_time = getPlugin().getConfig().getInt(\"Hologram_time\");\n hologram_height = getPlugin().getConfig().getInt(\"Hologram_height\");\n help_message = getPlugin().getConfig().getStringList(\"Help_message\");\n hologram_text_lines = getPlugin().getConfig().getInt(\"Max_lines\");\n special_chat = getPlugin().getConfig().getBoolean(\"Special_chat\");\n radius = getPlugin().getConfig().getBoolean(\"Radius\");\n radius_distance = getPlugin().getConfig().getInt(\"Radius_distance\");\n chat_type = getPlugin().getConfig().getInt(\"Chat-type\");\n spectator_enabled = getPlugin().getConfig().getBoolean(\"Spectator-enabled\");\n dataType = getPlugin().getConfig().getInt(\"Data\");\n mySQLip = getPlugin().getConfig().getString(\"Server\");\n mySQLDatabase = getPlugin().getConfig().getString(\"Database\");\n mySQLUsername = getPlugin().getConfig().getString(\"Username\");\n mySQLPassword = getPlugin().getConfig().getString(\"Password\");\n\n }", "public Config() {\n this(System.getProperties());\n\n }", "private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void additionalConfig(ConfigType config){}", "public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}", "public abstract void Configure( DataMap<String, Serializable> configuration);", "public String readConfiguration(String path);", "public interface IConfigurationProvider {\r\n String get(String path);\r\n}", "private CommonConfigBean(){\n\t\tsuper();\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\tFile fXmlFile = new File(PathTool.getAbsolute(RELATIVE_FILE_PATH));\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\t\t\t\n\t\t\t//optional, but recommended\n\t\t\t//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tSystem.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n\t NodeList nList = doc.getElementsByTagName(\"param\");\n\t params = new HashMap<>();\n\t for (int temp = 0; temp < nList.getLength(); temp++) {\n\t Node nodo = nList.item(temp);\n\t System.out.println(\"Elemento:\" + nodo.getNodeName());\n\t if (nodo.getNodeType() == Node.ELEMENT_NODE) {\n\t Element element = (Element) nodo;\n\t params.put(element.getAttribute(\"name\"), element.getAttribute(\"value\"));\n\t }\n\t }\n\t\t\t\n\t\t\t\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t}", "public synchronized static void initConfig() {\n SeLionLogger.getLogger().entering();\n Map<ConfigProperty, String> initialValues = new HashMap<>();\n\n initConfig(initialValues);\n\n SeLionLogger.getLogger().exiting();\n }", "public ReadConfig() \n\t{\n\t\tFile scr = new File(\"./Configuration/config.properties\"); //property file\n\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(scr); // READ the DATA (read mode)\n\t\t\tpro = new Properties(); // pro object\n\t\t\tpro.load(fis); // Load method -load at the \n\n\t\t} catch (final Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Except is \" + e.getMessage());\n\t\t} \n\t}", "public Object\tgetConfiguration();", "public void loadConfig(){\r\n File config = new File(\"config.ini\");\r\n if(config.exists()){\r\n try {\r\n Scanner confRead = new Scanner(config);\r\n \r\n while(confRead.hasNextLine()){\r\n String line = confRead.nextLine();\r\n if(line.indexOf('=')>0){\r\n String setting,value;\r\n setting = line.substring(0,line.indexOf('='));\r\n value = line.substring(line.indexOf('=')+1,line.length());\r\n \r\n //Perform the actual parameter check here\r\n if(setting.equals(\"romfile\")){\r\n boolean result;\r\n result = hc11_Helpers.loadBinary(new File(value.substring(value.indexOf(',')+1,value.length())),board,\r\n Integer.parseInt(value.substring(0,value.indexOf(',')),16));\r\n if(result)\r\n System.out.println(\"Loaded a rom file.\");\r\n else\r\n System.out.println(\"Error loading rom file.\");\r\n }\r\n }\r\n }\r\n confRead.close();\r\n } catch (FileNotFoundException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "RootConfig getConfig();", "@BeforeClass\n\tpublic void readConfig() {\n\t\t// object creation of properties file\n\n\t\tProperties prop = new Properties();\n\n\t\t// read the file: inputstream\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(\"\\\\src\\\\main\\\\java\\\\config\\\\config.properties\");\n\t\t\tprop.load(input);\n\t\t\tbrowser = prop.getProperty(\"browser\");\n\t\t//\turl = prop.getProperty(\"url\");\n\t\t\t\n\t\t}\n\n\t\tcatch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}", "private void parseConfigurations() {\n\t\ttry {\n\t\t\tJsonNode propertiesNode = rawConfig.getProperties();\n\t\t\t\n\t\t\tif(propertiesNode != null && propertiesNode.size() > 0) {\n\t\t\t\tBeanInfoWrapper wrapper = new BeanInfoWrapper(this.beanClazz);\n\t\t\t\tIterator<Map.Entry<String, JsonNode>> it = propertiesNode.fields();\n\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tMap.Entry<String, JsonNode> entry = it.next();\n\t\t\t\t\tString propName = entry.getKey();\n\t\t\t\t\tPropertyDescriptor propDesc = wrapper.getPropertyDesc(propName);\n\t\t\t\t\tif(propDesc == null) {\n\t\t\t\t\t\tthrow new ConfigException(\"Failed to found the property name='\" + propName + \", in class '\" + beanClazz + \"'\");\n\t\t\t\t\t}\n\t\t\t\t\tProperty prop = new Property(this.beanClazz, propDesc);\n\t\t\t\t\tValueNode valueNode = getNodeValue(prop.getType(), entry.getValue(), prop.getContentParamType(), prop.getKeyParamType());\n\t\t\t\t\t\n\t\t\t\t\tproperties.put(prop, valueNode);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ValueUtils.notEmpty(rawConfig.getDestroyMethod())) {\n\t\t\t\tdestroyMethod = beanClazz.getMethod(rawConfig.getDestroyMethod());\n\t\t\t}\n\t\t\t\n\t\t\tif(ValueUtils.notEmpty(rawConfig.getInitMethod())) {\n\t\t\t\tinitMethod = beanClazz.getMethod( rawConfig.getInitMethod());\n\t\t\t}\n\t\t} catch (NoSuchMethodException e) {\n\t\t\tthrow new ConfigException(\"Failed to found the method in the class '\" + beanClazz.getClass() + \"'\", e);\n\t\t\t\n\t\t} catch (SecurityException e) {\n\t\t\tthrow new ConfigException(\"Failed to access the method in the class '\" + beanClazz.getClass() + \"'\", e);\n\t\t}\n\t\t\n\t}", "public abstract Configuration configuration();", "private static HisPatientInfoConfiguration loadConfiguration(String filePath) throws HisServiceException{\n File file = new File(filePath);\n if(file != null && file.exists() && file.isFile() ) {\n try {\n configuration = new Yaml().loadAs(new FileInputStream(file), HisPatientInfoConfiguration.class);\n } catch(FileNotFoundException e) {\n log.error(e.getMessage());\n isOK = false;\n throw new HisServiceException(HisServerStatusEnum.NO_CONFIGURATION);\n }\n }\n else {\n isOK = false;\n }\n return configuration;\n }", "public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "public void loadConfigurationFromDisk() {\r\n try {\r\n FileReader fr = new FileReader(CONFIG_FILE);\r\n BufferedReader rd = new BufferedReader(fr);\r\n\r\n String line;\r\n while ((line = rd.readLine()) != null) {\r\n if (line.startsWith(\"#\")) continue;\r\n if (line.equalsIgnoreCase(\"\")) continue;\r\n\r\n StringTokenizer str = new StringTokenizer(line, \"=\");\r\n if (str.countTokens() > 1) {\r\n String aux;\r\n switch (str.nextToken().trim()) {\r\n case \"system.voidchain.protocol_version\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.protocolVersion = aux;\r\n continue;\r\n case \"system.voidchain.transaction.max_size\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.transactionMaxSize = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.block.num_transaction\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.numTransactionsInBlock = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.storage.data_file_extension\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.dataFileExtension = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.walletFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.data_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.dataDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.blockFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.walletFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.memory.block_megabytes\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.memoryUsedForBlocks = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.sync.block_sync_port\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockSyncPort = Integer.parseInt(aux);\r\n }\r\n continue;\r\n case \"system.voidchain.crypto.ec_param\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.ecParam = aux;\r\n continue;\r\n case \"system.voidchain.core.block_proposal_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockProposalTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n case \"system.voidchain.blockchain.chain_valid_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockchainValidTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n fr.close();\r\n rd.close();\r\n\r\n if (this.firstRun)\r\n this.firstRun = false;\r\n } catch (IOException e) {\r\n logger.error(\"Could not load configuration\", e);\r\n }\r\n }", "void init (Map<String, String> conf) throws ConfigException;", "private static void readConfigFile() {\n\n BufferedReader input = null;\n try {\n input = new BufferedReader(new FileReader(getConfigFile()));\n String sLine = null;\n while ((sLine = input.readLine()) != null) {\n final String[] sTokens = sLine.split(\"=\");\n if (sTokens.length == 2) {\n m_Settings.put(sTokens[0], sTokens[1]);\n }\n }\n }\n catch (final FileNotFoundException e) {\n }\n catch (final IOException e) {\n }\n finally {\n try {\n if (input != null) {\n input.close();\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n\n }", "ConfigBlock getConfig();", "private void cargarConfiguracionBBDD()\r\n\t{\r\n\t\tjava.io.InputStream IO = null;\r\n\r\n\t\ttry {\r\n\t\t\tIO = getClass().getClassLoader().getResourceAsStream(\"configuracion.properties\");\r\n\r\n\t\t // load a properties file\r\n\t\t prop.load(IO);\r\n\t\t \r\n\t\t \r\n\t\t host=prop.getProperty(\"host\");\r\n\t\t database=prop.getProperty(\"database\");\r\n\t\t username=prop.getProperty(\"username\");\r\n\t\t password=prop.getProperty(\"password\");\r\n\t\t \r\n\t\t System.out.println(host);\r\n\r\n\t\t \r\n\t\t \r\n\t\t} catch (IOException ex) {\r\n\t\t ex.printStackTrace();\r\n\t\t} finally {\r\n\t\t if (IO != null) {\r\n\t\t try {\r\n\t\t IO.close();\r\n\t\t } catch (IOException e) {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private ConfigurationEntity getPartiallyLoadedConfigEntity() {\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\tString line;\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(new ClassPathResource(\"./static/config/config.json\").getFile()))) {\n\t\t\twhile((line = br.readLine())!=null) {\n\t\t\t\tbuilder.append(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new Gson().fromJson(builder.toString(), ConfigurationEntity.class);\n\t}", "public static void main(String[] args)\n {\n AppConfig.LoadIntoConfigFiles();\n //configFileName\n }", "public ConfigData(FileConfiguration CoreConfig, FileConfiguration outConfig) {\n\t\t// core configuration is configuration that is Global.\n\t\t// we try to avoid these now. Normally the primary interest is the\n\t\t// GriefPrevention.WorldConfigFolder setting.\n\t\tString DefaultConfigFolder = DataStore.dataLayerFolderPath + File.separator + \"WorldConfigs\" + File.separator;\n\t\tString DefaultTemplateFile = DefaultConfigFolder + \"_template.cfg\";\n\t\t// Configurable template file.\n\t\tTemplateFile = CoreConfig.getString(\"GriefPrevention.WorldConfig.TemplateFile\", DefaultTemplateFile);\n\t\tif (!(new File(TemplateFile).exists())) {\n\t\t\tTemplateFile = DefaultTemplateFile;\n\n\t\t}\n this.GlobalClaims = CoreConfig.getBoolean(\"GriefPrevention.GlobalClaimsEnabled\",true);\n this.GlobalPVP = CoreConfig.getBoolean(\"GriefPrevention.GlobalPVPEnabled\",true);\n this.GlobalSiege = CoreConfig.getBoolean(\"GriefPrevention.GlobalSiegeEnabled\",true);\n this.GlobalSpam = CoreConfig.getBoolean(\"GriefPrevention.GlobalSpamEnabled\",true);\n this.AllowAutomaticMigration = CoreConfig.getBoolean(\"GriefPrevention.AllowAutomaticMigration\",true);\n outConfig.set(\"GriefPrevention.GlobalClaimsEnabled\",GlobalClaims);\n outConfig.set(\"GriefPrevention.GlobalPVPEnabled\",GlobalPVP);\n outConfig.set(\"GriefPrevention.GlobalSiegeEnabled\",GlobalSiege);\n outConfig.set(\"GriefPrevention.GlobalSpamEnabled\",GlobalSpam);\n outConfig.set(\"GriefPrevention.AllowAutomaticMigration\",AllowAutomaticMigration);\n this.DisabledGPCommands = CoreConfig.getStringList(\"GriefPrevention.DisabledCommands\");\n outConfig.set(\"GriefPrevention.DisabledCommands\",DisabledGPCommands);\n\n\n\t\tString SingleConfig = CoreConfig.getString(\"GriefPrevention.WorldConfig.SingleWorld\", NoneSpecifier);\n\t\tSingleWorldConfigLocation = SingleConfig;\n\t\tif (!SingleConfig.equals(NoneSpecifier) && new File(SingleConfig).exists()) {\n\t\t\tGriefPrevention.AddLogEntry(\"SingleWorld Configuration Mode Enabled. File \\\"\" + SingleConfig + \"\\\" will be used for all worlds.\");\n\t\t\tYamlConfiguration SingleReadConfig = YamlConfiguration.loadConfiguration(new File(SingleConfig));\n\t\t\tYamlConfiguration SingleTargetConfig = new YamlConfiguration();\n\t\t\tthis.SingleWorldConfig = new WorldConfig(\"Single World\", SingleReadConfig, SingleTargetConfig);\n\t\t\ttry {\n\t\t\t\tSingleTargetConfig.save(SingleConfig);\n\t\t\t} catch (IOException exx) {\n\t\t\t}\n\t\t}\n\t\tthis.SiegeCooldownSeconds = CoreConfig.getInt(\"GriefPrevention.Siege.CooldownTime\",1000 * 60 * 60);\n outConfig.set(\"GriefPrevention.Siege.CooldownTime\",SiegeCooldownSeconds);\n\t\toutConfig.set(\"GriefPrevention.WorldConfig.SingleWorld\", SingleConfig);\n\t\toutConfig.set(\"GriefPrevention.WorldConfig.TemplateFile\", TemplateFile);\n\t\t// check for appropriate configuration in given FileConfiguration. Note\n\t\t// we also save out this configuration information.\n\t\t// configurable World Configuration folder.\n\t\t// save the configuration.\n\n\t\tWorldConfigLocation = CoreConfig.getString(\"GriefPrevention.WorldConfigFolder\");\n\t\tif (WorldConfigLocation == null || WorldConfigLocation.length() == 0) {\n\t\t\tWorldConfigLocation = DefaultConfigFolder;\n\t\t}\n\t\tFile ConfigLocation = new File(WorldConfigLocation);\n\t\tif (!ConfigLocation.exists()) {\n\t\t\t// if not found, create the directory.\n\t\t\tGriefPrevention.instance.getLogger().log(Level.INFO, \"mkdirs() on \" + ConfigLocation.getAbsolutePath());\n\t\t\tConfigLocation.mkdirs();\n\n\t\t}\n\n\t\t/*\n\t\t * GriefPrevention.instance.getLogger().log(Level.INFO,\n\t\t * \"Reading WorldConfigurations from \" +\n\t\t * ConfigLocation.getAbsolutePath()); if(ConfigLocation.exists() &&\n\t\t * ConfigLocation.isDirectory()){ for(File lookfile:\n\t\t * ConfigLocation.listFiles()){ //System.out.println(lookfile);\n\t\t * if(lookfile.isFile()){ String Extension =\n\t\t * lookfile.getName().substring(lookfile.getName().indexOf('.')+1);\n\t\t * String baseName = Extension.length()==0? lookfile.getName():\n\t\t * lookfile.\n\t\t * getName().substring(0,lookfile.getName().length()-Extension.length\n\t\t * ()-1); if(baseName.startsWith(\"_\")) continue; //configs starting with\n\t\t * underscore are templates. Normally just _template.cfg. //if baseName\n\t\t * is an existing world... if(Bukkit.getWorld(baseName)!=null){\n\t\t * GriefPrevention.instance.getLogger().log(Level.INFO, \"World \" +\n\t\t * baseName + \" Configuration found.\"); } //read it in...\n\t\t * GriefPrevention.AddLogEntry(lookfile.getAbsolutePath());\n\t\t * FileConfiguration Source = YamlConfiguration.loadConfiguration(new\n\t\t * File(lookfile.getAbsolutePath())); FileConfiguration Target = new\n\t\t * YamlConfiguration(); //load in the WorldConfig... WorldConfig wc =\n\t\t * new WorldConfig(baseName,Source,Target); try { Target.save(lookfile);\n\t\t * \n\t\t * }catch(IOException iex){\n\t\t * GriefPrevention.instance.getLogger().log(Level.SEVERE,\n\t\t * \"Failed to save to \" + lookfile.getAbsolutePath()); }\n\t\t * \n\t\t * \n\t\t * } }\n\t\t * \n\t\t * \n\t\t * \n\t\t * \n\t\t * \n\t\t * \n\t\t * \n\t\t * } else if(ConfigLocation.exists() && ConfigLocation.isFile()){\n\t\t * GriefPrevention.instance.getLogger().log(Level.SEVERE,\n\t\t * \"World Configuration Folder found, but it's a File. Double-check your GriefPrevention configuration files, and try again.\"\n\t\t * );\n\t\t * \n\t\t * }\n\t\t */\n\n\t}", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }", "private void initConfigVar() {\n\t\tConfigUtils configUtils = new ConfigUtils();\n\t\tmenuColor = configUtils.readConfig(\"MENU_COLOR\");\n\t\taboutTitle = configUtils.readConfig(\"ABOUT_TITLE\");\n\t\taboutHeader = configUtils.readConfig(\"ABOUT_HEADER\");\n\t\taboutDetails = configUtils.readConfig(\"ABOUT_DETAILS\");\n\t\tgsTitle = configUtils.readConfig(\"GS_TITLE\");\n\t\tgsHeader = configUtils.readConfig(\"GS_HEADER\");\n\t\tgsDetailsFiles = configUtils.readConfig(\"GS_DETAILS_FILES\");\n\t\tgsDetailsCases = configUtils.readConfig(\"GS_DETAILS_CASES\");\n\t}", "public interface IFileConfigurationLoader {\r\n\t\r\n\t/**\r\n\t * <p> Loads a FileConfiguration from the given file. </p>\r\n\t * \r\n\t * @param file File to load from\r\n\t * @return the FileConfiguration\r\n\t */\r\n\tpublic FileConfiguration loadConfiguration(File file);\r\n\t\r\n}", "public void loadConfiguration(){\n\t\t\n\t\tString jarLoc = this.getJarLocation();\n\t\tTicklerVars.jarPath = jarLoc;\n\t\tTicklerVars.configPath=TicklerVars.jarPath+TicklerConst.configFileName;\n\t\t\n\t\t//Read configs from conf file\n\t\tif (new File(TicklerVars.configPath).exists()){\n\t\t\ttry {\n\t\t\t\tString line;\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(TicklerVars.configPath));\n\t\t\t\twhile ((line =reader.readLine())!= null) {\n\t\t\t\t\tif (line.contains(\"Tickler_local_directory\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length());\n\t\t\t\t\t\tTicklerVars.ticklerDir = this.correctJarLoc(loc);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line.contains(\"Tickler_sdcard_directory\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length()-1);\n\t\t\t\t\t\tTicklerVars.sdCardPath = this.correctJarLoc(loc);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line.contains(\"Frida_server_path\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length());\n\t\t\t\t\t\tTicklerVars.fridaServerLoc = loc;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//Config path does not exist\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"WARNING...... Configuration file does not exist!!!!\\nThe following default configurations are set:\\n\");\n\t\t\tTicklerVars.ticklerDir = TicklerVars.jarPath+TicklerConst.defaultTicklerDirName;\n\t\t\tSystem.out.println(\"Tickler Workspace directory on host: \"+TicklerVars.ticklerDir);\n\t\t\tSystem.out.println(\"Tickler temporary directory on device: \"+TicklerConst.sdCardPathDefault);\n\t\t}\n\t\t\n\t\tString x = TicklerVars.ticklerDir;\n\t\tif (TicklerVars.ticklerDir == null || TicklerVars.ticklerDir.matches(\"\\\\s*/\") ){\n\t\t\tTicklerVars.ticklerDir = TicklerVars.jarPath+TicklerConst.defaultTicklerDirName;\n//\t\t\tOutBut.printWarning(\"Configuration File \"+TicklerVars.configPath+ \" doesn't specify Tickler_local_directory. Workspace is set at \"+ TicklerVars.ticklerDir);\n\t\t\tOutBut.printStep(\"Tickler Workspace directory on host: \"+TicklerVars.ticklerDir);\n\t\t}\n\t\t\n\t\tif (TicklerVars.sdCardPath == null || TicklerVars.sdCardPath.matches(\"\\\\s*/\")) {\n\t\t\tTicklerVars.sdCardPath = TicklerConst.sdCardPathDefault;\t\n//\t\t\tOutBut.printWarning(\"Configuration File \"+TicklerVars.configPath+ \" doesn't specify Tickler's temp directory on the device. It is set to \"+ TicklerVars.sdCardPath);\n\t\t\tOutBut.printStep(\"Tickler temporary directory on device: \"+TicklerConst.sdCardPathDefault);\n\t\t}\n\t\t\t\n\t}", "private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }", "Map<String, Object> readConfig(Request request, String id);", "public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }", "public File getConfigurationFile();", "private void loadCustomConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CUSTOM_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n LOG.info(\"Load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n } else {\r\n LOG.warn(\"Can't load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n }\r\n }", "Collection<String> readConfigs();", "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "public interface ConfigService {\n\n\n /**\n * eureka配置\n *\n * @param sb\n * @param addr\n */\n void eureka(StringBuilder sb, String addr);\n\n /**\n * redis配置\n *\n * @param sb\n * @param addr\n */\n void redis(StringBuilder sb, String addr);\n\n\n /**\n * 数据源配置\n *\n * @param sb\n */\n void thymeleafAndDatasource(StringBuilder sb);\n\n\n /**\n * 关于mybatis的配置\n *\n * @param sb\n * @param packages\n */\n void mybatis(StringBuilder sb, String packages);\n\n\n /**\n * 分页插件配置\n *\n * @param sb\n */\n void pagehelper(StringBuilder sb);\n\n /**\n * 生成application.yml\n *\n * @param name\n */\n void application(String name);\n\n\n /**\n * 生成application-xxx.yml\n *\n * @param branch\n * @param packages\n */\n void applicationBranch(String branch, String packages);\n\n\n /**\n * log文件\n *\n */\n void logBack();\n}", "public BaseClass() {\n\t\t \n\t try {\n\t\t\t \n\t\t\t prop=new Properties();\n\t\t\t \n\t\t\tString path=System.getProperty(\"user.dir\");\n\t\t\t \n\t\t\t // FileInputStream is the pre-defined class\n\t\t\tFileInputStream ip=new FileInputStream(path+\"\\\\src\\\\main\\\\java\\\\com\\\\demoQA\\\\config\\\\Config.Properties\");\n\t\t\t prop.load(ip);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }" ]
[ "0.7513585", "0.7405284", "0.7372355", "0.7188981", "0.70683855", "0.6885738", "0.6871203", "0.67461026", "0.66600233", "0.6639825", "0.6636984", "0.6634406", "0.6608958", "0.6598537", "0.6581985", "0.65608555", "0.65468985", "0.65393686", "0.6531403", "0.6524871", "0.6504388", "0.6489978", "0.648003", "0.64747834", "0.64732397", "0.6467508", "0.6465439", "0.64617515", "0.6451737", "0.642746", "0.6426975", "0.642286", "0.64222014", "0.64142555", "0.6411345", "0.6407043", "0.6405892", "0.63984764", "0.6352282", "0.6352282", "0.6352282", "0.6352282", "0.63507986", "0.6346955", "0.6340539", "0.6334981", "0.633135", "0.6321455", "0.6306837", "0.6286228", "0.62860346", "0.6283941", "0.62754047", "0.62747407", "0.6268064", "0.62612927", "0.62606275", "0.6258142", "0.6247277", "0.62323797", "0.6224183", "0.6221668", "0.6214726", "0.6213427", "0.62119204", "0.62053645", "0.6191253", "0.6179816", "0.6178847", "0.6174259", "0.61703724", "0.61670226", "0.616532", "0.61642885", "0.61516464", "0.6149724", "0.6146374", "0.6142181", "0.6134622", "0.6120238", "0.6119052", "0.6113008", "0.6104285", "0.61025196", "0.6091241", "0.608936", "0.60883677", "0.60811967", "0.60798544", "0.60778385", "0.60772467", "0.60730916", "0.60722685", "0.6063635", "0.60609084", "0.6060818", "0.60522765", "0.60485667", "0.6045139", "0.60450554" ]
0.7760854
0
Some how useless ~8>
public AncientEgyptianMultiplication( ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void feladat8() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public final void zzc(T r7, T r8) {\n /*\n r6 = this;\n if (r8 == 0) goto L_0x0105;\n L_0x0002:\n r0 = 0;\n L_0x0003:\n r1 = r6.zzmi;\n r1 = r1.length;\n if (r0 >= r1) goto L_0x00f2;\n L_0x0008:\n r1 = r6.zzag(r0);\n r2 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n r2 = r2 & r1;\n r2 = (long) r2;\n r4 = r6.zzmi;\n r4 = r4[r0];\n r5 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r1 = r1 & r5;\n r1 = r1 >>> 20;\n switch(r1) {\n case 0: goto L_0x00de;\n case 1: goto L_0x00d0;\n case 2: goto L_0x00c2;\n case 3: goto L_0x00bb;\n case 4: goto L_0x00ad;\n case 5: goto L_0x00a6;\n case 6: goto L_0x009f;\n case 7: goto L_0x0091;\n case 8: goto L_0x0083;\n case 9: goto L_0x007e;\n case 10: goto L_0x0077;\n case 11: goto L_0x0070;\n case 12: goto L_0x0069;\n case 13: goto L_0x0062;\n case 14: goto L_0x005a;\n case 15: goto L_0x0053;\n case 16: goto L_0x004b;\n case 17: goto L_0x007e;\n case 18: goto L_0x0044;\n case 19: goto L_0x0044;\n case 20: goto L_0x0044;\n case 21: goto L_0x0044;\n case 22: goto L_0x0044;\n case 23: goto L_0x0044;\n case 24: goto L_0x0044;\n case 25: goto L_0x0044;\n case 26: goto L_0x0044;\n case 27: goto L_0x0044;\n case 28: goto L_0x0044;\n case 29: goto L_0x0044;\n case 30: goto L_0x0044;\n case 31: goto L_0x0044;\n case 32: goto L_0x0044;\n case 33: goto L_0x0044;\n case 34: goto L_0x0044;\n case 35: goto L_0x0044;\n case 36: goto L_0x0044;\n case 37: goto L_0x0044;\n case 38: goto L_0x0044;\n case 39: goto L_0x0044;\n case 40: goto L_0x0044;\n case 41: goto L_0x0044;\n case 42: goto L_0x0044;\n case 43: goto L_0x0044;\n case 44: goto L_0x0044;\n case 45: goto L_0x0044;\n case 46: goto L_0x0044;\n case 47: goto L_0x0044;\n case 48: goto L_0x0044;\n case 49: goto L_0x0044;\n case 50: goto L_0x003d;\n case 51: goto L_0x002b;\n case 52: goto L_0x002b;\n case 53: goto L_0x002b;\n case 54: goto L_0x002b;\n case 55: goto L_0x002b;\n case 56: goto L_0x002b;\n case 57: goto L_0x002b;\n case 58: goto L_0x002b;\n case 59: goto L_0x002b;\n case 60: goto L_0x0026;\n case 61: goto L_0x001f;\n case 62: goto L_0x001f;\n case 63: goto L_0x001f;\n case 64: goto L_0x001f;\n case 65: goto L_0x001f;\n case 66: goto L_0x001f;\n case 67: goto L_0x001f;\n case 68: goto L_0x0026;\n default: goto L_0x001d;\n };\n L_0x001d:\n goto L_0x00ee;\n L_0x001f:\n r1 = r6.zza(r8, r4, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0025:\n goto L_0x0031;\n L_0x0026:\n r6.zzb(r7, r8, r0);\n goto L_0x00ee;\n L_0x002b:\n r1 = r6.zza(r8, r4, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0031:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzo(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n r6.zzb(r7, r4, r0);\n goto L_0x00ee;\n L_0x003d:\n r1 = r6.zzmz;\n com.google.android.gms.internal.clearcut.zzeh.zza(r1, r7, r8, r2);\n goto L_0x00ee;\n L_0x0044:\n r1 = r6.zzmw;\n r1.zza(r7, r8, r2);\n goto L_0x00ee;\n L_0x004b:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0051:\n goto L_0x00c8;\n L_0x0053:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0059:\n goto L_0x006f;\n L_0x005a:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0060:\n goto L_0x00c8;\n L_0x0062:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0068:\n goto L_0x006f;\n L_0x0069:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x006f:\n goto L_0x00b3;\n L_0x0070:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0076:\n goto L_0x00b3;\n L_0x0077:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x007d:\n goto L_0x0089;\n L_0x007e:\n r6.zza(r7, r8, r0);\n goto L_0x00ee;\n L_0x0083:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0089:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzo(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n goto L_0x00eb;\n L_0x0091:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x0097:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzl(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n goto L_0x00eb;\n L_0x009f:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00a5:\n goto L_0x00b3;\n L_0x00a6:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00ac:\n goto L_0x00c8;\n L_0x00ad:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00b3:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzj(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n goto L_0x00eb;\n L_0x00bb:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00c1:\n goto L_0x00c8;\n L_0x00c2:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00c8:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzk(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r4);\n goto L_0x00eb;\n L_0x00d0:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00d6:\n r1 = com.google.android.gms.internal.clearcut.zzfd.zzm(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r1);\n goto L_0x00eb;\n L_0x00de:\n r1 = r6.zza(r8, r0);\n if (r1 == 0) goto L_0x00ee;\n L_0x00e4:\n r4 = com.google.android.gms.internal.clearcut.zzfd.zzn(r8, r2);\n com.google.android.gms.internal.clearcut.zzfd.zza(r7, r2, r4);\n L_0x00eb:\n r6.zzb(r7, r0);\n L_0x00ee:\n r0 = r0 + 4;\n goto L_0x0003;\n L_0x00f2:\n r0 = r6.zzmq;\n if (r0 != 0) goto L_0x0104;\n L_0x00f6:\n r0 = r6.zzmx;\n com.google.android.gms.internal.clearcut.zzeh.zza(r0, r7, r8);\n r0 = r6.zzmo;\n if (r0 == 0) goto L_0x0104;\n L_0x00ff:\n r0 = r6.zzmy;\n com.google.android.gms.internal.clearcut.zzeh.zza(r0, r7, r8);\n L_0x0104:\n return;\n L_0x0105:\n r7 = new java.lang.NullPointerException;\n r7.<init>();\n throw r7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zzc(java.lang.Object, java.lang.Object):void\");\n }", "static void q8(){\t\n\t}", "public final void mo8775b() {\n }", "boolean hasS8();", "private void level7() {\n }", "public static int m8655e() {\n return 8;\n }", "@Override\n\tpublic void challenge8() {\n\n\t}", "public void mo12628c() {\n }", "public final boolean zza(B r7, com.google.android.gms.internal.firebase_auth.zzhr r8) throws java.io.IOException {\n /*\n r6 = this;\n int r0 = r8.getTag()\n int r1 = r0 >>> 3\n r0 = r0 & 7\n r2 = 1\n switch(r0) {\n case 0: goto L_0x0055;\n case 1: goto L_0x004d;\n case 2: goto L_0x0045;\n case 3: goto L_0x001b;\n case 4: goto L_0x0019;\n case 5: goto L_0x0011;\n default: goto L_0x000c;\n }\n L_0x000c:\n com.google.android.gms.internal.firebase_auth.zzgd r7 = com.google.android.gms.internal.firebase_auth.zzgc.zzhv()\n throw r7\n L_0x0011:\n int r8 = r8.zzfn()\n r6.zzc(r7, r1, r8)\n return r2\n L_0x0019:\n r7 = 0\n return r7\n L_0x001b:\n java.lang.Object r0 = r6.zzjo()\n int r3 = r1 << 3\n r3 = r3 | 4\n L_0x0023:\n int r4 = r8.zzgg()\n r5 = 2147483647(0x7fffffff, float:NaN)\n if (r4 == r5) goto L_0x0032\n boolean r4 = r6.zza((B) r0, r8)\n if (r4 != 0) goto L_0x0023\n L_0x0032:\n int r8 = r8.getTag()\n if (r3 != r8) goto L_0x0040\n java.lang.Object r8 = r6.zzm(r0)\n r6.zza((B) r7, r1, (T) r8)\n return r2\n L_0x0040:\n com.google.android.gms.internal.firebase_auth.zzgc r7 = com.google.android.gms.internal.firebase_auth.zzgc.zzhu()\n throw r7\n L_0x0045:\n com.google.android.gms.internal.firebase_auth.zzeh r8 = r8.zzfq()\n r6.zza((B) r7, r1, r8)\n return r2\n L_0x004d:\n long r3 = r8.zzfm()\n r6.zzb(r7, r1, r3)\n return r2\n L_0x0055:\n long r3 = r8.zzfk()\n r6.zza((B) r7, r1, r3)\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.firebase_auth.zziq.zza(java.lang.Object, com.google.android.gms.internal.firebase_auth.zzhr):boolean\");\n }", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "protected boolean func_70814_o() { return true; }", "protected boolean func_70041_e_() { return false; }", "private static int partialIsValidUtf8(long r11, int r13) {\n /*\n // Method dump skipped, instructions count: 170\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.protobuf.Utf8.UnsafeProcessor.partialIsValidUtf8(long, int):int\");\n }", "private static int partialIsValidUtf8(byte[] r11, long r12, int r14) {\n /*\n // Method dump skipped, instructions count: 172\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.protobuf.Utf8.UnsafeProcessor.partialIsValidUtf8(byte[], long, int):int\");\n }", "void m5768b() throws C0841b;", "java.lang.String getS8();", "@Test(priority=11)\n\tpublic static void negativeTestPalindrome8() {\n\t\tchar checkWord = ' ';\n\t\tboolean expectedResult = false;\n\t\tboolean actualResult = Palindrome.checkPalindrome(checkWord);\n\t\tAssert.assertEquals(actualResult,expectedResult);\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean hasVar8() {\n return fieldSetFlags()[9];\n }", "public boolean method_208() {\r\n return false;\r\n }", "@Override\n public void func_104112_b() {\n \n }", "public boolean method_3897() {\r\n return false;\r\n }", "private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }", "public boolean i()\r\n/* 46: */ {\r\n/* 47:50 */ return true;\r\n/* 48: */ }", "public boolean method_4088() {\n return false;\n }", "private static boolean m55560tZ(int i) {\n return i == 7;\n }", "public void method_4270() {}", "public boolean c()\r\n/* 56: */ {\r\n/* 57: 77 */ return false;\r\n/* 58: */ }", "private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public abstract int mo9754s();", "public boolean method_2434() {\r\n return false;\r\n }", "public final void mo1285b() {\n }", "static void m7753b() {\n f8029a = false;\n }", "boolean mo30282b();", "public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }", "public boolean method_216() {\r\n return false;\r\n }", "public boolean method_218() {\r\n return false;\r\n }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "public void mo21879u() {\n }", "private void m50366E() {\n }", "boolean hasB27();", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tbyte a = 20;\n\t\tint b = a >> 8;\n\n\t\tSystem.out.println(b == 0);\n\t\t\n\t\tlong c = 131060;\n\n\t\tSystem.out.println(c >= 1 << 17);\n\t\t\n\n\t}", "public boolean method_210() {\r\n return false;\r\n }", "public int mo36g() {\n return 8;\n }", "static void feladat9() {\n\t}", "public boolean a(com.google.ae r7, java.lang.String r8) {\n /*\n r6 = this;\n r0 = 1;\n r1 = 0;\n r2 = r7.n();\n r3 = r6.a(r2, r8);\n if (r3 == 0) goto L_0x001e;\n L_0x000c:\n r4 = J;\t Catch:{ RuntimeException -> 0x0020 }\n r5 = 31;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0020 }\n r4 = r4.equals(r8);\t Catch:{ RuntimeException -> 0x0020 }\n if (r4 != 0) goto L_0x0024;\n L_0x0018:\n r4 = r6.k(r8);\t Catch:{ RuntimeException -> 0x0022 }\n if (r2 == r4) goto L_0x0024;\n L_0x001e:\n r0 = r1;\n L_0x001f:\n return r0;\n L_0x0020:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0022 }\n L_0x0022:\n r0 = move-exception;\n throw r0;\n L_0x0024:\n r2 = r3.X();\n r4 = r6.b(r7);\n r2 = r2.e();\n if (r2 != 0) goto L_0x003f;\n L_0x0032:\n r2 = r4.length();\n r3 = 2;\n if (r2 <= r3) goto L_0x003d;\n L_0x0039:\n r3 = 16;\n if (r2 <= r3) goto L_0x001f;\n L_0x003d:\n r0 = r1;\n goto L_0x001f;\n L_0x003f:\n r2 = r6.a(r4, r3);\t Catch:{ RuntimeException -> 0x0049 }\n r3 = com.google.bw.UNKNOWN;\t Catch:{ RuntimeException -> 0x0049 }\n if (r2 != r3) goto L_0x001f;\n L_0x0047:\n r0 = r1;\n goto L_0x001f;\n L_0x0049:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(com.google.ae, java.lang.String):boolean\");\n }", "public abstract boolean mo9234ar();", "public boolean method_198() {\r\n return false;\r\n }", "void m8368b();", "private final com.google.android.play.p179a.p352a.ae m28545b(com.google.protobuf.nano.a r8) {\n /*\n r7 = this;\n r6 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n L_0x0002:\n r0 = r8.a();\n switch(r0) {\n case 0: goto L_0x000f;\n case 8: goto L_0x0010;\n case 18: goto L_0x001d;\n case 24: goto L_0x002a;\n case 34: goto L_0x0037;\n case 42: goto L_0x0044;\n case 50: goto L_0x0051;\n case 58: goto L_0x005e;\n case 66: goto L_0x006b;\n case 74: goto L_0x0078;\n case 82: goto L_0x0086;\n case 90: goto L_0x0094;\n case 98: goto L_0x00a2;\n case 106: goto L_0x00b0;\n case 114: goto L_0x00be;\n case 122: goto L_0x00cc;\n case 130: goto L_0x00dc;\n case 138: goto L_0x00eb;\n case 144: goto L_0x00fa;\n case 152: goto L_0x0108;\n case 160: goto L_0x0117;\n case 168: goto L_0x0126;\n default: goto L_0x0009;\n };\n L_0x0009:\n r0 = super.m4918a(r8, r0);\n if (r0 != 0) goto L_0x0002;\n L_0x000f:\n return r7;\n L_0x0010:\n r0 = r8.j();\n r7.f30754b = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x001d:\n r0 = r8.f();\n r7.f30755c = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x002a:\n r0 = r8.i();\n r7.f30757e = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0037:\n r0 = r8.f();\n r7.f30758f = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0044:\n r0 = r8.f();\n r7.f30759g = r0;\n r0 = r7.f30753a;\n r0 = r0 | 32;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0051:\n r0 = r8.f();\n r7.f30762j = r0;\n r0 = r7.f30753a;\n r0 = r0 | 256;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x005e:\n r0 = r8.f();\n r7.f30763k = r0;\n r0 = r7.f30753a;\n r0 = r0 | 512;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x006b:\n r0 = r8.f();\n r7.f30760h = r0;\n r0 = r7.f30753a;\n r0 = r0 | 64;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0078:\n r0 = r8.f();\n r7.f30761i = r0;\n r0 = r7.f30753a;\n r0 = r0 | 128;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0086:\n r0 = r8.f();\n r7.f30764l = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1024;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0094:\n r0 = r8.f();\n r7.f30765m = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2048;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00a2:\n r0 = r8.f();\n r7.f30766n = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4096;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00b0:\n r0 = r8.f();\n r7.f30767o = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8192;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00be:\n r0 = r8.f();\n r7.f30768p = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16384;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00cc:\n r0 = r8.f();\n r7.f30769q = r0;\n r0 = r7.f30753a;\n r1 = 32768; // 0x8000 float:4.5918E-41 double:1.61895E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00dc:\n r0 = r8.f();\n r7.f30770r = r0;\n r0 = r7.f30753a;\n r1 = 65536; // 0x10000 float:9.18355E-41 double:3.2379E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00eb:\n r0 = r8.f();\n r7.f30771s = r0;\n r0 = r7.f30753a;\n r1 = 131072; // 0x20000 float:1.83671E-40 double:6.47582E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00fa:\n r0 = r8.j();\n r7.f30756d = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0108:\n r0 = r8.i();\n r7.f30772t = r0;\n r0 = r7.f30753a;\n r1 = 262144; // 0x40000 float:3.67342E-40 double:1.295163E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0117:\n r0 = r8.e();\n r7.f30773u = r0;\n r0 = r7.f30753a;\n r1 = 524288; // 0x80000 float:7.34684E-40 double:2.590327E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0126:\n r1 = r7.f30753a;\n r1 = r1 | r6;\n r7.f30753a = r1;\n r1 = r8.o();\n r2 = r8.i();\t Catch:{ IllegalArgumentException -> 0x0151 }\n switch(r2) {\n case 0: goto L_0x015a;\n case 1: goto L_0x015a;\n case 2: goto L_0x015a;\n default: goto L_0x0136;\n };\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0136:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = 48;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = \" is not a valid enum PairedDeviceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0151 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0151:\n r2 = move-exception;\n r8.e(r1);\n r7.m4918a(r8, r0);\n goto L_0x0002;\n L_0x015a:\n r7.f30774v = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r7.f30753a;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2 | r6;\n r7.f30753a = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n goto L_0x0002;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.ae.b(com.google.protobuf.nano.a):com.google.android.play.a.a.ae\");\n }", "public boolean mo8810b() {\n return false;\n }", "private static int m31087b(zzss zzss) {\n int a = zzss.mo32193a(4);\n if (a == 15) {\n return zzss.mo32193a(24);\n }\n zzsk.m31080a(a < 13);\n return f29311b[a];\n }", "public static int m8668h() {\n return 8;\n }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "Main8(int a) {\n\t\tSystem.out.println(a);\n\t}", "public abstract boolean mo66253b();", "public void mo38117a() {\n }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "void mo12637b();", "@Override\n\tpublic void challenge9() {\n\n\t}", "public abstract void mo4360a(byte b);", "void mo57277b();", "public void m23075a() {\n }", "public boolean mo7083u() {\n return false;\n }", "void m5770d() throws C0841b;", "void m5771e() throws C0841b;", "private void kk12() {\n\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "private static boolean m55561ua(int i) {\n return i == 6;\n }", "public abstract void mo9798a(byte b);", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public void mo21787L() {\n }", "public void a(int ☃) {\r\n/* 68 */ if (this.d) {\r\n/* */ return;\r\n/* */ }\r\n/* */ \r\n/* 72 */ this.d = true;\r\n/* 73 */ this.f.clear();\r\n/* 74 */ this.e = \"\";\r\n/* 75 */ this.b.clear();\r\n/* 76 */ this.h = ☃;\r\n/* 77 */ this.g = k.c();\r\n/* */ }", "void m5769c() throws C0841b;", "long getUnknown12();", "boolean hasUnknown73();", "static void feladat7() {\n\t}", "public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }", "public void mo115190b() {\n }", "public void mo23813b() {\n }", "long getUnknown72();", "private final com.google.android.play.p179a.p352a.C6210u m28673b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x001b;\n case 26: goto L_0x0058;\n case 34: goto L_0x0065;\n case 42: goto L_0x0072;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f31049b = r0;\n r0 = r6.f31048a;\n r0 = r0 | 1;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x001b:\n r1 = r6.f31048a;\n r1 = r1 | 2;\n r6.f31048a = r1;\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0047 }\n switch(r2) {\n case 0: goto L_0x004f;\n case 1: goto L_0x004f;\n case 2: goto L_0x004f;\n case 3: goto L_0x004f;\n case 4: goto L_0x004f;\n case 5: goto L_0x004f;\n case 6: goto L_0x004f;\n default: goto L_0x002c;\n };\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x002c:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = 38;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = \" is not a valid enum OsType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0047 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x0047:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x004f:\n r6.f31050c = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r6.f31048a;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2 | 2;\n r6.f31048a = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n goto L_0x0000;\n L_0x0058:\n r0 = r7.f();\n r6.f31051d = r0;\n r0 = r6.f31048a;\n r0 = r0 | 4;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0065:\n r0 = r7.f();\n r6.f31052e = r0;\n r0 = r6.f31048a;\n r0 = r0 | 8;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0072:\n r0 = r7.f();\n r6.f31053f = r0;\n r0 = r6.f31048a;\n r0 = r0 | 16;\n r6.f31048a = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.u.b(com.google.protobuf.nano.a):com.google.android.play.a.a.u\");\n }", "public void mo9848a() {\n }", "private boolean m20208e() {\n return !m20207d();\n }", "public void mo1976s() throws cf {\r\n }", "private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }", "public void method8(int i) {\n }", "void m1864a() {\r\n }", "void mo5018b();", "public int a() {\r\n/* 63 */ return 4;\r\n/* */ }", "public void mo23438b() {\n }", "public abstract void mo9806a(int i, boolean z);", "public int mo27483b() {\n return 0;\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "public static void main(String[] args) {\n\t\tint x = ~0;\r\n\t\tSystem.out.println(Integer.toBinaryString(x));\r\n\t\tint y = x>>>8;\r\n\t\tSystem.out.println(Integer.toBinaryString(y));\r\n\t\tSystem.out.println(x+\" \"+y);\r\n\t\t\r\n\t\tint N = 1<<31;\r\n\t\tint M = 0b11;\r\n\t\tint j=2;\r\n\t\tint i=1;\r\n\t\tSystem.out.println(Integer.toBinaryString(N));\r\n\t\tSystem.out.println(Integer.toBinaryString(M));\r\n\t\tSystem.out.println(Integer.toBinaryString(insertMIntoNFromJtoI(M, N, j, i)));\r\n\t\t\r\n\t}" ]
[ "0.61910045", "0.6069212", "0.5892586", "0.58596796", "0.5850869", "0.58111215", "0.5802567", "0.5798732", "0.5785828", "0.5769614", "0.5762583", "0.5734238", "0.57201815", "0.568772", "0.5672403", "0.56613624", "0.5640159", "0.56361055", "0.56356317", "0.56318134", "0.5624466", "0.56122726", "0.559932", "0.55924875", "0.558854", "0.55728126", "0.5553207", "0.55491316", "0.55294", "0.55281156", "0.5520829", "0.55072284", "0.5497923", "0.54947966", "0.5481504", "0.54797834", "0.54783595", "0.54617554", "0.54565406", "0.54509485", "0.5446543", "0.5445998", "0.54311246", "0.5426758", "0.54222393", "0.5411513", "0.5397914", "0.5396253", "0.5378135", "0.5363893", "0.5362765", "0.5362116", "0.5356452", "0.53556395", "0.5343103", "0.5336373", "0.5323548", "0.5320175", "0.530555", "0.53043765", "0.53029287", "0.53006816", "0.52996266", "0.52994204", "0.52974176", "0.5297235", "0.5296707", "0.52961504", "0.5293783", "0.5292671", "0.5289896", "0.5287231", "0.52844584", "0.5282004", "0.5280308", "0.5279867", "0.5279543", "0.5278742", "0.52753365", "0.5273028", "0.5271185", "0.5269562", "0.52681607", "0.5267305", "0.52660006", "0.5262135", "0.52621055", "0.5261458", "0.5260317", "0.5255849", "0.5254006", "0.52520275", "0.52485865", "0.5244832", "0.5241298", "0.5240357", "0.5237591", "0.5229153", "0.52275705", "0.5226416", "0.5221066" ]
0.0
-1
The method converts a positive integer to the ancient Egyptian multipliers which are actually the multipliers to display the number by a sum of the largest possible powers of two. E.g. 42 = 2^5 + 2^3 + 2^1 = 32 + 8 + 2. However, odd numbers always 2^0 = 1 as the last entry. Also see:
public int[ ] decompose( int number ) throws JWaveException { if( number < 1 ) throw new JWaveFailure( "the supported number for decomposition is smaller than one" ); int power = getExponent( (double)number ); int[ ] tmpArr = new int[ power + 1 ]; // max no of possible multipliers int pos = 0; double current = (double)number; while( current >= 1. ) { power = getExponent( current ); tmpArr[ pos ] = power; current = current - scalb( 1., power ); // 1. * 2 ^ power pos++; } // while int[ ] ancientEgyptianMultipliers = new int[ pos ]; // shrink for( int c = 0; c < pos; c++ ) ancientEgyptianMultipliers[ c ] = tmpArr[ c ]; return ancientEgyptianMultipliers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int compose( int[ ] ancientEgyptianMultipliers ) throws JWaveException {\r\n \r\n if( ancientEgyptianMultipliers == null )\r\n throw new JWaveError( \"given array is null\" );\r\n \r\n int number = 0;\r\n \r\n int noOfAncientEgyptianMultipliers = ancientEgyptianMultipliers.length;\r\n for( int m = 0; m < noOfAncientEgyptianMultipliers; m++ ) {\r\n \r\n int ancientEgyptianMultiplier = ancientEgyptianMultipliers[ m ];\r\n \r\n number += (int)scalb( 1., ancientEgyptianMultiplier ); // 1. * 2^p\r\n \r\n } // m\r\n \r\n return number;\r\n \r\n }", "private int largestPowerOf2(int n) { \n\t\tint res = 2;\n\t\twhile (res < n) {\n\t\t\tint rem = res;\n\t\t\tres = (int) Math.pow(res, 2);\n\t\t\tif (res > n)\n\t\t\t\treturn rem;\n\t\t}\n\t\treturn res;\n\t}", "static long getIdealNumber (long low,long high) {\n\n int exp3_Max= exp(3,high);\n int exp5_Max= exp(5,high);\n\n System.out.printf(\"Max exp3 (3^exp3_max) = %d , Max exp5(5^exp5_Max) = %d\" , exp3_Max , exp5_Max );\n System.out.println(\" \");\n\n\n int idealCounter=0;\n\n long n3=1L;\n\n\n for (int i=0;i<=exp3_Max;i++) {\n\n long n5=1l;\n \n for (int j=0;j<=exp5_Max;j++) {\n\n long num = n3*n5;\n System.out.printf(\"3^%d * 5^%d = %d%n\", i, j, num);\n\n if (num>high) {\n break ;\n }\n if (num>=low) {\n System.out.println(\"---> \" + num);\n idealCounter++;\n }\n n5*=5;\n\n }\n n3*=3;\n }\n\n return idealCounter;\n\n\n\n }", "public static double megaBitsToBits(double num) { return (num*Math.exp(6)); }", "private static int iterrativeFactorial(int value) {\n int result = 1;\n for (int i = value; i > 0; i--) {\n result = result * i;\n }\n return result;\n }", "private static int ceilPow2(int n) {\n int x = 0;\n while ((1L << x) < n)\n x++;\n return x;\n }", "public static void main(String[] args) {\n BigDecimal bigDecimal = new BigDecimal(2);\n BigDecimal divisor = bigDecimal.pow(256);\n BigDecimal dividend = divisor.add(new BigDecimal(-1));\n BigDecimal multiplier = new BigDecimal(2).pow(128);\n// BigDecimal result = dividend.divide(divisor).pow(multiplier);\n// System.out.println(result);\n }", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }", "public int nthUglyNumber2(int n) {\n Queue<Long> choushu = new PriorityQueue<>();\n if (n == 1)\n return 1;\n choushu.offer((long) 1);\n int[] factor = {2, 3, 5};\n for (int i = 2; i <= n; i++) {\n long num = choushu.poll();\n for (int f : factor) {\n long tmp = f * num;\n if (!choushu.contains(tmp))\n choushu.offer(tmp);\n }\n System.out.println(MessageFormat.format(\"num:{0},list:{1}\", num, printQueue(choushu)));\n }\n return choushu.poll().intValue();\n }", "static int findLargestPowerOf2InRange(int N){\n N = N| (N>>1);\n N = N| (N>>2);\n N = N| (N>>4);\n N = N| (N>>8);\n\n\n //as now the number is 2 * x-1, where x is required answer, so adding 1 and dividing it by\n\n return (N+1)>>1;\n }", "private static int getNearestPowerOfTwo(int num)\n\t{\n\n\t\tint value = -2;\n\t\tint exponent = 0;\n\n\t\tdo\n\t\t{\n\t\t\texponent = exponent + 1;\n\t\t\tvalue = (int)Math.pow(2, exponent);\n\t\t}\n\t\twhile(value <= num);\n\n\t\treturn exponent - 1;\n\t}", "static int yeusOptimized(){\n for(int x=9;x>=0;--x){\tint a=x*100001; //Setting up palindrome. 100001 * 9 = 900009\n for(int y=9;y>=0;--y){\tint b=a+y*10010; //Setting up the inner numbers so 10010*9. 90090 + 900009 = 990099\n for(int z=9;z>=0;--z){\tint n=b+z*1100; //Final inner numbers 9900+990099 = 999999 Palindrome\n for(int i=990;i>99;i-=11){ //Since we start with the largest palindrome, we just need to make sure it is a factor of two 3 digit numbers.\n if(n%i==0){//If there is a remainder, i isn't a factor.\n int t=n/i; //t is the palindrome divided by the factor to get the other factor\n if(t<1000)return n; //make sure that other factor was also a 3 digit number (only one check since we're starting from the maximum possible values)\n }}}}} //And return the palindrome\n return 0;}", "static int exp(int base, long n) {\n\n // 2^3=8 , 2^x=8 -> x = ln8/ln2 , otherwise x=Math.log(8)/Math/log(2)\n\n return (int) ( Math.log(n)/Math.log(base) );\n }", "public int optimizedCom() {\n\tint b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;\n\tint a = 1;\n\n\tb = 65;\n\tc = b;\n\n\tif (a != 0) {\n\t b = (b * 100) + 100000;\n\t c = b + 17000;\n\t}\n\n\t// at this point:\n\t// a == 1\n\t// b == 106500\n\t// c == 123500\n\n\t// outer loop terminates when b == c\n\t// c never changes, serves as termination condition\n\t// b only gets +17 added for every execution of the outer loop\n\n\tdo {\n\t f = 1;\n\t d = 2;\n\t do { // jnz g -13\n\t\te = 2;\n\n\t\tdo { // jnz g - 8\n\t\t g = (d * e) - b;\n\n\t\t if (g == 0)\n\t\t\tf = 0;\n\n\t\t e++;\n\n\t\t g = e - b;\n\t\t} while (g != 0);\n\n\t\td++;\n\n\t\tg = d - b;\n\t } while (g != 0);\n\n\t // increments h if register b contains a non-prime number (checked by printing all values)\n\t if (f == 0) {\n\t\th++;\n\t\tSystem.out.println(\"b: \" + b + \" c: \" + c + \" d: \" + d + \" e: \" + e + \" f: \" + f + \" g: \" + g);\n\t }\n\n\t // c does not change, b only gets increased by 17\n\t // if b == c, the method returns h which is the number of non-prime numbers encountered in the loop\n\t g = b - c;\n\n\t if (g == 0)\n\t\treturn h;\n\n\t b += 17;\n\n\t} while (true);\n }", "static long calcComplement(long value, long digits)\r\n {\n if ( value > 0.5*Math.pow(16, digits) )\r\n {\r\n return value - (int)Math.pow(16, digits);\r\n }\r\n else\r\n {\r\n return value;\r\n }\r\n }", "private static long tenToThePowerOfInt(int number) {\n\n\t\tlong result = 1; // default case (10 power 0)\n\n\t\t// checking for out of long range\n\t\tif (number > 18) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tfor (int i = 0; i < number; i++) {\n\t\t\tresult = result * 10;\n\t\t}\n\n\t\treturn result;\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tlong ln= 6008514751431L;\r\n\t\tint max=0;\r\n\t\tfor (int i=2; i<= ln;i++)\r\n\t\t\twhile (ln % i == 0)\r\n\t\t\t{\r\n\t\t\t\tif(i>max)\r\n\t\t\t\tmax=i;\r\n\t\t\t\tln/=i;\r\n\t\t\t}\t\r\n\t\tSystem.out.println(\"the greatest prime factor of the given number is :\"+max);\r\n\t\t}", "public static void main(String[] args) {\n\tint base=3 ,exponent=4 , result =1;\r\n\twhile (exponent!=0)\r\n\t{\r\n\t\tresult = result*base;\r\n\t\t--exponent;\r\n\t\t\t}\r\nSystem.out.println(\"the answer is \"+ result);\t\r\n\r\n\t}", "public int getExponent();", "public static int ceilToPowerOfTwo(int i) {\n return 1 << IntMath.log2(i, RoundingMode.CEILING);\n }", "int getMaxEXP();", "int getMaxEXP();", "private static int fact(int n) {\n\t\tint prod = 1;\n\t\tfor (int i = 1; i <= n; prod *= i++)\n\t\t\t;\n\t\treturn prod;\n\t}", "private int smallestPowerOf2BiggerOrEqualTo(int n) {\r\n\t\tif (n < 1 || n > MAX_POWER_OF_2_FOR_INTEGER) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\r\n\t\tn--;\r\n\t\tint powerOfTwo = 1;\r\n\r\n\t\twhile (n != 0) {\r\n\t\t\tn /= 2;\r\n\t\t\tpowerOfTwo *= 2;\r\n\t\t}\r\n\r\n\t\treturn powerOfTwo;\r\n\t}", "private static long calc2(int max)\n {\n long sum = 1; // \"1\" is valid (1 + 1/1 = 2)\n boolean[] primes = PrimeUtils.isPrimeSoE(max + 1);\n\n // we skip odd values (1 + n/1 is even if n is odd)\n for (int n = 2; n <= max; n = n + 2) {\n // test special case: 1\n if (!primes[n + 1]) {\n continue;\n }\n int sqrt = (int) Math.sqrt(n);\n // skip squares\n if (sqrt * sqrt == n) {\n continue;\n }\n boolean flag = true;\n for (int d = 2; d <= sqrt; d++) {\n if (n % d != 0) {\n continue;\n }\n int e = n / d;\n if (!primes[d + e]) {\n flag = false;\n break;\n }\n }\n if (flag) {\n sum += n;\n // System.out.println(n);\n }\n }\n return sum;\n }", "public static double gigaBitsToBits(double num) { return (num*Math.exp(9)); }", "public static void powerOf2(int num)\n\t{\n\t\tif(num<2 || num>32) \n\t\t{\n\t\t\tSystem.out.println(\"Enter number greater than 2 and less than 32\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tint val=1;\n\t\tfor(int i=0;i<num;i++)\n\t\t{\n\t\t\tval=val*2;\n\t\t\tSystem.out.println(val);\n\t\t}\n\t }\n }", "public static void main(String args[]) {\n\t\tBigDecimal start = new BigDecimal(\"2658455991569831744654692615953842176\");\n//\t\tBigDecimal start = new BigDecimal(\"8128\");\n//\t\tBigDecimal dd = start.divide(next, 0);\n//\t\tSystem.out.println(dd);\n\t\t\n\t\tList<BigDecimal> fs = new PerfectNumber().factor2(start, 10, null);\n\t\tBigDecimal multiply = new BigDecimal(1);\n\t\tBigDecimal sum = new BigDecimal(0);\n\t\tfor (BigDecimal d : fs) {\n\t\t\tSystem.out.println(d);\n\t\t\tmultiply = multiply.multiply(d);\n\t\t\tsum = sum.add(d);\n\t\t}\n\t\tSystem.out.println(\"sum = \" + sum);\n\t\tSystem.out.println(\"multiply = \" + multiply);\n\t}", "public static void func(){\n\t\tHashMap<Integer,Integer> map = new HashMap<Integer,Integer>();\n\t\tint limit = 1000;\n\t\tboolean psb[] = generatePrime(limit);\n\t\t\n\t\tint ps[] = MathTool.generatePrime(100000);\n\t\tfor (int i = 1; ps[i]<1000; i++) {\n\t\t\t//System.out.println(ps[i]);\n\t\t}\n\t\tint max=0;\n\t\tfor (int i = 0; ps[i] < limit; i++) {\n\t\t\tint n = ps[i];\n\t\t\tint j=i;\n\t\t\twhile(n<limit){\n\t\t\t\tif(!psb[n]){\n\t\t\t\t\tint num =j-i+1;\n\t\t\t\t\tif(map.containsKey(n)){\n\t\t\t\t\t\tif(map.get(new Integer(n)) < num){\n\t\t\t\t\t\t\tmap.put(n, num);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.put(n, num);\n\t\t\t\t\t}\n\t\t\t\t\tif(num > max){\n\t\t\t\t\t\tmax=num;\n\t\t\t\t\t\tSystem.out.println(num+\" \"+n+\" \"+i+\" \"+j);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t\tn+=ps[j];\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public Integer getExponent();", "BigInteger getPower_consumption();", "private int nextPowerOf2(int n)\n {\n if (n > 0 && (n & (n - 1)) == 0)\n return n;\n \n int count = 0;\n for (;n != 0; n = n >> 1)\n count += 1;\n \n return 1 << count;\n }", "public static long u(int n)\r\n\t{\r\n\t\tlong result = 0;\r\n\t\tlong current = 1;\r\n\t\tfor (int i = 0; i <= 10; i++)\r\n\t\t{\r\n\t\t\tif (i % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\tresult += current;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tresult -= current;\r\n\t\t\t}\r\n\t\t\tcurrent *= n;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "private static void jieCheng(int number){\n int result = 1;\n for (int i = 1; i < number; i++) {\n result = result * (i+1);\n }\n System.out.println(result);\n }", "public AncientEgyptianMultiplication( ) {\r\n }", "public static void main(String[] args) {\n\t\tint x = 2;\r\n\t\tint max = 1_000_000;\r\n\t\tint result = 0;\r\n\t\tfor (int i = 1; result <= max; i++) {\r\n\t\t\tresult = (int) Math.pow(x, i);\r\n\r\n\t\t\tif (result <= max) {\r\n\t\t\t\tSystem.out.println(result);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "long mo107678c(Integer num);", "static Integer maximumProductOfAllEntriesButOneBySuffixArray(Integer array[]) {\n int suffix[] = new int[array.length];\n suffix[array.length - 1] = 1;\n\n for (int i = array.length - 1; i > 0; i--) {\n suffix[i - 1] = suffix[i] * array[i];\n }\n\n int prefixProduct = 1;\n int maximumProduct = Integer.MIN_VALUE;\n\n for (int i = 0; i < array.length; i++) {\n int currentProduct = prefixProduct * suffix[i];\n if (maximumProduct < currentProduct) maximumProduct = currentProduct;\n\n prefixProduct *= array[i];\n }\n\n return maximumProduct;\n }", "java.math.BigInteger getNcbieaa();", "public static BigInteger factoria(double value){\n BigInteger f = new BigInteger(\"1\");\n for (int i =1;i<=value;i++){\n f = f.multiply(BigInteger.valueOf(i));\n }\n return f; \n }", "public static void main(String[] args) {\n\t\t\n\t\tint base = 8;\n\t\tint exponent = 4;\n\t\t\n\t\tlong result = 1;\n\t\t\n\t\twhile(exponent !=0)\n\t\t{\n\t\t\tresult *=base;\n\t\t\t--exponent;\n\t\t}\n\t\tSystem.out.println(result);\n\n\t}", "static int comb(int big, int smal) \n\t{ \n\t\treturn (int) ((long) fact[big] * invfact[smal] % mod \n\t\t\t\t* invfact[big - smal] % mod); \n\t}", "public static long nextPowerOfTwo(long x) {\n if (x == 0) return 1;\n x--;\n x |= x >> 1;\n x |= x >> 2;\n x |= x >> 4;\n x |= x >> 8;\n x |= x >> 16;\n return (x | x >> 32) + 1;\n }", "public static void main(String[] args) {\n int product = 1;\n int[] factors = new int[max]; //The position in the array represents the actual factor, the number at that position is the number of occurrences of that factor\n\n for (int i = 2; i < max + 1; i++) { //Checking divisibility by numbers 2-20 inclusive.\n int temp = i;\n for (int j = 2; j < max; j++) { //Checking to see if the number can be represented with current factors in the factors array\n int numOfFactor = factors[j]; //Don't want to change the actual value in the array so we make a copy\n\n while (temp % j == 0 && temp >= j) { //While j, the current factor in the array, is a factor of i and i is smaller than j then divide by j and increment its occurrence in the factors array\n if (numOfFactor > 0) //If j is in the array of factors \"use it\" and decrement the counter for it\n numOfFactor--;\n else //otherwise if the factor doesn't exist in the array add it by incrementing value at the position\n factors[j]++;\n temp /= j; //No matter what, if temp had a factor, it gets smaller\n }\n if (temp < j)\n break; //Don't bother checking the rest of the array since larger numbers can't go into a smaller one...\n }\n }\n\n for (int i = 2; i < max; i++) { //Find the product of all the factors\n if (factors[i] > 0) {\n for (int j = factors[i]; j > 0; j--) { //If there are factors at position j, multiply them!\n product *= i;\n }\n }\n }\n System.out.println(product);\n\n }", "private void simplify(){\n\n\t\tint gcd;\n\t\twhile(true){ \n\t \tgcd = greatestCommonDivisor(myNumerator, myDenominator);\n\t \tif (gcd ==1) return;\n\t \tmyNumerator = myNumerator / gcd;\n\t \tmyDenominator = myDenominator / gcd;\n\t\t}\n }", "private static void printSquareNumbers() {\r\n\r\n\t\tBigInteger number = new BigInteger(Long.MAX_VALUE + \"\");\r\n\t\tBigInteger finish = number.add(new BigInteger(\"10\"));\r\n\r\n\t\tfor (number = new BigInteger(Long.MAX_VALUE + \"\"); number.compareTo(finish) <= 0; number = number\r\n\t\t\t\t.add(new BigInteger(\"1\"))) {\r\n\t\t\tSystem.out.println(number.multiply(number));\r\n\t\t}\r\n\r\n\t}", "Sum getMultiplier();", "private void calcProduct() {\n String numberVal = number.getText().toString();\n if (numberVal.isEmpty()) {\n numberVal = \"0\";\n }\n\n // divide the number by 2 w/o remainder\n int count = Integer.parseInt(numberVal) >> 1;\n\n // empirically calculated maximum number for even elements\n if (count > 30) {\n Toast.makeText(\n this,\n \"The given number is too large for product of even items!\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // array initialization\n int[] arr = new int[count];\n for (int i = 0; i < count; i++) {\n arr[i] = (i + 1) << 1;\n }\n\n // calculate product\n long product = 1;\n for (int i = 0; i < count; i++) {\n product *= arr[i];\n }\n\n result.setText(String.format(\"The product of even numbers is %d\", product)); ;\n }", "private int minusExpoBaseTwo(int order){\n double cnt = 0;\n //This allows us to add the exponatials together whilst decreasing the power each time effectively making 2^(order) + 2^(order-1)....until order equals 1\n for(int i = order;i>0;i--){\n cnt = cnt + Math.pow(2, i);\n }\n //Converts it back to an int\n return (int) cnt;\n }", "public static void main(String[] args) {\n\t\tSystem.out.print(pow(2.00000, -2147483648));\n\t}", "public static void main(String[] args) {\nint N,i,fac=1;\nScanner fn=new Scanner(System.in);\nN =fn.nextInt();\nif(N<=20) {\n\tfor(i=N;i>=1;i--) {\n\t\tfac=fac*i;\n\t}\n}\nSystem.out.println(fac);\n\t}", "public String calculateFactorial(int number) throws OutOfRangeException{\n\t\tif(number < 1)\r\n\t\t\tthrow new OutOfRangeException(\"Number cannot be less than 1\");\r\n\t\tif(number > 1000)\r\n\t\t\tthrow new OutOfRangeException(\"Number cannot be greater than 1000\");\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t//If the number is less than 20, we can use long variable to store the result \r\n\t\tif(number < 20) {\r\n\t\t\t\r\n\t\t\tlong factorial = 1;\r\n\t\t for(int i = number; i >= 1; i--)\r\n\t\t \tfactorial = factorial * i;\r\n\t\t String factorialToString = Long.toString(factorial);\r\n\t\t \t \r\n\t\t \treturn factorialToString;\r\n\t\t}\r\n\t\t\r\n\t\t//If the number is greater than 20 then Arrays will be used for calculation\r\n\t\t//The calculated result will be converted to a String value before returning\r\n\t\t//TO further extend the number range linked list can be used instead of an array.\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tint numberArray[] = new int[10000]; \r\n\t\t\tnumberArray[0] = 1; \r\n\t int numberArraySize = 1; \r\n\r\n\t for (int i = 2; i <= number; i++) {\r\n\t \tint carry = 0; \r\n\t for (int j = 0; j < numberArraySize; j++) { \r\n\t int prod = numberArray[j] * i + carry; \r\n\t numberArray[j] = prod % 10;\r\n\t carry = prod/10; \r\n\t } \r\n\t \r\n\t while (carry!=0) { \t\r\n\t \tnumberArray[numberArraySize] = carry % 10; \r\n\t carry = carry / 10; \r\n\t numberArraySize++; \r\n\t } \r\n\t }\r\n\t \r\n\t String factorialToString = \"\";\r\n\t for (int i = numberArraySize - 1; i >= 0; i--) \r\n\t \tfactorialToString += numberArray[i]; \r\n\t \r\n\t return factorialToString;\r\n\t\t}\r\n }", "private BigInteger oddModPow(BigInteger y, BigInteger z) {\n /*\n * The algorithm is adapted from Colin Plumb's C library.\n *\n * The window algorithm:\n * The idea is to keep a running product of b1 = n^(high-order bits of exp)\n * and then keep appending exponent bits to it. The following patterns\n * apply to a 3-bit window (k = 3):\n * To append 0: square\n * To append 1: square, multiply by n^1\n * To append 10: square, multiply by n^1, square\n * To append 11: square, square, multiply by n^3\n * To append 100: square, multiply by n^1, square, square\n * To append 101: square, square, square, multiply by n^5\n * To append 110: square, square, multiply by n^3, square\n * To append 111: square, square, square, multiply by n^7\n *\n * Since each pattern involves only one multiply, the longer the pattern\n * the better, except that a 0 (no multiplies) can be appended directly.\n * We precompute a table of odd powers of n, up to 2^k, and can then\n * multiply k bits of exponent at a time. Actually, assuming random\n * exponents, there is on average one zero bit between needs to\n * multiply (1/2 of the time there's none, 1/4 of the time there's 1,\n * 1/8 of the time, there's 2, 1/32 of the time, there's 3, etc.), so\n * you have to do one multiply per k+1 bits of exponent.\n *\n * The loop walks down the exponent, squaring the result buffer as\n * it goes. There is a wbits+1 bit lookahead buffer, buf, that is\n * filled with the upcoming exponent bits. (What is read after the\n * end of the exponent is unimportant, but it is filled with zero here.)\n * When the most-significant bit of this buffer becomes set, i.e.\n * (buf & tblmask) != 0, we have to decide what pattern to multiply\n * by, and when to do it. We decide, remember to do it in future\n * after a suitable number of squarings have passed (e.g. a pattern\n * of \"100\" in the buffer requires that we multiply by n^1 immediately;\n * a pattern of \"110\" calls for multiplying by n^3 after one more\n * squaring), clear the buffer, and continue.\n *\n * When we start, there is one more optimization: the result buffer\n * is implcitly one, so squaring it or multiplying by it can be\n * optimized away. Further, if we start with a pattern like \"100\"\n * in the lookahead window, rather than placing n into the buffer\n * and then starting to square it, we have already computed n^2\n * to compute the odd-powers table, so we can place that into\n * the buffer and save a squaring.\n *\n * This means that if you have a k-bit window, to compute n^z,\n * where z is the high k bits of the exponent, 1/2 of the time\n * it requires no squarings. 1/4 of the time, it requires 1\n * squaring, ... 1/2^(k-1) of the time, it reqires k-2 squarings.\n * And the remaining 1/2^(k-1) of the time, the top k bits are a\n * 1 followed by k-1 0 bits, so it again only requires k-2\n * squarings, not k-1. The average of these is 1. Add that\n * to the one squaring we have to do to compute the table,\n * and you'll see that a k-bit window saves k-2 squarings\n * as well as reducing the multiplies. (It actually doesn't\n * hurt in the case k = 1, either.)\n */\n // Special case for exponent of one\n if (y.equals(ONE))\n return this;\n\n // Special case for base of zero\n if (signum == 0)\n return ZERO;\n\n int[] base = mag.clone();\n int[] exp = y.mag;\n int[] mod = z.mag;\n int modLen = mod.length;\n\n // Select an appropriate window size\n int wbits = 0;\n int ebits = bitLength(exp, exp.length);\n // if exponent is 65537 (0x10001), use minimum window size\n if ((ebits != 17) || (exp[0] != 65537)) {\n while (ebits > bnExpModThreshTable[wbits]) {\n wbits++;\n }\n }\n\n // Calculate appropriate table size\n int tblmask = 1 << wbits;\n\n // Allocate table for precomputed odd powers of base in Montgomery form\n int[][] table = new int[tblmask][];\n for (int i=0; i < tblmask; i++)\n table[i] = new int[modLen];\n\n // Compute the modular inverse\n int inv = -MutableBigInteger.inverseMod32(mod[modLen-1]);\n\n // Convert base to Montgomery form\n int[] a = leftShift(base, base.length, modLen << 5);\n\n MutableBigInteger q = new MutableBigInteger(),\n a2 = new MutableBigInteger(a),\n b2 = new MutableBigInteger(mod);\n\n MutableBigInteger r= a2.divide(b2, q);\n table[0] = r.toIntArray();\n\n // Pad table[0] with leading zeros so its length is at least modLen\n if (table[0].length < modLen) {\n int offset = modLen - table[0].length;\n int[] t2 = new int[modLen];\n for (int i=0; i < table[0].length; i++)\n t2[i+offset] = table[0][i];\n table[0] = t2;\n }\n\n // Set b to the square of the base\n int[] b = squareToLen(table[0], modLen, null);\n b = montReduce(b, mod, modLen, inv);\n\n // Set t to high half of b\n int[] t = Arrays.copyOf(b, modLen);\n\n // Fill in the table with odd powers of the base\n for (int i=1; i < tblmask; i++) {\n int[] prod = multiplyToLen(t, modLen, table[i-1], modLen, null);\n table[i] = montReduce(prod, mod, modLen, inv);\n }\n\n // Pre load the window that slides over the exponent\n int bitpos = 1 << ((ebits-1) & (32-1));\n\n int buf = 0;\n int elen = exp.length;\n int eIndex = 0;\n for (int i = 0; i <= wbits; i++) {\n buf = (buf << 1) | (((exp[eIndex] & bitpos) != 0)?1:0);\n bitpos >>>= 1;\n if (bitpos == 0) {\n eIndex++;\n bitpos = 1 << (32-1);\n elen--;\n }\n }\n\n int multpos = ebits;\n\n // The first iteration, which is hoisted out of the main loop\n ebits--;\n boolean isone = true;\n\n multpos = ebits - wbits;\n while ((buf & 1) == 0) {\n buf >>>= 1;\n multpos++;\n }\n\n int[] mult = table[buf >>> 1];\n\n buf = 0;\n if (multpos == ebits)\n isone = false;\n\n // The main loop\n while (true) {\n ebits--;\n // Advance the window\n buf <<= 1;\n\n if (elen != 0) {\n buf |= ((exp[eIndex] & bitpos) != 0) ? 1 : 0;\n bitpos >>>= 1;\n if (bitpos == 0) {\n eIndex++;\n bitpos = 1 << (32-1);\n elen--;\n }\n }\n\n // Examine the window for pending multiplies\n if ((buf & tblmask) != 0) {\n multpos = ebits - wbits;\n while ((buf & 1) == 0) {\n buf >>>= 1;\n multpos++;\n }\n mult = table[buf >>> 1];\n buf = 0;\n }\n\n // Perform multiply\n if (ebits == multpos) {\n if (isone) {\n b = mult.clone();\n isone = false;\n } else {\n t = b;\n a = multiplyToLen(t, modLen, mult, modLen, a);\n a = montReduce(a, mod, modLen, inv);\n t = a; a = b; b = t;\n }\n }\n\n // Check if done\n if (ebits == 0)\n break;\n\n // Square the input\n if (!isone) {\n t = b;\n a = squareToLen(t, modLen, a);\n a = montReduce(a, mod, modLen, inv);\n t = a; a = b; b = t;\n }\n }\n\n // Convert result out of Montgomery form and return\n int[] t2 = new int[2*modLen];\n System.arraycopy(b, 0, t2, modLen, modLen);\n\n b = montReduce(t2, mod, modLen, inv);\n\n t2 = Arrays.copyOf(b, modLen);\n\n return new BigInteger(1, t2);\n }", "public static int max2K(int n) {\r\n\t\treturn (int) Math.pow(2, log2n(n));\r\n\t}", "private int toPower(int base, int exponent)\n\t {\n\t \t if(exponent > 0)\n\t {\n\t return toPower(base, exponent - 1) * base;\n\t }\n\t return 1;\n\t }", "Double getMultiplier();", "long solve2() {\n\n\t\tfinal long Z = in.nextLong();\n\t\tint p2 = find_prime_index_at_most_n((int) Math.sqrt(Z) + 1) + 1;\n\t\tint p1 = p2 - 1;\n\t\t// out.printf(\"---> primes[%d] = %d\\n\", p2, primes[p2]);\n\t\tlong product = 0;\n\t\twhile (true) {\n\t\t\tlong tmp = primes[p1] * primes[p2];\n\n\t\t\tif (tmp <= Z) {\n\t\t\t\tproduct = tmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t--p1;\n\t\t\t--p2;\n\t\t}\n\t\treturn product;\n\t}", "public static void main(String[] args) {\n\tString NUM = \"73167176531330624919225119674426574742355349194934\" +\n \"96983520312774506326239578318016984801869478851843\" +\n \"85861560789112949495459501737958331952853208805511\" +\n \"12540698747158523863050715693290963295227443043557\" +\n \"66896648950445244523161731856403098711121722383113\" +\n \"62229893423380308135336276614282806444486645238749\" +\n \"30358907296290491560440772390713810515859307960866\" +\n \"70172427121883998797908792274921901699720888093776\" +\n \"65727333001053367881220235421809751254540594752243\" +\n \"52584907711670556013604839586446706324415722155397\" +\n \"53697817977846174064955149290862569321978468622482\" +\n \"83972241375657056057490261407972968652414535100474\" +\n \"82166370484403199890008895243450658541227588666881\" +\n \"16427171479924442928230863465674813919123162824586\" +\n \"17866458359124566529476545682848912883142607690042\" +\n \"24219022671055626321111109370544217506941658960408\" +\n \"07198403850962455444362981230987879927244284909188\" +\n \"84580156166097919133875499200524063689912560717606\" +\n \"05886116467109405077541002256983155200055935729725\" +\n \"71636269561882670428252483600823257530420752963450\";\n\n //greatest combo array\n int[] greatestCombo = new int[13];\n //array to iterate through NUMS\n int[] combos = new int[13];\n //adjacency\n boolean adjacent = true;\n //product\n long product = 1;\n //maxProduct\n long maxProduct = 0;\n\n\t//iterating through the entire NUM string\n\tfor(int i = 0 ; i < NUM.length()-13; i++){\n\t //make a temporary array with the combination of the three numbers\n\t for(int c = 0; c < 13; c++){\n\t combos[c] = NUM.charAt(i+c);\n }\n\n\t //loop to determine if the numbers are adjacent\n for(int k = 1; k < 13; k++){\n if(abs(combos[k-1]-combos[k])>1){\n adjacent = false;\n break;\n }\n }\n\n //now that we have an adjacent 13-number array\n if(adjacent){\n //find the product\n for(int r = 0; r < 13; r++){\n product *= combos[r];\n }\n\n if(product > maxProduct){\n maxProduct = product;\n for(int p = 0; p < 13; p++){\n greatestCombo[p]=combos[p];\n }\n }\n }\n\n }\n System.out.println(maxProduct);\n\n }", "static double powerOfTwoD(int n) {\n return Double.longBitsToDouble((((long)n + (long)DoubleConsts.MAX_EXPONENT) <<\n (DoubleConsts.SIGNIFICAND_WIDTH-1))\n & DoubleConsts.EXP_BIT_MASK);\n }", "public static int maximumPower(String s) {\n int power = 1,maxpower=1;\n for (int i = 0; i < s.length()-1; i++) {\n System.out.println(\"i \" + i);\n System.err.println(s + \" \" + Integer.parseInt(s, 2));\n int decimal = Integer.parseInt(s, 2);\n power = 1;\n System.out.println(\"result \" + decimal / Math.pow(2, power));\n if (decimal % Math.pow(2, power) == 0)\n {\n maxpower = max(maxpower,power);\n while(decimal % Math.pow(2, ++power) == 0){}\n maxpower = max(maxpower,power);\n\n } \n else if (decimal % Math.pow(2, power) < 0) {\n System.out.println(\"inside \" + decimal / Math.pow(2, power));\n s = leftrotate(s) + \"\";\n continue;\n } else {\n\n while (decimal >= Math.pow(2, ++power) / 2) {\n System.out.println(\"inside while \" + decimal / Math.pow(2, power));\n if (decimal % Math.pow(2, power) == 0)\n maxpower = max(maxpower, power);\n else if (decimal % Math.pow(2, power) < 0)\n break;\n }\n }\n System.out.println(\"End \");\n s = leftrotate(s) + \"\";\n\n }\n\n return maxpower;\n\n }", "private static int getTotient(int n) {\n int result = n;\n for(int i=2; i*i <=n; i++) {\n if(n % i == 0) {\n while(n % i == 0) n /= i;\n result -= result/i;\n }\n }\n if(n > 1) result -= result/n;\n return result;\n }", "private long largestPrimeFactor(long number)\n\t{\n\t\tfor(int i = 2; i<=number; i++)\n\t\t{\n\t\t\tif(number % i == 0 && number > i)\n\t\t\t{\n\t\t\t\twhile(number % i == 0)\n\t\t\t\t{\n\t\t\t\t\tnumber = number / i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i >= number)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n long number = 6857;\n long i = 2;\n while ((number / i != 1) || (number % i != 0)) {\n if (number % i == 0) {\n number = number / i;\n } else {\n i++;\n }\n }\n System.out.println(i);\n\n }", "static BigInteger fact(int n)\n {\n BigInteger res = BigInteger.ONE;\n for (int i = 2; i <= n; i++)\n res = res.multiply(BigInteger.valueOf(i));\n return res;\n }", "public p207() {\n double target = 1/12345.0;\n double log2 = Math.log(2);\n\n for (int x = 2; x < 2000000; x++){\n double a = Math.floor(Math.log(x) / log2) / (x-1);\n if (a < target){\n System.out.println(x*(x-1L));\n break;\n }\n }\n }", "public BigInteger[] multiply_G(BigInteger factor) \r\n{\r\n\tBigInteger[] voher = EXPList.nullVektor;\r\n\tBigInteger[] erg = new BigInteger[2];\r\n\tfor(int i=0;i<=255;i++)\r\n\t{\r\n\t\tif(factor.testBit(i)==true) \r\n\t\t{\r\n\t\t erg = addition(voher,EXPList.list[i]); \r\n\t\t voher = erg;\r\n\t\t} \r\n\t}\r\n\treturn erg; \r\n}", "public static void extraLongFactorials(int n) {\r\n BigInteger fact = BigInteger.valueOf(1);\r\n for (int i = 1; i <= n; i++) {\r\n fact = fact.multiply(BigInteger.valueOf(i));\r\n }\r\n System.out.println(fact);\r\n }", "public static void main(String[] args) throws Exception\r\n\t{\n\t\tScanner cin=new Scanner(new BufferedInputStream(System.in));\r\n\t\twhile(true)\r\n\t\t{\r\n\t\r\n\t\t\tint n1=cin.nextInt();\r\n\t\t\tint n2=cin.nextInt();\r\n\t\t\tint n=cin.nextInt();\r\n\t\t\tif(n1==0&&n2==0&&n==0)\r\n\t\t\t\tbreak;\r\n\t\t\tint divsor=n-n1-n2;\r\n\t\t\tHashMap<BigDecimal,Integer> bd=new HashMap< BigDecimal,Integer>();\r\n\t\t\tfor(int i=0;i<n;i++)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tBigDecimal td=new BigDecimal(cin.next());\r\n\t\t\t\tInteger ti=bd.get(td);\r\n\t\t\t\tif(ti!=null)\r\n\t\t\t\t\tti++;\r\n\t\t\t\telse ti=1;\r\n\t\t\t\tbd.put(td,ti);\r\n\t\t\t}\r\n\t\t\tBigDecimal [] p=new BigDecimal[bd.size()];\r\n\t\t\tbd.keySet().toArray(p);\r\n\t\t\tArrays.sort(p);\r\n\t\t\tBigDecimal re=new BigDecimal(\"0\");\r\n\t\t\tint findex=0;\r\n\t\t\tint fnum=0;\r\n\t\t\tint lindex=p.length-1;\r\n\t\t\tint lnum=0;\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\tint t=bd.get(p[findex]);\r\n\t\t\t\tif(n2>=t)\r\n\t\t\t\t{\r\n\t\t\t\t\tn2-=t;\r\n\t\t\t\t\tfindex++;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tfnum=t-n2;\r\n\t\t\t\t\tre=re.add(p[findex].multiply(new BigDecimal(\"\"+fnum)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\tint t=bd.get(p[lindex]);\r\n\t\t\t\tif(n1>=t)\r\n\t\t\t\t{\r\n\t\t\t\t\tn1-=t;\r\n\t\t\t\t\tlindex--;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tlnum=t-n1;\r\n\t\t\t\t\tre=re.add(p[lindex].multiply(new BigDecimal(\"\"+lnum)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\tfor(int i=findex+1;i<lindex;i++)\r\n\t\t\t\tre=re.add(p[i].multiply(new BigDecimal(\"\"+bd.get(p[i]))));\r\n\t\t\tre=re.divide(new BigDecimal(\"\"+divsor),6,BigDecimal.ROUND_HALF_UP);\r\n\t\t\tSystem.out.println(re);\r\n\t\t\tbd=null;\r\n\t\t\tSystem.gc();\r\n\t\t}\r\n\t}", "public static int nextPowerOfTwo(final int value) {\r\n final int exp = (int) Math.ceil(Math.log(value) / Math.log(2));\r\n return (int) Math.pow(2, exp);\r\n }", "int main()\n{\n int n,i,c=0,a;\n cin>>n;\n for(i=1;c<n;c++,i++)\n {\n a=i*i;\n if(a%2==0)\n {\n cout<<a-2<<\" \";\n }\n else\n {\n cout<<a-1<<\" \";\n }\n }\n}", "private static int betterSolution(int n) {\n return n*n*n;\n }", "static int roundUpPower2(int i) {\n i--;\n i |= i >> 1;\n i |= i >> 2;\n i |= i >> 4;\n i |= i >> 8;\n return (i | (i >> 16)) + 1;\n }", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int t= scan.nextInt();\n int min[] = new int[10001];\n Arrays.fill(min,89898);\n min[0] = 0;\n int pn[] = new int[10001];\n boolean p[] = new boolean[10001];\n for(int i=2;i<101;++i)\n {\n if(!p[i])\n for(int j=i*i;j<10001;j+=i)\n p[j] = true;\n }\n int index = 0;\n for(int i=2;i<10001;++i)\n if(!p[i])\n pn[index++] = i;\n int last = index-1;\n for(int i=0;i<=last;++i)\n {\n int temp = (int)Math.pow(pn[i], pn[i]);\n if(temp<10001)\n pn[index++] = temp;\n else break;\n }\n pn[index++] = 898989;\n Arrays.sort(pn,0,index);\n for(int i=2;i<10001;++i)\n {\n for(int j=0;pn[j]<=i;++j)\n if(min[i]>1+min[i-pn[j]])\n min[i] = 1+min[i-pn[j]];\n }\n\n StringBuilder sb = new StringBuilder(\"\");\n while(t-->0)\n {\n sb.append(min[scan.nextInt()]+\"\\n\");\n }\n System.out.println(sb);\n }", "BigInteger getMax_freq();", "float getCpMultiplier();", "static long getMaxPairwiseProductNaive(int[] numbers) {\n long max_product = 0;\n int n = numbers.length;\n int maybeLarger = 0;\n\n for (int a = 0; a < n; a += 1) {\n for (int b = a + 1; b < n; b += 1) {\n maybeLarger = numbers[a] * numbers[b];\n if (maybeLarger > max_product) {\n max_product = maybeLarger;\n }\n }\n }\n\n return max_product;\n }", "public static void main(String[] args) {\n BigDecimal i;\n BigDecimal factor = new BigDecimal(\"600851475143\");\n \t\t\t\t\t\t\t\t\t\t\t\n /* Start factoring from 2\n * Increase the divisor by 1 -- brute force!!\n * \n */\n\t\t\t\tfor(i= new BigDecimal(\"2\");i.compareTo(factor) <= 0;i=i.add(BigDecimal.ONE)){\n\t\t\t\t\t\n\t\t\t\t\t/* divide the factor by incremental value of i, if the remainder is 0, \n\t\t\t\t\t * the dividend is divisible by the value of divisor\n\t\t\t\t\t */\n\t\t\t\t\tif(factor.remainder(i).intValue()==0) {\n\t\t\t\t\t\t\n System.out.println(\"Factors: \" + i);\n \n /* update the value of factor to the new dividend\n * \n */\n factor = factor.divide(i);\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\t\n }\n\t\t\t\t\n\t\t}", "public Integer factorial(Integer number){\n int fact = 1;\n for (int i = number; i > 0; i--){\n fact *=i;\n }\n return fact;\n }", "public static int nextPowerOfTwo(int x) {\n if (x == 0) return 1;\n x--;\n x |= x >> 1;\n x |= x >> 2;\n x |= x >> 4;\n x |= x >> 8;\n return (x | x >> 16) + 1;\n }", "java.math.BigInteger getNcbistdaa();", "@Override\n\tpublic long solve(Long num, boolean printResults) {\n\t\tArrayList<Long> factors = new ArrayList<Long>();\n\n\t\twhile (num > 1) {\n\t\t\tfor (long i = 3; i <= num; i += 2) {\n\t\t\t\tif (num % i == 0) {\n\t\t\t\t\tfactors.add(i);\n\t\t\t\t\tnum /= i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlong big = factors.get(factors.size() - 1);\n\t\tif (printResults)\n\t\t\tSystem.out.println(big + \" is the biggest prime factor of 6,008,514,751,43l\");\n\t\treturn big;\n\t}", "private static final byte exp31 (int b, int g) {\n if (b == 0) return 0;\n\n int r = b; // r = b ** 1\n b = mult(b, b, g); // b = b ** 2\n r = mult(r, b, g); // r = b ** 3\n b = mult(b, b, g); // b = b ** 4\n r = mult(r, b, g); // r = b ** 7\n b = mult(b, b, g); // b = b ** 8\n r = mult(r, b, g); // r = b ** 15\n b = mult(b, b, g); // b = b ** 16\n return (byte)mult(r, b, g); // r = b ** 31\n }", "ArrayList<BigInteger> factorize(BigInteger num) {\n ArrayList<BigInteger> result = calcPrimeFactors(num);\n return result;\n }", "public static double megaBytesToBits(double num) { return (num*8*Math.exp(6)); }", "int main(){\n int n, f = 1;\n cin>>n;\n for(int i = 1;i <= n;i++)\n f*=i;\n cout<<f;\n}", "private static long f(long m) {\n\t\tlong k = 1;\r\n\t\tfor (long i=1; i<=m; i++){\r\n\t\t\tk *= i;\r\n\t\t}\r\n\t\treturn k;\r\n\t}", "public static void main(String[] args) {\n int n1 = 0;\r\n int n2 = 1;\r\n int n = n1+n2;\r\n while (n<1000000){\r\n\r\n System.out.println(\"Сумма чисел \" + n1 + \" + \" + n2 + \" = \" + n );\r\n n1 = n2;\r\n n2 = n;\r\n n = n1 + n2;\r\n }\r\n}", "public int checkPowerOfTwo(int n) {\r\n\t\tint powerOfTwo=1;\r\n\t\tif(n==0){\r\n\t\t\tpowerOfTwo=1;\r\n\t\t}\r\n\t\telse{\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tpowerOfTwo =powerOfTwo*2 ;\r\n\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn powerOfTwo;\r\n\t }", "public static void main(String[] args) {\n double d = Double.MAX_VALUE;\n// d = -0x1p10;\n d = -1024.0;\n long lBits = Double.doubleToLongBits(d);\n long lSign = lBits >>> 63; // знак\n long lExp = (lBits >>> 52 & (1 << 11) - 1) - ((1 << 10) - 1); // порядок\n long lMantissa = lBits & ((1L << 52) - 1); // мантисса\n System.out.printf(\"Double.Max : %1.16e%n\" +\n \"Long.Max : %,d%n\" +\n \"DoubleToLong : %,d%n\",\n Double.MAX_VALUE, Long.MAX_VALUE, lBits);\n System.out.printf(\"sign: %d exp: %,d mantissa: %,d%n\", lSign, lExp, lMantissa);\n System.out.println(Double.longBitsToDouble((lSign << 63) | (lExp + ((1 << 10) - 1)) << 52 | lMantissa));\n System.out.println(\"-\".repeat(50));\n\n float f = Float.MAX_VALUE;\n f = -1024.0f;\n int iBits = Float.floatToIntBits(f);\n int iSign = iBits >>> 31; // знак\n int iExp = (iBits >>> 23 & (1 << 8) - 1) - ((1 << 7) - 1); // порядок\n int iMantissa = iBits & ((1 << 23) - 1); // мантисса\n System.out.printf(\"Float.Max : %1.16e%n\" +\n \"Integer.Max : %,d%n\" +\n \"FloatToInteger : %,d%n\",\n Float.MAX_VALUE, Integer.MAX_VALUE, iBits);\n System.out.printf(\"sign: %d exp: %,d mantissa: %,d%n\", iSign, iExp, iMantissa);\n System.out.println(Float.intBitsToFloat((iSign << 31) | (iExp + ((1 << 7) - 1)) << 23 | iMantissa));\n// System.out.println(Float.intBitsToFloat(iBits));\n }", "private double factorial(int n) {\n if (n < 0 || n > 32) {\n return -1;\n }\n return factorials[n];\n }", "public Integer factorial(Integer number){\n int result = 1;\n for (int i =1;i<=number;i++)\n {\n result *= i;\n }\n return result;\n }", "@Test\n public void testLargeM() {\n assertEquals(32, PiGenerator.powerMod(2, 5, 42423131));\n }", "static Integer[] maximumProductOfAllEntriesButOne_ExceptI(Integer array[]) {\n Integer result[] = new Integer[array.length];\n result[0] = 1;\n\n for (int i = 1; i < array.length; i++) {\n result[i] = array[i - 1] * result[i - 1];\n }\n\n Integer suffix = 1;\n\n for (int i = array.length - 2; i >= 0; i--) {\n suffix *= array[i + 1];\n result[i] *= suffix;\n }\n\n return result;\n }", "static int fact(int n)\n\n {\n\n int res = 1;\n\n for (int i = 2; i <= n; i++)\n\n res = res * i;\n\n return res;\n\n }", "private static void displayNumbers(){\n BigInteger bigInteger = new BigInteger(create50DigitString());\n int i = 1;\n do {\n // Checking the remainder's int value == 0 since the requirement is to find the number greater than Long.MAX_VALUE and divisible by 2 or 3.\n if (bigInteger.remainder(new BigInteger(\"2\")).intValue() == 0 || bigInteger.remainder(new BigInteger(\"3\")).intValue() == 0) {\n System.out.println(bigInteger);\n i++;\n }\n// Incrementing the bigInteger\n bigInteger = bigInteger.add(new BigInteger(\"1\"));\n// Exit condition\n } while (i != 11);\n }", "public static BigInteger factorial(int value) {\n BigInteger res = BigInteger.ONE;\n for(int i = 2; i <= value; i++) {\n res = res.multiply(BigInteger.valueOf(i));\n }\n return res;\n }", "public static int getBitsNumber(int n) {\r\n\t\treturn (int) (Math.log(n) / Math.log(2.0) + 0.9999);\r\n\t}", "private static int calc(int c) {\n\t\treturn 1;\n\t}", "String convert(int number) {\n final Supplier<IntStream> factors = () -> IntStream.of(3, 5, 7)\n .filter(factor -> number % factor == 0);\n\n if (factors.get().count() == 0) {\n return Integer.toString(number);\n }\n\n return factors.get().mapToObj(factor -> {\n switch (factor) {\n case 3:\n return \"Pling\";\n case 5:\n return \"Plang\";\n case 7:\n return \"Plong\";\n default:\n return \"\";\n }\n }).collect(Collectors.joining());\n }", "public static void Factorization(int number)\n\t{\n\t\t for(int i = 2; i< number; i++)\n\t\t {\n\t while(number%i == 0) \n\t {\n\t System.out.print(i+\" \");\n\t number = number/i;\n\t\t\n\t }\n\t \n\t }\n \n if(2<=number)\n {\n System.out.println(number);\n }\n \n }" ]
[ "0.6123116", "0.58450097", "0.57759124", "0.5756255", "0.5748381", "0.5681268", "0.56294405", "0.56258583", "0.5616352", "0.55858964", "0.557519", "0.5531495", "0.54929227", "0.5486164", "0.5460657", "0.545437", "0.5416628", "0.5408174", "0.54073644", "0.5381121", "0.5373962", "0.5373962", "0.5372226", "0.5371507", "0.5368542", "0.5355946", "0.5338868", "0.53200746", "0.52998716", "0.5298915", "0.5291792", "0.5289397", "0.5283248", "0.5271742", "0.5270974", "0.52470267", "0.5246113", "0.52384746", "0.5228368", "0.5223058", "0.52091676", "0.52048737", "0.52043456", "0.5196653", "0.5194334", "0.51942974", "0.51918083", "0.5179188", "0.51521665", "0.5151502", "0.51483446", "0.5146821", "0.5140512", "0.5136343", "0.5135983", "0.5135549", "0.513438", "0.51324105", "0.5122779", "0.51126784", "0.5111339", "0.51053226", "0.5104146", "0.5101808", "0.50788546", "0.50721496", "0.50699013", "0.5063258", "0.5056872", "0.50547206", "0.5044719", "0.50427204", "0.5037331", "0.5035397", "0.503458", "0.5030223", "0.501916", "0.5015016", "0.5014238", "0.501367", "0.50126743", "0.5007251", "0.5000024", "0.4997961", "0.49973923", "0.49947536", "0.49908835", "0.49900156", "0.49879438", "0.4981484", "0.49766093", "0.49761197", "0.4965698", "0.49538627", "0.49505714", "0.4949578", "0.49488658", "0.4947043", "0.4946134", "0.4946125" ]
0.5448022
16
The method converts a list of ancient Egyptian multipliers to the corresponding integer. The ancient Egyptian multipliers are actually the multipliers to display am integer by a sum of the largest possible powers of two. E.g. 42 = 2^5 + 2^3 + 2^1 = 32 + 8 + 2. Also see:
public int compose( int[ ] ancientEgyptianMultipliers ) throws JWaveException { if( ancientEgyptianMultipliers == null ) throw new JWaveError( "given array is null" ); int number = 0; int noOfAncientEgyptianMultipliers = ancientEgyptianMultipliers.length; for( int m = 0; m < noOfAncientEgyptianMultipliers; m++ ) { int ancientEgyptianMultiplier = ancientEgyptianMultipliers[ m ]; number += (int)scalb( 1., ancientEgyptianMultiplier ); // 1. * 2^p } // m return number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[ ] decompose( int number ) throws JWaveException {\r\n \r\n if( number < 1 )\r\n throw new JWaveFailure( \"the supported number for decomposition is smaller than one\" );\r\n \r\n int power = getExponent( (double)number );\r\n \r\n int[ ] tmpArr = new int[ power + 1 ]; // max no of possible multipliers\r\n \r\n int pos = 0;\r\n double current = (double)number;\r\n while( current >= 1. ) {\r\n \r\n power = getExponent( current );\r\n tmpArr[ pos ] = power;\r\n current = current - scalb( 1., power ); // 1. * 2 ^ power\r\n pos++;\r\n \r\n } // while\r\n \r\n int[ ] ancientEgyptianMultipliers = new int[ pos ]; // shrink\r\n for( int c = 0; c < pos; c++ )\r\n ancientEgyptianMultipliers[ c ] = tmpArr[ c ];\r\n \r\n return ancientEgyptianMultipliers;\r\n \r\n }", "Sum getMultiplier();", "static long getIdealNumber (long low,long high) {\n\n int exp3_Max= exp(3,high);\n int exp5_Max= exp(5,high);\n\n System.out.printf(\"Max exp3 (3^exp3_max) = %d , Max exp5(5^exp5_Max) = %d\" , exp3_Max , exp5_Max );\n System.out.println(\" \");\n\n\n int idealCounter=0;\n\n long n3=1L;\n\n\n for (int i=0;i<=exp3_Max;i++) {\n\n long n5=1l;\n \n for (int j=0;j<=exp5_Max;j++) {\n\n long num = n3*n5;\n System.out.printf(\"3^%d * 5^%d = %d%n\", i, j, num);\n\n if (num>high) {\n break ;\n }\n if (num>=low) {\n System.out.println(\"---> \" + num);\n idealCounter++;\n }\n n5*=5;\n\n }\n n3*=3;\n }\n\n return idealCounter;\n\n\n\n }", "public BigDecimal multiplyNumbers(List<Integer> numbers) throws Exception;", "static Integer maximumProductOfAllEntriesButOneBySuffixArray(Integer array[]) {\n int suffix[] = new int[array.length];\n suffix[array.length - 1] = 1;\n\n for (int i = array.length - 1; i > 0; i--) {\n suffix[i - 1] = suffix[i] * array[i];\n }\n\n int prefixProduct = 1;\n int maximumProduct = Integer.MIN_VALUE;\n\n for (int i = 0; i < array.length; i++) {\n int currentProduct = prefixProduct * suffix[i];\n if (maximumProduct < currentProduct) maximumProduct = currentProduct;\n\n prefixProduct *= array[i];\n }\n\n return maximumProduct;\n }", "float getCpMultiplier();", "Double getMultiplier();", "public static void main(String args[]) {\n\t\tBigDecimal start = new BigDecimal(\"2658455991569831744654692615953842176\");\n//\t\tBigDecimal start = new BigDecimal(\"8128\");\n//\t\tBigDecimal dd = start.divide(next, 0);\n//\t\tSystem.out.println(dd);\n\t\t\n\t\tList<BigDecimal> fs = new PerfectNumber().factor2(start, 10, null);\n\t\tBigDecimal multiply = new BigDecimal(1);\n\t\tBigDecimal sum = new BigDecimal(0);\n\t\tfor (BigDecimal d : fs) {\n\t\t\tSystem.out.println(d);\n\t\t\tmultiply = multiply.multiply(d);\n\t\t\tsum = sum.add(d);\n\t\t}\n\t\tSystem.out.println(\"sum = \" + sum);\n\t\tSystem.out.println(\"multiply = \" + multiply);\n\t}", "public AncientEgyptianMultiplication( ) {\r\n }", "public BigInteger[] multiply_G(BigInteger factor) \r\n{\r\n\tBigInteger[] voher = EXPList.nullVektor;\r\n\tBigInteger[] erg = new BigInteger[2];\r\n\tfor(int i=0;i<=255;i++)\r\n\t{\r\n\t\tif(factor.testBit(i)==true) \r\n\t\t{\r\n\t\t erg = addition(voher,EXPList.list[i]); \r\n\t\t voher = erg;\r\n\t\t} \r\n\t}\r\n\treturn erg; \r\n}", "public String multiply(String num1, String num2) {\n int[] n1 = new int[num1.length()];\r\n for(int i = 0; i < num1.length(); i++) {\r\n \tn1[i] = num1.charAt(i) - '0';\r\n }\r\n int[] n2 = new int[num2.length()];\r\n for(int i = 0; i < num2.length(); i++) {\r\n \tn2[i] = num2.charAt(i) - '0';\r\n }\r\n //the result\r\n int[] result = new int[num1.length() + num2.length()];\r\n \r\n //multiple two large numbers\r\n for(int i = n2.length - 1; i >=0; i--) {\r\n \t//the starting point in the result array\r\n \tint v2 = n2[i];\r\n \tint startPoint = result.length - 1 - (n2.length - 1 - i);\r\n \tint carrier = 0;\r\n \tfor(int j = n1.length - 1; j >= 0; j--) {\r\n \t\tint index = startPoint - (n1.length - 1 - j);\r\n \t\tint v1 = n1[j];\r\n \t\t\r\n// \t\tSystem.out.println(\"i: \" + i + \": \" + v2 + \", j: \" + j + \": \" + v1 + \", carrier: \" + carrier);\r\n \t\t\r\n \t\tint finalValue = v1*v2 + carrier + result[index];\r\n \t\tcarrier = finalValue/10;\r\n \t\tresult[index] = finalValue % 10;\r\n \t\t//update the last\r\n \t\tif(j == 0) {\r\n \t\t\tif(carrier > 0) {\r\n \t\t\t\tresult[index - 1] = carrier; //XXX note, need to write to the array cell\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n// \tthis.printArray(result);\r\n }\r\n \r\n //convert to the result\r\n StringBuilder sb = new StringBuilder();\r\n boolean zero = true;\r\n for(int i : result) {\r\n \tif(i != 0 && zero) {\r\n \t\tzero = false;\r\n \t}\r\n \tif(!zero) {\r\n \t sb.append(i);\r\n \t}\r\n }\r\n if(sb.length() == 0) {\r\n \tsb.append(\"0\"); //all ZERO\r\n }\r\n return sb.toString();\r\n }", "int getMaxEXP();", "int getMaxEXP();", "public static int buggyMultiplyThrough(List<Integer> numbers) {\n return numbers.stream().reduce(5, (acc, x) -> x * acc);\n }", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }", "public int getPower(String genEle);", "public int calculateExp(String exp){\n\t\t\n\t\t\n\t\tint i=0;\n\t\tString num=\"\";\n\t\tArrayList<Integer> intlist= new ArrayList<>();\n\t\tArrayList<Character> oplist=new ArrayList<>();\n\t\tchar[] a1=exp.toCharArray();\n\t\twhile(i<a1.length){\n\t\t\tif(a1[i]>47 && a1[i]<58){\n\t\t\t\tnum+=a1[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tintlist.add(convertToint(num));\n\t\t\t\t//System.out.println(intlist.get(0));\n\t\t\t\tnum=\"\";\n\t\t\t\toplist.add(a1[i++]);\n\t\t\t}\n\t\t}\n\t\tintlist.add(convertToint(num));\n\t\tint j=0;\n\t\tint m=0;\n\t\tint result=intlist.get(j++);\n\t\twhile (j<intlist.size()){\n\t\t\tchar x=oplist.get(m);\n\t\t\tm++;\n\t\t\tif(x=='+'){\n\t\t\t\tresult=result+intlist.get(j);\n\t\t\t}\n\t\t\telse if(x=='-'){\n\t\t\t\tresult=result-intlist.get(j);\n\t\t\t}\n\t\t\telse if(x=='*'){\n\t\t\t\tresult=result*intlist.get(j);\n\t\t\t}\n\t\t\telse if(x=='/'){\n\t\t\t\tresult=result/intlist.get(j);\n\t\t\t}\n\t\t\telse if(x=='%'){\n\t\t\t\tresult=result%intlist.get(j);\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public IntType multiplyToInt(IntType multiplicand) {\n int intMultiplier = this.asInt().getValue();\n int intMultiplicand = multiplicand.getValue();\n return TypeFactory.getIntType(intMultiplicand * intMultiplier);\n }", "List<C45111a> mo107675a(Integer num, Integer num2);", "private static int calculations(int[] tab) {\r\n int result; //result of calculations\r\n \r\n //converts array to List interface element\r\n List list = Arrays.asList(ArrayUtils.toObject(tab));\r\n\r\n //calculates min and max value for array\r\n int val1 = (int) Collections.min(list); //min value in array\r\n int val2 = (int) Collections.max(list); //max value in array\r\n \r\n int min_pow2 = (int) Math.pow(val1, 2); //squared power of minimum\r\n int max_pow2 = (int) Math.pow(val2, 2); //squared power of maximum\r\n \r\n result = Math.max(min_pow2, max_pow2); //max of squared values\r\n \r\n return result;\r\n }", "private List<Integer> multiply(List<Integer> numbers) {\n List<Integer> result = new ArrayList<>();\n for (int number : numbers) {\n if (number != 8 && number != 9) {\n result.add(number);\n }\n if (number == 8 || number == 9) {\n int currentNumber = number * 2;\n result.add(currentNumber);\n }\n }\n return result;\n }", "private double getMaxNumber(ArrayList<Double> provinceValues)\n {\n Double max = 0.0;\n\n for (Double type : provinceValues)\n {\n if (type > max)\n {\n max = type;\n }\n }\n return max;\n }", "private static long mapType1QuantValues(long entries, long dimension) {\n return (long) Math.floor(Math.pow(entries, 1.d / dimension));\n }", "public int getMultiplier() {\n return multiplier;\n }", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "private int condense(int[] inputs) {\n\t\tint total = 0;\n\t\tflag = false;\n\t\tfor(int i = 0; i < inputs.length; i++) {\n\t\t\tinputs[i] -= 48;\n\t\t\tif(inputs[i] < 0 || inputs[i] > 9) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttotal *= 10;\n\t\t\ttotal += inputs[i];\n\t\t}\n\t\treturn total;\n\t}", "public static void main(String[] args) {\n BigDecimal bigDecimal = new BigDecimal(2);\n BigDecimal divisor = bigDecimal.pow(256);\n BigDecimal dividend = divisor.add(new BigDecimal(-1));\n BigDecimal multiplier = new BigDecimal(2).pow(128);\n// BigDecimal result = dividend.divide(divisor).pow(multiplier);\n// System.out.println(result);\n }", "float compress(){\n float lower = mp.get(sequence.charAt(0)).lowRange;\n float upper = mp.get(sequence.charAt(0)).upperRange;\n for (int i = 1; i < sequence.length(); i++) {\n float newLower = lower + (upper - lower)*mp.get(sequence.charAt(i)).lowRange;\n float newUpper = lower + (upper - lower)*mp.get(sequence.charAt(i)).upperRange;\n lower = newLower;\n upper = newUpper;\n }\n ///picking value between final lower and upper\n float compressionCode = (float)(Math.floor(upper * 1000.0) / 1000.0);\n return compressionCode;\n }", "private static double decodeGeneticCode(final Allele[] geneticCode) {\n\n double value = 0;\n String binaryString = \"\";\n \n for(Allele bit : geneticCode) binaryString += bit.getGene() ? \"1\" : \"0\";\n for(int i = 0; i < binaryString.length(); i++)\n if(binaryString.charAt(i) == '1')\n value += Math.pow(2, binaryString.length() - 1 - i);\n \n return value;\n }", "int getLngE6();", "int getLngE6();", "public static void main(String[] args)\n\t{\n\t\tArrayList set = new ArrayList(); \n\t\tdouble productSum = 0;\t\n\t\t\n\t\tfor (int i = 0 ; i < 355000 ; i++)\n\t\t{\n\t\t\tproductSum = 0;\n\t\t\t//Can only be a 5 digit number or a 4 digit number\t\t\t\t\t\t\n\t\t\tint value = i;\n\t\t\twhile (value != 0)\n\t\t\t{\n\t\t\t\tproductSum += Math.pow((value % 10), 5);\n\t\t\t\tvalue /= 10;\n\t\t\t}\n\t\t\t\n\t\t\tif (i == productSum)\n\t\t\t{\n\t\t\t\tset.add(i);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0 ; i < set.size(); i++)\n\t\t{\n\t\t\tsum += (int)set.get(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}", "public double gennemsnit(ArrayList<Integer> list) {\r\n double snit = 0.0;\r\n\r\n for (int i : list) {\r\n snit = snit + i;\r\n }\r\n\r\n return snit / list.size();\r\n }", "public static void main(String[] args) {\n\n\n\n double numberOfgallons = 5;\n\n double gallonstolitter = numberOfgallons*3.785;\n\n\n String result = numberOfgallons + \" gallons equal to: \"+gallonstolitter+ \" liters\";\n System.out.println(result);\n\n //=============================================\n /* 2. write a java program that converts litters to gallons\n 1 gallon = 3.785 liters\n 1 litter = 1/3.785\n*/\n\n /*double litter1 = 1/3.785;\n double l =10;\n double gallon1 = l*litter1;\n\n System.out.println(gallon1);\n //======================================================\n*/\n /*\n 3. manually calculate the following code fragements:\n\t\t\t\t1. int a = 200;\n\t\t\t\t\tint b = -a++ + - --a * a-- % 2\n\t\t\t\t\tb = ?\n\n */\n\n\n double numberOfLiters = 100;\n\n double LiterstoGallons = numberOfLiters/3.785;\n\n String result2 = numberOfLiters+\" liters equal to \"+LiterstoGallons+\" galons\";\n\n System.out.println(result2);\n\n\n\n\n\n\n\n\n\n\n\n\n\n int a = 200;\n int b = -a++ + - --a * a-- % 2;\n // b = -200 + - 200* 200%2 = -200;\n\n int x = 300;\n int y = 400;\n int z = x+y-x*y+x/y;\n // z= 300+400-300*400+300/400=700-120000+0(cunki int kimi qebul edir)= -119300;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }", "static String arithmeticExpressions(int[] arr) {\n String result = \"\";\n String[] operation = {\"+\", \"-\", \"*\"};\n boolean done = false;\n Map<Integer, String> outputToExpression = new HashMap<>();\n outputToExpression.put(arr[0], String.valueOf(arr[0]));\n for(int i = 1; i < arr.length; i++) {\n Map<Integer, String> tempOutputToExpression = new HashMap<>();\n int currentInteger = arr[i];\n final Set<Map.Entry<Integer, String>> entry2 = outputToExpression.entrySet();\n for(int entry : outputToExpression.keySet()) {\n for(int k = 0; k < operation.length; k++) {\n int tempOutput = entry;\n if(operation[k].equals(\"+\")) {\n tempOutput = tempOutput + currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"+\" + currentInteger);\n }\n if(operation[k].equals(\"-\")) {\n tempOutput = tempOutput - currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"-\" + currentInteger);\n }\n if(operation[k].equals(\"*\")) {\n tempOutput = (tempOutput * currentInteger) % 101;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"*\" + currentInteger);\n }\n if(tempOutput % 101 == 0) {\n result = tempOutputToExpression.get(tempOutput);\n for(int j = i + 1; j < arr.length; j++) {\n result += \"*\" + arr[j];\n }\n done = true;\n }\n if(done) break;\n }\n if(done) break;\n }\n if(done) break;\n outputToExpression = tempOutputToExpression;\n }\n\n\n return result;\n }", "public static int pointFree(double[] numbers){\n String completeString = \"\";\n String redactedString = \"\";\n int newArray[] = new int[numbers.length];\n int greatestValue=0;\n \n \n \n for (double x : numbers) {\n int currentValue;\n \n completeString = String.valueOf(x);\n redactedString = completeString.replaceAll(\"\\\\.\",\"\");\n currentValue = Integer.parseInt(redactedString);\n for (int i = 0; i < newArray.length; i++) {\n \n newArray[i]=currentValue;\n \n \n }\n greatestValue=newArray[0];\n for (int i = 0; i < newArray.length; i++) {\n if(newArray[i]>greatestValue){\n greatestValue=newArray[i];\n \n }\n \n }\n \n \n }\n return greatestValue;\n \n }", "private static int iterrativeFactorial(int value) {\n int result = 1;\n for (int i = value; i > 0; i--) {\n result = result * i;\n }\n return result;\n }", "private void m10274d(List<C2411a> list) {\n int i;\n StringBuilder stringBuilder = new StringBuilder();\n int size = list.size();\n C2411a c2411a;\n double f;\n if (size <= 200) {\n for (C2411a c2411a2 : list) {\n double e = c2411a2.m12229e();\n f = c2411a2.m12230f();\n if (e <= 90.0d && e >= -90.0d && f <= 180.0d && f >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(e).append(\",\").append(f).append('|');\n }\n }\n } else {\n int i2 = size / 200;\n for (int i3 = 0; i3 < 200; i3++) {\n i = i3 * i2;\n double f2;\n if (i >= size) {\n c2411a2 = (C2411a) list.get(size - 1);\n f = c2411a2.m12229e();\n f2 = c2411a2.m12230f();\n if (f <= 90.0d && f >= -90.0d && f2 <= 180.0d && f2 >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(f).append(\",\").append(f2).append('|');\n }\n } else {\n c2411a2 = (C2411a) list.get(i);\n f = c2411a2.m12229e();\n f2 = c2411a2.m12230f();\n if (f <= 90.0d && f >= -90.0d && f2 <= 180.0d && f2 >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(f).append(\",\").append(f2).append('|');\n }\n }\n }\n }\n if (stringBuilder.length() <= 0) {\n ArrayList arrayList = new ArrayList();\n for (i = 0; i < this.f8993u; i++) {\n arrayList.add(Double.valueOf(0.0d));\n }\n this.f8973a.mo3315b(arrayList);\n return;\n }\n m10265b(stringBuilder.substring(0, stringBuilder.length() - 1));\n }", "static Integer[] maximumProductOfAllEntriesButOne_ExceptI(Integer array[]) {\n Integer result[] = new Integer[array.length];\n result[0] = 1;\n\n for (int i = 1; i < array.length; i++) {\n result[i] = array[i - 1] * result[i - 1];\n }\n\n Integer suffix = 1;\n\n for (int i = array.length - 2; i >= 0; i--) {\n suffix *= array[i + 1];\n result[i] *= suffix;\n }\n\n return result;\n }", "public static int product(List<Integer> in) {\n return in.stream()\n .reduce((i1, i2) -> i1 * i2) // Multiply each element together to get the product\n .orElse(0); // Ensure an empty list results in 0\n }", "private void getMaxValue(){\n maxValue = array[0];\n for(int preIndex = -1; preIndex<number; preIndex++){\n for(int sufIndex = preIndex+1; sufIndex<=number;sufIndex++){\n long maxTmp = getPrefixValue(preIndex)^getSuffixCValue(sufIndex);\n if(maxTmp>maxValue){\n maxValue = maxTmp;\n }\n }\n }\n System.out.println(maxValue);\n }", "public int evalPostfixExpression(String[] input) {\r\n\t\tStack<Integer> result = new Stack<Integer>();\r\n\t\tint num = 0;\r\n\t\tfor (String s: input) {\r\n\t\t\ttry {\r\n\t\t\t\tnum = Integer.parseInt(s);\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tint y = result.pop();\r\n\t\t\t\tint x = result.pop();\r\n\t\t\t\tif (s.equals(\"+\"))\r\n\t\t\t\t\tnum = x + y;\r\n\t\t\t\telse if (s.equals(\"-\"))\r\n\t\t\t\t\tnum = x - y;\r\n\t\t\t\telse if (s.equals(\"*\"))\r\n\t\t\t\t\tnum = x * y;\r\n\t\t\t\telse if (s.equals(\"/\"))\r\n\t\t\t\t\tnum = x / y;\r\n\t\t\t}\r\n\t\t\tresult.push(num);\r\n\t\t}\r\n\t\treturn result.pop();\r\n\t}", "static int exp(int base, long n) {\n\n // 2^3=8 , 2^x=8 -> x = ln8/ln2 , otherwise x=Math.log(8)/Math/log(2)\n\n return (int) ( Math.log(n)/Math.log(base) );\n }", "private static void jieCheng(int number){\n int result = 1;\n for (int i = 1; i < number; i++) {\n result = result * (i+1);\n }\n System.out.println(result);\n }", "static long calcComplement(long value, long digits)\r\n {\n if ( value > 0.5*Math.pow(16, digits) )\r\n {\r\n return value - (int)Math.pow(16, digits);\r\n }\r\n else\r\n {\r\n return value;\r\n }\r\n }", "private int[] productExceptSelfByMathAndConstantSpace(int[] nums){\n int len = nums.length;\n int[] ret = new int[len]; // not count as extra space\n\n // prefix\n ret[0] = 1;\n for(int i = 1; i < len; i++){\n ret[i] = ret[i - 1] * nums[i - 1];\n }\n\n // right to keep the suffix product of i, and ret[i](product) = ret[i](prefix) * right(suffix); and then update right.\n int right = 1; // keep right value of ret[i]\n for(int i = len - 1; i >= 0; i--){\n ret[i] = right * ret[i]; // prefix prdocut of i(ret[i] for current i) * suffix product of i(right, actaully is 'i + 1' for current i)\n right = right * nums[i]; // suffix product of i(actually suffix product of \"i+1\" when right is used.)\n }\n\n return ret;\n }", "private static int solve(ArrayList<Integer> digits, int b, int c) {\n for (int i=0;i<digits.size();i++) {\r\n int num = digits.get(i);\r\n int numDigits=b-1;\r\n for (int j=0; j<i && numDigits>0 ; j++) {\r\n num = num*10 + digits.get(j);\r\n }\r\n for (int j=i+1;j<digits.size();j++) {\r\n num = num*10 + digits.get(j);\r\n }\r\n }\r\n \r\n return 0;\r\n }", "public long getNumerator();", "static void multiplier() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 * nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" * \" + nb2 + \" = \" + resultat);\n\t}", "private void setMultipliers(double healthMultiplier, double dmgMultiplier, double speedMultiplier, double jmpHeightMultiplier) {\n\n // Health multiplier : set to 1 if input is below 1.\n if (healthMultiplier < 1) {\n this.healthMultiplier = 1;\n } else {\n this.healthMultiplier = healthMultiplier;\n }\n\n // Attack damage multiplier : set to 1 if input is below 1.\n if (dmgMultiplier < 1) {\n this.dmgMultiplier = 1;\n } else {\n this.dmgMultiplier = dmgMultiplier;\n }\n\n // Move speed multiplier : set to 1 if input is below 1.\n if (speedMultiplier < 1) {\n this.speedMultiplier = 1;\n } else {\n this.speedMultiplier = speedMultiplier;\n }\n\n // Jump height multiplier : set to 1 if input is below 1.\n if (jmpHeightMultiplier < 1) {\n this.jmpHeightMultiplier = 1;\n } else {\n this.jmpHeightMultiplier = jmpHeightMultiplier;\n }\n }", "@Override\n\tpublic int postfixEval(String[] exp) {\n\t\t\n\t\tStack<Integer> stk = new Stack<Integer>();\n\t\t\n\t\tfor(String part: exp) {\n\t\t\tif(part.equals(EMPTY))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tstk.push(Integer.parseInt(part));\n\t\t\t}\n\t\t\tcatch (NumberFormatException n) {\n\t\t\t\tif(part.equals(PLUS_SIGN))\n\t\t\t\t\tstk.push(stk.pop() + stk.pop());\n\t\t\t\telse\n\t\t\t\t\tstk.push(stk.pop() * stk.pop());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn stk.pop();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint base = 8;\n\t\tint exponent = 4;\n\t\t\n\t\tlong result = 1;\n\t\t\n\t\twhile(exponent !=0)\n\t\t{\n\t\t\tresult *=base;\n\t\t\t--exponent;\n\t\t}\n\t\tSystem.out.println(result);\n\n\t}", "private static void eval7(){\n int z = 0;\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n for(int n = m + 1; n < 51; n++){\n for(int o = n + 1; o < 52; o++){\n Evaluator.evaluate(i, j, k, l, m, n, o);\n }\n }\n }\n }\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\t\tEuler40 eu=new Euler40(1000000);\n\t\tSystem.out.println(eu.get(0)*eu.get(9)*eu.get(99)*eu.get(999)*eu.get(9999)*eu.get(99999)*eu.get(999999));\n\t\t\n \n\t\t\n\t}", "List<C45111a> mo107674a(Integer num);", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "private double getMinNumber(ArrayList<Double> provinceValues)\n {\n Double min = 999999999.0;\n\n for (Double type : provinceValues)\n {\n if (type < min)\n {\n min = type;\n }\n }\n return min;\n }", "int getBillionUsersDay(float[] growthRates) {\n Arrays.sort(growthRates);\n float max = growthRates[growthRates.length-1];\n return (int)Math.ceil(Math.log(Math.pow(10,9))/Math.log(max));\n\n }", "public int nthUglyNumber2(int n) {\n Queue<Long> choushu = new PriorityQueue<>();\n if (n == 1)\n return 1;\n choushu.offer((long) 1);\n int[] factor = {2, 3, 5};\n for (int i = 2; i <= n; i++) {\n long num = choushu.poll();\n for (int f : factor) {\n long tmp = f * num;\n if (!choushu.contains(tmp))\n choushu.offer(tmp);\n }\n System.out.println(MessageFormat.format(\"num:{0},list:{1}\", num, printQueue(choushu)));\n }\n return choushu.poll().intValue();\n }", "static String stringMultiplier( String word , int multiplier) {\n\t\tString largeWord = \"\"; \n\t\tfor (int i = 1; i <= multiplier; i++ ) {\n\t\t\tlargeWord += (word + \" \"); \n\t\t}\n\t\treturn largeWord;\n\t}", "public static void main(String[] args) {\n\tint base=3 ,exponent=4 , result =1;\r\n\twhile (exponent!=0)\r\n\t{\r\n\t\tresult = result*base;\r\n\t\t--exponent;\r\n\t\t\t}\r\nSystem.out.println(\"the answer is \"+ result);\t\r\n\r\n\t}", "long mo107678c(Integer num);", "private int nextDigit(RuleBasedCollator collator, int ce, int cp)\n {\n // We do a check to see if we want to collate digits as numbers; \n // if so we generate a custom collation key. Otherwise we pull out \n // the value stored in the expansion table.\n\n if (m_collator_.m_isNumericCollation_){\n int collateVal = 0;\n int trailingZeroIndex = 0;\n boolean nonZeroValReached = false;\n\n // I just need a temporary place to store my generated CEs.\n // icu4c uses a unsigned byte array, i'll use a stringbuffer here\n // to avoid dealing with the sign problems and array allocation\n // clear and set initial string buffer length\n m_utilStringBuffer_.setLength(3);\n \n // We parse the source string until we hit a char that's NOT a \n // digit.\n // Use this u_charDigitValue. This might be slow because we have \n // to handle surrogates...\n int digVal = UCharacter.digit(cp); \n // if we have arrived here, we have already processed possible \n // supplementaries that trigered the digit tag -\n // all supplementaries are marked in the UCA.\n // We pad a zero in front of the first element anyways. \n // This takes care of the (probably) most common case where \n // people are sorting things followed by a single digit\n int digIndx = 1;\n for (;;) {\n // Make sure we have enough space.\n if (digIndx >= ((m_utilStringBuffer_.length() - 2) << 1)) {\n m_utilStringBuffer_.setLength(m_utilStringBuffer_.length() \n << 1);\n }\n // Skipping over leading zeroes. \n if (digVal != 0 || nonZeroValReached) {\n if (digVal != 0 && !nonZeroValReached) {\n nonZeroValReached = true;\n } \n // We parse the digit string into base 100 numbers \n // (this fits into a byte).\n // We only add to the buffer in twos, thus if we are \n // parsing an odd character, that serves as the \n // 'tens' digit while the if we are parsing an even \n // one, that is the 'ones' digit. We dumped the \n // parsed base 100 value (collateVal) into a buffer. \n // We multiply each collateVal by 2 (to give us room) \n // and add 5 (to avoid overlapping magic CE byte \n // values). The last byte we subtract 1 to ensure it is \n // less than all the other bytes.\n if (digIndx % 2 != 0) {\n collateVal += digVal; \n // This removes trailing zeroes.\n if (collateVal == 0 && trailingZeroIndex == 0) {\n trailingZeroIndex = ((digIndx - 1) >>> 1) + 2;\n }\n else if (trailingZeroIndex != 0) {\n trailingZeroIndex = 0;\n }\n m_utilStringBuffer_.setCharAt(\n ((digIndx - 1) >>> 1) + 2,\n (char)((collateVal << 1) + 6));\n collateVal = 0;\n }\n else {\n // We drop the collation value into the buffer so if \n // we need to do a \"front patch\" we don't have to \n // check to see if we're hitting the last element.\n collateVal = digVal * 10;\n m_utilStringBuffer_.setCharAt((digIndx >>> 1) + 2, \n (char)((collateVal << 1) + 6));\n }\n digIndx ++;\n }\n \n // Get next character.\n if (!isEnd()){\n backupInternalState(m_utilSpecialBackUp_);\n int char32 = nextChar();\n char ch = (char)char32;\n if (UTF16.isLeadSurrogate(ch)){\n if (!isEnd()) {\n char trail = (char)nextChar();\n if (UTF16.isTrailSurrogate(trail)) {\n char32 = UCharacterProperty.getRawSupplementary(\n ch, trail);\n } \n else {\n goBackOne();\n }\n }\n }\n \n digVal = UCharacter.digit(char32);\n if (digVal == -1) {\n // Resetting position to point to the next unprocessed \n // char. We overshot it when doing our test/set for \n // numbers.\n updateInternalState(m_utilSpecialBackUp_);\n break;\n }\n } \n else {\n break;\n }\n }\n \n if (nonZeroValReached == false){\n digIndx = 2;\n m_utilStringBuffer_.setCharAt(2, (char)6);\n }\n \n int endIndex = trailingZeroIndex != 0 ? trailingZeroIndex \n : (digIndx >>> 1) + 2; \n if (digIndx % 2 != 0){\n // We missed a value. Since digIndx isn't even, stuck too many \n // values into the buffer (this is what we get for padding the \n // first byte with a zero). \"Front-patch\" now by pushing all \n // nybbles forward.\n // Doing it this way ensures that at least 50% of the time \n // (statistically speaking) we'll only be doing a single pass \n // and optimizes for strings with single digits. I'm just \n // assuming that's the more common case.\n for (int i = 2; i < endIndex; i ++){\n m_utilStringBuffer_.setCharAt(i, \n (char)((((((m_utilStringBuffer_.charAt(i) - 6) >>> 1) \n % 10) * 10) \n + (((m_utilStringBuffer_.charAt(i + 1) - 6) \n >>> 1) / 10) << 1) + 6));\n }\n -- digIndx;\n }\n \n // Subtract one off of the last byte. \n m_utilStringBuffer_.setCharAt(endIndex - 1, \n (char)(m_utilStringBuffer_.charAt(endIndex - 1) - 1)); \n \n // We want to skip over the first two slots in the buffer. \n // The first slot is reserved for the header byte CODAN_PLACEHOLDER. \n // The second slot is for the sign/exponent byte: \n // 0x80 + (decimalPos/2) & 7f.\n m_utilStringBuffer_.setCharAt(0, (char)RuleBasedCollator.CODAN_PLACEHOLDER);\n m_utilStringBuffer_.setCharAt(1, \n (char)(0x80 + ((digIndx >>> 1) & 0x7F)));\n \n // Now transfer the collation key to our collIterate struct.\n // The total size for our collation key is endIndx bumped up to the next largest even value divided by two.\n ce = (((m_utilStringBuffer_.charAt(0) << 8)\n // Primary weight \n | m_utilStringBuffer_.charAt(1)) \n << RuleBasedCollator.CE_PRIMARY_SHIFT_)\n // Secondary weight \n | (RuleBasedCollator.BYTE_COMMON_ \n << RuleBasedCollator.CE_SECONDARY_SHIFT_) \n | RuleBasedCollator.BYTE_COMMON_; // Tertiary weight.\n int i = 2; // Reset the index into the buffer.\n \n m_CEBuffer_[0] = ce;\n m_CEBufferSize_ = 1;\n m_CEBufferOffset_ = 1;\n while (i < endIndex)\n {\n int primWeight = m_utilStringBuffer_.charAt(i ++) << 8;\n if (i < endIndex) {\n primWeight |= m_utilStringBuffer_.charAt(i ++);\n }\n m_CEBuffer_[m_CEBufferSize_ ++] \n = (primWeight << RuleBasedCollator.CE_PRIMARY_SHIFT_) \n | RuleBasedCollator.CE_CONTINUATION_MARKER_;\n }\n return ce;\n } \n \n // no numeric mode, we'll just switch to whatever we stashed and \n // continue\n // find the offset to expansion table\n return collator.m_expansion_[getExpansionOffset(collator, ce)];\n }", "public static void main(String[] args) {\n\tString NUM = \"73167176531330624919225119674426574742355349194934\" +\n \"96983520312774506326239578318016984801869478851843\" +\n \"85861560789112949495459501737958331952853208805511\" +\n \"12540698747158523863050715693290963295227443043557\" +\n \"66896648950445244523161731856403098711121722383113\" +\n \"62229893423380308135336276614282806444486645238749\" +\n \"30358907296290491560440772390713810515859307960866\" +\n \"70172427121883998797908792274921901699720888093776\" +\n \"65727333001053367881220235421809751254540594752243\" +\n \"52584907711670556013604839586446706324415722155397\" +\n \"53697817977846174064955149290862569321978468622482\" +\n \"83972241375657056057490261407972968652414535100474\" +\n \"82166370484403199890008895243450658541227588666881\" +\n \"16427171479924442928230863465674813919123162824586\" +\n \"17866458359124566529476545682848912883142607690042\" +\n \"24219022671055626321111109370544217506941658960408\" +\n \"07198403850962455444362981230987879927244284909188\" +\n \"84580156166097919133875499200524063689912560717606\" +\n \"05886116467109405077541002256983155200055935729725\" +\n \"71636269561882670428252483600823257530420752963450\";\n\n //greatest combo array\n int[] greatestCombo = new int[13];\n //array to iterate through NUMS\n int[] combos = new int[13];\n //adjacency\n boolean adjacent = true;\n //product\n long product = 1;\n //maxProduct\n long maxProduct = 0;\n\n\t//iterating through the entire NUM string\n\tfor(int i = 0 ; i < NUM.length()-13; i++){\n\t //make a temporary array with the combination of the three numbers\n\t for(int c = 0; c < 13; c++){\n\t combos[c] = NUM.charAt(i+c);\n }\n\n\t //loop to determine if the numbers are adjacent\n for(int k = 1; k < 13; k++){\n if(abs(combos[k-1]-combos[k])>1){\n adjacent = false;\n break;\n }\n }\n\n //now that we have an adjacent 13-number array\n if(adjacent){\n //find the product\n for(int r = 0; r < 13; r++){\n product *= combos[r];\n }\n\n if(product > maxProduct){\n maxProduct = product;\n for(int p = 0; p < 13; p++){\n greatestCombo[p]=combos[p];\n }\n }\n }\n\n }\n System.out.println(maxProduct);\n\n }", "static int comb(int big, int smal) \n\t{ \n\t\treturn (int) ((long) fact[big] * invfact[smal] % mod \n\t\t\t\t* invfact[big - smal] % mod); \n\t}", "public static void main(String[] args) {\n\t\tint x = 2;\r\n\t\tint max = 1_000_000;\r\n\t\tint result = 0;\r\n\t\tfor (int i = 1; result <= max; i++) {\r\n\t\t\tresult = (int) Math.pow(x, i);\r\n\r\n\t\t\tif (result <= max) {\r\n\t\t\t\tSystem.out.println(result);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public double getUIMultiplier() {\n\treturn multiplier;\n}", "private static String evaluate(ArrayList<String> operators, ArrayList<String> operands) {\n\n /* Check for valid input. There should be one more operand than operator. */\n if (operands.size() != operators.size()+1)\n return \"Invalid Input\";\n\n String current;\n int value;\n int numMultiply = 0;\n int numAdd = 0;\n int currentOperator = 0;\n\n /* Get the number of multiplications in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"*\"))\n numMultiply++;\n }\n\n /* Get the number of addition and subtraction in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"-\") || operators.get(i).equals(\"+\"))\n numAdd++;\n }\n\n /* Evaluate multiplications first, from left to right. */\n while (numMultiply > 0){\n\n current = operators.get(currentOperator);\n if (current.equals(\"*\")) {\n\n /* When multiplication is found in the operators, get the associative operands from the operands list.\n Associative operands are found in the operands list at indexes current operator and current operator + 1.\n */\n value = Integer.parseInt(operands.get(currentOperator)) * Integer.parseInt(operands.get(currentOperator+1));\n\n /* Remove the operands and the operator since they have been evaluated and add the evaluated answer back in the operands. */\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n\n numMultiply--;\n }\n else\n currentOperator++;\n }\n\n currentOperator = 0;\n\n /* Next evaluate the addition and subtraction, from left to right. */\n while (numAdd > 0){\n current = operators.get(currentOperator);\n if (current.equals(\"+\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) + Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n\n else if (current.equals(\"-\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) - Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n else\n currentOperator++;\n }\n\n /* When all the operations have been evaluated, the final answer will be in the first element of the operands list. */\n return operands.get(0);\n }", "@Override\n public String getSolutionCombination(int nbrDigits, int nbrRange, String sizure) {\n\n // randomRange\n int[][] randomRange = new int[2][nbrDigits];\n\n for (int i = 0; i < 2; i++) {\n\n for (int j = 0; j < nbrDigits; j++) {\n\n if (i == 0) {\n\n // Min value limit\n randomRange[i][j] = 0;\n\n } else {\n\n // Max value limit\n randomRange[i][j] = nbrRange;\n\n }\n\n }\n\n }\n\n // inputmachine\n List<Integer> inputMachine = new ArrayList<Integer>();\n\n for (int i = 0; i < nbrDigits; i++) {\n\n inputMachine.add((int) ((randomRange[1][i] - randomRange[0][i]) * Math.random()) + randomRange[0][i]);\n\n log.info(\"test A : \" + inputMachine.get(i) + \" \");\n\n }\n\n // convertListIntegerToString\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < inputMachine.size(); i++) {\n int num = inputMachine.get(i);\n sb.append(num);\n }\n\n return sb.toString();\n\n }", "private int toIntegerExpression(double value) {\n return (int) (value * Math.pow(10.0, mNumberOfDecimalDigits));\n }", "public ArrayList<Integer> obtenerYi(){\n ArrayList<Integer> res = new ArrayList<Integer>();\n int cont;\n \n for (float p:probabilidades){\n cont=0;\n while (Math.pow(base, cont)<1/p)\n cont++;\n res.add(cont);\n }\n return res;\n }", "private String doMultiplication(String answer)\n\t{\n\t\tint signSpot;\n\t\tString stringToDelete;\n\t\tdouble number1;\n\t\tdouble number2;\n\t\tint minValue = 0;\n\t\tint maxValue = 0;\n\n\t\twhile (answer.contains(\"*\"))\n\t\t{\n\t\t\tsignSpot = answer.indexOf(\"*\");\n\n\t\t\t// start\n\t\t\tfor (int count = signSpot - 1; count >= 0; count -= 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count, count + 1)) == true\n\t\t\t\t\t\t|| answer.substring(count, count + 1).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tminValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// finish\n\t\t\tfor (int count = signSpot + 2; count <= answer.length(); count += 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count - 1, count)) == true\n\t\t\t\t\t\t|| answer.substring(count - 1, count).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tmaxValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstringToDelete = answer.substring(minValue, maxValue);\n\t\t\tString myString = answer.substring(minValue, signSpot);\n\t\t\tnumber1 = Double.parseDouble(myString);\n\t\t\tmyString = answer.substring(signSpot + 1, maxValue);\n\t\t\tnumber2 = Double.parseDouble(myString);\n\t\t\tDouble numberAnswer1 = number1 * number2;\n\t\t\tanswer = answer.replace(stringToDelete, \"\" + numberAnswer1);\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t\treturn answer;\n\t}", "@Test\n public void testMultiplyAllNumbersWithManyNumbers() {\n assertEquals(Integer.valueOf(120), calculator.multiplyAllNumbers(new Integer[]{1, 2, 3, 4, 5}));\n }", "public static int valueMultiplier(ArrayList<Integer> formula, int[] numbers, int value, int i){\n value -= formula.get(formula.size()-1);\n int temp = formula.get(formula.size()-1) * numbers[i];\n value += temp;\n return value;\n }", "public static void populateValues()\n\t{\n\t\tvalues = new int[127];\n\t\tfor(int i = 0; i < 127; i++)\n\t\t{\n\t\t\tif(i < 64)\n\t\t\t\tvalues[i] = 1;\n\t\t\telse if (i < 96)\n\t\t\t\tvalues[i] = 2;\n\t\t\telse if (i < 112)\n\t\t\t\tvalues[i] = 4;\n\t\t\telse if (i < 120)\n\t\t\t\tvalues[i] = 8;\n\t\t\telse if (i < 124)\n\t\t\t\tvalues[i] = 16;\n\t\t\telse if (i < 126)\n\t\t\t\tvalues[i] = 32;\n\t\t\telse \n\t\t\t\tvalues[i] = 64;\n\t\t}\n\t}", "private static int[] multiply(int[] x, int[] y, int[] z)\n {\n int i = z.length;\n\n if (i < 1)\n {\n return x;\n }\n\n int xBase = x.length - y.length;\n\n for (;;)\n {\n long a = z[--i] & IMASK;\n long val = 0;\n\n for (int j = y.length - 1; j >= 0; j--)\n {\n val += a * (y[j] & IMASK) + (x[xBase + j] & IMASK);\n\n x[xBase + j] = (int)val;\n\n val >>>= 32;\n }\n\n --xBase;\n\n if (i < 1)\n {\n if (xBase >= 0)\n {\n x[xBase] = (int)val;\n }\n break;\n }\n\n x[xBase] = (int)val;\n }\n\n return x;\n }", "private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }", "int getLatE6();", "int getLatE6();", "public static double letterToMultiplier(final char value) {\n\t\tfinal double multiplier;\n\t\tswitch (value) {\n\t\tcase 'Z':\n\t\t\tmultiplier = 0.001;\n\t\t\tbreak;\n\t\tcase 'Y':\n\t\tcase 'R':\n\t\t\tmultiplier = 0.01;\n\t\t\tbreak;\n\t\tcase 'X':\n\t\tcase 'S':\n\t\t\tmultiplier = 0.1;\n\t\t\tbreak;\n\t\tcase 'A':\n\t\t\tmultiplier = 1.0;\n\t\t\tbreak;\n\t\tcase 'B':\n\t\tcase 'H':\n\t\t\tmultiplier = 10.;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tmultiplier = 100.;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tmultiplier = 1000.;\n\t\t\tbreak;\n\t\tcase 'E':\n\t\t\tmultiplier = 10000.;\n\t\t\tbreak;\n\t\tcase 'F':\n\t\t\tmultiplier = 100000.;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// Unknown\n\t\t\tmultiplier = 0.0;\n\t\t\tbreak;\n\t\t}\n\t\treturn multiplier;\n\t}", "private double computeSxx(List<Integer> intList, double mean) {\n double total = 0;\n for (Integer i : intList) {\n total += Math.pow((i - mean), 2);\n }\n return total;\n }", "int mo1756e(int i);", "public int getExponent();", "public static void main(String[] args) {\nint N,i,fac=1;\nScanner fn=new Scanner(System.in);\nN =fn.nextInt();\nif(N<=20) {\n\tfor(i=N;i>=1;i--) {\n\t\tfac=fac*i;\n\t}\n}\nSystem.out.println(fac);\n\t}", "public static List<Integer> productOfElementsWithoutDivision(List<Integer> inputs) {\n // Put inputs to a linked hash map with key == index\n Map<Integer, Integer> mapInputs = inputs.stream()\n .collect(LinkedHashMap::new, (map, ch) -> map.put(map.size(), ch) , Map::putAll);\n Set<Map.Entry<Integer, Integer>> setEntries = mapInputs.entrySet();\n return setEntries.stream().map(entry ->\n setEntries.stream()\n // Filter the map to exclude current value and multiple other inputs\n .filter(calculatedEntry -> !calculatedEntry.getKey().equals(entry.getKey()))\n .map(Map.Entry::getValue)\n .reduce(1, (currentProduct, nextValue) -> currentProduct * nextValue)\n ).collect(Collectors.toList());\n }", "private static int intFeetToTicks(double feet) {\n return (int) (feetToTicks(feet));\n }", "String getBackOffMultiplier();", "protected void int2alphaCount(long val, CharArrayWrapper aTable,\n FastStringBuffer stringBuf)\n {\n\n int radix = aTable.getLength();\n char[] table = new char[radix];\n\n // start table at 1, add last char at index 0. Reason explained above and below.\n int i;\n\n for (i = 0; i < radix - 1; i++)\n {\n table[i + 1] = aTable.getChar(i);\n }\n\n table[0] = aTable.getChar(i);\n\n // Create a buffer to hold the result\n // TODO: size of the table can be detereined by computing\n // logs of the radix. For now, we fake it.\n char buf[] = new char[100];\n\n //some languages go left to right(ie. english), right to left (ie. Hebrew),\n //top to bottom (ie.Japanese), etc... Handle them differently\n //String orientation = thisBundle.getString(org.apache.xml.utils.res.XResourceBundle.LANG_ORIENTATION);\n // next character to set in the buffer\n int charPos;\n\n charPos = buf.length - 1; // work backward through buf[] \n\n // index in table of the last character that we stored\n int lookupIndex = 1; // start off with anything other than zero to make correction work\n\n // Correction number\n //\n // Correction can take on exactly two values:\n //\n // 0 if the next character is to be emitted is usual\n //\n // radix - 1\n // if the next char to be emitted should be one less than\n // you would expect\n // \n // For example, consider radix 10, where 1=\"A\" and 10=\"J\"\n //\n // In this scheme, we count: A, B, C ... H, I, J (not A0 and certainly\n // not AJ), A1\n //\n // So, how do we keep from emitting AJ for 10? After correctly emitting the\n // J, lookupIndex is zero. We now compute a correction number of 9 (radix-1).\n // In the following line, we'll compute (val+correction) % radix, which is,\n // (val+9)/10. By this time, val is 1, so we compute (1+9) % 10, which\n // is 10 % 10 or zero. So, we'll prepare to emit \"JJ\", but then we'll\n // later suppress the leading J as representing zero (in the mod system,\n // it can represent either 10 or zero). In summary, the correction value of\n // \"radix-1\" acts like \"-1\" when run through the mod operator, but with the\n // desireable characteristic that it never produces a negative number.\n long correction = 0;\n\n // TODO: throw error on out of range input\n do\n {\n\n // most of the correction calculation is explained above, the reason for the\n // term after the \"|| \" is that it correctly propagates carries across\n // multiple columns.\n correction =\n ((lookupIndex == 0) || (correction != 0 && lookupIndex == radix - 1))\n ? (radix - 1) : 0;\n\n // index in \"table\" of the next char to emit\n lookupIndex = (int)(val + correction) % radix;\n\n // shift input by one \"column\"\n val = (val / radix);\n\n // if the next value we'd put out would be a leading zero, we're done.\n if (lookupIndex == 0 && val == 0)\n break;\n\n // put out the next character of output\n buf[charPos--] = table[lookupIndex]; // left to right or top to bottom \n }\n while (val > 0);\n\n stringBuf.append(buf, charPos + 1, (buf.length - charPos - 1));\n }", "public static double megaBitsToBits(double num) { return (num*Math.exp(6)); }", "private static void eval5(){\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n Evaluator.evaluate(i, j, k, l, m);\n }\n }\n }\n }\n }\n }", "private static int m27460a(int i, int i2, int i3) {\n if (i == 1073741824) {\n return i2;\n }\n if (i == Integer.MIN_VALUE) {\n return Math.min(i3, i2);\n }\n return i3;\n }", "public int optimizedCom() {\n\tint b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;\n\tint a = 1;\n\n\tb = 65;\n\tc = b;\n\n\tif (a != 0) {\n\t b = (b * 100) + 100000;\n\t c = b + 17000;\n\t}\n\n\t// at this point:\n\t// a == 1\n\t// b == 106500\n\t// c == 123500\n\n\t// outer loop terminates when b == c\n\t// c never changes, serves as termination condition\n\t// b only gets +17 added for every execution of the outer loop\n\n\tdo {\n\t f = 1;\n\t d = 2;\n\t do { // jnz g -13\n\t\te = 2;\n\n\t\tdo { // jnz g - 8\n\t\t g = (d * e) - b;\n\n\t\t if (g == 0)\n\t\t\tf = 0;\n\n\t\t e++;\n\n\t\t g = e - b;\n\t\t} while (g != 0);\n\n\t\td++;\n\n\t\tg = d - b;\n\t } while (g != 0);\n\n\t // increments h if register b contains a non-prime number (checked by printing all values)\n\t if (f == 0) {\n\t\th++;\n\t\tSystem.out.println(\"b: \" + b + \" c: \" + c + \" d: \" + d + \" e: \" + e + \" f: \" + f + \" g: \" + g);\n\t }\n\n\t // c does not change, b only gets increased by 17\n\t // if b == c, the method returns h which is the number of non-prime numbers encountered in the loop\n\t g = b - c;\n\n\t if (g == 0)\n\t\treturn h;\n\n\t b += 17;\n\n\t} while (true);\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long[] Numbers = new long[n];\n long product = 0;\n for (int i = 0; i < n; i++) {\n Numbers[i] = sc.nextInt();\n }\n System.out.print(MaximumPairwiseProductFast(Numbers));\n\n\n\n\n// StressTest(10,10);\n }", "public int getProduct() {\n int a = 5;\n int b = 14;\n int c = a * b;\n return c;\n }", "public String multiply(String num1, String num2) {\n int len1 = num1.length();\n int len2 = num2.length();\n int[] products = new int[len1 + len2];\n //1. compute products from each pair of digits from num1 and num2.\n for (int i = len1 - 1; i >= 0; i -- ) {\n for (int j = len2 - 1; j >= 0; j--) {\n int digit1 = num1.charAt(i) - '0';\n int digit2 = num2.charAt(j) - '0';\n products[i+j+1] += digit1 * digit2;\n }\n }\n //2.carry each element over\n int carry = 0;\n for (int i =products.length - 1; i >= 0; i--){\n int tmp = (products[i] + carry) % 10;\n carry = (products[i] + carry) / 10;\n products[i] = tmp;\n }\n //3.output the solution\n StringBuilder sb = new StringBuilder();\n for (int num : products) sb.append(num);\n // eliminate the leading 0\n while (sb.length() != 0 && sb.charAt(0) == '0') sb.deleteCharAt(0);\n return sb.length() == 0 ? \"0\" : sb.toString();\n }", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int t= scan.nextInt();\n int min[] = new int[10001];\n Arrays.fill(min,89898);\n min[0] = 0;\n int pn[] = new int[10001];\n boolean p[] = new boolean[10001];\n for(int i=2;i<101;++i)\n {\n if(!p[i])\n for(int j=i*i;j<10001;j+=i)\n p[j] = true;\n }\n int index = 0;\n for(int i=2;i<10001;++i)\n if(!p[i])\n pn[index++] = i;\n int last = index-1;\n for(int i=0;i<=last;++i)\n {\n int temp = (int)Math.pow(pn[i], pn[i]);\n if(temp<10001)\n pn[index++] = temp;\n else break;\n }\n pn[index++] = 898989;\n Arrays.sort(pn,0,index);\n for(int i=2;i<10001;++i)\n {\n for(int j=0;pn[j]<=i;++j)\n if(min[i]>1+min[i-pn[j]])\n min[i] = 1+min[i-pn[j]];\n }\n\n StringBuilder sb = new StringBuilder(\"\");\n while(t-->0)\n {\n sb.append(min[scan.nextInt()]+\"\\n\");\n }\n System.out.println(sb);\n }", "public abstract String getExponent();", "private int highestPossibleValue(List<Card> cards) {\n int value = 0;\n int assCounter = 0;\n\n // Calculate the value without taking * into account\n for (Card card : cards) {\n value += card.getValue();\n if (card.getName().equals(\"*\")) assCounter++;\n }\n\n // Subtracts value of *\n for (int i = 0; i < assCounter; i++) {\n if (value <= 21)\n break;\n value -= 10;\n }\n\n return value;\n }", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tBigInteger num = new BigInteger(\"2\");\r\n\t\tnum = num.pow(1000);\r\n\t\tString str = num.toString();\r\n\t\tint sum = 0;\r\n\t\tfor(int i = 0; i < str.length(); i++) {\r\n\t\t\tString sub = str.substring(i,i+1);\r\n\t\t\tsum = sum + Integer.parseInt(sub);\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}" ]
[ "0.54060733", "0.53478533", "0.5325452", "0.53075993", "0.5284022", "0.5270446", "0.52384174", "0.5228707", "0.51669055", "0.5140944", "0.5132191", "0.5083469", "0.5083469", "0.5009017", "0.49993727", "0.49982858", "0.4974575", "0.49276564", "0.4912409", "0.49099442", "0.49088284", "0.49013025", "0.48948422", "0.48819122", "0.48761138", "0.48750252", "0.48666084", "0.4863397", "0.48623505", "0.4856107", "0.4856107", "0.48458055", "0.4840739", "0.48404858", "0.483003", "0.48107338", "0.48032057", "0.4802477", "0.47712818", "0.47616252", "0.47517958", "0.4751292", "0.47358838", "0.47266826", "0.4726014", "0.47212324", "0.47156277", "0.46799225", "0.4673566", "0.46703643", "0.4666946", "0.46646258", "0.4663755", "0.46603513", "0.46593386", "0.4655641", "0.46536502", "0.46522892", "0.4650514", "0.46475333", "0.4643388", "0.4639847", "0.46330473", "0.4626445", "0.46244064", "0.4619949", "0.46165314", "0.46154", "0.46127942", "0.46084714", "0.4606429", "0.46058765", "0.4603785", "0.46011496", "0.4596895", "0.45955068", "0.45944571", "0.4592786", "0.45916998", "0.45916998", "0.45837292", "0.4580852", "0.45805207", "0.4579548", "0.4574065", "0.4572645", "0.45713606", "0.45704988", "0.45679855", "0.456593", "0.45658594", "0.4565158", "0.45648134", "0.45582026", "0.45543447", "0.4550715", "0.45506096", "0.4549627", "0.45411786", "0.4535736" ]
0.6829349
0
Replaced Math.getExponent due to google's Android OS is not supporting it in Math library.
public int getExponent( double f ) { int exp = (int)( Math.log( f ) / Math.log( 2 ) ); return exp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getExponent();", "public Integer getExponent();", "public abstract String getExponent();", "public float getUserExponent() {\n/* 195 */ return this.userExponent;\n/* */ }", "public String get_exponent_part();", "public BigInteger getExponent() {\n return this.exponent;\n }", "public double exponent()\n\t{\n\t\treturn _dblExponent;\n\t}", "public String getExponent(boolean biased) {\n return Native.fpaGetNumeralExponentString(getContext().nCtx(), getNativeObject(), biased);\n }", "private double procesarOperadorExponente() throws Exception {\r\n double resultado = procesarCoeficientesFuncionesParentesis();\r\n while (!colaDeTokens.isEmpty()) {\r\n switch (colaDeTokens.element().tipoToken) {\r\n case EXPONENTE:\r\n \r\n colaDeTokens.remove();\r\n resultado = Math.pow(resultado, procesarCoeficientesFuncionesParentesis());\r\n continue;\r\n }\r\n break;\r\n }\r\n return resultado;\r\n }", "public void setExponent(Integer exponent);", "public boolean get_exponent_sign();", "public long priceExponent() {\n\t\treturn message.getBasePriceExponent();\n\t}", "public double pow(double base, double exponent){ return Math.pow(base, exponent); }", "@Test\n\tpublic void testExponentiation() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.pow(zero, zero);\n\t\t\tassertEquals(ac.exponentiation(zero, zero), expResult, 0);\n\t\t}\n\t\t\n\t}", "public long getExponentInt64(boolean biased) {\n Native.LongPtr res = new Native.LongPtr();\n if (!Native.fpaGetNumeralExponentInt64(getContext().nCtx(), getNativeObject(), res, biased))\n throw new Z3Exception(\"Exponent is not a 64 bit integer\");\n return res.value;\n }", "private void calculateSensitivityExponent() {\n this.sensitivityExponent = Math.exp(-1.88 * percentageSensitivity);\n }", "public double powE(double exp) {\n return Double.parseDouble(String.format(\"%.8f\", Math.pow(StrictMath.E, exp)));\n }", "public static double exp() {\r\n System.out.println(\"What is your base?\");\r\n int b = Main.sc.nextInt();\r\n System.out.println(\"What is your power?\");\r\n int p = Main.sc.nextInt();\r\n double answer = Math.pow((double) b, (double) p);\r\n return answer;\r\n }", "private String doExponent(String answer)\n\t{\n\t\tint signSpot;\n\t\tString stringToDelete;\n\t\tdouble number1;\n\t\tdouble number2;\n\t\tint minValue = 0;\n\t\tint maxValue = 0;\n\n\t\twhile (answer.contains(\"^\"))\n\t\t{\n\t\t\tsignSpot = answer.indexOf(\"^\");\n\n\t\t\t// start\n\t\t\tfor (int count = signSpot - 1; count >= 0; count -= 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count, count + 1)) == true\n\t\t\t\t\t\t|| answer.substring(count, count + 1).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tminValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// finish\n\t\t\tfor (int count = signSpot + 2; count <= answer.length(); count += 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count - 1, count)) == true\n\t\t\t\t\t\t|| answer.substring(count - 1, count).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tmaxValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstringToDelete = answer.substring(minValue, maxValue);\n\t\t\tString myString = answer.substring(minValue, signSpot);\n\t\t\tnumber1 = Double.parseDouble(myString);\n\t\t\tmyString = answer.substring(signSpot + 1, maxValue);\n\t\t\tnumber2 = Double.parseDouble(myString);\n\t\t\tDouble numberAnswer1 = Math.pow(number1, number2);\n\n\t\t\tanswer = answer.replace(stringToDelete, \"\" + numberAnswer1);\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t\treturn answer;\n\t}", "static int testGetExponentCase(float f, int expected) {\n float minus_f = -f;\n int failures=0;\n\n failures+=Tests.test(\"Math.getExponent(float)\", f,\n Math.getExponent(f), expected);\n failures+=Tests.test(\"Math.getExponent(float)\", minus_f,\n Math.getExponent(minus_f), expected);\n\n failures+=Tests.test(\"StrictMath.getExponent(float)\", f,\n StrictMath.getExponent(f), expected);\n failures+=Tests.test(\"StrictMath.getExponent(float)\", minus_f,\n StrictMath.getExponent(minus_f), expected);\n return failures;\n }", "static int testGetExponentCase(double d, int expected) {\n double minus_d = -d;\n int failures=0;\n\n failures+=Tests.test(\"Math.getExponent(double)\", d,\n Math.getExponent(d), expected);\n failures+=Tests.test(\"Math.getExponent(double)\", minus_d,\n Math.getExponent(minus_d), expected);\n\n failures+=Tests.test(\"StrictMath.getExponent(double)\", d,\n StrictMath.getExponent(d), expected);\n failures+=Tests.test(\"StrictMath.getExponent(double)\", minus_d,\n StrictMath.getExponent(minus_d), expected);\n return failures;\n }", "private int toPower(int base, int exponent)\n\t {\n\t \t if(exponent > 0)\n\t {\n\t return toPower(base, exponent - 1) * base;\n\t }\n\t return 1;\n\t }", "public static Double pow (Double base, Double exponent){\n return Math.pow(base, exponent);\n }", "private static final int getPower(Parsing t) {\n\t\tchar s='+';\t\t// Exponent Sign\n\t\tint pow=0;\t\t// Exponent Value\n\t\tint inum=0;\t\t// Index of exponent\n\t\tint posini=t.pos;\n\t\t//System.out.print(\"....getPower on '\" + this + \"', pos=\" + pos + \": \");\n\t\tt.pos = t.length-1;\n\t\tif (Character.isDigit(t.a[t.pos])) {\n\t\t\twhile (Character.isDigit(t.a[t.pos])) --t.pos;\n\t\t\ts = t.a[t.pos];\n\t\t\tif ((s == '+') || (s == '-')) ;\t// Exponent starts here\n\t\t\telse ++t.pos;\n\t\t\tinum = t.pos;\n\t\t\tpow = t.parseInt();\n\t\t\t//System.out.print(\"found pow=\" + pow + \",pos=\" + pos);\n\t\t}\n\t\tif (pow != 0) {\t\t// Verify the power is meaningful\n\t\t\tif (t.a[0] == '(') {\n\t\t\t\tif (t.a[inum-1] != ')') pow = 0;\n\t\t\t}\n\t\t\telse {\t\t// could be e.g. m2\n\t\t\t\tfor (int i=0; i<inum; i++) {\n\t\t\t\t\t// Verify the unit is not a complex one\n\t\t\t\t\tif (!Character.isLetter(t.a[i])) pow = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (pow == 0) t.pos = posini;\n\t\telse t.pos = inum;\n\t\t//System.out.println(\" pow=\" + pow + \", pos=\" + pos);\n\t\treturn(pow);\n\t}", "public abstract void setMaxExponentSize(byte maxExponentSize);", "@Override\n\tpublic double pow(double base, double exp) {\n\t\treturn 0;\n\t}", "public Double exponent(Double advNum1, Double advNum2) {\n answer = Math.pow(advNum1, advNum2);\n return answer;\n }", "public abstract byte getMaxExponentSize();", "public static double exp(double a, double b){\r\n\t\treturn Math.pow(a,b);\r\n\t}", "int getCurEXP();", "int getCurEXP();", "static int exp(int base, long n) {\n\n // 2^3=8 , 2^x=8 -> x = ln8/ln2 , otherwise x=Math.log(8)/Math/log(2)\n\n return (int) ( Math.log(n)/Math.log(base) );\n }", "int getMaxEXP();", "int getMaxEXP();", "public long sizeExponent() {\n\t\treturn message.getBaseSizeExponent();\n\t}", "public int power(int base, int exp) {\n if (exp == 0) {\n return 1;\n }\n long result = power(base, exp / 2);\n result *= result % G;\n if (exp % 2 == 1) {\n result *= base;\n }\n return (int) result;\n }", "public static float exp(float x) {\n\n return 0;\n }", "public static double power(double base, int exp) {\r\n if (exp == 0) {\r\n return 1;\r\n }\r\n\r\n if (exp > 0) {\r\n return pow(base, exp);\r\n } else {\r\n return 1 / pow(base, Math.abs(exp));\r\n }\r\n\r\n }", "private int power(int base, int exp) {\n\t\tint p = 1;\n\t\tfor( int i = exp ; i > 0; i-- ) {\n\t\t\tp = p * base;\n\t\t}\n\t\treturn p;\n\t}", "static double powerOfTwoD(int n) {\n return Double.longBitsToDouble((((long)n + (long)DoubleConsts.MAX_EXPONENT) <<\n (DoubleConsts.SIGNIFICAND_WIDTH-1))\n & DoubleConsts.EXP_BIT_MASK);\n }", "public void setUserExponent(float userExponent) {\n/* 235 */ if (userExponent <= 0.0F) {\n/* 236 */ throw new IllegalArgumentException(PropertyUtil.getString(\"PNGDecodeParam0\"));\n/* */ }\n/* 238 */ this.userExponent = userExponent;\n/* */ }", "public java.math.BigDecimal getInput_power()\n\t\tthrows java.rmi.RemoteException;", "static double randomDouble(int maxExponent) {\n double result = RANDOM_SOURCE.nextDouble();\n result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1));\n return RANDOM_SOURCE.nextBoolean() ? result : -result;\n }", "float getPower();", "public static String power(int base, int exp){\n\t\tBigNum temp = new BigNum(base);\n\t\ttemp = temp.power(exp);\n\t\treturn temp.toString();\n\t}", "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public int getPow() {\n return _pow;\n }", "private double pow(double x, double y) {\r\n double value;\r\n try {\r\n value = Math.pow(x, y) ; }\r\n catch( ArithmeticException e ) {\r\n value = Double.NaN ; }\r\n return value;\r\n }", "BigInteger generatePublicExponent(BigInteger p, BigInteger q) {\n return new BigInteger(\"65537\");\n }", "float mo106363e();", "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public static double gigaBitsToBits(double num) { return (num*Math.exp(9)); }", "public double power ( int num1, int num2, Credential aCrendential) throws RemoteException;", "public static double megaBitsToBits(double num) { return (num*Math.exp(6)); }", "public double getExp() {\n return exp;\n }", "private BigInteger modInversePow2(BigInteger m)\n {\n\n if (!testBit(0))\n {\n throw new ArithmeticException(\"Numbers not relatively prime.\");\n }\n\n int pow = m.bitLength() - 1;\n\n long inv64 = modInverse64(longValue());\n if (pow < 64)\n {\n inv64 &= ((1L << pow) - 1);\n }\n\n BigInteger x = BigInteger.valueOf(inv64);\n\n if (pow > 64)\n {\n BigInteger d = this.remainder(m);\n int bitsCorrect = 64;\n\n do\n {\n BigInteger t = x.multiply(d).remainder(m);\n x = x.multiply(TWO.subtract(t)).remainder(m);\n bitsCorrect <<= 1;\n }\n while (bitsCorrect < pow);\n }\n\n if (x.sign < 0)\n {\n x = x.add(m);\n }\n\n return x;\n }", "public final void power (int expo) throws ArithmeticException {\n\t\tdouble error = 0;\n\t\tint i = expo; \n\t\tdouble r = 1;\n\t\tdouble v = 1; \n\t\tlong u = underScore;\n\t\tif ((mksa&(_log|_mag)) != 0) throw new ArithmeticException\n\t\t(\"****Unit: can't power log[unit]: \" + symbol );\n\t\twhile (i > 0) { \n\t\t\tr *= factor; v *= value; \n\t\t\tu += mksa; u -= underScore; \n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti--; \n\t\t}\n\t\twhile (i < 0) { \n\t\t\tr /= factor; v /= value; \n\t\t\tu += underScore; u -= mksa;\n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti++; \n\t\t}\n\t\tif (error > 0) throw new ArithmeticException\n\t\t(\"****Unit: power too large: (\" + \")^\" + expo) ;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\tmksa = u;\n\t\t/* Decision for the new symbol */\n\t\tif ((expo != 1) && (symbol != null)) {\n\t\t\tif (expo == 0) symbol = \"\";\n\t\t\telse if (symbol.length()>0) {\n\t\t\t\tParsing t = new Parsing(symbol);\n\t\t\t\tint pow;\n\t\t\t\tpow = getPower(t);\n\t\t\t\tif (pow == 0) symbol = toExpr(symbol) + expo;\n\t\t\t\telse {\t\t\t// Combine exponents\n\t\t\t\t\ti=0;\n\t\t\t\t\tpow *= expo;\n\t\t\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\t\t\tif (expo == 1) symbol = symbol.substring(i,t.pos);\n\t\t\t\t\telse symbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setDisplayExponent(float displayExponent) {\n/* 284 */ if (displayExponent <= 0.0F) {\n/* 285 */ throw new IllegalArgumentException(PropertyUtil.getString(\"PNGDecodeParam1\"));\n/* */ }\n/* 287 */ this.displayExponent = displayExponent;\n/* */ }", "public int getExp() {\n \t\treturn exp;\n \t}", "public static double cubicMetreToMillilitres(double num) { return (num*Math.exp(6)); }", "static double calcPower(double first, double second) {\n return Math.pow(first, second);\n }", "private int parseExponentString(String str) {\n\t\treturn Integer.parseInt(str.substring(1));\n\t}", "public static double teraBytesToBits(double num) { return (num*8*Math.exp(12)); }", "private double getExponentTerm(final double[] values) {\n //final double[] centered = new double[values.length];\n //for (int i = 0; i < centered.length; i++) {\n // centered[i] = values[i] - means[i];\n //}\n // I think they are already centered from earlier?\n //final double[] preMultiplied = covariance_rpt_inv_normal.multiply(values/*centered*/);\n double sum = 0;\n for (int i = 0; i < values.length; i++) {\n sum += (Math.exp(-0.5 * values[i]) / constant_normal);//centered[i];\n }\n return sum;\n }", "public double getExpModifier()\r\n\t{\treturn this.expModifier;\t}", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "BigInteger getPower_consumption();", "public T exp(T value);", "public final EObject ruleExponentialFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n Token otherlv_5=null;\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_base_2_0 = null;\r\n\r\n EObject lv_exponent_4_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3442:28: ( ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:1: ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:1: ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:2: ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:2: ( (lv_operator_0_0= ruleExponentialOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3444:1: (lv_operator_0_0= ruleExponentialOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3444:1: (lv_operator_0_0= ruleExponentialOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3445:3: lv_operator_0_0= ruleExponentialOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getOperatorExponentialOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleExponentialOperator_in_ruleExponentialFunction7346);\r\n lv_operator_0_0=ruleExponentialOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"ExponentialOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,43,FOLLOW_43_in_ruleExponentialFunction7358); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getExponentialFunctionAccess().getLeftParenthesisKeyword_1());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3465:1: ( (lv_base_2_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3466:1: (lv_base_2_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3466:1: (lv_base_2_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3467:3: lv_base_2_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getBaseNumberExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleExponentialFunction7379);\r\n lv_base_2_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"base\",\r\n \t\tlv_base_2_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_3=(Token)match(input,20,FOLLOW_20_in_ruleExponentialFunction7391); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_3, grammarAccess.getExponentialFunctionAccess().getCommaKeyword_3());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3487:1: ( (lv_exponent_4_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3488:1: (lv_exponent_4_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3488:1: (lv_exponent_4_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3489:3: lv_exponent_4_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getExponentNumberExpressionParserRuleCall_4_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleExponentialFunction7412);\r\n lv_exponent_4_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"exponent\",\r\n \t\tlv_exponent_4_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_5=(Token)match(input,44,FOLLOW_44_in_ruleExponentialFunction7424); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_5, grammarAccess.getExponentialFunctionAccess().getRightParenthesisKeyword_5());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public double varianceExponent()\n\t{\n\t\treturn _dblVarianceExponent;\n\t}", "private BigInteger modPow2(BigInteger exponent, int p) {\n /*\n * Perform exponentiation using repeated squaring trick, chopping off\n * high order bits as indicated by modulus.\n */\n BigInteger result = ONE;\n BigInteger baseToPow2 = this.mod2(p);\n int expOffset = 0;\n\n int limit = exponent.bitLength();\n\n if (this.testBit(0))\n limit = (p-1) < limit ? (p-1) : limit;\n\n while (expOffset < limit) {\n if (exponent.testBit(expOffset))\n result = result.multiply(baseToPow2).mod2(p);\n expOffset++;\n if (expOffset < limit)\n baseToPow2 = baseToPow2.square().mod2(p);\n }\n\n return result;\n }", "public static double exp(double a)\n\t{\n\t boolean neg = a < 0 ? true : false;\n\t if (a < 0)\n a = -a;\n int fac = 1;\n \t double term = a;\n \t double sum = 0;\n \t double oldsum = 0;\n \t double end;\n\n \t do {\n \t oldsum = sum;\n \t sum += term;\n \n \t fac++;\n \n \t term *= a/fac;\n\t end = sum/oldsum;\n \t } while (end < LOWER_BOUND || end > UPPER_BOUND);\n\n sum += 1.0f;\n \n\t return neg ? 1.0f/sum : sum;\n\t}", "public static BinaryExpression power(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "static double k0exp(final double x) {\n if (x <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return (chebyshev(x * x - 2, KA) - Math.log(0.5 * x) * Bessel.i0(x)) * Math.exp(x);\n }\n return chebyshev(8 / x - 2, KB) / Math.sqrt(x);\n }", "BigInteger getEBigInteger();", "public static double foodCaloriesToElectronVolts(double num) { return (num*2.6*Math.exp(22)); }", "private void eToPower()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.eToPower ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public double power ( int num1, int num2) throws RemoteException;", "public int getMaxEXP() {\n return maxEXP_;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public static int integerPower(int base, int exponent)\r\n {\r\n if (exponent == 1)\r\n return base;\r\n else\r\n return base * integerPower(base, exponent - 1);\r\n\r\n }", "static double k1exp(final double x) {\n final double z = 0.5 * x;\n if (z <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return (Math.log(z) * Bessel.i1(x) + chebyshev(x * x - 2, K1A) / x) * Math.exp(x);\n }\n return chebyshev(8 / x - 2, K1B) / Math.sqrt(x);\n }", "public static void main(String[] args) {\n BigDecimal bigDecimal = new BigDecimal(2);\n BigDecimal divisor = bigDecimal.pow(256);\n BigDecimal dividend = divisor.add(new BigDecimal(-1));\n BigDecimal multiplier = new BigDecimal(2).pow(128);\n// BigDecimal result = dividend.divide(divisor).pow(multiplier);\n// System.out.println(result);\n }", "public static double genExp(double a) {\r\n\t\tdouble x = 1 - generator.nextDouble();\r\n\t\tdouble exp = -1 * Math.log(x) * a;\r\n\t\treturn exp;\r\n\r\n\t}", "private static int getNearestPowerOfTwo(int num)\n\t{\n\n\t\tint value = -2;\n\t\tint exponent = 0;\n\n\t\tdo\n\t\t{\n\t\t\texponent = exponent + 1;\n\t\t\tvalue = (int)Math.pow(2, exponent);\n\t\t}\n\t\twhile(value <= num);\n\n\t\treturn exponent - 1;\n\t}", "public static int exponenciacion(int x, int y) {\n\t\tint r=1;\n\t\tfor(int i=0;i<y;i++) {\n\t\t\tr=r*x;\n\t\t}\n\t\treturn r;\n\t}", "public static double equation() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Please enter a value for x: \");\n double x = userInput.nextDouble();\n double output = (x * Math.pow(Math.exp(1), -x)) + Math.sqrt(1 - Math.pow(Math.exp(1), -x));\n System.out.print(\"The answer to the equation xe^-x + sqrt(1-(e^-x)) \");\n\tSystem.out.println(\" with that x is: \");\n return output;\n }", "public final EObject ruleUnitExpressionFactor() throws RecognitionException {\n EObject current = null;\n\n Token lv_operand_0_0=null;\n EObject lv_exponent_2_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6579:6: ( ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:1: ( ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) ) ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6580:2: ( (lv_operand_0_0= RULE_ID ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6581:1: (lv_operand_0_0= RULE_ID )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6582:3: lv_operand_0_0= RULE_ID\n {\n lv_operand_0_0=(Token)input.LT(1);\n match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleUnitExpressionFactor11472); \n\n \t\t\tcreateLeafNode(grammarAccess.getUnitExpressionFactorAccess().getOperandIDTerminalRuleCall_0_0(), \"operand\"); \n \t\t\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode, current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operand\",\n \t \t\tlv_operand_0_0, \n \t \t\t\"ID\", \n \t \t\tlastConsumedNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t \n\n }\n\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:2: ( '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) ) )?\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==60) ) {\n alt95=1;\n }\n switch (alt95) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6604:4: '^' ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n {\n match(input,60,FOLLOW_60_in_ruleUnitExpressionFactor11488); \n\n createLeafNode(grammarAccess.getUnitExpressionFactorAccess().getCircumflexAccentKeyword_1_0(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6608:1: ( (lv_exponent_2_0= ruleUnitExpressionExponent ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6609:1: (lv_exponent_2_0= ruleUnitExpressionExponent )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6610:3: lv_exponent_2_0= ruleUnitExpressionExponent\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnitExpressionFactorAccess().getExponentUnitExpressionExponentParserRuleCall_1_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnitExpressionExponent_in_ruleUnitExpressionFactor11509);\n lv_exponent_2_0=ruleUnitExpressionExponent();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnitExpressionFactorRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"exponent\",\n \t \t\tlv_exponent_2_0, \n \t \t\t\"UnitExpressionExponent\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public static String powName(double base) {\n\t\tif (base == Math.E)\n\t\t\treturn \"exp\";\n\t\telse\n\t\t\treturn \"\" + MathUtil.format(base) + \"^\";\n\t}", "static float powerOfTwoF(int n) {\n return Float.intBitsToFloat(((n + FloatConsts.MAX_EXPONENT) <<\n (FloatConsts.SIGNIFICAND_WIDTH-1))\n & FloatConsts.EXP_BIT_MASK);\n }", "public abstract double mo9740e();", "static double convertPowerToCurve(double input){\n return 0.3*Math.pow(input,3.0)+0.3*Math.pow(input,5.0)+input/Math.abs(input)*0.2;\r\n }", "public int getCurEXP() {\n return curEXP_;\n }", "public int getCurEXP() {\n return curEXP_;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "@Test\n public void testPowerMod_0_0_2() {\n NaturalNumber n = new NaturalNumber2(0);\n NaturalNumber p = new NaturalNumber2(0);\n NaturalNumber m = new NaturalNumber2(2);\n CryptoUtilities.powerMod(n, p, m);\n assertEquals(\"1\", n.toString());\n assertEquals(\"0\", p.toString());\n assertEquals(\"2\", m.toString());\n }", "public float getPowerMultiplier() { return 0.5F; }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public static double megaBytesToBits(double num) { return (num*8*Math.exp(6)); }" ]
[ "0.8349882", "0.81818116", "0.79892915", "0.74429536", "0.7368853", "0.7116187", "0.69742876", "0.6764453", "0.6764255", "0.6731507", "0.6667014", "0.66483146", "0.664269", "0.6473554", "0.64567655", "0.6447152", "0.64361477", "0.64319026", "0.63613594", "0.6336943", "0.6319247", "0.6090877", "0.606287", "0.60622823", "0.6005958", "0.6004303", "0.5950959", "0.59253514", "0.58646744", "0.5835592", "0.5835592", "0.57887775", "0.56877846", "0.56877846", "0.5651904", "0.5633002", "0.5621212", "0.5586373", "0.5580981", "0.5573957", "0.55618757", "0.5552156", "0.554651", "0.5527964", "0.55219936", "0.54998386", "0.54708576", "0.5465026", "0.545353", "0.54406625", "0.5439073", "0.543493", "0.5426312", "0.54222494", "0.5408875", "0.539436", "0.53693295", "0.53651875", "0.5358026", "0.5357446", "0.5329629", "0.53267425", "0.53159916", "0.5312969", "0.53074986", "0.5294612", "0.5294612", "0.5290508", "0.5290291", "0.5288363", "0.5285745", "0.5271913", "0.5260663", "0.5250777", "0.52463084", "0.5235071", "0.5230104", "0.52278775", "0.5223965", "0.52148145", "0.5214662", "0.5208758", "0.5208312", "0.51961076", "0.51756316", "0.5175165", "0.5166408", "0.51605314", "0.51575965", "0.5157168", "0.51454777", "0.5142239", "0.5130981", "0.5126315", "0.5125654", "0.51223826", "0.5122308", "0.51214546", "0.51208997", "0.5116002" ]
0.67126083
10
Replaced Math.scalb due to google's Android OS is not supporting it in Math library.
public double scalb( double f, int scaleFactor ) { double res = f * Math.pow( 2, scaleFactor ); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public INDArray scal(float alpha, INDArray x) {\n NativeBlas.sscal(x.length(), alpha, x.data(), x.offset(), 1);\n return x;\n }", "private static native double mul(int n);", "@Override\n public double callJavaMath(String methodName, Object[] args) {\n\treturn 0;\n }", "float mo56157b();", "private native double SumaC(double operador_1, double operador_2);", "int luasPP(int a, int b){\r\n return a*b;\r\n }", "public double utility();", "public float getGlobalScale() {\n // per convenzione se la scala deve essere su tutti e tre gli assi\n // allora si considera scale.x() per tutti gli assi\n return (float) scale.x();\n }", "private static double sq (double x) {\n return Math.pow(x, 2);\n }", "public static native double norm(double a[]);", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "private static double m6088b(Object obj) {\n Method method = null;\n Object obj2 = obj;\n while (!(obj2 instanceof Number)) {\n if (obj2 instanceof String) {\n return ScriptRuntime.m6309a((String) obj2);\n }\n if (!(obj2 instanceof Scriptable)) {\n try {\n method = obj2.getClass().getMethod(\"doubleValue\");\n } catch (NoSuchMethodException | SecurityException e) {\n }\n if (method != null) {\n try {\n return ((Number) method.invoke(obj2)).doubleValue();\n } catch (IllegalAccessException e2) {\n m6091c(obj2, Double.TYPE);\n } catch (InvocationTargetException e3) {\n m6091c(obj2, Double.TYPE);\n }\n }\n return ScriptRuntime.m6309a(obj2.toString());\n } else if (!(obj2 instanceof Wrapper)) {\n return ScriptRuntime.m6395b(obj2);\n } else {\n obj2 = ((Wrapper) obj2).mo18879a();\n }\n }\n return ((Number) obj2).doubleValue();\n }", "private void mul() {\n\n\t}", "void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}", "long mo25074b();", "float getScaler();", "private double scaleJoystick(double val, JoystickSens sens) {\n if(sens == JoystickSens.LINEAR) return val;\n else if(sens == JoystickSens.SQUARED) return Math.signum(val) * Math.pow(val, 2);\n else if(sens == JoystickSens.CUBED) return Math.pow(val, 3);\n else if(sens == JoystickSens.TESSERACTED) return Math.signum(val) * Math.pow(val, 4);\n else if(sens == JoystickSens.SINE) return Math.sin(val * (Math.PI / 2));\n else return val;\n }", "static double f(double x){\n \treturn Math.sin(x);\r\n }", "@Override\n\tpublic double multiply(double in1, double in2) {\n\t\treturn 0;\n\t}", "long mo30295f();", "float norm2();", "static double convert(double in) {\n return (in * 0.254);\n }", "void scale(double factor);", "public double multiplica(double a, double b) {\n\t\treturn a*b;\n\t}", "public void doMath();", "public void scale(double s);", "BigInteger multiply(long v) {\n if (v == 0 || signum == 0)\n return ZERO;\n if (v == BigDecimal.INFLATED)\n return multiply(BigInteger.valueOf(v));\n int rsign = (v > 0 ? signum : -signum);\n if (v < 0)\n v = -v;\n long dh = v >>> 32; // higher order bits\n long dl = v & LONG_MASK; // lower order bits\n\n int xlen = mag.length;\n int[] value = mag;\n int[] rmag = (dh == 0L) ? (new int[xlen + 1]) : (new int[xlen + 2]);\n long carry = 0;\n int rstart = rmag.length - 1;\n for (int i = xlen - 1; i >= 0; i--) {\n long product = (value[i] & LONG_MASK) * dl + carry;\n rmag[rstart--] = (int)product;\n carry = product >>> 32;\n }\n rmag[rstart] = (int)carry;\n if (dh != 0L) {\n carry = 0;\n rstart = rmag.length - 2;\n for (int i = xlen - 1; i >= 0; i--) {\n long product = (value[i] & LONG_MASK) * dh +\n (rmag[rstart] & LONG_MASK) + carry;\n rmag[rstart--] = (int)product;\n carry = product >>> 32;\n }\n rmag[0] = (int)carry;\n }\n if (carry == 0L)\n rmag = java.util.Arrays.copyOfRange(rmag, 1, rmag.length);\n return new BigInteger(rmag, rsign);\n }", "void multiply(double value);", "public abstract float mo12693b(C1085v vVar);", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }", "public static double mul(double a, double b){\r\n\t\treturn a*b;\r\n\t}", "float mo106364f();", "public abstract float mo9744i();", "@Override\n\tpublic double multiply(double a, double b) {\n\t\treturn (a*b);\n\t}", "public abstract double calcular();", "void mo9703b(float f, float f2);", "public abstract double calcSA();", "private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }", "private double calculaz(double v) { //funcion de densidad de probabilidad normal\n double N = Math.exp(-Math.pow(v, 2) / 2) / Math.sqrt(2 * Math.PI);\n return N;\n }", "double apply(final double a);", "public double sin(double number);", "protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ this.xVelocity *= f;\r\n/* 161:183 */ this.yVelocity *= 0.0D;\r\n/* 162:184 */ this.zVelocity *= f;\r\n/* 163: */ }", "void subMult(long x, long y) {\n long pll = (x & LONG_MASK) * (y & LONG_MASK);\n long phl = (x >>> 32) * (y & LONG_MASK);\n long plh = (x & LONG_MASK) * (y >>> 32);\n long phh = (x >>> 32) * (y >>> 32);\n long s0 = (lo & LONG_MASK) - (pll & LONG_MASK);\n long s1 = (s0 >> 32) + (lo >>> 32) - (pll >>> 32) - (phl & LONG_MASK) - (plh & LONG_MASK);\n lo = (s0 & LONG_MASK) | (s1 << 32);\n long s2 = (s1 >> 32) + (hi & LONG_MASK) - (phl >>> 32) - (plh >>> 32) - (phh & LONG_MASK);\n long s3 = (s2 >> 32) + (hi >>> 32) - (phh >>> 32);\n hi = (s2 & LONG_MASK) | (s3 << 32);\n high += (int) (s3 >> 32);\n// BigInteger newV = toBigInteger();\n// assert oldV.subtract(DoubleParseHard64.longArrayToBigInteger(new long[]{x}, 1, false).multiply(DoubleParseHard64.longArrayToBigInteger(new long[]{y}, 1, false))).\n// equals(newV);\n }", "void sub(double val) {\r\n\t\tresult = result - val;\r\n\t}", "public AncientEgyptianMultiplication( ) {\r\n }", "public static double convertkgTOlb (double kg) {\n\tdouble lb=kg*2.2046;\n\treturn lb;\n}", "@Override\n public float apply$mcFJ$sp (long arg0)\n {\n return 0;\n }", "long mo1636a(long j, alb alb);", "void mo56155a(float f);", "Sum getMultiplier();", "@Override\npublic void mul(int a, int b) {\n\t\n}", "protected abstract double operation(double val);", "static double transform(int f) {\n return (5.0 / 9.0 * (f - 32));\n\n }", "public native double __doubleMethod( long __swiftObject, double arg );", "private double f2c(double f)\n {\n return (f-32)*5/9;\n }", "Double getMultiplier();", "abstract void mulS();", "public float squared(){\r\n\t\treturn this.dottedWith( this );\r\n\t}", "public static void main(String[] args) {\n PyObject v = Py.newLong(6), w = Py.newFloat(7.01);\n System.out.println(v._mul(w));\n }", "public static BigDecimal jian(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null) {\n\t\t\tthrow new RuntimeException(\"减法参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tBigDecimal subtract = a.subtract(b);\n\t\tBigDecimal result = subtract.setScale(SCALE, RoundingMode.HALF_EVEN);\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tString str;\n\t\t\tint scale = subtract.scale();\n\t\t\tif (scale > SCALE) {\n\t\t\t\tstr = \"[\" + a + \" - \" + b + \" = \" + subtract + \" ≈ \" + result + \"]\";\n\t\t\t} else if(scale == SCALE) {\n\t\t\t\tstr = \"[\" + a + \" - \" + b + \" = \" + subtract + \"]\";\n\t\t\t} else {\n\t\t\t\tstr = \"[\" + a + \" - \" + b + \" = \" + subtract + \" = \" + result + \"]\";\n\t\t\t}\n\t\t\tLOG.debug(str);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public abstract double integral(double a, double b, int n);", "void mo196b(float f) throws RemoteException;", "public static ECPoint scalmult(ECPoint P, BigInteger kin){\n //ECPoint R=P; - incorrect\n ECPoint R = ECPoint.POINT_INFINITY,S = P;\n BigInteger k = kin.mod(p);\n int length = k.bitLength();\n //System.out.println(\"length is\" + length);\n byte[] binarray = new byte[length];\n for(int i=0;i<=length-1;i++){\n binarray[i] = k.mod(TWO).byteValue();\n k = k.divide(TWO);\n }\n /*for(int i = length-1;i >= 0;i--){\n System.out.print(\"\" + binarray[i]);\n }*/\n\n for(int i = length-1;i >= 0;i--){\n // i should start at length-1 not -2 because the MSB of binarry may not be 1\n R = doublePoint(R);\n if(binarray[i]== 1)\n R = addPoint(R, S);\n }\n return R;\n }", "public static double multi(double a, double b) {\n return a * b;\n }", "public double carre(double v) {\n return v*v;\n }", "private static double lnInternal(double x){\n double a = 1 - x;\n double s = -a;\n double t = a;\n \n for (int i = 2; i < 25; i++){\n t = t*a;\n s -= t/i;\n }\n return s;\n }", "public static double produitScalaire(double U[],double V[]){\r\n\t\tdouble produitScalaire;\r\n\t\tproduitScalaire = U[0]*V[0] + U[1]*V[1] + U[2]*V[2];\r\n\t\treturn produitScalaire;\t\r\n\t}", "public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }", "private static double tricube(final double x) {\n final double absX = JdkMath.abs(x);\n if (absX >= 1.0) {\n return 0.0;\n }\n final double tmp = 1 - absX * absX * absX;\n return tmp * tmp * tmp;\n }", "private double scaleValue(double input) {\n if(type == SIMPLE_SIN2D_IN_X || type == SIMPLE_SIN2D_IN_Y || type == SIMPLE_MULT2D) {\n // SINE = -1 to 1\n // SCALE to 0 to 255\n // (SINE + 1) * 128\n return (input + 1) * (255.0 / 2.0);\n }\n if(type == SIMPLE_PLUS2D)\n {\n return (input + 2) * (255.0 / 4.0);\n }\n else\n return 0;\n }", "@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 * num2;\n\t\t}", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public abstract double mo9740e();", "private static double square (double x)\r\n\t{\r\n\t\treturn x * x;\r\n\t}", "public Vector2f mult (float v)\n {\n return mult(v, new Vector2f());\n }", "public final double getScaler()\n { \n return Math.pow(10, m_Scaler);\n }", "double function(double xVal){\n\t\tdouble yVal = xVal*xVal*xVal;\n\t\treturn yVal;\n\t}", "private double f(double v, double s) {\n\t\treturn equation(v) - s;\r\n\t}", "private static int calculateLCM(int a, int b){\n\t\tint gcd = calculateGCD(a, b);\n\t\tint lcm = (a/gcd)*b; //same as a*b/gcd but a*b could be very large number so avoiding that\n\t\treturn lcm;\n\t}", "public static BigDecimal cheng(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null) {\n\t\t\tthrow new RuntimeException(\"乘法参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tBigDecimal multiply = a.multiply(b);\n\t\tBigDecimal result = multiply.setScale(SCALE, RoundingMode.HALF_EVEN);\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tString str;\n\t\t\tint scale = multiply.scale();\n\t\t\tif (scale > SCALE) {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \" ≈ \" + result + \"]\";\n\t\t\t} else if(scale == SCALE) {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \"]\";\n\t\t\t} else {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \" = \" + result + \"]\";\n\t\t\t}\n\t\t\tLOG.debug(str);\n\t\t}\n\t\treturn result;\n\t}", "void mo34547J(float f, float f2);", "float determinante (){\r\n //lo de adentro de la raiz\r\n float det= (float)(Math.pow(b, 2)-4*a*c);\r\n //(float) por que pow tiene valores por defecto de double\r\n //entonces, hacemos casting: poniendole el (float) antes de\r\n //toda la funcion.\r\n return det; \r\n }", "private float m87322b(float f) {\n return (float) Math.sin((double) ((float) (((double) (f - 0.5f)) * 0.4712389167638204d)));\n }", "C3197iu mo30281b(long j);", "int getWrongScale();", "public static byte GMul(int a, int b) {\n\n byte p = 0;\n byte counter;\n byte hi_bit_set;\n for (counter = 0; counter < 8; counter++) {\n if ((b & 1) != 0) {\n p ^= a;\n }\n hi_bit_set = (byte) (a & 0x80);\n a <<= 1;\n if (hi_bit_set != 0) {\n a ^= 0x1b; /* x^8 + x^4 + x^3 + x + 1 */\n }\n b >>= 1;\n }\n return p;\n}", "static DoubleUnaryOperator convert(double f, double b) {\n\t\treturn (double x) -> f * x + b;\n\t}", "public double norm2();", "public static BigDecimal mul(BigDecimal a, BigDecimal b) {\n\t\treturn mul(a, b, 18);\n\t}", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "protected final double fr(double x, double rc, double re) {return rc*(K*K)/Math.pow(x, re);}", "private static void badApproach() {\n\t\t\n\t\tList<Double> result = new ArrayList<>();\n\t\t\n\t\tThreadLocalRandom.current()\n\t\t\t.doubles(10_000).boxed()\n\t\t\t.forEach(\n\t\t\t\t\td -> NewMath.inv(d)\n\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\tinv -> NewMath.sqrt(inv)\n\t\t\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\t\t\t\tsqrt -> result.add(sqrt)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tSystem.out.println(\"# result = \"+result.size());\n\t\t\n\t}", "private double square(double x) {\r\n return x * x;\r\n }", "private double func(double v){\n double pi = Math.PI;\n return 4.0 * pi\n * Math.pow((M / (2.0 * pi * R * T)) , (3.0/2.0))\n * Math.pow( v , 2.0 )\n * Math.exp((-M * Math.pow( v , 2.0 )) / (2.0 * R * T));\n }", "@Override\n\tpublic void mul(double dx, double dy) {\n\t\t\n\t}", "public void solve_linear(double a,double b, MutableDouble t, MutableLong num)\r\n\t{\r\n\t\t\r\n\t\tif (a==0.0) { //\r\n\t\t\tnum.setValue(0);\r\n\t return;\r\n\t } else {\r\n\t\tnum.setValue(1);\r\n\t t.setValue(-b/a);\r\n\t return;\r\n\t }\r\n\t}", "long mo25071a(long j);", "protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }", "public abstract double compute(double value);", "float mo106363e();" ]
[ "0.6036701", "0.59307075", "0.58919984", "0.5707851", "0.56428856", "0.5435991", "0.54063755", "0.5289539", "0.5252406", "0.5249596", "0.5218735", "0.5196059", "0.51411194", "0.5134016", "0.5122166", "0.5109374", "0.50854236", "0.50803745", "0.5068713", "0.50428104", "0.50366277", "0.50284594", "0.5019612", "0.5015325", "0.5012029", "0.50112563", "0.50103545", "0.5003388", "0.499599", "0.49872878", "0.4984907", "0.49807736", "0.49780974", "0.49744588", "0.49700665", "0.49659947", "0.4965531", "0.49394113", "0.49326363", "0.49186462", "0.49165288", "0.49161646", "0.4906311", "0.48982716", "0.48954117", "0.48927307", "0.4886916", "0.48812047", "0.48778814", "0.48771876", "0.48678312", "0.48492283", "0.48482674", "0.48378953", "0.48308176", "0.48298052", "0.4824291", "0.48038325", "0.47935802", "0.47925702", "0.47878343", "0.47874525", "0.47849348", "0.47832683", "0.47807145", "0.47782043", "0.47686166", "0.47562146", "0.4754019", "0.47537148", "0.47517285", "0.4750644", "0.47490174", "0.47483927", "0.47453824", "0.4735694", "0.47340378", "0.47320867", "0.47293463", "0.47291172", "0.47259438", "0.4725384", "0.47149107", "0.4712886", "0.47078317", "0.47077245", "0.47062635", "0.47060052", "0.47036102", "0.47012803", "0.46992475", "0.46940634", "0.46929815", "0.46910727", "0.46802235", "0.4680056", "0.46798736", "0.46753132", "0.46747404", "0.46705508" ]
0.61712784
0
TODO Autogenerated method stub
@Override public void run() { requestToNet(mGetJobDept, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void requestToNet(String url, ArrayList<NameValuePair> params) { if (super.isConnected()) { super.requestToNet(url, params); } }
{ "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 parseResponse(String result) { try { JSONTokener jsonParser = new JSONTokener(result); // 此时还未读取任何json文本,直接读取就是一个JSONObject对象。 // 如果此时的读取位置在"name" : 了,那么nextValue就是"yuanzhifei89"(String) JSONObject _ResultObject = (JSONObject) jsonParser.nextValue(); int _ResultId = _ResultObject.optInt("result"); if (_ResultId == 0) { String _TextString = _ResultObject.optString("result_text"); mActivity.callBack(mActivity.CallbackError,_TextString); } else if (_ResultId == 1) { mList = new ArrayList<JobDept>(); JSONArray _Array= _ResultObject.optJSONArray("jobdept"); for(int i=0;i<_Array.length();i++){ JSONObject proObject = _Array.optJSONObject(i); JobDept _JobDept = new JobDept(); _JobDept.setmId(proObject.optString("JobDeptID")); _JobDept.setmName(proObject.optString("JobDept")); mList.add(_JobDept); } mActivity.callBack(mActivity.CallbackSuccess,null); } } catch (Exception ex) { // 异常处理代码 mActivity.callBack(mActivity.CallbackError,MSGHANDLERESULTERROR_STRING); ex.printStackTrace(); } }
{ "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
Default constructor creates a new instance with no values set.
public Schedule() { // TODO Auto-generated constructor stub }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Default()\n {}", "defaultConstructor(){}", "void DefaultConstructor(){}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public AllDifferent()\n {\n this(0);\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 Generic(){\n\t\tthis(null);\n\t}", "private Instantiation(){}", "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 Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}", "public None()\n {\n \n }", "public Instance() {\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public Value() {}", "public Account() {\n // special case of the word \"this\"\n this(\"01234\", 0.00, \"Default Name\", \"Default Email\", \"Default Phone\");\n System.out.println(\"Empty constructor called\"); // only called once when instantiated.\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public User() {\r\n this(\"\", \"\");\r\n }", "public Person()\n {\n //intentionally left empty\n }", "public Value() {\n }", "public Student()\r\n {\r\n //This is intended to be empty\r\n }", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public Builder()\n {\n this(\"\", \"\");\n }", "public Basic() {}", "public Model() {\n\t}", "public Model() {\n\t}", "public Constructor(){\n\t\t\n\t}", "public Data() {}", "public State()\n {\n this(\"\");\n }", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public User(){\n this(null, null);\n }", "public Value(){}", "Constructor() {\r\n\t\t \r\n\t }", "public Mapping() { this(null); }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public Vector() {\n construct();\n }", "public Counter()\n {\n this(0);\n }", "public CLElenco() {\n /** rimanda al costruttore di questa classe */\n this(null);\n }", "private Value() {\n\t}", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Complex() {\n this(0);\n }", "public BabbleValue() {}", "public Data() {\n \n }", "public Setting() {\n\t}", "public Data() {\n }", "public Data() {\n }", "public Person() {}", "private Model(){}", "public Property() {\n this(0, 0, 0, 0);\n }", "public Orbiter() {\n }", "public Account() {\n this(null, 0);\n }", "public Pasien() {\r\n }", "public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }", "public Cache() {\n this(null);\n }", "O() { super(null); }", "public LifeComponent() {\n // call other constructor with null param\n this(null);\n }", "public Celula() {\n this(null);\n }", "public Potencial() {\r\n }", "public XMLBuilder()\n\t{\n\t\tthis(\"\");\n\t}", "public Person() {\n\t\t\n\t}", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public MyInteger( )\n {\n this( 0 );\n }", "public D() {}", "public PizzaCutter()\r\n {\r\n //intentionally left blank\r\n }", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "public FruitStand() {}", "public XL() {\n Reporter.log(\"New XL ctor\", true);\n }", "public JsonFactory() { this(null); }", "public Pitonyak_09_02() {\r\n }", "public God() {}", "public Log() { //Null constructor is adequate as all values start at zero\n\t}", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "private Values(){}", "public Waschbecken() {\n this(0, 0);\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "protected SimpleMatrix() {}", "public Analysis() {\n this(\"analysis\", null);\n }", "public Stat()\n {\n // empty constructor\n }", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "public DefaultNashRequestImpl() {\n\t\t\n\t}", "DefaultAttribute()\n {\n }", "public PersonRecord() {}", "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 Person() {\n\t\tthis.name = \"Unknown\"; \n\t}", "public PersonalBoard(){\n this(0);\n }", "protected Settlement() {\n // empty constructor\n }", "public Book() {\n\t\t// Default constructor\n\t}", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public GTFTranslator()\r\n {\r\n // do nothing - no variables to instantiate\r\n }", "public Curso() {\r\n }", "public Dog() {\n // Default constructor\n }", "public List()\n\t{\n\t\tthis(null, null);\n\t}", "public SensorData() {\n\n\t}", "public TennisCoach () {\n\t\tSystem.out.println(\">> inside default constructor.\");\n\t}", "public StudentRecord() {}", "public Entry()\n {\n this(null, null, true);\n }", "public Member() {}", "public Mouse() {\n\t\tthis(null);\n\t}" ]
[ "0.7847449", "0.7320475", "0.726083", "0.7185618", "0.7087912", "0.7000259", "0.69451714", "0.68806934", "0.6868302", "0.68140405", "0.68006545", "0.67993426", "0.6777166", "0.6754818", "0.6734452", "0.6731622", "0.6703459", "0.6689686", "0.6684698", "0.6673776", "0.66688704", "0.6653755", "0.6638499", "0.66374654", "0.6635371", "0.66289175", "0.66289175", "0.6614488", "0.6610231", "0.65873486", "0.65808105", "0.6571934", "0.65660113", "0.6551196", "0.654129", "0.6528207", "0.6519095", "0.6516514", "0.65164596", "0.6504172", "0.6497953", "0.6496184", "0.6494485", "0.64855695", "0.6479636", "0.6465385", "0.6465385", "0.6463437", "0.64435446", "0.64429367", "0.6440396", "0.6432681", "0.64320856", "0.64319754", "0.6430166", "0.6419902", "0.6411069", "0.6408729", "0.64081055", "0.6402182", "0.63954586", "0.63947135", "0.6392844", "0.63902676", "0.6384398", "0.6381713", "0.6376644", "0.6367884", "0.6356625", "0.63565105", "0.6356349", "0.6353274", "0.63527447", "0.6351779", "0.6348058", "0.6347668", "0.6346867", "0.63419527", "0.6339324", "0.63353914", "0.63350147", "0.6333077", "0.63311756", "0.6329729", "0.63291335", "0.6328293", "0.63281184", "0.6326737", "0.63199586", "0.63196796", "0.6315795", "0.63146126", "0.63142186", "0.6313111", "0.63130444", "0.63118774", "0.6311608", "0.63092506", "0.6304507", "0.63041514", "0.6301333" ]
0.0
-1
constructor creates a new instance.
public Schedule(String id, String eventName, String description, String location, String eventType, Date startDate, Date endDate, String startTime, String endTime, Integer remindBefore, String remindTimeType, Integer repeatEvery, boolean sunday, boolean monday, boolean tuesday, boolean wednesday, boolean thursday, boolean friday, boolean saturday,String assignedUser) { this.id = id; this.eventName = eventName; this.description = description; this.location = location; this.eventType = eventType; this.startDate = startDate; this.endDate = endDate; this.startTime = startTime; this.endTime = endTime; this.remindBefore = remindBefore; this.remindTimeType = remindTimeType; this.assignedUser = assignedUser; //this.scheduleEventId = scheduleEventId; //this.scheduleEventName = scheduleEventName; this.repeatEvery = repeatEvery; days.setSunday(sunday); days.setMonday(monday); days.setTuesday(tuesday); days.setWednesday(wednesday); days.setThursday(thursday); days.setFriday(friday); days.setSaturday(saturday); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "public Instance() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "Reproducible newInstance();", "Instance createInstance();", "public Factory() {\n\t\tsuper();\n\t}", "public CyanSus() {\n\n }", "protected abstract void construct();", "public Curso() {\r\n }", "public Odontologo() {\n }", "public ObjectFactory() {\n\t}", "public Model() {\n\t}", "public Model() {\n\t}", "public Pasien() {\r\n }", "public ObjectFactory() {\r\n\t}", "public PSRelation()\n {\n }", "private SingleObject()\r\n {\r\n }", "public Libro() {\r\n }", "private SingleObject(){}", "public Resource() {\n }", "public Resource() {\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "public Livro() {\n\n\t}", "public Implementor(){}", "public OVChipkaart() {\n\n }", "public Chick() {\n\t}", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "public Open() {\n //creates a new open instance\n }", "public SgaexpedbultoImpl()\n {\n }", "public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}", "public Product() {\n\t}", "public Lanceur() {\n\t}", "public Person() {\n\t\t\n\t}", "public Item(){}", "public Phl() {\n }", "public Clade() {}", "public AFMV() {\r\n }", "public Orbiter() {\n }", "public SlanjePoruke() {\n }", "public Aanbieder() {\r\n\t\t}", "public Gasto() {\r\n\t}", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.78934455", "0.7612221", "0.74372256", "0.7297418", "0.72882086", "0.714418", "0.6875179", "0.68524325", "0.67972785", "0.6786665", "0.675484", "0.67524445", "0.6733395", "0.6733395", "0.672838", "0.6726671", "0.67235583", "0.6721021", "0.66979986", "0.66933835", "0.66768146", "0.66768146", "0.66624504", "0.6653015", "0.6648622", "0.6642948", "0.6634527", "0.66326696", "0.6630405", "0.66192186", "0.6618284", "0.66163087", "0.66108674", "0.66068566", "0.66053706", "0.6603938", "0.660312", "0.66022414", "0.65985024", "0.659827", "0.6588077", "0.6587474", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057", "0.65851057" ]
0.0
-1
visit classes just once each
private void visitAdditionalEntrypoints() { LinkedHashSet<jq_Class> extraClasses = new LinkedHashSet<jq_Class>(); for(jq_Method m: publicMethods) { extraClasses.add(m.getDeclaringClass()); } for(jq_Class cl: extraClasses) { visitClass(cl); jq_Method ctor = cl.getInitializer(new jq_NameAndDesc("<init>", "()V")); if (ctor != null) visitMethod(ctor); } for(jq_Method m: publicMethods) { visitMethod(m); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object VisitClasses(ASTClasses classes){\n for (int i = 0; i <classes.size(); i++) {\n classes.elementAt(i).Accept(this);\n }\n return null;\n }", "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "@Override\n\tpublic Void visit(ClassDef classDef) {\n\t\tprintIndent(\"class\");\n\t\tindent++;\n\t\tclassDef.self_type.accept(this);\n\t\tclassDef.base_type.accept(this);\n\t\tfor (var v : classDef.body)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void visitJavaClass(JavaClass javaClass) {\n\t\t\r\n\t\t\r\n\t\tvisitClassName=javaClass.getClassName();\r\n\t\t\r\n\t\t//log.debug(\"className:+\"+visitClassName);\r\n\t\tsuper.visitJavaClass(javaClass);\r\n\t\t\r\n\t}", "private void onClassesFound(List<UMDClass> classes) {\n\t}", "@Override\r\n\tpublic void visit(ast.program.Program p) {\r\n\t\t// ////////////////////////////////////////////////\r\n\t\t// step 1: build a symbol table for class (the class table)\r\n\t\t// a class table is a mapping from class names to class bindings\r\n\t\t// classTable: className -> ClassBinding{extends, fields, methods}\r\n\t\tbuildMainClass((ast.mainClass.MainClass) p.mainClass);\r\n\t\tfor (ast.classs.T c : p.classes) {\r\n\t\t\tbuildClass((ast.classs.Class) c);\r\n\t\t}\r\n\r\n\t\t// we can double check that the class table is OK!\r\n\t\tif (control.Control.elabClassTable) {\r\n\t\t\tthis.classTable.dump();\r\n\t\t}\r\n\r\n\t\t// ////////////////////////////////////////////////\r\n\t\t// step 2: elaborate each class in turn, under the class table\r\n\t\t// built above.\r\n\t\tp.mainClass.accept(this);\r\n\t\tfor (ast.classs.T c : p.classes) {\r\n\t\t\tc.accept(this);\r\n\t\t}\r\n\t}", "void initClasses() {\n\t\tif (programUnit == null) return;\n\n\t\t// Add all classes\n\t\tList<BdsNode> cdecls = BdsNodeWalker.findNodes(programUnit, ClassDeclaration.class, true, true);\n\t\tfor (BdsNode n : cdecls) {\n\t\t\tClassDeclaration cd = (ClassDeclaration) n;\n\t\t\tbdsvm.addType(cd.getType());\n\t\t}\n\t}", "public void visit(ClassDeclExtends node) {\n Symbol key = Symbol.symbol(node.name.s);\n ClassInfo data = new ClassInfo(key);\n\n // Chama o firstPass() para as variaveis\n VarDeclListHandler.firstPass(env, data, node.varList);\n\n // Chama o firstPass() para os metodos\n MethodDeclListHandler.firstPass(env, data, node.methodList);\n\n // Insere a classe na tabela\n if (!env.classes.put(key, data)) {\n env.err.Error(node, new Object[] {\"Nome de classe redefinido: \" + key});\n }\n }", "@Override\n public void visitClass(@NotNull PsiClass aClass) {\n }", "private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }", "@Override\r\n public void process(CtClass<?> clazz) {\r\n this.processClass(clazz);\r\n }", "public void visit(ClassDeclSimple node) {\n\t Symbol key = Symbol.symbol(node.name.s);\n\t ClassInfo data = new ClassInfo(key);\n\n\t // Chama o firstPass() para as variaveis\n\t VarDeclListHandler.firstPass(env, data, node.varList);\n\n\t // Chama o firstPass() para os metodos\n\t MethodDeclListHandler.firstPass(env, data, node.methodList);\n\n\t // Insere a classe na tabela\n\t if (!env.classes.put(key, data)) {\n\t env.err.Error(node, new Object[] {\"Nome de classe redefinido: \" + key});\n\t }\n\t }", "@Override\n public void visit(ClassDefinitionNode classDefinitionNode) {\n }", "@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "public static void firstPass(Env e, List<ClassDecl> classList) {\n ClassDecl cd;\n while (classList != null) {\n cd = classList.head;\n ClassDeclHandler.firstPass(e, cd); // chama firstPass para poder visitar cada ClassDecl\n classList = classList.tail;\n }\n }", "public abstract List<String> scanAllClassNames();", "@Override\n\tpublic void inAClass(AClass node) {\n\t\tString className = node.getType().getText();\n\t\tcurrentClass = topLevelSymbolTable.get(className);\n\t\tif (currentClass.isAbstract()){\n\t\t\tcg = new ClassGen(className, currentClass.getSuper().getType().className, this.fileName, Constants.ACC_PUBLIC | Constants.ACC_SUPER | Constants.ACC_ABSTRACT, null);\n\t\t}else{\n\t\t\tcg = new ClassGen(className, currentClass.getSuper().getType().className, this.fileName, Constants.ACC_PUBLIC | Constants.ACC_SUPER, null);\n\t\t}\n\t\tcp = cg.getConstantPool(); \n\t}", "Object getClass_();", "Object getClass_();", "public abstract void visit();", "@Override\n\tpublic void visit(Instanceof n) {\n\t\t\n\t}", "public void visit(Instanceof i) {}", "public void processClasses(CompilationUnit cu) {\n\t\t\n\t\tif(cu.getStorage().get().getFileName().equals(\"package-info.java\")) {\n\t\t\tthis.packageInfo = cu;\n\t\t}else {\n\t\t\tthis.cus.add(cu);\n\t\t}\n\t\tfor(TypeDeclaration<?> node : cu.findAll(TypeDeclaration.class)) {\n\t\t\tthis.classes.put(node.getNameAsString(), new ClassAST(node, this));\n\t\t}\n\t}", "private void connectClasses(Header [] list)\r\n {\r\n Vector queue;\r\n Vector garbage = new Vector();\r\n\r\n Find.setCrossreference(list);\r\n\r\n for(int i = 0; list != null && i < list.length; i++)\r\n {\r\n queue = list[i].scopes;\r\n\r\n for(int j = 0; j < queue.size(); j++)\r\n for(Iterator iter = ((Scope)queue.get(j)).iterator(); iter.hasNext();)\r\n {\r\n Iterator a = null;\r\n Basic x = (Basic)iter.next();\r\n\r\n if (x instanceof ClassType)\r\n {\r\n ClassType y = (ClassType)x;\r\n ClassType [] z;\r\n boolean done = false;\r\n String st = null;\r\n\r\n if (y.extend != null && y.extend.name != null && y.extend.scope == null)\r\n { // look for superclass\r\n st = y.extend.name.string;\r\n for(a = y.unresolved.iterator(); a.hasNext();)\r\n {\r\n String s = (String)a.next();\r\n if (s.endsWith('.' + st))\r\n {\r\n st = s;\r\n break;\r\n }\r\n }\r\n\r\n z = Find.findClass(st, 0, y.scope);\r\n \r\n for(int k = 0; k < z.length; k++)\r\n if (z[k].scope.javaPath(\"\").endsWith(st) || z[k].scope.buildPath(\"\").endsWith(st))\r\n {\r\n y.extend = z[k];\r\n garbage.add(st);\r\n done = true;\r\n }\r\n }\r\n\r\n for(int k = 0; k < y.implement.length; k++)\r\n if (y.implement[k].name != null && y.implement[k].scope == null)\r\n { // look for interface\r\n st = y.implement[k].name.string;\r\n for(a = y.unresolved.iterator(); a.hasNext();)\r\n {\r\n String s = (String)a.next();\r\n if (s.endsWith('.' + st))\r\n {\r\n st = s;\r\n break;\r\n }\r\n }\r\n done = false;\r\n \r\n z = Find.findClass(st, 0, y.scope);\r\n \r\n for(int l = 0; l < z.length && !done; l++)\r\n if (z[l].scope.javaPath(\"\").endsWith(st) || z[l].scope.buildPath(\"\").endsWith(st))\r\n {\r\n y.implement[k] = z[l];\r\n garbage.add(st);\r\n done = true;\r\n break;\r\n }\r\n }\r\n\r\n a = null;\r\n while(garbage.size() > 0)\r\n {\r\n st = (String)garbage.get(0);\r\n garbage.remove(0);\r\n y.unresolved.remove(st);\r\n }\r\n }\r\n }\r\n }\r\n }", "void genMutants() {\n\tif (comp_unit == null) {\n\t System.err.println(original_file + \" is skipped.\");\n\t}\n\tClassDeclarationList cdecls = comp_unit.getClassDeclarations();\n\n\tif (cdecls == null || cdecls.size() == 0)\n\t return;\n\n\tif (classOp != null && classOp.length > 0) {\n\t Debug.println(\"* Generating class mutants\");\n\t MutationSystem.clearPreviousClassMutants();\n\t MutationSystem.MUTANT_PATH = MutationSystem.CLASS_MUTANT_PATH;\n\t CodeChangeLog.openLogFile();\n\t genClassMutants(cdecls);\n\t CodeChangeLog.closeLogFile();\n\t}\n }", "public void processClass(CtType<?> clazz) {\r\n try {\r\n // Check if it only needs to parse added files.\r\n // If null process all given classes\r\n if (parser.getAddedFiles() != null) {\r\n // Check if the current class is in an added file.\r\n // If not we do not have to process it.\r\n if (!parser.getAddedFiles().contains(\r\n clazz.getPosition().getFile()\r\n )) {\r\n return;\r\n }\r\n }\r\n\r\n // Try to get the vertex by name\r\n VertexClass vertex = VertexClass.getVertexClassByName(\r\n framedGraph, clazz.getQualifiedName()\r\n );\r\n\r\n // Check if the class exists, if not create it.\r\n if (vertex == null) {\r\n vertex = VertexClass.createSystemClass(framedGraph, clazz);\r\n }\r\n\r\n // Check if the vertex has a belonging package, if not add it.\r\n if (vertex.getBelongsToPackage() == null) {\r\n\r\n CtTypeReference cur = clazz.getReference();\r\n while (cur.getPackage() == null) {\r\n cur = cur.getDeclaringType();\r\n }\r\n // Try to get the package by name\r\n VertexPackage packageVertex = VertexPackage.getVertexPackageByName(\r\n framedGraph, cur.getPackage().getQualifiedName()\r\n );\r\n\r\n // Check if the package exists, if not create it.\r\n if (packageVertex == null) {\r\n packageVertex = VertexPackage.createVertexPackage(\r\n framedGraph, cur.getPackage()\r\n );\r\n }\r\n\r\n vertex.setBelongsTo(packageVertex);\r\n vertex.setLinesOfCode(countLOC(clazz));\r\n }\r\n }catch (Exception e){\r\n LOGGER.error(\"Spoon error while analysing class \" + clazz.getQualifiedName() + \": \" + e.getMessage());\r\n }\r\n\r\n }", "private void describeClassTree(Class<?> inputClass, Set<Class<?>> setOfClasses) {\r\n // can't map null class\r\n if (inputClass == null) {\r\n return;\r\n }\r\n\r\n // don't further analyze a class that has been analyzed already\r\n if (Object.class.equals(inputClass) || setOfClasses.contains(inputClass)) {\r\n return;\r\n }\r\n\r\n // add to analysis set\r\n setOfClasses.add(inputClass);\r\n\r\n // perform super class analysis\r\n describeClassTree(inputClass.getSuperclass(), setOfClasses);\r\n\r\n // perform analysis on interfaces\r\n for (Class<?> hasInterface : inputClass.getInterfaces()) {\r\n describeClassTree(hasInterface, setOfClasses);\r\n }\r\n }", "public void doClass(String callerName) throws LexemeException {\n\t\tlogMessage(\"<class>--> class ID [extends ID]{{<member>}}\");\n\t\tfunctionStack.push(\"<class>\");\n\t\tconsumeToken(); // consume class token\n\t\t// check ID token\n\t\tif (ifPeekThenConsume(\"ID_\")) {\n\t\t\t// check for optional EXTENDS_ token\n\t\t\tif (ifPeek(\"EXTENDS_\")) {\n\t\t\t\tconsumeToken();\n\t\t\t\tifPeekThenConsume(\"ID_\");\n\t\t\t}\n\t\t\t// check for left curly\n\t\t\tif (ifPeekThenConsume(\"L_CURLY_\")) {\n\n\t\t\t\twhile (ifPeek(\"PUBLIC_\") || ifPeek(\"STATIC_\") || ifPeekIsType()) {\n\t\t\t\t\t// check for optional PUBLIC_ & STATIC_ tokens\n\t\t\t\t\tif (ifPeek(\"PUBLIC_\") || ifPeek(\"STATIC_\")) {\n\t\t\t\t\t\tdoMember(\"<class>\");\n\t\t\t\t\t} else if (ifPeekIsType()) {\n\t\t\t\t\t\tdoMember(\"<class>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO check for arraytype!!\n\t\t\t\t// CHECK ClOSING CURLY\n\n\t\t\t\t// TODO uncomment line\n\t\t\t\tifPeekThenConsume(\"R_CURLY_\");\n\t\t\t}\n\n\t\t}\n\t\tlogVerboseMessage(callerName);\n\t\tfunctionStack.pop();\n\t}", "void genClassMutants(ClassDeclarationList cdecls) {\n\tgenClassMutants1(cdecls);\n\tgenClassMutants2(cdecls);\n }", "public void firstClass(){\n }", "private void setClasses(OWLClass cls, int depth, Set<String> supers) {\n\n\t\tif (depth > 0) {\n\t\t\tString nm = render(cls);\n\t\t\tsupersInfo.put(nm, supers);\n\t\t\tSet<OWLClass> children = theProvider.getDescendants(cls);\n\t\t\tString lbl = (children.size() > 0 && depth == 1) ? nm + \"+\" : nm;\n\t\t\tPair<String, OWLClass> nameInfo = new Pair<String, OWLClass>(lbl,\n\t\t\t\t\tcls);\n\t\t\tclassMap.put(nm, nameInfo);\n\t\t\tif (depth > 1) {\n\t\t\t\tSet<String> supers2 = new HashSet<String>(supers);\n\t\t\t\tsupers2.add(nm);\n\t\t\t\tint newDepth = --depth;\n\t\t\t\tfor (OWLClass sub : theProvider.getChildren(cls)) {\n\t\t\t\t\tsetClasses(sub, newDepth, supers2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// collect the spiders info\n\t\t\tSet<OWLIndividual> inds = cls.getIndividuals(mgr\n\t\t\t\t\t.getActiveOntologies());\n\t\t\t// TODO all individuals are reported as belonging to Thing, but not\n\t\t\t// to the other\n\t\t\t// superclasses of the class within which they are actually defined.\n\t\t\t// For now,\n\t\t\t// only show spiders for the actual class, c, within which they are\n\t\t\t// defined, and work\n\t\t\t// out how to show spiders in any superclass of c later on\n\t\t\tif (showSpiders && !inds.isEmpty() && !nm.equals(\"Thing\")) {\n\t\t\t\tArrayList<Pair<String, List<CVizZone>>> spInfo = new ArrayList<Pair<String, List<CVizZone>>>();\n\t\t\t\tfor (OWLIndividual i : inds) {\n\t\t\t\t\tif (i.isNamed()) {\n\t\t\t\t\t\tspInfo.add(new Pair<String, List<CVizZone>>(ren\n\t\t\t\t\t\t\t\t.render((OWLEntity) i),\n\t\t\t\t\t\t\t\tnew ArrayList<CVizZone>()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindMap.put(nm, spInfo);\n\t\t\t}\n\t\t\t// collect the children info\n\t\t\tSet<String> childrenStr = new HashSet<String>();\n\t\t\tIterator<OWLClass> it = children.iterator();\n\t\t\tOWLClass c;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tchildrenStr.add(render(it.next()));\n\t\t\t}\n\t\t\tchildrenInfo.put(nm, childrenStr);\n\n\t\t\t// collect the disjointness info\n\t\t\tNodeSet<OWLClass> ds = theReasoner.getDisjointClasses(cls);\n\t\t\tSet<String> disjoints = new HashSet<String>();\n\t\t\tIterator<Node<OWLClass>> it2 = ds.iterator();\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tc = it2.next().getRepresentativeElement();\n\t\t\t\tdisjoints.add(render(c));\n\t\t\t}\n\t\t\tif (disjoints.size() > 0)\n\t\t\t\tdisjointsInfo.put(nm, disjoints);\n\t\t\t// collect the equivalent classes info\n\t\t\tNode<OWLClass> equivs = theReasoner.getEquivalentClasses(cls);\n\t\t\tif (!equivs.isSingleton())\n\t\t\t\tequivsInfo.put(nm, new HashSet<OWLClass>(equivs.getEntities()));\n\t\t\t// collect the union classes info\n\t\t\tSet<OWLEquivalentClassesAxiom> eq;\n\t\t\tfor (OWLOntology ont : activeOntologies) {\n\t\t\t\teq = ont.getEquivalentClassesAxioms(cls);\n\t\t\t\tif (eq.size() > 0) {\n\t\t\t\t\tfor (OWLEquivalentClassesAxiom a : eq) {\n\t\t\t\t\t\tboolean isUnion = true;\n\t\t\t\t\t\tClassExpressionType t;\n\t\t\t\t\t\tfor (OWLClassExpression e : a.getClassExpressions()) {\n\t\t\t\t\t\t\tt = e.getClassExpressionType();\n\t\t\t\t\t\t\tif (!(t.equals(ClassExpressionType.OWL_CLASS) || t\n\t\t\t\t\t\t\t\t\t.equals(ClassExpressionType.OBJECT_UNION_OF))) {\n\t\t\t\t\t\t\t\tisUnion = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isUnion) {\n\t\t\t\t\t\t\tSet<OWLClass> us = a.getClassesInSignature();\n\t\t\t\t\t\t\tus.remove(cls);\n\t\t\t\t\t\t\tif (us.size() > 0)\n\t\t\t\t\t\t\t\tunionsInfo.put(render(cls), us);\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\t// collect the inconsistent classes info\n\t\t\tif (!theReasoner.isSatisfiable(cls)) {\n\t\t\t\tinconsistentClasses.add(nm);\n\t\t\t}\n\t\t}\n\t}", "public void onScanClasses(Set<Class<?>> parentClasses, Class<?> clazz, Object instance);", "public void clearAuxClasss();", "private static void processClass(File file_name, final Histogram class_use, final Histogram method_use) {\n try {\n final InputStream object_stream=new FileInputStream(file_name);\n MethodCallEnumerator.analyzeClass(object_stream,class_use,method_use);\n object_stream.close();\n } catch (Exception e) {\n throw new IllegalStateException(\"while processing: \" + e);\n }\n }", "public Object visit(Class_ node){\n currentClass = node.getName();\n ClassTreeNode treeNode = classMap.get(currentClass);\n\n treeNode.getMethodSymbolTable().enterScope();\n treeNode.getVarSymbolTable().enterScope();\n\n super.visit(node);\n //treeNode.getMethodSymbolTable().exitScope();\n treeNode.getVarSymbolTable().exitScope();\n return null;\n }", "private Set<Class<?>> describeClassTree(Class<?> inputClass) {\r\n if (inputClass == null) {\r\n return Collections.emptySet();\r\n }\r\n\r\n // create result collector\r\n Set<Class<?>> classes = Sets.newLinkedHashSet();\r\n\r\n // describe tree\r\n describeClassTree(inputClass, classes);\r\n\r\n return classes;\r\n }", "@Override\n public ASTNode visitCoolClass(CoolParser.CoolClassContext ctx) {\n List<FeatureNode> featureNodes = new LinkedList<>();\n for (var feature : ctx.feature()) {\n featureNodes.add((FeatureNode) feature.accept(this));\n }\n\n return new CoolClassNode(\n ctx.CLASS().getSymbol(),\n new IdNode(ctx.id),\n ctx.parentClass == null ? null : new TypeNode(ctx.parentClass),\n featureNodes);\n }", "@Override\n\tpublic void visit(OWLClass cls) {\n\t\taddFact(RewritingVocabulary.CLASS, cls.getIRI());\n\t}", "@Override\r\n\tpublic void transform(ClassNode cn) {\n\t\t\r\n\t}", "@Override\n public Object visitProgram(Program p) {\n\t //set our temporary class\n\t Object temp = super.visitProgram(p);\n\n\t //throw err if we see String or RunMain\n if (!globalSymTab.get(\"String\").subclasses.isEmpty()) {\n errorMsg.error(p.pos, \"Cannot have String as superclass\");\n }\n if (!globalSymTab.get(\"RunMain\").subclasses.isEmpty()) {\n errorMsg.error(p.pos, \"Cannot have RunMain as superclass\");\n }\n\n //check for cycles in all of the program's class decls\n for(ClassDecl decl : p.classDecls) {\n findCycles(decl.superLink , decl.name, globalSymTab.size() -1 );\n }\n\n return temp;\n }", "void replaceClasses(Class current, Class replacement);", "private void buildGraph(Classes classes) {\n \t\n\tadjacencyList.put(TreeConstants.Object_.getString(), new ArrayList<String>() );\n\t//add primitives to the children of object\n ArrayList<String> objectlist = adjacencyList.get(TreeConstants.Object_.getString());\n objectlist.add(TreeConstants.IO.getString());\n objectlist.add(TreeConstants.Int.getString());\n objectlist.add(TreeConstants.Bool.getString());\n objectlist.add(TreeConstants.Str.getString());\n adjacencyList.put(TreeConstants.Object_.getString(), objectlist);\n \tfor (Enumeration e = classes.getElements(); e.hasMoreElements(); ) {\n \t class_c currentClass = ((class_c)e.nextElement());\n \n \t // If the same class name is already present, that's a redefinition error\n \t String className = currentClass.getName().toString();\n \t if (!nameToClass.containsKey(className)) {\n \t \tnameToClass.put(currentClass.getName().toString(), currentClass);\n \t } else {\n \t \tsemantError(currentClass).println(\"Class \" + className + \" was previously defined\");\n \t \tcontinue;\n \t }\n \t // if parent already present in HashMap, append child to list of children\n \t String parent = currentClass.getParent().toString();\n \t if ( !adjacencyList.containsKey(parent) ) {\n \t\tadjacencyList.put(parent, new ArrayList<String>() );\n \t }\n \t adjacencyList.get(parent).add(currentClass.getName().toString());\n \t}\n \n // Check if each parent in a parent-child inheritance is a valid class\n HashSet<String> bogusClasses = new HashSet<String>();\n for (String parent : adjacencyList.keySet()) {\n \tif (!nameToClass.containsKey(parent)) {\n \t\tfor (String child: adjacencyList.get(parent)) {\n \t\t\tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" inherits from an undefined class \" + parent);\n \t\t}\n \t\t// Remove the bogus parent class from the graph\n \t\tbogusClasses.add(parent);\n \t}\n }\n // Remove the bogus parent class from the graph\n for (String bogus : bogusClasses) {\n \tadjacencyList.remove(bogus);\n }\n if (Flags.semant_debug) {\n \tSystem.out.println(\"Pruned out unreachable classes\");\n }\n \n // Also check if someone's inheriting from the Basic classes other than Object & IO\n for (String child : adjacencyList.get(TreeConstants.Int.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Int\");\n }\n for (String child : adjacencyList.get(TreeConstants.Str.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Str\");\n }\n for (String child : adjacencyList.get(TreeConstants.Bool.getString())) {\n \tsemantError(nameToClass.get(child)).println(\"Class \" + child + \" illegally inherits from class Bool\");\n }\n // No point in continuing further. The above classes are going to propagate more errors\n if (Flags.semant_debug) {\n \tSystem.out.println(\"Checked for simple inheritance errors\");\n }\n if (errors()) {\n \treturn;\n }\n \n \t// Now check for cycles\n \t// Do the depth first search of this adjacency list starting from Object\n \tHashMap<String, Boolean> visited = new HashMap<String, Boolean>();\n \tfor (String key : adjacencyList.keySet() ) {\n \t\tvisited.put(key, false);\n \t\tfor ( String value : adjacencyList.get(key) ) {\n \t\t\tvisited.put(value, false);\n \t\t}\n \t}\n \tdepthFirstSearch(visited, TreeConstants.Object_.toString());\n \t// It is legal to inherit from the IO class. So mark classes down that tree as well\n\t\n\t/*depthFirstSearch(visited, TreeConstants.IO.getString());\n \t// Check for unreachable components - unreachable classes are cycles\n \t// Except the Bool, IO, Int and String. Hack - set them to true\n \tvisited.put(TreeConstants.IO.getString(), true);\n \tvisited.put(TreeConstants.Bool.getString(), true);\n \tvisited.put(TreeConstants.Str.getString(), true);\n \tvisited.put(TreeConstants.Int.getString(), true);\n\t*/\n \tfor (String key : visited.keySet()) {\n \t\tif (!visited.get(key)) {\n \t\t\tsemantError(nameToClass.get(key)).println(\"Class \" + key + \" or an ancestor is involved in an inheritance cycle.\");\n \t\t}\n \t} \n \n \tif (Flags.semant_debug) {\n \t\tSystem.out.println(\"Checked for cycles\");\n \t}\n \t}", "public LlvmValue visit(MainClass n){\n\tclasses.put(n.className.s, new ClassNode(n.className.s, null, null));\n\t//System.out.format(\"Comecando o preenchimento da symtab MainClass22...\\n\");\n\treturn null;\n}", "public void compileMutants() {\n\tif (classOp != null && classOp.length > 0) {\n\t Debug.println(\"* Compiling class mutants into bytecode\");\n\t MutationSystem.MUTANT_PATH = MutationSystem.CLASS_MUTANT_PATH;\n\t super.compileMutants();\n\t}\n }", "private void findAllSubclassesOneClass(Class theClass,\r\n\t\t\tList listAllClasses, List listSubClasses) {\r\n\t\tfindAllSubclassesOneClass(theClass, listAllClasses, listSubClasses,\r\n\t\t\t\tfalse);\r\n\t}", "private void scan() {\n if (classRefs != null)\n return;\n // Store ids rather than names to avoid multiple name building.\n Set classIDs = new HashSet();\n Set methodIDs = new HashSet();\n\n codePaths = 1; // there has to be at least one...\n\n offset = 0;\n int max = codeBytes.length;\n\twhile (offset < max) {\n\t int bcode = at(0);\n\t if (bcode == bc_wide) {\n\t\tbcode = at(1);\n\t\tint arg = shortAt(2);\n\t\tswitch (bcode) {\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret:\n\t\t\toffset += 4;\n\t\t\tbreak;\n\n\t\t case bc_iinc:\n\t\t\toffset += 6;\n\t\t\tbreak;\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t } else {\n\t\tswitch (bcode) {\n // These bcodes have CONSTANT_Class arguments\n case bc_instanceof: \n case bc_checkcast: case bc_new:\n {\n\t\t\tint index = shortAt(1);\n classIDs.add(new Integer(index));\n\t\t\toffset += 3;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_putstatic: case bc_getstatic:\n case bc_putfield: case bc_getfield: {\n\t\t\tint index = shortAt(1);\n CPFieldInfo fi = (CPFieldInfo)cpool.get(index);\n classIDs.add(new Integer(fi.getClassID()));\n\t\t\toffset += 3;\n\t\t\tbreak;\n }\n\n // These bcodes have CONSTANT_MethodRef_info arguments\n\t\t case bc_invokevirtual: case bc_invokespecial:\n case bc_invokestatic:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_jsr_w:\n\t\t case bc_invokeinterface:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n // Branch instructions\n\t\t case bc_ifeq: case bc_ifge: case bc_ifgt:\n\t\t case bc_ifle: case bc_iflt: case bc_ifne:\n\t\t case bc_if_icmpeq: case bc_if_icmpne: case bc_if_icmpge:\n\t\t case bc_if_icmpgt: case bc_if_icmple: case bc_if_icmplt:\n\t\t case bc_if_acmpeq: case bc_if_acmpne:\n\t\t case bc_ifnull: case bc_ifnonnull:\n\t\t case bc_jsr:\n codePaths++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n case bc_lcmp: case bc_fcmpl: case bc_fcmpg:\n case bc_dcmpl: case bc_dcmpg:\n codePaths++;\n\t\t\toffset++;\n break;\n\n\t\t case bc_tableswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tlong low = intAt(tbl, 1);\n\t\t\tlong high = intAt(tbl, 2);\n\t\t\ttbl += 3 << 2; \t\t\t// three int header\n\n // Find number of unique table addresses.\n // The default path is skipped so we find the\n // number of alternative paths here.\n Set set = new HashSet();\n int length = (int)(high - low + 1);\n for (int i = 0; i < length; i++) {\n int jumpAddr = (int)intAt (tbl, i) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n\n\t\t\toffset = tbl + (int)((high - low + 1) << 2);\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_lookupswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tint npairs = (int)intAt(tbl, 1);\n\t\t\tint nints = npairs * 2;\n\t\t\ttbl += 2 << 2; \t\t\t// two int header\n\n // Find number of unique table addresses\n Set set = new HashSet();\n for (int i = 0; i < nints; i += 2) {\n // use the address half of each pair\n int jumpAddr = (int)intAt (tbl, i + 1) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n \n\t\t\toffset = tbl + (nints << 2);\n\t\t\tbreak;\n\t\t }\n\n // Ignore other bcodes.\n\t\t case bc_anewarray: \n offset += 3;\n break;\n\n\t\t case bc_multianewarray: {\n\t\t\toffset += 4;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret: case bc_newarray:\n\t\t case bc_bipush: case bc_ldc:\n\t\t\toffset += 2;\n\t\t\tbreak;\n\t\t \n\t\t case bc_iinc: case bc_sipush:\n\t\t case bc_ldc_w: case bc_ldc2_w:\n\t\t case bc_goto:\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_goto_w:\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t }\n\t}\n classRefs = expandClassNames(classIDs);\n methodRefs = expandMethodNames(methodIDs);\n }", "private void gatherInformation(String className, byte[] bytes) {\n ClassReader reader = new ClassReader(bytes);\n ClassWriter writer = new NonClassloadingClassWriter(reader, ClassWriter.COMPUTE_FRAMES);\n ClassVisitor visitor = new ClassInformationAdapter(writer, methodInformation);\n reader.accept(visitor, 0);\n }", "void genClassMutants2(ClassDeclarationList cdecls) {\n\tfor (int j = 0; j < cdecls.size(); ++j) {\n\t ClassDeclaration cdecl = cdecls.get(j);\n\t if (cdecl.getName().equals(MutationSystem.CLASS_NAME)) {\n\t\tDeclAnalyzer mutant_op;\n\n\t\tif (hasOperator(classOp, \"IHD\")) {\n\t\t Debug.println(\" Applying IHD ... ... \");\n\t\t mutant_op = new IHD(file_env, null, cdecl);\n\t\t generateMutant(mutant_op);\n\n\t\t if (((IHD) mutant_op).getTotal() > 0)\n\t\t\texistIHD = true;\n\t\t}\n\n\t\tif (hasOperator(classOp, \"IHI\")) {\n\t\t Debug.println(\" Applying IHI ... ... \");\n\t\t mutant_op = new IHI(file_env, null, cdecl);\n\t\t generateMutant(mutant_op);\n\t\t}\n\n\t\tif (hasOperator(classOp, \"IOD\")) {\n\t\t Debug.println(\" Applying IOD ... ... \");\n\t\t mutant_op = new IOD(file_env, null, cdecl);\n\t\t generateMutant(mutant_op);\n\t\t}\n\n\t\tif (hasOperator(classOp, \"OMR\")) {\n\t\t Debug.println(\" Applying OMR ... ... \");\n\t\t mutant_op = new OMR(file_env, null, cdecl);\n\t\t generateMutant(mutant_op);\n\t\t}\n\n\t\tif (hasOperator(classOp, \"OMD\")) {\n\t\t Debug.println(\" Applying OMD ... ... \");\n\t\t mutant_op = new OMD(file_env, null, cdecl);\n\t\t generateMutant(mutant_op);\n\t\t}\n\n\t\tif (hasOperator(classOp, \"JDC\")) {\n\t\t Debug.println(\" Applying JDC ... ... \");\n\t\t mutant_op = new JDC(file_env, null, cdecl);\n\t\t generateMutant(mutant_op);\n\t\t}\n\t }\n\t}\n }", "void accept(RebaseJavaVisitor v)\n{\n v.preVisit(this);\n if (!v.preVisit2(this)) return;\n\n if (v.visit(this)) {\n for (CompilationUnit cu : getTrees()) {\n\t cu.accept(v);\n }\n }\n\n v.postVisit(this);\n}", "@Override\n public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnvironment) {\n\n // Scanner class to scan through various component elements\n CodeAnalyzerTreeVisitor visitor = new CodeAnalyzerTreeVisitor();\n\n //long startTime = System.currentTimeMillis();\n\n for (Element e : roundEnvironment.getRootElements()) {\n TreePath tp = trees.getPath(e);\n // invoke the scanner\n try {\n visitor.scan(tp, trees);\n } catch (Exception e1) {\n e1.printStackTrace();\n LOG.error(String.valueOf(e1));\n }\n\n AccessHelper accessHelper = AccessHelper.getInstance();\n accessHelper.addToMap(e.getSimpleName().toString());\n accessHelper.printTree();\n }\n return true;\n }", "private static void getClassHierarchyRecurs(Class clazz, boolean flag) {\n Class classFirst = null;\n if (flag) {\n classFirst = clazz;\n }\n if (clazz != null) {\n clazz = clazz.getSuperclass();\n getClassHierarchyRecurs(clazz, false);\n }\n if (clazz != null) {\n System.out.println(clazz.getName());\n System.out.println(\" ^\");\n System.out.println(\" |\");\n }\n if (classFirst != null) {\n System.out.println(classFirst.getName());\n }\n }", "@InnerAccess void visitEnd ()\n\t{\n\t\tclassWriter.visitEnd();\n\t}", "@Test\r\n\tpublic void testProcessPass1()\r\n\t{\r\n\t\tToken t1 = new Token(TokenTypes.EXP4.name(), 1, null);\r\n\t\tToken t2 = new Token(TokenTypes.OP4.name(), 1, null);\r\n\t\tToken t3 = new Token(TokenTypes.EXP5.name(), 1, null);\r\n\t\tt3.setType(\"INT\");\r\n\t\tArrayList<Token> tkns = new ArrayList<Token>();\r\n\t\ttkns.add(t1);\r\n\t\ttkns.add(t2);\t\t\t\r\n\t\ttkns.add(t3);\r\n\t\t\r\n\t\tToken t4 = new Token(TokenTypes.EXP4.name(), 1, tkns);\r\n\t\tClass c1 = new Class(\"ClassName\", null, null);\r\n\t\tPublicMethod pm = new PublicMethod(\"MethodName\", null, VariableType.BOOLEAN, null);\r\n\t\tt4.setParentMethod(pm);\r\n\t\tt4.setParentClass(c1);\r\n\r\n\t\tToken.pass1(t4);\r\n\t\t\r\n\t\tfor(int i = 0; i < t4.getChildren().size(); i++){\r\n\t\t\tToken child = t4.getChildren().get(i);\r\n\t\t\t\r\n\t\t\tassertEquals(child.getParentClass().getName(), t4.getParentClass().getName());\r\n\t\t\tassertEquals(child.getParentMethod(), t4.getParentMethod());\r\n\t\t}\r\n\t\t\r\n\t\tassertEquals(t4.getType(), \"INT\");\r\n\t}", "private void scanClassMap() {\n Set<Class<?>> classSet = reflections.getTypesAnnotatedWith(Redis.class);\n for (Class cl : classSet) {\n RedisInfo redisInfo = new RedisInfo();\n Redis redis = (Redis) cl.getAnnotation(Redis.class);\n redisInfo.setCls(cl);\n redisInfo.setTableName(redis.name());\n redisInfo.setIncrName(redis.IncrName());\n redisInfo.setDbName(redis.dbName());\n redisInfo.setImmediately(redis.immediately());\n redisInfo.setIncr(redis.incrId());\n redisInfo.setDelete(redis.delete());\n try {\n classMap.put(redis.name(), redisInfo);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "@Test\n public void test1() throws ClassNotFoundException {\n DebugContext debug = getDebugContext();\n for (int i = 0; i < 2; i++) {\n ClassTemplateLoader loader = new ClassTemplateLoader(debug);\n checkForRegisterFinalizeNode(loader.findClass(\"NoFinalizerEverAAAA\"), true, AllowAssumptions.NO);\n checkForRegisterFinalizeNode(loader.findClass(\"NoFinalizerEverAAAA\"), false, AllowAssumptions.YES);\n\n checkForRegisterFinalizeNode(loader.findClass(\"NoFinalizerYetAAAA\"), false, AllowAssumptions.YES);\n\n checkForRegisterFinalizeNode(loader.findClass(\"WithFinalizerAAAA\"), true, AllowAssumptions.YES);\n checkForRegisterFinalizeNode(loader.findClass(\"NoFinalizerYetAAAA\"), true, AllowAssumptions.YES);\n }\n }", "private static Iterable<String> calcClosure(List<String> classes) {\n Set<String> ret = new HashSet<String>();\n\n List<String> newClasses = new ArrayList<String>();\n for (String cName : classes) {\n newClasses.add(cName);\n ret.add(cName);\n }\n\n boolean updating = true;\n while (updating) {\n updating = false;\n classes = newClasses;\n newClasses = new ArrayList<String>();\n for (String cName : classes) {\n Set<String> nC = new HashSet<String>();\n Analysis as = new Analysis() {\n @Override\n public ClassVisitor getClassVisitor() {\n return new ReachingClassAnalysis(Opcodes.ASM5, null, nC);\n }\n };\n\n try {\n as.analyze(cName);\n } catch (IOException ex) {\n System.err.println(\"WARNING: IOError handling: \" + cName);\n System.err.println(ex);\n }\n\n for (String cn : nC) {\n if (!ret.contains(cn) &&\n !cn.startsWith(\"[\")) {\n ret.add(cn);\n newClasses.add(cn);\n updating = true;\n }\n }\n }\n }\n\n System.err.println(\"Identified \" + ret.size() +\n \" potentially reachable classes\");\n\n return ret;\n }", "private boolean filterClass(Class<?> clz) {\n String name = clz.getSimpleName();\n return !clz.isMemberClass() && (scans.size() == 0 || scans.contains(name)) && !skips.contains(name);\n }", "@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }", "@Override\n\tpublic Object visitClassDecl(ClassDecl myClass) {\n\t\tif (!globalSymTab.containsKey(myClass.name)) {\n\t\t\tglobalSymTab.put(myClass.name, myClass);\n\t\t}\n\t\telse {\n\t\t\terrorMsg.error(myClass.pos, \"Error: duplicate class declaration: \" + myClass.name);\n\t\t}\n\n\t\t// Set current class\n\t\tcurrentClass = myClass;\n\n\t\t// traverse subnodes -populate class' instance variable and method symbol tables with empty Hashtable objects\n\t\treturn super.visitClassDecl(myClass);\n\t}", "public void accept(Visitor v) {\n/* 103 */ v.visitLoadClass(this);\n/* 104 */ v.visitAllocationInstruction(this);\n/* 105 */ v.visitExceptionThrower(this);\n/* 106 */ v.visitStackProducer(this);\n/* 107 */ v.visitTypedInstruction(this);\n/* 108 */ v.visitCPInstruction(this);\n/* 109 */ v.visitNEW(this);\n/* */ }", "@Override\n\tpublic void attendClass() {\n\t\tSystem.out.println(\"Attanding class locally\");\n\t}", "@Test\n public void testGetClasses() throws Exception {\n for (Class clazz : TestClass.class.getClasses()) {\n System.out.println(clazz.getName());\n }\n }", "@NotNull\n List<? extends ClassInfo> getAllClasses();", "public void main(ArrayList<String> files) throws IOException {\n\t\tDesignParser.CLASSES = files;\n\t\t\n\t\tthis.model = new Model();\n\n\t\tfor (String className : CLASSES) {\n//\t\t\tSystem.out.println(\"====================\");\n\t\t\t// ASM's ClassReader does the heavy lifting of parsing the compiled\n\t\t\t// Java class\n//\t\t\tSystem.out.println(\"Analyzing: \" + className);\n//\t\t\tSystem.out.println(className + \"[\");\n\t\t\tClassReader reader = new ClassReader(className);\n\t\t\t\t\t\t\n\t\t\t// make class declaration visitor to get superclass and interfaces\n\t\t\tClassVisitor decVisitor = new ClassDeclarationVisitor(Opcodes.ASM5, this.model);\n\t\t\t\n\t\t\t// DECORATE declaration visitor with field visitor\n\t\t\tClassVisitor fieldVisitor = new ClassFieldVisitor(Opcodes.ASM5, decVisitor, this.model);\n\t\t\t\n\t\t\t// DECORATE field visitor with method visitor\n\t\t\tClassVisitor methodVisitor = new ClassMethodVisitor(Opcodes.ASM5, fieldVisitor, this.model);\n\t\t\t\n\t\t\t// TODO: add more DECORATORS here in later milestones to accomplish\n\t\t\t// specific tasks\n\t\t\tClassVisitor extensionVisitor = new ExtensionVisitor(Opcodes.ASM5, methodVisitor, this.model);\n\t\t\t\n\t\t\tClassVisitor implementationVisitor = new ImplementationVisitor(Opcodes.ASM5, extensionVisitor, this.model);\n\t\t\t\t\t\t\n\t\t\tClassVisitor usesVisitor = new UsesVisitor(Opcodes.ASM5, implementationVisitor, this.model);\n\t\t\t\n\t\t\tClassVisitor compositionVisitor = new CompositionVisitor(Opcodes.ASM5, usesVisitor, this.model);\n\t\t\t\n\t\t\t// Tell the Reader to use our (heavily decorated) ClassVisitor to\n\t\t\t// visit the class\n\t\t\treader.accept(compositionVisitor, ClassReader.EXPAND_FRAMES);\n//\t\t\tSystem.out.println(\"\\n]\");\n\t\t}\n//\t\tSystem.out.println(\"End Of Code\");\n\t}", "public void visitClass(@NotNull PsiClass aClass) {\n if (aClass.isInterface() || aClass.isAnnotationType() ||\n aClass.isEnum()) {\n return;\n }\n if (aClass instanceof PsiTypeParameter ||\n aClass instanceof PsiAnonymousClass) {\n return;\n }\n if (m_ignoreSerializableDueToInheritance) {\n if (!SerializationUtils.isDirectlySerializable(aClass)) {\n return;\n }\n }\n else {\n if (!SerializationUtils.isSerializable(aClass)) {\n return;\n }\n }\n final boolean hasReadObject = SerializationUtils.hasReadObject(aClass);\n final boolean hasWriteObject = SerializationUtils.hasWriteObject(aClass);\n\n if (hasWriteObject && hasReadObject) {\n return;\n }\n registerClassError(aClass);\n }", "public static void main(String[] args) {\n AClass a = new AClass();\r\n a.f(6);\r\n \r\n AClass b = new BClass();\r\n b.f(7);\r\n \r\n AClass c = new CClass();\r\n c.f(10);\r\n \r\n AClass d = new DClass();\r\n d.f(11);\r\n \r\n }", "public Type visit(MainClass n) {\n\t\tString identificador = n.i1.toString();\n\t\tthis.currClass = symbolTable.getClass(identificador);\n\n\t\tn.i2.accept(this);\n\t\tn.s.accept(this);\n\t\treturn null;\n\t}", "private boolean allSameClass(List<Instance> instances) {\r\n\r\n\t\tString firstClassFound = (String) instances.get(0).getClassAttribute();//.getAttributes().get(4).getValue();\r\n\t\t// search thru' instances until it finds a different classification to the first one\r\n\t\tfor(Instance ins : instances){\t\t\t\r\n\t\t\t//if(!ins.getAttributes().get(4).getValue().equals(firstClassFound)){\r\n\t\t\tif(!ins.getClassAttribute().equals(firstClassFound)){\r\n\t\t\t\treturn false;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn true;\r\n\t}", "private static void processAllAnonymousInnerClasses(CompilationUnitDeclaration cud) {\n ASTVisitor visitor = new ASTVisitor() {\n // Anonymous types are represented within the AST expression that creates the it.\n @Override\n public void endVisit(QualifiedAllocationExpression qualifiedAllocationExpression,\n BlockScope scope) {\n if (qualifiedAllocationExpression.anonymousType != null) {\n processMembers(qualifiedAllocationExpression.anonymousType);\n }\n }\n };\n cud.traverse(visitor, cud.scope);\n }", "public void analyzeLifetimeClass(){\n currentClassCommitData = new ArrayList<>();\n String classPath = currentExtractMethod.getRefactoringData().getFileLoc();\n Iterable<RevCommit> commits = null;\n try {\n commits = git.log().addPath(classPath).call();\n } catch (GitAPIException e) {\n e.printStackTrace();\n }\n\n List<RevCommit> orderedList = Utils.reverseIterable(commits);\n for(int i = 0; i < orderedList.size(); i++){\n RevCommit commit = orderedList.get(i);\n Date commitDate = commit.getAuthorIdent().getWhen();\n currentClassCommitData.add(new ClassCommitData(\n commitDate,\n i==0,\n currentExtractMethod.getRefactoringData().getCommitDate().equals(commitDate)));\n }\n }", "void compileClass() throws IOException {\n tagBracketPrinter(CLASS_TAG, OPEN_TAG_BRACKET);\n try {\n compileClassHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(CLASS_TAG, CLOSE_TAG_BRACKET);\n\n }", "private void t5(MoreTests o) {\n // class effect includes any instance, includes instance\n writeStatic();\n readAnyInstance();\n readFrom(this);\n readFrom(o);\n }", "@Test\r\n\tpublic void testContainsClass() {\r\n\t\tassertTrue(breaku1.containsClass(class1));\r\n\t\tassertTrue(externu1.containsClass(class1));\r\n\t\tassertTrue(meetingu1.containsClass(class1));\r\n\t\tassertTrue(teachu1.containsClass(class1));\r\n\t}", "@Test\r\n\tpublic void testProcessPass1Other()\r\n\t{\r\n\t\tToken t3 = new Token(TokenTypes.EXP5.name(), 1, null);\r\n\t\tt3.setType(\"INT\");\r\n\t\tArrayList<Token> tkns = new ArrayList<Token>();\t\t\t\r\n\t\ttkns.add(t3);\r\n\t\t\r\n\t\tToken t4 = new Token(TokenTypes.EXP4.name(), 1, tkns);\r\n\t\tClass c1 = new Class(\"ClassName\", null, null);\r\n\t\tPublicMethod pm = new PublicMethod(\"MethodName\", null, VariableType.BOOLEAN, null);\r\n\t\tt4.setParentMethod(pm);\r\n\t\tt4.setParentClass(c1);\r\n\r\n\t\tToken.pass1(t4);\r\n\t\t\r\n\t\tfor(int i = 0; i < t4.getChildren().size(); i++){\r\n\t\t\tToken child = t4.getChildren().get(i);\r\n\t\t\t\r\n\t\t\tassertEquals(child.getParentClass().getName(), t4.getParentClass().getName());\r\n\t\t\tassertEquals(child.getParentMethod(), t4.getParentMethod());\r\n\t\t}\r\n\t\t\r\n\t\tassertEquals(t4.getType(), \"INT\");\r\n\t}", "void registerInstantiating (ClassType c) {\r\n if (instantiating_classes == null) \r\n instantiating_classes = new ClassList ();\r\n else if (instantiating_classes.contains (c)) \r\n return;\r\n\r\n instantiating_classes.add (c);\r\n }", "public void traverse(\n\t\tASTVisitor visitor,\n\t\tClassScope classScope) {\n\t}", "public void run(Class[] classes) throws RMICompilerException {\n this.classes = (Object[]) classes;\n run();\n }", "public void visit() {\n\t\tvisited = true;\n\t}", "@Override\n public void generateClass(ClassVisitor classVisitor) throws Exception {\n ClassEmitter ce = new ClassEmitter(classVisitor);\n\n Map<Function, String> converterFieldMap = initClassStructure(ce);\n\n initDefaultConstruct(ce, converterFieldMap);\n\n buildMethod_getTargetInstanceFrom(ce);\n\n buildMethod_mergeProperties(ce, converterFieldMap);\n\n ce.end_class();\n }", "public Snippet visit(File n, Snippet argu) {\n\t Snippet _ret=null;\n\t allMyTypes = new HashMap<String, String>();\n\t n.mainClass.accept(this, argu);\n\t n.programClass.accept(this, argu);\n\t n.nodeListOptional.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t ClassStructure programRM = classes.get(\"RunMain\");\n\t System.out.println(GenerateImports.printImports()+\"\\n\");\n\t System.out.println(programRM.toString());\n\t ClassStructure programC = classes.get(\"Program\");\n\t \n\t System.out.println(programC.toString());\n\t for(String output : classes.keySet()){\n\t\t\t\tif(!output.equals(\"Program\") && !output.equals(\"RunMain\")){\n\t\t\t\t\tSystem.out.println(classes.get(output));\n\t\t\t\t}\n\t }\n\t \n\t return _ret;\n\t }", "public void compareClasses() {\n for (User f : friends) {\n compareClassesHelper(thisUser.getArrMatch(), f.getArrMatch(), f);\n }\n }", "public void visit() {\n visited = true;\n }", "private void findAllSubclassesOneClass(Class theClass,\r\n\t\t\tList listAllClasses, List listSubClasses, boolean innerClasses) {\r\n\t\tIterator iterClasses = null;\r\n\t\tString strClassName = null;\r\n\t\tString strSuperClassName = null;\r\n\t\tClass c = null;\r\n\t\tClass cParent = null;\r\n\t\tboolean bIsSubclass = false;\r\n\t\tstrSuperClassName = theClass.getName();\r\n\t\titerClasses = listAllClasses.iterator();\r\n\t\twhile (iterClasses.hasNext()) {\r\n\t\t\tstrClassName = (String) iterClasses.next();\r\n\t\t\t// only check classes if they are not inner classes\r\n\t\t\t// or we intend to check for inner classes\r\n\t\t\tif ((strClassName.indexOf(\"$\") == -1) || innerClasses) {\r\n\t\t\t\t// might throw an exception, assume this is ignorable\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Class.forName() doesn't like nulls\r\n\t\t\t\t\tif (strClassName == null)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\tif (strClassName.endsWith(\".groovy\")) {\r\n\t\t\t\t\t\tGroovyClassLoader loader = new GroovyClassLoader(Thread.currentThread()\r\n\t\t\t\t\t\t\t\t.getContextClassLoader());\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tc = loader.parseClass(loader.getResourceAsStream(strClassName));\r\n\t\t\t\t\t\t} catch (Throwable e) {\r\n\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tFile gFile = new File(strClassName);\r\n\t\t\t\t\t\t\t\tc = loader.parseClass(new FileInputStream(gFile));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(Throwable e1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"file load failed: \" + e1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tc = Class.forName(strClassName, false, Thread\r\n\t\t\t\t\t\t\t\t.currentThread().getContextClassLoader());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!c.isInterface()\r\n\t\t\t\t\t\t\t&& !Modifier.isAbstract(c.getModifiers())) {\r\n\t\t\t\t\t\tbIsSubclass = theClass.isAssignableFrom(c);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbIsSubclass = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bIsSubclass) {\r\n\t\t\t\t\t\tlistSubClasses.add(c);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Throwable ignored) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void _updateCount(int classType) {\n int subClass, superClass;\n\n instances_[classType].count++;\n subClass = classType;\n while ( (superClass = CLASS_INFO[subClass][INDEX_SUPER]) != CS_C_NULL) {\n instances_[superClass].count++;\n subClass = superClass;\n }\n }", "public static void resetClasses() {\r\n\t\ttry {\r\n\t\t\tzeroStaticFields();\r\n\t\t\t\r\n\t\t\t//FIXME TODO: de-tangle quick-and-dirty approach from above register-reset-to-zero \r\n\t\t\t// which is needed for each load-time approach.\r\n\t\t\tclassInitializers();\r\n\t\t}\r\n\t\tcatch (Exception e) {\t//should not happen\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean shouldSkipClass(Class<?> classe) {\n\t\t\n\t\t \n\t\treturn false;\n\t}", "protected DiagClassVisitor(ClassVisitor cv) {\n super(ASM5, cv);\n }", "public void visit(Choke c);", "@Override\n public boolean shouldSkipClass(Class<?> arg0) {\n return false;\n }", "void checkClassInstanceDefinitions(ModuleLevelParseTrees moduleLevelParseTrees) throws UnableToResolveForeignEntityException { \r\n \r\n checkForOverlappingInstances(moduleLevelParseTrees.getModuleDefnNode());\r\n \r\n List<ParseTreeNode> instanceDefnNodes = moduleLevelParseTrees.getInstanceDefnNodes(); \r\n \r\n //add the built-in class instance declarations \"instance Typeable T where ...\" for each type T\r\n //where this is possible (all of the type variables must have kind *).\r\n addTypeableInstances();\r\n\r\n checkDerivedInstances();\r\n \r\n for (final ParseTreeNode instanceNode : instanceDefnNodes) { \r\n \r\n instanceNode.verifyType(CALTreeParserTokenTypes.INSTANCE_DEFN);\r\n \r\n ClassInstance classInstance = checkClassInstanceDefinition(instanceNode);\r\n ClassInstanceIdentifier instanceIdentifier = classInstance.getIdentifier(); \r\n classInstanceMap.put(instanceIdentifier, instanceNode); \r\n }\r\n \r\n //Now do the static analysis on the instance declarations that must wait for a \r\n //second pass over the instance declarations.\r\n \r\n //If there is a C-T instance, and C' is a superclass of C, then there is a C'-T instance in scope.\r\n //So for example, if there is an instance Ord-Foo, there must be an instance Eq-Foo in the current module \r\n //or in some module imported directly or indirectly into the current module.\r\n //Note: we only need to check immediate superclasses (i.e. parents) since the parents will check for their parents.\r\n \r\n //The constraints on the type variables in C-T must imply the constraints\r\n //on the type variables in C'-T. What this means, is that if (Cij' a) is a constraint for C'-T, then (Dij' a)\r\n //is a constraint for D-T where Dij' is Cij' or a subclass.\r\n //The reason for this is so that we can derive a dictionary for C'-T given a dictionary for C-T. \r\n \r\n for (int i = 0, nInstances = currentModuleTypeInfo.getNClassInstances(); i < nInstances; ++i) {\r\n \r\n ClassInstance classInstance = currentModuleTypeInfo.getNthClassInstance(i); \r\n if (classInstance.isUniversalRecordInstance()) {\r\n //todoBI it is not valid to skip this check. Need to do more work here in this case.\r\n //this path happens during adjunct checking.\r\n continue;\r\n }\r\n \r\n TypeClass typeClass = classInstance.getTypeClass(); \r\n TypeExpr instanceType = classInstance.getType();\r\n \r\n List<Set<TypeClass>> childVarConstraints = classInstance.getSuperclassPolymorphicVarConstraints(); \r\n \r\n for (int j = 0, nParents = typeClass.getNParentClasses(); j < nParents; ++j) {\r\n \r\n TypeClass parentClass = typeClass.getNthParentClass(j);\r\n \r\n ClassInstanceIdentifier parentInstanceId = ClassInstanceIdentifier.make(parentClass.getName(), instanceType);\r\n \r\n ClassInstance parentInstance = currentModuleTypeInfo.getVisibleClassInstance(parentInstanceId);\r\n \r\n if (parentInstance == null) { \r\n //superclass instance declaration is missing \r\n ParseTreeNode instanceNode = classInstanceMap.get(classInstance.getIdentifier());\r\n String requiredParentInstanceName = ClassInstance.getNameWithContext(parentClass, instanceType, ScopedEntityNamingPolicy.FULLY_QUALIFIED);\r\n compiler.logMessage(new CompilerMessage(instanceNode, new MessageKind.Error.SuperclassInstanceDeclarationMissing(requiredParentInstanceName, classInstance.getNameWithContext())));\r\n } \r\n \r\n List<SortedSet<TypeClass>> parentVarConstraints = parentInstance.getDeclaredPolymorphicVarConstraints(); \r\n \r\n if (parentVarConstraints.size() != childVarConstraints.size()) {\r\n //this situation should be handled by earlier checking\r\n throw new IllegalArgumentException();\r\n } \r\n \r\n for (int varN = 0; varN < parentVarConstraints.size(); ++varN) {\r\n //the constraints on the varNth type variable that are not implied by the constraints on the child instance\r\n Set<TypeClass> unsatisfiedConstraints = new HashSet<TypeClass>(parentVarConstraints.get(varN));\r\n unsatisfiedConstraints.removeAll(childVarConstraints.get(varN));\r\n \r\n if (!unsatisfiedConstraints.isEmpty()) {\r\n \r\n ParseTreeNode instanceNode = classInstanceMap.get(classInstance.getIdentifier());\r\n // ClassInstanceChecker: the constraints on the instance declaration {classInstance.getNameWithContext()} must \r\n // imply the constraints on the parent instance declaration {parentInstance.getNameWithContext()}.\\n In particular, \r\n // the class constraint {((TypeClass)unsatisfiedConstraints.iterator().next()).getName()} on type variable number \r\n // {varN} in the parent instance is not implied.\r\n compiler.logMessage(new CompilerMessage(instanceNode, new MessageKind.Error.ConstraintsOnInstanceDeclarationMustImplyConstraintsOnParentInstance( \r\n classInstance.getNameWithContext(), parentInstance.getNameWithContext(), unsatisfiedConstraints.iterator().next().getName().getQualifiedName(), varN)));\r\n break;\r\n } \r\n } \r\n } \r\n } \r\n }", "public void scanClasspath() {\n List<String> classNames = new ArrayList<>(Collections.list(dexFile.entries()));\n\n ClassLoader classLoader = org.upacreekrobotics.dashboard.ClasspathScanner.class.getClassLoader();\n\n for (String className : classNames) {\n if (filter.shouldProcessClass(className)) {\n try {\n Class klass = Class.forName(className, false, classLoader);\n\n filter.processClass(klass);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (NoClassDefFoundError e) {\n e.printStackTrace();\n }\n }\n }\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\t\tIOUtils.loadMethodIODeps(\"cb\");\n\t\t\n\t\tFile clazz = new File(args[0]);\n\n\t\tfinal ClassReader cr1 = new ClassReader(new FileInputStream(clazz));\n//\t\tPrintWriter pw = new PrintWriter(new FileWriter(\"z.txt\"));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t/*ClassWriter cw1 = new ClassWriter(ClassWriter.COMPUTE_FRAMES) {\n\t\t\t@Override\n\t\t\tprotected String getCommonSuperClass(String type1, String type2) {\n\t\t\t\ttry {\n\t\t\t\t\treturn super.getCommonSuperClass(type1, type2);\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t//\t\t\t\t\tSystem.err.println(\"err btwn \" + type1 + \" \" +type2);\n\t\t\t\t\treturn \"java/lang/Unknown\";\n\t\t\t\t}\n\t\t\t}\n\t\t};*/\n\t\t\n\t\tClassWriter cw1 = new ClassWriter(ClassWriter.COMPUTE_MAXS);\n\t\t\n\t\tcr1.accept(new ClassVisitor(Opcodes.ASM5, cw1) {\n\t\t\t@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new JSRInlinerAdapter(super.visitMethod(access, name, desc, signature, exceptions), access, name, desc, signature, exceptions);\n\t\t\t}\n\t\t}, ClassReader.EXPAND_FRAMES);\n\t\t\n\t\tfinal ClassReader cr = new ClassReader(cw1.toByteArray());\n\t\tTraceClassVisitor tcv = new TraceClassVisitor(null,new Textifier(),pw);\n\t\t//ClassWriter tcv = new ClassWriter(cr, ClassWriter.COMPUTE_MAXS);\n\t\tClassVisitor cv = new ClassVisitor(Opcodes.ASM5, tcv) {\n\t\t\tString className;\n\n\t\t\t@Override\n\t\t\tpublic void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n\t\t\t\tsuper.visit(version, access, name, signature, superName, interfaces);\n\t\t\t\tthis.className = name;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcr.accept(cv, ClassReader.EXPAND_FRAMES);\n\t\tpw.flush();\n\t}", "public void visit(ClassDeclaration n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }", "protected abstract void generateClassFiles(ClassDoc[] arr, ClassTree classtree);", "List<String> getClassNames() {\n List<String> allGeneratedClasses = new ArrayList<String>();\n for (int i = 0; i < classesToScan.size(); i++) {\n String lookupName = classesToScan.get(i);\n byte classBytes[] = getClassBytes(lookupName);\n if (classBytes == null) {\n /*\n * Weird case: javac might generate a name and reference the class in\n * the bytecode but decide later that the class is unnecessary. In the\n * bytecode, a null is passed for the class.\n */\n continue;\n }\n \n /*\n * Add the class to the list only if it can be loaded to get around the\n * javac weirdness issue where javac refers a class but does not\n * generate it.\n */\n if (CompilingClassLoader.isClassnameGenerated(lookupName)\n && !allGeneratedClasses.contains(lookupName)) {\n allGeneratedClasses.add(lookupName);\n }\n AnonymousClassVisitor cv = new AnonymousClassVisitor();\n new ClassReader(classBytes).accept(cv, 0);\n List<String> innerClasses = cv.getInnerClassNames();\n for (String innerClass : innerClasses) {\n // The innerClass has to be an inner class of the lookupName\n if (!innerClass.startsWith(mainClass + \"$\")) {\n continue;\n }\n /*\n * TODO (amitmanjhi): consider making this a Set if necessary for\n * performance\n */\n // add the class to classes\n if (!classesToScan.contains(innerClass)) {\n classesToScan.add(innerClass);\n }\n }\n }\n Collections.sort(allGeneratedClasses, new GeneratedClassnameComparator());\n return allGeneratedClasses;\n }", "public void visit(MyClassDecl myClassDecl) {\n\t\tif (regularClassExtendsAbstractClass == 1) { \t\t\t\r\n\t\t\tArrayList<Struct> nadklase = new ArrayList<>();\r\n\t\t\t\r\n//\t\t\tMyExtendsClass extClass = (MyExtendsClass) myClassDecl.getExtendsClass();\r\n//\t\t\tStruct parentClassNode = extClass.getType().struct;\r\n\t\t\t\r\n\t\t\tStruct parentClassNode = currentClass.getElemType();\r\n\t\t\t\r\n\t\t\twhile (parentClassNode != null && parentClassNode.getKind() == Struct.Interface ) { \r\n\t\t\t\tnadklase.add(0, parentClassNode);\r\n\t\t\t\tparentClassNode = parentClassNode.getElemType();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tArrayList<Obj> finalMemebrs = new ArrayList<>();\r\n\t\t\tif (nadklase.size() > 0) {\r\n\t\t\t\tCollection<Obj> membersAbsClass = nadklase.get(0).getMembers();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tfor (Iterator<Obj> iter = membersAbsClass.iterator();iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0) { // only abstract methods\r\n\t\t\t\t\t\tfinalMemebrs.add(elem);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (int i = 1; i < nadklase.size(); i++) {\r\n\t\t\t\tCollection<Obj> membersSubClass = nadklase.get(i).getMembers();\r\n\t\t\t\tfor(Iterator<Obj> iter = membersSubClass.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0 ) { // abs method\r\n\t\t\t\t\t\tfinalMemebrs.add(elem); // da li treba da proveravam ako ga vec ima u nizu da ga ne ubacujem, mada mi sustinski ne smeta ako se ponovi?\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(elem.getKind() == Obj.Meth && elem.getFpPos() >= 0) { // ne abs method\r\n\t\t\t\t\t\tfor(int j = 0;j <finalMemebrs.size() ; j++) {\r\n\t\t\t\t\t\t\tif (mojeEquals(elem, finalMemebrs.get(j))) {\r\n\t\t\t\t\t\t\t\tfinalMemebrs.remove(j);\r\n\t\t\t\t\t\t\t\tj--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//22.6.2020 ako klasa nema ni jedno polje preskoci\r\n\t\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\t\r\n\t\t\t\tCollection<Obj> myMembers = Tab.currentScope.getLocals().symbols();\r\n\t\t\t\t\r\n\t\t\t\tint allImplemented = 1;\r\n\t\t\t\tfor (int i = 0 ; i < finalMemebrs.size();i++) {\r\n\t\t\t\t\tObj elem = finalMemebrs.get(i);\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0) {//abstract method\r\n\t\t\t\t\t\tint nasao = 0;\r\n\t\t\t\t\t\tfor(Iterator<Obj> iterator2 = myMembers.iterator();iterator2.hasNext();) {\r\n\t\t\t\t\t\t\tObj meth = iterator2.next();\r\n\t\t\t\t\t\t\tif (mojeEquals(meth, elem)) {\r\n\t\t\t\t\t\t\t\tnasao = 1;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (nasao == 0) {\r\n\t\t\t\t\t\t\tallImplemented = 0;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (allImplemented == 0) {\r\n\t\t\t\t\treport_error (\"Semanticka greska na liniji \" + myClassDecl.getLine() + \": klasa izvedena iz apstraktne klase mora implementirati sve njene apstraktne metode!\", null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//22.6.2020 ako klasa nema ni jedno polje a ima abstraktnih metoda koje treba da implementira greska\r\n\t\t\telse {\r\n\t\t\t\tif (finalMemebrs.size()>0) {\r\n\t\t\t\t\treport_error (\"Semanticka greska na liniji \" + myClassDecl.getLine() +\r\n\t\t\t\t\t\t\t\": klasa izvedena iz apstraktne klase mora implementirati sve njene apstraktne metode!\", null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\r\n\t\tStruct pred = currentClass.getElemType();\r\n\t\tint predNum = 0;\r\n\t\tif (pred != null) {\r\n\t\t\t\r\n\t\t\twhile(pred != null) {\r\n\t\t\t\tpredNum += pred.getNumberOfFields();\r\n\t\t\t\tpred = pred.getElemType();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// 22.6.2020 ako je klasa prazna preskoci\r\n\t\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\t\tfor(Iterator<Obj> iter = Tab.currentScope().getLocals().symbols().iterator();iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\telem.setAdr(elem.getAdr() + predNum);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 22.6.2020 ako je klasa prazna preskoci\r\n\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\tfor(Iterator<Obj> iter = Tab.currentScope().getLocals().symbols().iterator();iter.hasNext();) {\r\n\t\t\t\tObj elem = iter.next();\r\n\t\t\t\telem.setAdr(elem.getAdr() + 1); // sacuvaj mesto za pok. na tabelu virtuelnih f-ja\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tTab.chainLocalSymbols(currentClass);\r\n \tTab.closeScope();\r\n \tcurrentClass = null;\r\n\t}", "private void analyzeApplication() throws InterruptedException {\n int passCount = 0;\n Profiler profiler = bugReporter.getProjectStats().getProfiler();\n profiler.start(this.getClass());\n AnalysisContext.currentXFactory().canonicalizeAll();\n try {\n boolean multiplePasses = executionPlan.getNumPasses() > 1;\n if (executionPlan.getNumPasses() == 0) {\n throw new AssertionError(\"no analysis passes\");\n }\n int[] classesPerPass = new int[executionPlan.getNumPasses()];\n classesPerPass[0] = referencedClassSet.size();\n for (int i = 0; i < classesPerPass.length; i++) {\n classesPerPass[i] = i == 0 ? referencedClassSet.size() : appClassList.size();\n }\n progress.predictPassCount(classesPerPass);\n XFactory factory = AnalysisContext.currentXFactory();\n Collection<ClassDescriptor> badClasses = new LinkedList<ClassDescriptor>();\n for (ClassDescriptor desc : referencedClassSet) {\n try {\n XClass info = Global.getAnalysisCache().getClassAnalysis(XClass.class, desc);\n factory.intern(info);\n } catch (CheckedAnalysisException e) {\n AnalysisContext.logError(\"Couldn't get class info for \" + desc, e);\n badClasses.add(desc);\n } catch (RuntimeException e) {\n AnalysisContext.logError(\"Couldn't get class info for \" + desc, e);\n badClasses.add(desc);\n }\n }\n\n referencedClassSet.removeAll(badClasses);\n long startTime = System.currentTimeMillis();\n bugReporter.getProjectStats().setReferencedClasses(referencedClassSet.size());\n for (Iterator<AnalysisPass> passIterator = executionPlan.passIterator(); passIterator.hasNext();) {\n AnalysisPass pass = passIterator.next();\n yourkitController.advanceGeneration(\"Pass \" + passCount);\n // The first pass is generally a non-reporting pass which\n // gathers information about referenced classes.\n boolean isNonReportingFirstPass = multiplePasses && passCount == 0;\n\n // Instantiate the detectors\n Detector2[] detectorList = pass.instantiateDetector2sInPass(bugReporter);\n\n // If there are multiple passes, then on the first pass,\n // we apply detectors to all classes referenced by the\n // application classes.\n // On subsequent passes, we apply detector only to application\n // classes.\n Collection<ClassDescriptor> classCollection = (isNonReportingFirstPass) ? referencedClassSet : appClassList;\n AnalysisContext.currentXFactory().canonicalizeAll();\n if (PROGRESS || LIST_ORDER) {\n System.out.printf(\"%6d : Pass %d: %d classes%n\", (System.currentTimeMillis() - startTime)/1000, passCount, classCollection.size());\n if (DEBUG)\n XFactory.profile();\n }\n if (!isNonReportingFirstPass) {\n OutEdges<ClassDescriptor> outEdges = new OutEdges<ClassDescriptor>() {\n\n public Collection<ClassDescriptor> getOutEdges(ClassDescriptor e) {\n try {\n XClass classNameAndInfo = Global.getAnalysisCache().getClassAnalysis(XClass.class, e);\n if (classNameAndInfo instanceof ClassNameAndSuperclassInfo) {\n return ((ClassNameAndSuperclassInfo) classNameAndInfo).getCalledClassDescriptorList();\n }\n assert false;\n return Collections.emptyList();\n } catch (CheckedAnalysisException e2) {\n AnalysisContext.logError(\"error while analyzing \" + e.getClassName(), e2);\n return Collections.emptyList();\n\n }\n }\n };\n\n classCollection = sortByCallGraph(classCollection, outEdges);\n }\n if (LIST_ORDER) {\n System.out.println(\"Analysis order:\");\n for (ClassDescriptor c : classCollection) {\n System.out.println(\" \" + c);\n }\n }\n AnalysisContext.currentAnalysisContext().updateDatabases(passCount);\n\n progress.startAnalysis(classCollection.size());\n int count = 0;\n Global.getAnalysisCache().purgeAllMethodAnalysis();\n Global.getAnalysisCache().purgeClassAnalysis(FBClassReader.class);\n for (ClassDescriptor classDescriptor : classCollection) {\n long classStartNanoTime = 0;\n if (PROGRESS) {\n classStartNanoTime = System.nanoTime();\n System.out.printf(\"%6d %d/%d %d/%d %s%n\", (System.currentTimeMillis() - startTime)/1000,\n passCount, executionPlan.getNumPasses(), count,\n classCollection.size(), classDescriptor);\n }\n count++;\n\n // Check to see if class is excluded by the class screener.\n // In general, we do not want to screen classes from the\n // first pass, even if they would otherwise be excluded.\n if ((SCREEN_FIRST_PASS_CLASSES || !isNonReportingFirstPass)\n && !classScreener.matches(classDescriptor.toResourceName())) {\n if (DEBUG) {\n System.out.println(\"*** Excluded by class screener\");\n }\n continue;\n }\n boolean isHuge = AnalysisContext.currentAnalysisContext().isTooBig(classDescriptor);\n if (isHuge && AnalysisContext.currentAnalysisContext().isApplicationClass(classDescriptor)) {\n bugReporter.reportBug(new BugInstance(\"SKIPPED_CLASS_TOO_BIG\", Priorities.NORMAL_PRIORITY)\n .addClass(classDescriptor));\n }\n currentClassName = ClassName.toDottedClassName(classDescriptor.getClassName());\n notifyClassObservers(classDescriptor);\n profiler.startContext(currentClassName);\n\n try {\n for (Detector2 detector : detectorList) {\n if (Thread.interrupted()) {\n throw new InterruptedException();\n }\n if (isHuge && !FirstPassDetector.class.isAssignableFrom(detector.getClass())) {\n continue;\n }\n if (DEBUG) {\n System.out.println(\"Applying \" + detector.getDetectorClassName() + \" to \" + classDescriptor);\n // System.out.println(\"foo: \" +\n // NonReportingDetector.class.isAssignableFrom(detector.getClass())\n // + \", bar: \" + detector.getClass().getName());\n }\n try {\n profiler.start(detector.getClass());\n detector.visitClass(classDescriptor);\n } catch (ClassFormatException e) {\n logRecoverableException(classDescriptor, detector, e);\n } catch (MissingClassException e) {\n Global.getAnalysisCache().getErrorLogger().reportMissingClass(e.getClassDescriptor());\n } catch (CheckedAnalysisException e) {\n logRecoverableException(classDescriptor, detector, e);\n } catch (RuntimeException e) {\n logRecoverableException(classDescriptor, detector, e);\n } finally {\n profiler.end(detector.getClass());\n }\n }\n } finally {\n\n progress.finishClass();\n profiler.endContext(currentClassName);\n if (PROGRESS) {\n long usecs = (System.nanoTime() - classStartNanoTime)/1000;\n if (usecs > 15000) {\n int classSize = AnalysisContext.currentAnalysisContext().getClassSize(classDescriptor);\n long speed = usecs /classSize;\n if (speed > 15)\n System.out.printf(\" %6d usecs/byte %6d msec %6d bytes %d pass %s%n\", speed, usecs/1000, classSize, passCount,\n classDescriptor);\n }\n \n }\n }\n }\n\n if (!passIterator.hasNext())\n yourkitController.captureMemorySnapshot();\n // Call finishPass on each detector\n for (Detector2 detector : detectorList) {\n detector.finishPass();\n }\n\n progress.finishPerClassAnalysis();\n\n passCount++;\n }\n\n\n } finally {\n\n bugReporter.finish();\n bugReporter.reportQueuedErrors();\n profiler.end(this.getClass());\n if (PROGRESS)\n System.out.println(\"Analysis completed\");\n }\n\n }", "protected DiagClassVisitor() {\n super(ASM5);\n }", "protected static void classInitializers() throws Exception {\r\n\t\tfor (int i=0; i<classes.size(); i++) {\r\n\t\t\tClass<?> c = classes.get(i);\r\n\t\t\tMethod clreinit = c.getDeclaredMethod(\"clreinit\", zeroFormalParams);\r\n\t\t\tclreinit.invoke(null, new Object[0]);\t//static meth, zero params\r\n\t\t}\t\t\t\r\n\t}" ]
[ "0.682031", "0.646344", "0.6416902", "0.6367083", "0.6316374", "0.6232713", "0.61572284", "0.61201185", "0.61008066", "0.6070201", "0.60411566", "0.6027206", "0.60239846", "0.6011637", "0.6010791", "0.5930866", "0.5911721", "0.5818325", "0.58086455", "0.58086455", "0.58075684", "0.5760517", "0.5747266", "0.5738886", "0.57330555", "0.5725743", "0.5722967", "0.5720273", "0.56850207", "0.56694597", "0.56641376", "0.56301796", "0.56227905", "0.5602977", "0.55874217", "0.5578947", "0.5575052", "0.5574273", "0.55489874", "0.5546223", "0.5536496", "0.55235445", "0.5510292", "0.5489576", "0.5489458", "0.5484875", "0.5467145", "0.54576653", "0.54566354", "0.5425825", "0.5419115", "0.53825635", "0.5366822", "0.53511643", "0.5349531", "0.53471434", "0.5341366", "0.5339545", "0.5333478", "0.5329395", "0.53260285", "0.53169894", "0.5316565", "0.5311183", "0.5309219", "0.53071475", "0.52888757", "0.5286601", "0.52796084", "0.5273892", "0.52734077", "0.5267184", "0.5264927", "0.526461", "0.526389", "0.52624595", "0.5261849", "0.5253066", "0.5251097", "0.5246874", "0.52444106", "0.52432716", "0.5240806", "0.52382576", "0.52368593", "0.52290255", "0.5227729", "0.52191865", "0.52170306", "0.521301", "0.52111155", "0.5209787", "0.5197971", "0.5197148", "0.51834524", "0.5179703", "0.51795906", "0.5179398", "0.5176171", "0.5175051" ]
0.5541178
40
Spring Data CrudRepository for the competence entity.
@Transactional public interface GroupDAO extends CrudRepository<Group, Long> { public Group findByName(String name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository(value = \"competitionRepository\")\ninterface CompetitionRepository extends JpaRepository<CompetitionModel, Long> {\n\n}", "public interface ShopperPersonRepository extends CrudRepository<ShopperPerson, Long> {\n}", "@Repository\npublic interface ProductcategoryRepository extends CrudRepository<Productcategory, Integer>{\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface AtApplicantAccRepository extends JpaRepository<AtApplicantAcc, Long> {\n List<AtApplicantAcc> findByIdApplicantId(Long id);\n AtApplicantAcc findById(Long id);\n}", "public interface ProfesorRepository extends CrudRepository<Profesor, Long> {\n List<Profesor> findAll();\n}", "@Repository\npublic interface RespostaRepository extends CrudRepository<Resposta, Long> {}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CaptureCollegeRepository extends JpaRepository<CaptureCollege, Long> {\n\n}", "public interface PetRepository extends CrudRepository<Pet, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CourrierArriveRepository extends JpaRepository<CourrierArrive, Long> {\n\n}", "public interface PreventiveActionRepository extends CrudRepository<PreventiveAction, Long> {\r\n\r\n}", "@Repository\npublic interface CaseNoRepository extends JpaRepository<CaseNo, Long>{\n CaseNo findByCompanyId( long companyId);\n}", "@Repository\npublic interface CategoryRepository extends CrudRepository<Category,Long> {\n}", "@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, Long> {\n\n public List<Payment> findByOrganizationId(Long orgId);\n}", "@Transactional\npublic interface ClinicDoctorsRepository extends CrudRepository<ClinicDoctors, Long> {\n /**\n * @param userId\n * @return Doctors belongs to particular clinic based on clinic Id\n */\n @Query(\"select cd.doctorId from ClinicDoctors as cd where cd.clinicId=:userId\")\n public List<Long> getDoctorsByClinicId(@Param(value = \"userId\") Long userId);\n\n @Query(\"select cd.clinicId from ClinicDoctors as cd where cd.doctorId=:userId and cd.activate=false\")\n public List<Long> getClinicsByDoctorId(@Param(value = \"userId\") Long userId);\n\n @Query(\"from ClinicDoctors as cd where cd.clinicId=:userId\")\n public List<ClinicDoctors> getDoctorsListByClinicId(@Param(value = \"userId\") Long userId);\n\n @Query(\"select cd.id from ClinicDoctors as cd where cd.clinicId=:clinicId and cd.doctorId=:doctorId\")\n public Long getIdByDoctorAndClinic(@Param(value = \"clinicId\") Long clinicId, @Param(value = \"doctorId\") Long doctorId);\n\n @Query(\"select cd.id from ClinicDoctors as cd where cd.doctorId=:doctorId\")\n public Long getIdOnlyByDoctor(@Param(value = \"doctorId\") Long doctorId);\n\n @Query(\"from ClinicDoctors as cd where cd.doctorId=:doctorId\")\n public List<ClinicDoctors> getScnOpnDoctorTimeSlot(@Param(value = \"doctorId\") Long doctorId);\n\n @Query(\"select cd.specialityId from ClinicDoctors as cd where cd.clinicId=:clinicId and cd.doctorId=:doctorId\")\n public Long getSpecialityByIds(@Param(value = \"clinicId\") Long clinicId, @Param(value = \"doctorId\") Long doctorId);\n\n @Query(\" from ClinicDoctors as cd where cd.clinicId=:clinicId and cd.doctorId=:doctorId\")\n public ClinicDoctors findByDoctorAndClinic(@Param(value = \"clinicId\") Long clinicId, @Param(value = \"doctorId\") Long doctorId);\n\n @Query(\" from ClinicDoctors as cd where cd.doctorId=:doctorId\")\n public ClinicDoctors findonlyByDoctorAndClinic(@Param(value = \"doctorId\") Long doctorId);\n\n @Query(\"from ClinicDoctors as cd where cd.doctorId=:userId\")\n public List<ClinicDoctors> findClinicsByDoctorId(@Param(value = \"userId\") Long userId);\n\n\n @Query(\"from ClinicDoctors as cd where cd.doctorId=:doctorId and cd.clinicId=:clinicId\")\n public List<ClinicDoctors> getDoctorTimeSlot(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId);\n\n @Query(\"from ConfirmAppointment as cd where (cd.status = 4 or cd.status=5 or cd.status=6 or cd.status=7) and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= current_date order by scheduledOn\")\n public List<ConfirmAppointment> getConfirmedAppointment(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId);\n\n @Query(\"from ConfirmAppointment as cd where cd.status = 0 and cd.updatedBy = 'ROLE_PATIENT' and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= current_date order by scheduledOn\")\n public List<ConfirmAppointment> getPatientBlocked(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId);\n\n @Query(\"from ConfirmAppointment as cd where cd.status <= 3 and cd.updatedBy = 'ROLE_DOCTOR' and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= current_date order by scheduledOn\")\n public List<ConfirmAppointment> getDoctorBlocked(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId);\n\n @Query(\"from ConfirmAppointment as cd where cd.status <= 3 and cd.updatedBy = 'ROLE_CLINIC' and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= current_date order by scheduledOn\")\n public List<ConfirmAppointment> getClinicBlocked(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId);\n\n /* @Query(\"from ConfirmAppointment as cd where cd.status > 4 and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= current_date order by scheduledOn\")\n public List<ConfirmAppointment> updatedStatus(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId);*/\n\n @Query(\"from ClinicDoctors as cd where cd.clinicId=:userId\")\n public List<ClinicDoctors> getDoctorsClinicId(@Param(value = \"userId\") Long userId);\n\n @Query(\"from ConfirmAppointment as cd where (cd.status = 4 or cd.status=5 or cd.status=6 or cd.status=7) and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= :scheduledOn order by scheduledOn\")\n public List<ConfirmAppointment> getConfirmedAppointmentFromPrev(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId, @Param(value = \"scheduledOn\") Date scheduledOn);\n\n @Query(\"from ConfirmAppointment as cd where cd.status = 0 and cd.updatedBy = 'ROLE_PATIENT' and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= :scheduledOn order by scheduledOn\")\n public List<ConfirmAppointment> getPatientBlockedFromPrev(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId, @Param(value = \"scheduledOn\") Date scheduledOn);\n\n @Query(\"from ConfirmAppointment as cd where cd.status <= 3 and cd.updatedBy = 'ROLE_DOCTOR' and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= :scheduledOn order by scheduledOn\")\n public List<ConfirmAppointment> getDoctorBlockedFromPrev(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId, @Param(value = \"scheduledOn\") Date scheduledOn);\n\n @Query(\"from ConfirmAppointment as cd where cd.status <= 3 and cd.updatedBy = 'ROLE_CLINIC' and cd.doctorId=:doctorId and cd.clinicId=:clinicId and cd.scheduledOn >= :scheduledOn order by scheduledOn\")\n public List<ConfirmAppointment> getClinicBlockedFromPrev(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId, @Param(value = \"scheduledOn\") Date scheduledOn);\n\n\n @Query(\"from ConfirmAppointment as cd where cd.status = 8 and cd.doctorId=:doctorId and cd.clinicId=:clinicId and (cd.vacaStartDate >= :before or cd.vacaStartDate between :before and :after or cd.vacaEndDate >= :before or cd.vacaEndDate between :before and :after)\")\n public List<ConfirmAppointment> getMultipleDayBlocked(@Param(value = \"doctorId\") Long doctorId, @Param(value = \"clinicId\") Long clinicId, @Param(value = \"before\") Date before, @Param(value = \"after\") Date after);\n\n\n}", "public interface CompetitorService {\nList<Competitor> findAll();\nCompetitor save(Competitor competitor);\nvoid delete(Long id);\n Competitor findById(Long id);\n}", "public interface ApplianceRepository extends JpaRepository<Appliance, Long> {\n\n}", "@Repository\npublic interface ContactRepository extends JpaRepository<Contact, Long> {\n}", "@Repository\npublic interface CategoryRepository extends JpaRepository<Category,Long> {\n\n\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TechServicesRepository extends JpaRepository<TechServices, Long> {\n\n List<TechServices> findAllByCompetitorId(Long id);\n}", "public interface CategoryRepository extends CrudRepository<Category, Long> {\n}", "public interface DocketCodeRepository extends JpaRepository<DocketCode,Long> {\n\n}", "public interface RepairRepository extends JpaRepository<Repair,Long> {\n\n}", "public interface BoulderRepository extends CrudRepository<Boulder, Long> {\n}", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "@Repository\npublic interface InspectionOptionRepository extends JpaRepository<InspectionOption, Integer> {\n\n}", "public interface ContactRepository extends JpaRepository<Contact, Long> {\n\n}", "@Repository\npublic interface ProdutoRepository extends JpaRepository<Produto, Integer>{\n \t\n}", "@SuppressWarnings(\"unused\")\npublic interface CrewMemberRepository extends JpaRepository<CrewMember,Long> {\n\n List<CrewMember> findByCrewId(Long crewId);\n\n}", "@Repository\npublic interface ModelRepository extends JpaRepository<Citire, Long>{\n}", "@Repository\npublic interface VendorsRepository extends CrudRepository<Vendor, Long> {\n}", "public interface RaceRepository extends CrudRepository<Race, Integer> {\n\n}", "@Repository\npublic interface MedicalAidRepository extends JpaRepository<MedicalAid, String> {\n\n}", "@Repository\npublic interface ReservationRepository extends CrudRepository<Reservation, Long> {\n}", "public interface CandidatureRepository extends CrudRepository<Candidature, Long> {\n\n\tIterable<ReferendumOption> findByDistrict(District idDistrict);\n}", "public interface PocRepository extends CrudRepository<Poc> {\n \n Poc findByLiveId(Long liveId);\n \n// Poc findByNameAndCompany(String name, String company);\n\n}", "@Repository\npublic interface ClinicRepository extends JpaRepository<Clinic, Long> {\n}", "@Repository\npublic interface CouponRepository extends CrudRepository <Coupon, Long> {\n\n}", "public interface OptionRepository extends CrudRepository<Option, Long> {\n}", "public interface OptionRepository extends CrudRepository<Option, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface FicheDeContactRepository extends JpaRepository<FicheDeContact, Long> {\n\n}", "@Repository\npublic interface ContactInformationDAO extends JpaRepository<Contact, Long> {\n\n}", "public interface AdditionRepository extends CrudRepository<Addition, String> {\r\n\r\n}", "public interface ProductPricingRepository extends JpaRepository<ProductPricing, Long> {\n}", "public interface CourseRepository extends CrudRepository<Courses, String> { }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CardysqRepository extends JpaRepository<Cardysq, Long>, JpaSpecificationExecutor<Cardysq> {}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface FormulaireConsentementRepository extends JpaRepository<FormulaireConsentement, Long> {\n\n}", "public interface ReservationRepository extends CrudRepository<Reservation, Integer> {\n\n}", "public interface RecipeRepository extends CrudRepository<Recipe,Long> {\n}", "public interface CategoryRepository extends JpaRepository<Category, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}", "@Repository\npublic interface ChampionshipRepository extends JpaRepository<Championship, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface MedicalRepository extends JpaRepository<Medical, Long> {\n\n}", "@Repository\r\npublic interface ConversationRepository extends JpaRepository<Conversation, String>{\r\n\tList<Conversation> findByParrentId(String agreementId);\r\n\t\r\n\tlong deleteByParrentId(String agreementId);\r\n}", "public interface ExpositionRepository extends JpaRepository<Exposition,Long> {\n\n}", "public interface CategoryRepository extends CrudRepository<Category, Integer> {\n}", "public interface PaymentContextRepository extends CrudRepository<PaymentContext, Long> {\n\n}", "public interface TreatmentRepository extends CrudRepository <Treatment, Integer> {\n}", "public interface ParticipatorDao extends CrudRepository<Participator,Integer>{\n public Collection<Participator> findByAdmissionnum(int admissionnum);\n}", "public interface IRespuestaInformeRepository extends JpaRepository<RespuestaInforme, RespuestaInformeId> {\n \n /**\n * Recupera las respuestas de un informe dado.\n * \n * @param informe seleccionado\n * @return lista de respuestas\n */\n List<RespuestaInforme> findByInforme(Informe informe);\n \n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PricingRepository extends JpaRepository<Pricing, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface AtApplicantsSchoolsRepository extends JpaRepository<AtApplicantsSchools, Long> {\n List<AtApplicantsSchools> findByIdApplicantId(Long id);\n AtApplicantsSchools findById(Long id);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface SettingTestimonialRepository extends JpaRepository<SettingTestimonial, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CorpsRepository extends JpaRepository<Corps, Long> {\n\n}", "@Repository\npublic interface AlliesRepository extends CrudRepository<AlliesDO, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface HrmsActionDisciplinaryRepository extends JpaRepository<HrmsActionDisciplinary, Long> {\n\n}", "public interface UserSkillPriceRepository extends JpaRepository<UserSkillPrice, Long> {\n}", "@Repository\npublic interface RedeemRepo extends JpaRepository<Redeem , Long> {\n}", "@Repository\npublic interface ProducerRepository extends CrudRepository<Producer, Long>{\n public Producer save(Producer c);\n public void delete(Producer c);\n public Producer findOne(Long id);\n public Producer findByName(@Param(\"name\") String name);\n}", "@Repository\npublic interface TipPercentRepository extends CrudRepository<TipPercent, Long>{\n}", "public interface GroceryStoreRepository extends CrudRepository<GroceryStore, Long>{\n}", "public interface NucleoRepository extends CrudRepository<NucleoDB,Long>{\n\n\n}", "public interface VotedElectionRepository extends CrudRepository<VotedElection, Long> {\n\n}", "@Repository\npublic interface VehicleRepository extends CrudRepository<Vehicle,Long>{\n}", "@Repository\npublic interface QuestionRepository extends CrudRepository<Question, Long> {\n\n}", "@Repository\r\npublic interface AssignmentRepository extends CrudRepository<Assignment, String> {\r\n\r\n}", "public interface UserBillingRepository extends CrudRepository<UserBilling, Long> {\n\n}", "public interface CarsRepository extends JpaRepository<Car, Long> {\n\n}", "@Repository\npublic interface LocoRepository extends CrudRepository<Loco, Integer> {\n}", "public interface SpecialityRepository extends CrudRepository<Speciality,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CsrpRepository extends JpaRepository<Csrp, Long> {\n\n}", "public interface PieRepository extends CrudRepository<Pie, Long> {\n List<Pie> findByName(String name);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface LectureRepository extends JpaRepository<Lecture, Long> {\n\n @Query(\"select l FROM Lecture l WHERE l.course.id = :#{#courseId}\")\n List<Lecture> findAllByCourseId(@Param(\"courseId\") Long courseId);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProfissionalSaudeRepository extends JpaRepository<ProfissionalSaude, Long> {\n}", "@Repository\npublic interface CategoryRepository extends CrudRepository<Category, Long> {\n\n /**\n * Beschrijf in de method name wat je wilt dat spring uit de database haalt, zo simpel is het!\n */\n Category findCategoryById(Long id);\n\n @Override\n List<Category> findAll();\n\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ConventionAmendmentRepository extends JpaRepository<ConventionAmendment, Long> {\n\n\t@Query(\"SELECT conventionAmendment from ConventionAmendment conventionAmendment order by conventionAmendment.id\")\n\tSet<ConventionAmendment> findAllAmendment();\n\t@Query(\"SELECT conventionAmendment.refPack from ConventionAmendment conventionAmendment WHERE conventionAmendment.convention.client.id =:partnerId\")\n\tSet<RefPack> findPackByPartner(@Param(\"partnerId\") Long partnerId);\n\n}", "public interface StudioRepository extends CrudRepository<Studio, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContactoPessoaRepository extends JpaRepository<ContactoPessoa, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ChapitreRepository extends JpaRepository<Chapitre, Long>, JpaSpecificationExecutor<Chapitre> {\n\n}", "public interface CategoryRepository extends JpaRepository<Category, Integer> {\n}", "@Repository\npublic interface SimulationRepository extends CrudRepository<Simulation, Serializable> {\n\n}", "@Repository\npublic interface RepositoryMain extends CrudRepository<Roulette, Long>{\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DisabilityTypeRepository extends JpaRepository<DisabilityType, Long>, JpaSpecificationExecutor<DisabilityType> {\n}", "public interface ConferintaRepository extends AppRepository<Conferinta,Long>{\n\n\n}", "@Repository\npublic interface SkillRepository extends JpaRepository<Skill, String> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}", "public interface VisitRepository extends CrudRepository<Visit, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ApplicantPersonalInfoRepository extends JpaRepository<ApplicantPersonalInfo, Long>, JpaSpecificationExecutor<ApplicantPersonalInfo> {\n}", "@Repository\npublic interface CourseDao extends CrudRepository<Course, Long>\n{\n\tArrayList<Course> findByCourseId(long courseId);\n}", "@Repository\npublic interface IPaymentRepository extends JpaRepository<Payment, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface HorarioDisponivelRepository extends JpaRepository<HorarioDisponivel, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PettyCashRepository extends JpaRepository<PettyCash, Long> {\n\n}" ]
[ "0.71862096", "0.6878514", "0.67298335", "0.6706969", "0.66931707", "0.66413355", "0.6601061", "0.6597905", "0.65950894", "0.65882653", "0.6580386", "0.6572555", "0.65622264", "0.65595704", "0.6556906", "0.6544144", "0.65422237", "0.6537937", "0.6537852", "0.6531756", "0.6519179", "0.6512992", "0.650363", "0.6503007", "0.6492696", "0.6490088", "0.6482679", "0.64798987", "0.6474199", "0.64713275", "0.64617026", "0.6460075", "0.64575374", "0.6456258", "0.6448827", "0.6431546", "0.6424307", "0.64088625", "0.64088625", "0.64072174", "0.6404975", "0.64040834", "0.64000463", "0.63988775", "0.639698", "0.63958067", "0.6390963", "0.63871557", "0.6382743", "0.6381973", "0.63818586", "0.6379843", "0.63778466", "0.6372705", "0.6371724", "0.63652354", "0.6364351", "0.6361251", "0.6360247", "0.6352854", "0.63510287", "0.6350204", "0.63475364", "0.6347243", "0.63460153", "0.633898", "0.633617", "0.63317114", "0.63306266", "0.63216877", "0.63214487", "0.6319445", "0.6318271", "0.6316801", "0.63130873", "0.63122964", "0.63116896", "0.63039786", "0.6302236", "0.6293541", "0.6288784", "0.6288288", "0.6281842", "0.6280196", "0.62772375", "0.62711257", "0.6270311", "0.62665236", "0.6266102", "0.6265292", "0.62642366", "0.6262332", "0.6260837", "0.6257932", "0.6250551", "0.62495553", "0.624834", "0.6246266", "0.6243942", "0.62267005", "0.6226156" ]
0.0
-1
TODO: does it need to return the name?
public String register(String string) throws IOException { if (proxyPlayer.isRegistered()){ return proxyPlayer.getPlayerName(); } openConnection(); JSONArray commandArray = new JSONArray(); commandArray.add("register"); System.out.println("register proxy function"); this.outputWriter.println(commandArray); this.outputWriter.flush(); System.out.println("register proxy flushed"); DataOutputStream out = new DataOutputStream(new BufferedOutputStream(this.s.getOutputStream())); DataInputStream in = new DataInputStream(new BufferedInputStream(this.s.getInputStream())); StringBuilder sb = new StringBuilder(512); int c = 0; int counter = 0; while ((c = bf.read()) != 10) { System.out.println((char) c); sb.append((char) c); counter += 1; } String str = sb.toString(); System.out.println("register proxy received: "+str); return proxyPlayer.register(str); // StringBuilder sb = new StringBuilder(512); // int c = 0; // int counter = 0; // while ((c = bf.read()) != -1 && counter < 6) { // System.out.println(c); // sb.append((char) c); // counter += 1; // } // String str = sb.toString(); // System.out.println("register proxy received: "+str); // // return proxyPlayer.register(str); // return proxyPlayer.register(str.substring(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getName() ;", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.8033278", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.7893097", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656", "0.78371656" ]
0.0
-1
TODO: does it need to return?
public String receiveStones(Stone stone) throws IOException { openConnection(); JSONArray commandArray = new JSONArray(); commandArray.add("receive-stones"); commandArray.add(stone.getStone()); this.outputWriter.println(commandArray.toJSONString()); this.outputWriter.flush(); return this.proxyPlayer.receiveStones(stone); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean func_70814_o() { return true; }", "public void method_4270() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "public void smell() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private void strin() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "abstract int pregnancy();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "private void kk12() {\n\n\t}", "static int size_of_ret(String passed){\n\t\treturn 1;\n\t}", "private void getStatus() {\n\t\t\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public abstract String mo41079d();", "public abstract void mo70713b();", "public abstract void mo56925d();", "zzafe mo29840Y() throws RemoteException;", "private void m50366E() {\n }", "public abstract String mo13682d();", "public class_1562 method_207() {\r\n return null;\r\n }", "public abstract Object mo26777y();", "public String method_211() {\r\n return null;\r\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public abstract String mo9239aw();", "protected OpinionFinding() {/* intentionally empty block */}", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void retstart() {\n\t\t\n\t}", "public int method_209() {\r\n return 0;\r\n }", "private void poetries() {\n\n\t}", "public void mo21877s() {\n }", "public abstract int mo9754s();", "public String getContents()\r\n/* 40: */ {\r\n/* 41:104 */ return \"\";\r\n/* 42: */ }", "private long size() {\n\t\treturn 0;\n\t}", "public int size() {\n/* 426 */ return -1;\n/* */ }", "public int method_113() {\r\n return 0;\r\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "void unableToListContents();", "public abstract String mo118046b();", "public abstract void mo6549b();", "public boolean method_218() {\r\n return false;\r\n }", "public abstract void mo27385c();", "public boolean method_2453() {\r\n return false;\r\n }", "public abstract String use();", "protected boolean func_70041_e_() { return false; }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n protected void getExras() {\n }", "private void test() {\n\n\t}", "public Unsafe method_4123() {\n return null;\n }", "static int size_of_rc(String passed){\n\t\treturn 1;\n\t}", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract String mo9752q();", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public boolean method_2434() {\r\n return false;\r\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public boolean method_1456() {\r\n return true;\r\n }", "public final void mo51373a() {\n }", "public boolean method_109() {\r\n return true;\r\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public boolean method_4088() {\n return false;\n }", "public abstract int mo9753r();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public Object preProcess() {\n return null;\n }", "public boolean method_216() {\r\n return false;\r\n }", "public abstract int mo41077c();", "static int size_of_dcr(String passed){\n\t\treturn 1;\n\t}", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "public abstract String mo9751p();", "public abstract long mo9229aD();", "boolean _non_existent();", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public boolean method_4093() {\n return false;\n }", "public String limpiar()\r\n/* 509: */ {\r\n/* 510:529 */ return null;\r\n/* 511: */ }", "boolean pullingOnce();", "public void mo21793R() {\n }", "public abstract long mo13681c();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "static int size_of_rp(String passed){\n\t\treturn 1;\n\t}", "void mo57277b();", "Variable getReturn();", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "public abstract int mo8526p();", "public boolean method_208() {\r\n return false;\r\n }", "zzang mo29839S() throws RemoteException;", "public void mo38117a() {\n }" ]
[ "0.5932989", "0.58795583", "0.5775279", "0.5761677", "0.5721946", "0.5667628", "0.55570537", "0.5494886", "0.5480378", "0.5477159", "0.5452294", "0.5439794", "0.54289675", "0.5412111", "0.5399151", "0.5396096", "0.5383804", "0.5367922", "0.53463286", "0.5342585", "0.53309244", "0.5325133", "0.530214", "0.52973473", "0.5281864", "0.5277826", "0.52730983", "0.52722275", "0.527123", "0.52593195", "0.52581227", "0.52507985", "0.52449393", "0.5235589", "0.5233434", "0.5226237", "0.522222", "0.5213372", "0.5212646", "0.5211562", "0.52068925", "0.52035034", "0.5196569", "0.51885796", "0.5185949", "0.51848704", "0.5182688", "0.51798105", "0.5178115", "0.51775396", "0.51676023", "0.5158199", "0.51573485", "0.5157343", "0.51561075", "0.51443166", "0.51424813", "0.5137455", "0.51313025", "0.51298773", "0.5127041", "0.5124495", "0.5124356", "0.5124334", "0.511775", "0.51176697", "0.5117509", "0.51173896", "0.5110619", "0.5109086", "0.51034033", "0.5097202", "0.50910765", "0.50907797", "0.5090205", "0.5090205", "0.50850827", "0.5080637", "0.50738835", "0.50733596", "0.50718004", "0.50705653", "0.50692946", "0.50674236", "0.50668204", "0.50668204", "0.50646514", "0.5063369", "0.50620586", "0.5060531", "0.5053493", "0.50517493", "0.5051075", "0.50502706", "0.50499016", "0.50477856", "0.5047529", "0.5043131", "0.50405616", "0.503948", "0.5029036" ]
0.0
-1
Constructor for FieldStation class.
public FieldStation(String id, String name){ this.id = id; this.name = name; //Initialises the SetOfSensors sensors. sensors = new SetOfSensors(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Station(String name, float latitude, float longitude) { //Data is passed to this constructor via forms and a route.\n this.name = name;\n this.latitude = latitude;\n this.longitude = longitude;\n }", "public Station(){\n\t\tthis.Name = \"\";\n\t\tthis.x_location = 0;\n\t\tthis.y_location = 0;\n\t\tthis.capacity = 0;\n\t\tthis.ambulances = null;\n\t\tthis.location = (\"(\" + x_location + \", \" + y_location + \")\");\n\n\t}", "public SensorStation(){\n\n }", "public BicycleStation() {\n super();\n }", "public AirField() {\n\n\t}", "public Field() {\r\n\t}", "FuelingStation createFuelingStation();", "@SuppressWarnings(\"unused\")\n private Flight() {\n this(null, null, null, null, null, null, null, null, null, null, null);\n }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public Station(Point point) {\n super(point, j2a.Factory.Color.getCYAN());\n }", "Flight() {}", "public BikeStation(CSVRecord record) {\n this(new Location(Double.parseDouble(record.get(\"bikestation_latitude\")),\n Double.parseDouble(record.get(\"bikestation_longitude\"))),\n record.get(\"bikestation_name\"));\n }", "public Flight() {\n\tthis.year = 0;\n\tthis.month = 0;\n\tthis.dayOfMonth = 0;\n\tthis.dayOfWeek = 0;\n\tthis.uniqueCarrier = \"\";\n\tthis.originAirportID = \"\";\n\tthis.destAirportID = \"\";\n\tthis.depDelay = 0.0;\n\tthis.arrDelay = 0.0;\n\tthis.cancelled = false;\n\tthis.carrierDelay = 0;\n\tthis.weatherDelay = 0;\n\tthis.nasDelay = 0;\n\tthis.securityDelay = 0;\n\tthis.lateAircraftDelay = 0;\n\tthis.divAirportLandings = 0;\n }", "public Flight(int instanceNummer, int id,\n String outbound,\n Date datum,\n Time est, Time stt_est,Time lst_est, Time lst, Time stt_lst, Time stt,Time tj,\n double x, double y,int pierId) {\n this.instanceNummer = instanceNummer;\n this.id = id;\n Outbound = outbound;\n this.datum = datum;\n this.est = est;\n this.stt_est = stt_est;\n this.lst_est = lst_est;\n this.lst = lst;\n this.stt_lst = stt_lst;\n this.stt = stt;\n this.tj = tj;\n\n this.x = x;\n this.y = y;\n this.pierId = pierId;\n }", "public Station(String location) {\n this.stationID = counter++;\n this.location = location;\n this.bikes = new ArrayList<>();\n }", "public FoodStation(float x, float y, GameWorld gw) {\n\t\tsuper(x, y);\n\t\trand = new Random();\n\t\tcapacity = rand.nextInt(400) + 400; \n\t\tcolor = ColorUtil.GREEN;\n\t\tsize = capacity / 20;\n\t\tselected = false;\n\t\twidth = 2 * size;\n\t\theight = 2 * size;\n\t}", "public TrainAbstract() {\n\t\tthis.id = \"\";\n\t\tthis.departure = new Departure();\n\t\tthis.arrivalTerminus = new ArrivalTerminus();\n\t\tthis.location = new Location(\"\", \"\");\n\t\tthis.stopPoints = new ArrayList<ArrivalStopPoint>();\n\t}", "public FieldLineNode(){\n\t\tthis(1, new Vector3f(0,1,0));\n\t}", "public TimeField(SdpField sf) {\n\t\tsuper(sf);\n\t}", "public TRIP_Sensor () {\n super();\n }", "public FuldaGasStation() {\n\t\tgasPumpsList = new ArrayList<GasPump>(GAS_PUMPS_NUMBER);\n\t\tgasPricesList = new Hashtable<GasType, Double>(GAS_PUMPS_NUMBER);\n\t}", "public CountyStationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Flight() {\n\t\t// TODO Auto-generated constructor stub\n\t\tthis.id = \"1520\";\n\t\tthis.departureDate = \"test-departure\";\n\t\tthis.departureTime = \"test-time\";\n\t\tthis.plane = new Airplane();\n\t\tthis.departureAirport = new Airport();\n\t\tthis.arrivalAirport=new Airport();\n\t\tthis.pilot = new Pilot();\n\t\tthis.passengers = new ArrayList<Passenger>();\n\t\tthis.availableSeat = 10;\n\t\tthis.price = 10;\n\t\tthis.duree = \"duration\";\n\t\t\n\t}", "public DriversStation(int driverGamePadUsbPort, int operatorGamePadUsbPort)\n\t{\n\t\t// call base class constructor\n\t\tsuper(driverGamePadUsbPort, operatorGamePadUsbPort);\n\t}", "public FieldScrapper() \r\n {\r\n }", "public SeatLocation() {\n }", "public ASLocation()\n\t{\n\t\tsuper() ;\n\t\tprepare() ;\n\t}", "public ParkingSpace() {}", "public Station(){\r\n RemoveTrain();\r\n passengers = new ArrayList();\r\n this.LockInit();\r\n this.CondInit();\r\n \r\n Thread stationThread = new Thread(this);\r\n stationThread.start();\r\n// pm = new PassengerMaker();\r\n// Thread pmThread = new Thread(pm);\r\n// pmThread.start();\r\n }", "public BasicSensor() {}", "public Flight(String name, int number, String home, String away) \n {\n airlineName = name;\n flightNumber = number;\n origin = home;\n destination = away;\n \n }", "public void initialize() {\n northbound = new ArrayList<>(numStations);\n southbound= new ArrayList<>(numStations);\n eastbound= new ArrayList<>(numStations);\n westbound= new ArrayList<>(numStations);\n //the stations are created in the following order:\n // left to right going up, right, down, left\n\n\n //stations going north\n\n for (int i = 0; i < numStations; i++) {\n if(i < coloring[0].length) {\n northbound.add(new Station(i + 1, 2 * numStations + 1, coloring[0][i], Station.Direction.north));\n eastbound.add(new Station(0, 2 * numStations - (i), coloring[1][i], Station.Direction.east));\n southbound.add(new Station(numStations + 1 + i, 0, coloring[2][i], Station.Direction.south));\n westbound.add(new Station(numStations * 2 + 1, 1 + i, coloring[3][i], Station.Direction.west));\n }else{\n northbound.add(new Station(i + 1, 2 * numStations + 1, 0, Station.Direction.north));\n eastbound.add(new Station(0, 2 * numStations - (i), 0, Station.Direction.east));\n southbound.add(new Station(numStations + 1 + i, 0, 0, Station.Direction.south));\n westbound.add(new Station(numStations * 2 + 1, 1 + i, 0, Station.Direction.west));\n }\n }\n\n updateStationPositions();\n update();\n\n\n }", "Movement() {\n record=0;\n ID =0 ;\n filedate = \"\";\n lat= new ArrayList<Float>();\n lon = new ArrayList<Float>();\n alt=new ArrayList<Float>();\n day1899=new ArrayList<Float>();\n date=new ArrayList<String>();\n time=new ArrayList<String>();\n stay = new ArrayList<Location>();\n record = 0;\n }", "public GPSFragment()\n {\n // Required empty public constructor\n }", "public CSSTidier() {\n\t}", "private TbusRoadGraph() {}", "public SmallFishData() {\n cPosition = generatePosition();\n cDestination = generatePosition();\n }", "public AStationPane() {\n }", "public Location() {\n\t}", "public Spatial(Location tr)\r\n {\r\n this(new Location.Location2D(0, 0), tr);\r\n }", "VertexNetwork() {\r\n /* This constructor creates an empty list of vertex locations. \r\n read The transmission range is set to 0.0. */\r\n transmissionRange = 0.0;\r\n location = new ArrayList<Vertex>(0);\r\n }", "public FieldInfo() {\r\n \t// No implementation required\r\n }", "public FieldObject() {\n super(\"fields/\");\n setEnterable(true);\n }", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }", "public Fahrzeug() {\r\n this(0, null, null, null, null, 0, 0);\r\n }", "public FieldPoint() {\n setX( DEFAULT_VALUE );\n setY( DEFAULT_VALUE );\n }", "public AirAndPollen() {\n\n\t}", "public SegmentInformationTable()\n\t{\n\n\t}", "public SceneFurniRecord ()\n {\n }", "public Location() {\r\n \r\n }", "public Steganography() {}", "public BikeStation(Location location, String name) {\n super(location, name);\n this.name = name;\n }", "public Stamp()\n {\n // initialise instance variables\n id = genID();\n name = defaultname();\n rarity = 'u';\n value = 0.00; \n }", "public PerforceSensor() {\r\n //nothing yet.\r\n }", "public Location()\n {\n this.store_name = null;;\n this.store_location = null;\n this.address = null;\n this.city = null;\n this.state = null;\n this.zip_code = null;\n this.latitude = Double.NaN;\n this.longitude = Double.NaN;\n this.county = null;\n }", "public Forecastday() {\n }", "public City() {\n connects = new HashMap<String, ArrayList<Flight>>();\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "public TopologyLib() {\n }", "public MesoAbstract(MesoStation mesostation) {\r\n\t\tStID = mesostation.getStID();\r\n\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "Field() {\n value = 0;\n }", "public FGDistanceStats()\r\n {\r\n \r\n }", "public Location(String store_name, String store_location, String address, String city, String state, String zip_code, double latitude, double longitude, String county)\n\t{\n super();\n this.store_name = store_name;\n this.store_location = store_location;\n this.address = address;\n this.city = city;\n this.state = state;\n this.zip_code = zip_code;\n this.latitude = latitude;\n this.longitude = longitude;\n this.county = county;\n }", "public FieldList()\n\t{\n\t\tfields = new ArrayList<AbstractField>();\n\t}", "private FieldInfo() {\r\n\t}", "public Plant(Field field, Location location)\n {\n alive = true;\n this.field = field;\n setLocation(location);\n }", "public Location() {\n\t\t\n\t\txCoord=0;\n\t\tyCoord=0;\n\t\t\n\t}", "public Drive() {\r\n leftFrontDrive = new Talon(Constants.DRIVE_LEFT_FRONT);\r\n leftRearDrive = new Talon(Constants.DRIVE_LEFT_REAR);\r\n rightFrontDrive = new Talon(Constants.DRIVE_RIGHT_FRONT);\r\n rightRearDrive = new Talon(Constants.DRIVE_RIGHT_REAR);\r\n \r\n robotDrive = new RobotDrive(\r\n leftFrontDrive,\r\n leftRearDrive, \r\n rightFrontDrive, \r\n rightRearDrive);\r\n \r\n driveDirection = 1.0;\r\n \r\n arcadeYRamp = new CarbonRamp();\r\n arcadeXRamp = new CarbonRamp();\r\n tankLeftRamp = new CarbonRamp();\r\n tankRightRamp = new CarbonRamp();\r\n \r\n ui = CarbonUI.getUI();\r\n }", "public SyncFluidPacket() {\n }", "public VibrationalStructureInfo() {\n }", "public SensorData() {\n\n\t}", "protected void init( S station, String id, CLocation location, CommonDockable dockable ){\n \tif( station == null )\n \t\tthrow new IllegalArgumentException( \"station must not be null\" );\n \t\n \tif( id == null )\n \t\tthrow new IllegalArgumentException( \"id must not be null\" );\n \t\n \tif( location == null )\n \t\tthrow new IllegalArgumentException( \"location must not be null\" );\n \t\n \tsuper.init( dockable );\n \t\n this.station = station;\n this.id = id;\n this.location = location;\t\n }", "private GPSConst()\n\t{\n\t\t\n\t}", "private FlightFileManager() {\n super(\"src/data/flights.json\");\n flightSet = this.read(Flight.class);\n this.currency = 0;\n }", "public Node(IField field) {\n\t\tthis.x = field.getX();\n\t\tthis.y = field.getY();\n\n\t\tthis.growRate = field.getGrowingRate();\n\t\tthis.ressourceValue = field.getFood();\n\t\t\n\t\tthis.neighbors = new ArrayList<Edge>();\n\t}", "public Path() {\n this.fieldPath = new ArrayList<IField>()/*empty*/;\n }", "public ForecastCatalog () {\n\t\teqk_count = -1;\n\t\tlat_lon_depth_list = new long[1];\n\t\tlat_lon_depth_list[0] = 0L;\n\t\tmag_time_list = new long[1];\n\t\tmag_time_list[0] = 0L;\n\n\t\tset_standard_format();\n\t}", "public CarFuelPanel() {\n this(false, null);\n }", "public Location() {\n }", "public Block(){\r\n\t\tthis.altitude = 0;\r\n\t\tthis.river = false;\t\r\n\t\tthis.ocean = false;\r\n\t\tthis.river = false;\r\n\t\tborder = false;\r\n\t}", "void setStation(String stationType, double band);", "public Weather() {\n }", "public Battlefield() {\r\n\t\tshipTypeMap = new LinkedHashMap<Point, Integer>();\r\n\t\tshipStateMap = new LinkedHashMap<Point, Integer>();\r\n\t\tcreateMaps();\r\n\t\tnumberOfShips = 0;\r\n\t\tnumberOfAllowedShotsRemaining = 0;\r\n\t\tfor (int shipType = 0; shipType < 5; shipType++) {\r\n\t\t\tnumberOfAllowedShotsRemaining = numberOfAllowedShotsRemaining\r\n\t\t\t\t\t+ shipLengths[shipType];\r\n\t\t}\r\n\t\tuserName = \"\";\r\n\t}", "public StStatutesub() {\n }", "public Facility() {\n }", "public FieldPoint(double x, double y) {\n setX(x);\n setY(y);\n }", "public ObjXportStusRecord() {\n\t\tsuper(ObjXportStus.OBJ_XPORT_STUS);\n\t}", "public void setFromStation(String fromStation);", "public DesastreData() { //\r\n\t}", "public WeatherStation(String city, ArrayList<ie.nuig.stattion.Measurement> Measurement) \n\t{\n\t\tthis.city = city;\n\t\tthis.Measurement = Measurement;\n\t\tstations.add(this);// Every time you make new weather station it will get added to this list\n\t}", "public Ship(){\n\t}", "public StructMember() { }", "public UfFlowAttributeRecord() {\n super(UfFlowAttribute.UF_FLOW_ATTRIBUTE);\n }", "public DayPlanFragment() {\n\t}", "public Field(ArrayList<Card> field) {\r\n\t\t// 9 cards in the initial active row\r\n\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\tCard starter = field.get(0);\r\n\t\t\tstarter.makeActive();\r\n\t\t\tstarter.setPosition(10 + i * 90, 300);\r\n\t\t\tset1.add(starter);\r\n\t\t\tsetFirstLevelSubcards(i);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\t\t// 8 cards in the upper second row\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\tCard c = field.get(0);\r\n\t\t\tc.setPosition(65 + i * 90, 220);\r\n\t\t\tset2a.add(c);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\t\t// 8 cards in the lower second row\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\tCard c = field.get(0);\r\n\t\t\tc.setPosition(65 + i * 90, 380);\r\n\t\t\tset2b.add(c);\r\n\t\t\tsetSecondLevelSubcards(i);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\t\t// 4 cards in the upper third row\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tCard c = field.get(0);\r\n\t\t\tc.setPosition(100 + i * 180, 140);\r\n\t\t\tset3a.add(c);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\t\t// 4 cards in lower third row\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tCard c = field.get(0);\r\n\t\t\tc.setPosition(100 + i * 180, 460);\r\n\t\t\tset3b.add(c);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\r\n\t}", "public CarrierShape()\n {\n super();\n }", "public Struct(String a, int b){\r\n\tid=a;\r\n\tsize=b;\t\r\n\tform=0;\r\n }", "public ForecastFragment() {\n }", "public Constructor(){\n\t\t\n\t}" ]
[ "0.7015333", "0.69973284", "0.6960682", "0.6946078", "0.6712841", "0.64806324", "0.63186574", "0.6240458", "0.6230015", "0.62223077", "0.61904955", "0.618065", "0.61255294", "0.6097561", "0.6062417", "0.6044843", "0.6022939", "0.60074717", "0.59892434", "0.5980678", "0.5977617", "0.596658", "0.5961705", "0.596122", "0.5954214", "0.59160674", "0.589099", "0.5824705", "0.58102304", "0.5806892", "0.5766867", "0.57524204", "0.57428247", "0.5741042", "0.5734171", "0.5724902", "0.57224065", "0.571059", "0.5704254", "0.5698953", "0.5697248", "0.5696885", "0.56956124", "0.56910133", "0.5674669", "0.567203", "0.5671158", "0.5668244", "0.5643771", "0.5642521", "0.5640935", "0.5619962", "0.56064034", "0.56030816", "0.56016856", "0.5598549", "0.5587562", "0.55843556", "0.5581559", "0.5578596", "0.5578095", "0.5572916", "0.5567391", "0.55656415", "0.55652744", "0.55533576", "0.5539096", "0.5525071", "0.55223644", "0.5522362", "0.5521571", "0.5521441", "0.55129516", "0.55125445", "0.55075836", "0.5503352", "0.5491202", "0.5490753", "0.54811573", "0.5480145", "0.54766935", "0.5475597", "0.5475521", "0.5475127", "0.5475066", "0.5470477", "0.54647964", "0.5462437", "0.54563665", "0.5451641", "0.54502857", "0.54462177", "0.54377955", "0.5436743", "0.5429339", "0.5429117", "0.5427891", "0.54151714", "0.54151094", "0.5414975" ]
0.73334455
0
Gets the id of the FieldStation
public String getId(){ return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStationId() {\n return location.getStationId();\n }", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "public Object getStationId() {\n\t\treturn null;\n\t}", "public int getStationID() {\n\t\treturn stationID;\n\t}", "@Override\n protected String getStationId(String filename) {\n Matcher matcher = stationIdPattern.matcher(filename);\n if (matcher.matches()) {\n return matcher.group(1);\n }\n return null;\n }", "Short getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "public abstract long getSdiId();", "public static String id()\n {\n return _id;\n }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public int getId() {\n\t\treturn definition.get().getId();\n\t}", "public String id() {\n return definition.getString(ID);\n }", "java.lang.String getID();", "public String getStationNumber ()\n\t{\n\t\tString stationNo = getContent().substring(OFF_ID27_STATION, OFF_ID27_STATION + LEN_ID27_STATION) ;\n\t\treturn (stationNo);\n\t}", "public final String getFieldId() {\n return fieldId;\n }", "Integer getId();" ]
[ "0.7385759", "0.719238", "0.7176085", "0.7093586", "0.6644441", "0.6613961", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65482944", "0.65300053", "0.65300053", "0.65300053", "0.65300053", "0.65300053", "0.65300053", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.6497056", "0.64900565", "0.64835215", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.64801794", "0.647644", "0.6476054", "0.6457709", "0.6454863", "0.6431255", "0.64154017" ]
0.0
-1
Gets the name of the FieldStation
public String getName(){ return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName(){\r\n return this.station.getName();\r\n }", "public String get_station_name () {\n if (!this.on) {\n return null;\n }\n\n return this.stationName;\n }", "public String getFromStationName();", "public String getStationName(){\r\n return name;\r\n }", "public String getStation() {\n return stationName;\n }", "public org.apache.xmlbeans.XmlAnySimpleType getStationName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlAnySimpleType target = null;\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(STATIONNAME$12);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "public String getToStationName();", "public String getFieldname(){\n\t\treturn sFeldname;\n\t}", "public String getStationld() {\n return stationld;\n }", "public String getFromStation();", "public String getName(){\n return field.getName();\n }", "public String getName() {\n return stid.trim() + std2.trim();\n }", "public java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String getName() {\n return sname;\n }", "@Override\n public String getFName() {\n\n if(this.fName == null){\n\n this.fName = TestDatabase.getInstance().getClientField(token, id, \"fName\");\n }\n return fName;\n }", "String getSegmentName();", "public String name() {\n return celestialName;\n }", "String getName() ;", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.79111546", "0.7696221", "0.75989145", "0.7305598", "0.729639", "0.7194226", "0.71339065", "0.67735195", "0.6684861", "0.66499645", "0.6636085", "0.6562818", "0.65289116", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.64765596", "0.63643867", "0.63521475", "0.6346606", "0.6340789", "0.6338033", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414", "0.63340414" ]
0.0
-1
Gets the sensors attached to the FieldStation
public SetOfSensors getSetOfSensors(){ return sensors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }", "List<Sensor> getTempSensors() {\n return Collections.unmodifiableList(this.tempSensors);\n }", "protected Sensor[] getSensorValues() { return sensors; }", "public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.clear();\n\t\t\n\t\t//Getting the information from the keyboard listener\n\t\tif(keyboardListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.keyboardListener.getKeyboardEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.keyboardListener.getKeyboardEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.keyboardListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse listener\n\t\tif(mouseListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseListener.getMouseEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseListener.getMouseEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse motion listener\n\t\tif(mouseMotionListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseMotionListener.getMouseMotionEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseMotionListener.getMouseMotionEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseMotionListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse wheel listener\n\t\tif(mouseWheelListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseWheelListener.getMouseWheelEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseWheelListener.getMouseWheelEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseWheelListener.clearEvents();\n\t\t}\n\t\t\n\t\t//If we want to write a JSON file with the data\n\t\tif(Boolean.parseBoolean(this.configuration.get(artie.sensor.common.enums.ConfigurationEnum.SENSOR_FILE_REGISTRATION.toString()))){\n\t\t\tthis.writeDataToFile();\n\t\t}\n\t\t\n\t\treturn this.sensorData;\n\t}", "public int getSensors() {\n return sensors;\n }", "protected String[] getSensorValues() {\r\n\t\t// FL, FM, FR, RB, RF, LF\r\n\t\tString[] sensorValues = sensor.getAllSensorsValue(this.x, this.y, getDirection());\r\n\t\treturn sensorValues;\r\n\t}", "List<Sensor> getHumidSensors() {\n return Collections.unmodifiableList(this.humidSensors);\n }", "public synchronized Sensor[] getSensorArray(){\n\t\treturn sensorArray;\n\t}", "Sensor getSensor();", "public LinkedList<Temperature> listSensorTemperature(){\r\n LinkedList<Temperature> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Temperature)\r\n aux.add((Temperature)s);\r\n }\r\n return aux;\r\n }", "List<Sensor> getPm10Sensors() {\n return Collections.unmodifiableList(this.pm10Sensors);\n }", "@Override\n\tpublic Sensor[] getAllSensors() {\t\n\t\tArrayList<Sensor> sensorArray = new ArrayList<Sensor>();\n\t\t\n\t\tfor(Entry<String, ArrayList<Sensor>> entry : this.sensors.entrySet()) {\n\t\t\tfor(Sensor thisSensor : entry.getValue()) {\n\t\t\t\tsensorArray.add(thisSensor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ArrayList.toArray() didn't want to play ball.\n\t\tSensor[] sensorRealArray = new Sensor[sensorArray.size()];\n\t\t\n\t\treturn sensorArray.toArray(sensorRealArray);\n\t}", "public float[] getSensorValues() {\n return mVal;\n }", "public EV3UltrasonicSensor getSensor() {\r\n\t\treturn sensor;\r\n\t}", "private LinkedList<Wind> listSensorWind(){\r\n LinkedList<Wind> aux=new LinkedList<>();\r\n for (Sensor doo:sensors){\r\n if(doo instanceof Wind)\r\n aux.add((Wind)doo);\r\n }\r\n return aux;\r\n }", "public String getSensor()\n {\n return sensor;\n }", "@RequestMapping(value = \"/station/{id}/sensors\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Sensor>> findAllStationSensors(@PathVariable(\"id\") long id) {\n\t\tStation currentStation = stationDao.findById(id);\n\t\tif (currentStation == null) {\n\t\t\tlogger.info(\"Station with id \" + id + \" not found\");\n\t\t\treturn new ResponseEntity<List<Sensor>>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\tList<Sensor> sensors = stationDao.findAllStationSensors(id);\n\t\tif (sensors == null || sensors.isEmpty()) {\n\t\t\treturn new ResponseEntity<List<Sensor>>(HttpStatus.NO_CONTENT);\n\t\t}\n\t\treturn new ResponseEntity<List<Sensor>>(sensors, HttpStatus.OK);\n\t}", "public static java.util.List<com.lrexperts.liferay.liferayofthings.model.SensorValue> findAll()\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().findAll();\n }", "public List<SuperSensor> getSensorsByClass(Class c)\n {\n return sensorModules.getSensorsByClass(c);\n }", "public IGarmentDriver getSensorDriver() {\n return sensorDriver;\n }", "public synchronized Sensor getSensor(int id)\n {\n return sensors.get(id);\n }", "private LinkedList<Gas> listSensorGas(){\r\n LinkedList<Gas> aux=new LinkedList<>();\r\n for (Sensor doo:sensors){\r\n if(doo instanceof Gas)\r\n aux.add((Gas)doo);\r\n }\r\n return aux;\r\n }", "public int getNumberOfSensors() {\n\t\treturn numSensors;\n\t}", "public int getSensorCount() {\n return sensorCount ;\n }", "@Override\n\tpublic ArrayList getListOfSensors(Context androidContext) {\n\t\ttry{\n\t\t\tAndroidSensorDataManager androidSensorDataManager = AndroidSensorDataManagerSingleton.getInstance(androidContext);\n\n\t\t\tList<BraceForceSensorLinkManager> linkManager = androidSensorDataManager.getAllRegisteredSensorLinkManagers();\n\t\t\tArrayList sensorList = new ArrayList();\n\t\t\tfor ( BraceForceSensorLinkManager sensorManager : linkManager){\n\t\t\t\tSensorMetaInfo meta = new SensorMetaInfo();\n\t\t\t\tmeta.setSensorID(sensorManager.getSensorID());\n\t\t\t\tmeta.setSensorType(sensorManager.getCommunicationChannelType().name());\n\t\t\t\tsensorList.add(meta);\n\t\t\t}\n\t\t\treturn sensorList;\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tLog.d(\"Sensor Node\", \"Get sensor list error \" + ex.toString());\n\t\t\treturn null;\n\t\t}\n\t}", "public LinkedList<NaturaLight> listSensorNaturaLight(){\r\n LinkedList<NaturaLight> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof NaturaLight)\r\n aux.add((NaturaLight)s);\r\n }\r\n return aux;\r\n }", "GenericFloatSensor sensor();", "public int[] getTempSensorData()\n {\n return tempSensorData;\n }", "public ArrayList<GeoMagStation> getGeoMagStationList() {\n\t\treturn stationList;\n\t}", "public int getSensorID() {\n return sensorID;\n }", "public List<SuperSensor> getSensorsBySensorType(SensorType type)\n {\n return sensorModules.getSensorsBySensorType(type);\n }", "public List<SuperSensor> getSensorsByType(String type)\n {\n if(type == null)\n {\n return null;\n }\n return sensorModules.getSensorsByType(type.toLowerCase());\n }", "@ApiOperation(\"查询传感器的信息\")\n @GetMapping(\"alldata\")\n //PageParam pageParam\n public Result<List<Sensordetail>> allsensorinf() {\n return Result.createBySuccess(sensorDetailMapper.selectAll());\n }", "private List<Sensor> getSensors(String jsonString) {\n List<Sensor> readSensors = new ArrayList<>();\n\n JSONArray sensors;\n JSONObject sensor;\n\n Iterator typesIterator;\n String type;\n\n JSONArray coordinatesArray;\n double latitude;\n double longitude;\n\n double measure;\n\n try {\n sensors = new JSONArray(jsonString);\n\n for (int i = 0; i < sensors.length(); i++) {\n sensor = sensors.getJSONObject(i);\n\n if (sensor.getBoolean(IS_ACTIVE_KEY)) {\n typesIterator = sensor.getJSONObject(DATA_KEY).keys();\n\n while (typesIterator.hasNext()) {\n try {\n type = (String) typesIterator.next();\n JSONObject data =\n sensor.getJSONObject(DATA_KEY)\n .getJSONObject(type).getJSONObject(DATA_KEY);\n\n measure = data.getDouble(data.keys().next());\n if (measure < 0 || measure > MEASUREMENTS_LIMIT_UPPER) {\n continue;\n }\n\n coordinatesArray = \n sensor.getJSONObject(GEOM_KEY)\n .getJSONArray(COORDINATES_KEY);\n latitude = coordinatesArray.getDouble(1);\n longitude = coordinatesArray.getDouble(0);\n\n readSensors.add(new Sensor(this.parseType(type),\n new LatLng(latitude, longitude),\n measure));\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n }\n }\n }\n } catch (JSONException e) {\n Log.e(NO_JSON_OBJECT_FOUND_LOG_TITLE, NO_JSON_OBJECT_FOUND_LOG_CONTENTS);\n }\n\n return readSensors;\n }", "public List<Device> getListDevice() {\n\n\t\tList<Device> listDevice = new ArrayList<Device>();\n\n\t\tDevice device = new Device();\n\n\t\tdevice.setName(\"DeviceNorgren\");\n\t\tdevice.setManufacturer(\"Norgren\");\n\t\tdevice.setVersion(\"5.7.3\");\n\t\tdevice.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\n\t\tSensor sensorTemperature = new Sensor();\n\t\tsensorTemperature.setName(\"SensorSiemens\");\n\t\tsensorTemperature.setManufacturer(\"Siemens\");\n\t\tsensorTemperature.setVersion(\"1.2.2\");\n\t\tsensorTemperature.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorTemperature.setMonitor(\"Temperature\");\n\n\t\tSensor sensorPressure = new Sensor();\n\t\tsensorPressure.setName(\"SensorOmron\");\n\t\tsensorPressure.setManufacturer(\"Omron\");\n\t\tsensorPressure.setVersion(\"0.5.2\");\n\t\tsensorPressure.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorPressure.setMonitor(\"Pressure\");\n\n\t\tdevice.getListSensor().add(sensorTemperature);\n\t\tdevice.getListSensor().add(sensorPressure);\n\n\t\tActuator actuadorKey = new Actuator();\n\n\t\tactuadorKey.setName(\"SensorAutonics\");\n\t\tactuadorKey.setManufacturer(\"Autonics\");\n\t\tactuadorKey.setVersion(\"3.1\");\n\t\tactuadorKey.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tactuadorKey.setAction(\"On-Off\");\n\n\t\tdevice.getListActuator().add(actuadorKey);\n\n\t\tlistDevice.add(device);\n\n\t\treturn listDevice;\n\n\t}", "public List<Sensor> findLatestByNotLookingTraining() {\n\n Pulse pulse = pulseRepository.findFirstByOrderByCreatedDesc();\n pulse = pulseDataCorrection.fix(pulse);\n\n Acceleration acceleration = accelerationRepository.findFirstByOrderByCreatedDesc();\n\n List<Sensor> sensorList = new ArrayList<Sensor>();\n sensorList.add(acceleration);\n sensorList.add(pulse);\n\n return sensorList;\n }", "public final SensorMatrix getSensorMatrix() {\n return sensorMatrix;\n }", "private LinkedList<Smoke> listSensorSmoke(){\r\n LinkedList<Smoke> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Smoke)\r\n aux.add((Smoke)s);\r\n }\r\n return aux;\r\n }", "private void getAcceleroMeterAndMagneticFieldSensorIfNeeded() {\n if( !hasAppropriateSensor() ) { // no rotation vector\n List acceleroMeterSensorList = sensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER);\n List magneticFieldSensorList = sensorManager.getSensorList(Sensor.TYPE_MAGNETIC_FIELD);\n if( acceleroMeterSensorList != null && !acceleroMeterSensorList.isEmpty() &&\n magneticFieldSensorList != null && !magneticFieldSensorList.isEmpty() ) {\n Log.d(\"Ball\", \"Accelerometer and magnetic field is available\");\n sensorList = new ArrayList<Sensor>();\n sensorList.addAll(acceleroMeterSensorList);\n sensorList.addAll(magneticFieldSensorList);\n } else {\n Log.d(\"Ball\", \"Accelerometer and magnetic field is NOT available\");\n }\n }\n }", "public static Sensor getFirstSensor() {\n\t\tSensor retVal = null;\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mEnabled) {\n\t\t\t\tretVal = mSensors.get(x);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "Map<String, ISensor> getSensorMap();", "public int getSensorId() {\n\t\treturn sensorid;\n\t}", "protected void registerSensors() {\n\n Handler handler = new Handler();\n\n SensorManager sm = (SensorManager) getSystemService(SENSOR_SERVICE);\n List<Sensor> sensorList = sm.getSensorList(Sensor.TYPE_ALL);\n for (int i = 0; i < sensorList.size(); i++) {\n int type = sensorList.get(i).getType();\n if (type == Sensor.TYPE_ACCELEROMETER) {\n accelerometerResultReceiver = new SensorResultReceiver(handler);\n accelerometerResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_GYROSCOPE) {\n gyroscopeResultReceiver = new SensorResultReceiver(handler);\n gyroscopeResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_MAGNETIC_FIELD) {\n magnitudeResultReceiver = new SensorResultReceiver(handler);\n magnitudeResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_ROTATION_VECTOR) {\n rotationVectorResultReceiver = new SensorResultReceiver(handler);\n rotationVectorResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_LIGHT) {\n lightResultReceiver = new LightResultReceiver(handler);\n lightResultReceiver.setReceiver(new LightReceiver());\n\n } else if (type == Sensor.TYPE_GRAVITY) {\n gravityResultReceiver = new SensorResultReceiver(handler);\n gravityResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_PRESSURE) {\n pressureResultReceiver = new PressureResultReceiver(handler);\n pressureResultReceiver.setReceiver(new PressureReceiver());\n\n }\n }\n /*if(magnitudeResultReceiver!= null && gyroscopeResultReceiver!=null) {\n orientationResultReceiver = new SensorResultReceiver(handler);\n orientationResultReceiver.setReceiver(new SensorDataReceiver());\n }*/\n }", "public SmartDevice[] readDevices() {\n SQLiteDatabase db = getReadableDatabase();\n\n // Get data from database\n Cursor cursor = db.query(TABLE_NAME, null, null, null, null, null, null, null);\n if (cursor.getCount() <= 0) // If there is nothing found\n return null;\n\n\n // Go trough data and create class objects\n SmartDevice[] devices = new SmartDevice[cursor.getCount()];\n int i = 0;\n for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {\n devices[i++] = createDevice(cursor);\n }\n\n close();\n return devices;\n }", "@Override\n public Map<String, List<Sensor>> getDeviceSchemaList() {\n Path path = Paths.get(config.getFILE_PATH(), Constants.SCHEMA_PATH);\n if (!Files.exists(path) || !Files.isRegularFile(path)) {\n LOGGER.error(\"Failed to find schema file in \" + path.getFileName().toString());\n System.exit(0);\n }\n Map<String, List<Sensor>> result = new HashMap<>();\n try {\n List<String> schemaLines = Files.readAllLines(path);\n for (String schemaLine : schemaLines) {\n if (schemaLine.trim().length() != 0) {\n String line[] = schemaLine.split(\" \");\n String deviceName = line[0];\n if (!result.containsKey(deviceName)) {\n result.put(deviceName, new ArrayList<>());\n }\n Sensor sensor = new Sensor(line[1], SensorType.getType(Integer.parseInt(line[2])));\n result.get(deviceName).add(sensor);\n }\n }\n } catch (IOException exception) {\n LOGGER.error(\"Failed to init register\");\n }\n return result;\n }", "public static boolean[] getSensorStates() {\n\t\tboolean[] retVal = new boolean[mSensors.size()];\n\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tretVal[x] = mSensors.get(x).mEnabled;\n\t\t}\n\n\t\treturn retVal;\n\t}", "public void loadSensors() {\r\n\t\thandlerBridge.loadBrigde();\r\n\t\thandlerSensor = new SensorHandler(handlerBridge.loadSensors());\r\n\t}", "@Override\n\tprotected int getSensorData() {\n\t\treturn sensor.getLightValue();\n\t}", "public RegisterSensor.SensorDescription getRealSensorDescription() {\n return sensorDescription;\n }", "public static List<SensorDetails> getSensors(String port, String year, String month, String day) throws IOException, InterruptedException{\r\n\t\tvar jsonListString = webServerContent(\"/maps/\" + year + \"/\" + month + \"/\" + day + \"/air-quality-data.json\" , port);\r\n\t\tType listType = new TypeToken<ArrayList<SensorDetails>>(){}.getType();\r\n\t\tArrayList<SensorDetails> detailsList = new Gson().fromJson(jsonListString, listType);\r\n\t\treturn detailsList;\r\n\t\t\r\n\t}", "private void getTemperature() {\r\n \t\r\n \t//Get the date from the DateService class\r\n \tDate theDate = theDateService.getDate(); \r\n \t\r\n \t//Increment the number of readings\r\n \tlngNumberOfReadings ++;\r\n \tdouble temp = 0.0;\r\n \tString rep = \"\";\r\n \t\r\n \t//Assume that the TMP36 is connected to AIN4\r\n \trep = this.theTemperatureService.readTemperature(\"4\");\r\n \tpl(rep);\r\n \ttemp = this.theTemperatureService.getTheTemperature();\r\n \t\r\n \t//All details necessary to send this reading are present so create a new TemperatureReading object\r\n \tTemperatureReading theReading = new TemperatureReading(temp, theDate, lngNumberOfReadings);\r\n \tthis.send(theReading);\r\n \t\r\n }", "private void registerSensors()\n {\n // Double check that the device has the required sensor capabilities\n\n if(!HasGotSensorCaps()){\n showToast(\"Required sensors not supported on this device!\");\n return;\n }\n\n // Provide a little feedback via a toast\n\n showToast(\"Registering sensors!\");\n\n // Register the listeners. Used for receiving notifications from\n // the SensorManager when sensor values have changed.\n\n sensorManager.registerListener(this, senStepCounter, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, senStepDetector, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, senAccelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n }", "private void startSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.startListening();\n }\n }", "private void getSensorService() {\n mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n\n if (mSensorManager == null) {\n Log.e(TAG, \"----getSystemService failed\");\n\n } else {\n mWakeupUncalibratedGyro = mSensorManager.getDefaultSensor(\n Sensor.TYPE_GYROSCOPE_UNCALIBRATED, true);\n }\n\n if (mWakeupUncalibratedGyro != null) {\n mSensorManager.registerListener(mListener, mWakeupUncalibratedGyro,\n SensorManager.SENSOR_DELAY_UI);\n }\n }", "private SensorData collectFSInfo() throws SigarException {\n \n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Collecting File System Information\");\n }\n \n SensorData data = new SensorData();\n \n FileSystem[] fileSystems = sigar.getFileSystemList();\n \n List<FileSystemInfo> fsInfoList = new ArrayList<FileSystemInfo>();\n \n for (FileSystem fs : fileSystems) {\n \n FileSystemInfo info = new FileSystemInfo();\n \n info.setDiskName(fs.getDevName());\n info.setLocation(fs.getDirName());\n info.setType(fs.getSysTypeName());\n \n FileSystemUsage fsu = sigar.getFileSystemUsage(fs.getDirName());\n \n info.setTotalMB(fsu.getTotal() / 1024);\n info.setUsedMB(fsu.getUsed() / 1024);\n \n fsInfoList.add(info);\n }\n \n data.add(SensorAttributeConstants.FileSystemConstants.FS_DATA, fsInfoList);\n \n return data;\n }", "public SensorData getData(String sensorId){\n return sensors.getData(sensorId);\n }", "public List<NoteToken> getElts(){\r\n List<NoteToken> returnList = new ArrayList<NoteToken>();\r\n for (Iterator<Meters> i = MetersList.iterator(); i.hasNext();){\r\n returnList.addAll(i.next().getElts());\r\n }\r\n return returnList;\r\n }", "public void startSensors() {\n // Register listeners for each sensor\n sensorManager.registerListener(sensorEventListener, accelerometer, SensorManager.SENSOR_DELAY_GAME);\n }", "@SuppressWarnings(\"unchecked\")\n private List<Sensor> getSensors(Session session, int idConcentrator) {\n Query query = session.createQuery(\"FROM Sensor WHERE idConcentrator = :id\");\n query.setParameter(\"id\", idConcentrator);\n return query.list();\n }", "@Path(\"sensorOutputs\")\n SensorOutputAPI sensorOutputs();", "public void startSensors() {\r\n\t\tsensorManager.registerListener(this, accelerometer,\r\n\t\t\t\tSensorManager.SENSOR_DELAY_UI);\r\n\t\tsensorManager.registerListener(this, magneticField,\r\n\t\t\t\tSensorManager.SENSOR_DELAY_UI);\r\n\r\n\t\tLog.d(TAG, \"Called startSensors\");\r\n\t}", "public synchronized Vector<SensorData> getRawData() {\n return rawData;\n }", "public Integer getSensorType() {\n return sensorType;\n }", "public Sensor getSensor(int index) {\n if (index < 0 || index >= sensors.length)\n throw new IllegalArgumentException\n (\"Sensor index must be between 0 and \" + (sensors.length-1)) ;\n\n return sensors[index] ;\n }", "public int getSensorId();", "public byte getSensor() {\r\n\t\tbyte sensor;\r\n\t\tsensor=this.sensor;\r\n\t\treturn sensor;\r\n\t}", "public LinkedList<ExteriorEntranceDoor> listSensorExteriorEntranceDoor(){\r\n LinkedList<ExteriorEntranceDoor> aux=new LinkedList<>();\r\n for (Door doo:doors){\r\n if(doo instanceof ExteriorEntranceDoor)\r\n aux.add((ExteriorEntranceDoor)doo);\r\n }\r\n return aux;\r\n }", "private HashMap<String, Sensor> retrieveAllSensors(String url) throws IOException,\n InterruptedException {\n HashMap<String, Sensor> sensors = new HashMap<>();\n System.out.println(\"Retrieving all sensors...\");\n var response = this.gson.fromJson(this.getResponse(url), JsonArray.class);\n for (JsonElement rawSensor : response) {\n Sensor sensor = this.jsonToSensor(rawSensor);\n sensors.put(sensor.getLocation(), sensor);\n }\n System.out.println(\"All sensors retrieved!\");\n return sensors;\n }", "public static ArrayList<Sensor> getSensorsFromFile(String filename) {\n try {\n return getSensorsFromFile(new FileInputStream(new File(filename)));\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n return null; // will never be reached\n }", "public void requestAllSensors() {\n mSensorManager.registerListener(this, mRotationSensor, SENSOR_DELAY_MICROS);\n }", "public static void removeAllSensors() {\n\t\tmSensors.clear();\n\t}", "private MonitoredSensor getSensorByEFN(String name) {\n for (MonitoredSensor sensor : mSensors) {\n if (sensor.mEmulatorFriendlyName.contentEquals(name)) {\n return sensor;\n }\n }\n return null;\n }", "public List getDevices() {\n return devices;\n }", "public String[] listFc() {\n\n\t\treturn new String[] { \"component\", \"trigger\", \"deploySensor\" };\n\t}", "public Sensor parseSensor() {\n Element e = document.getDocumentElement();\n // found Sensor Element in XML\n if (e != null && e.getNodeName().equals(\"sensor\")) {\n // creates new Sensor with id as the name\n Sensor sensor = new Sensor(e.getAttribute(\"id\"));\n\n for (int i = 0; i < e.getChildNodes().getLength(); i++) {\n Node childNode = e.getChildNodes().item(i);\n if (childNode instanceof Element) {\n Element childElement = (Element) childNode;\n switch (childNode.getNodeName()) {\n case \"measurement\" :\n Measurement m = parseMeasurement(childElement);\n sensor.addMeasurement(m);\n break;\n case \"information\" :\n // maybe a new Type for extra Information from the\n // Sensor\n break;\n\n default :\n System.out.println(\n \"No case for \" + childNode.getNodeName());\n }\n }\n }\n\n return sensor;\n } else {\n return null;\n }\n }", "DeviceSensor createDeviceSensor();", "public static java.util.List<com.lrexperts.liferay.liferayofthings.model.SensorValue> findBysensorId(\n long sensorId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().findBysensorId(sensorId);\n }", "private int checkRegisteredSensors() {\n\n int counter = 0;\n\n if (listSensorDB.size() < 1) {\n Log.d(getClass().getName(), \"Lista de sensores cadastrados é ZERO! Retornando de checkRegisteredSensors()\");\n return 0;\n }\n\n if (HSSensor.getInstance().getListSensorOn().size() < 1)\n HSSensor.getInstance().setListSensorOn(listSensorDB);\n\n\n for (Sensor sensor : HSSensor.getInstance().getListSensorOn()) {\n\n Socket sock = new Socket();\n if (sensor.getIp().isEmpty()) {\n Log.d(getClass().getName(), \"O IP do sensor [\" + sensor.getNome() + \"] está vazio. Acabou de ser configurado? \" +\n \"Nada a fazer em checkRegisteredSensors()\");\n continue;\n }\n\n SocketAddress addr = new InetSocketAddress(sensor.getIp(), 8000);\n\n try {\n\n sock.connect(addr, 5000);\n Log.d(getClass().getName(), \"Conectamos em \" + sensor.getIp());\n\n\n PrintWriter pout = new PrintWriter(sock.getOutputStream());\n\n pout.print(\"getinfo::::::::\\n\");\n pout.flush();\n\n Log.d(getClass().getName(), \"Enviado getinfo:::::::: para \" + sensor.getIp() + \" - Aguardando resposta...\");\n\n byte[] b = new byte[256];\n\n sock.setSoTimeout(5000);\n int bytes = sock.getInputStream().read(b);\n sock.close();\n\n String result = new String(b, 0, bytes - 1);\n Log.d(getClass().getName(), \"Recebida resposta de \" + sensor.getIp() + \" para nosso getinfo::::::::\");\n\n Sensor tmpSensor = buildSensorFromGetInfo(result);\n if (tmpSensor == null) {\n Log.d(getClass().getName(), \"Resposta de \" + sensor.getIp() + \" nao é um sensor valido!\");\n Log.d(getClass().getName(), \"Resposta: \" + result);\n continue;\n }\n\n if (sensor.equals(tmpSensor)) {\n\n sensor.setActive(true);\n counter++;\n\n Log.d(getClass().getName(), \"Resposta de \" + sensor.getIp() + \" é um sensor valido!\");\n Log.d(getClass().getName(), \"Sensor \" + sensor.getNome() + \" : \" + sensor.getIp() + \" PAREADO!\");\n }\n\n\n } catch (Exception e) {\n\n if (e.getMessage() != null) {\n Log.d(getClass().getName(), e.getMessage());\n }\n sensor.setActive(false);\n }\n\n }\n\n return counter;\n }", "public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }", "public void refresh()\n\t{\n\t\t// loop all sensors with calling read(), test() method of sensors\n\t\tfor(int i=0; i<SensorControl.MAX_SENSOR; i++)\n\t\t{\n\t\t\tif(SecurityZone.getDeviceUnit(DeviceUnit.TYPE_WINDOW_SENSOR, i+1).getUsing()){\n\t\t\t\tif(MainDemo.sensorController.testWinDoorSensor(i))\n\t\t\t\t{\n\t\t\t\t\ttestW[i].setForeground(Color.RED);\n\t\t\t\t\ttestW[i].setText(\"enable\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttestW[i].setForeground(Color.BLACK);\n\t\t\t\t\ttestW[i].setText(\"disable\");\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif(MainDemo.sensorController.readWinDoorSensor(i))\n\t\t\t\t{\n\t\t\t\t\treadW[i].setForeground(Color.RED);\n\t\t\t\t\treadW[i].setText(\"open\");\n\t\t\t\t\tdsensor[i] = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treadW[i].setForeground(Color.BLACK);\n\t\t\t\t\treadW[i].setText(\"close\");\n\t\t\t\t\tdsensor[i] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdsensor[i] = false;\n\t\t\t}\n\n\t\t\tif(SecurityZone.getDeviceUnit(DeviceUnit.TYPE_MOTION_SENSOR, i+1).getUsing()){\n\t\t\t\tif(MainDemo.sensorController.testMotionDetector(i))\n\t\t\t\t{\n\t\t\t\t\ttestM[i].setForeground(Color.RED);\n\t\t\t\t\ttestM[i].setText(\"enable\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttestM[i].setForeground(Color.BLACK);\n\t\t\t\t\ttestM[i].setText(\"disable\");\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif(MainDemo.sensorController.readMotionDetector(i))\n\t\t\t\t{\n\t\t\t\t\treadM[i].setForeground(Color.RED);\n\t\t\t\t\treadM[i].setText(\"detect\");\n\t\t\t\t\tdsensor[i+5] = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treadM[i].setForeground(Color.BLACK);\n\t\t\t\t\treadM[i].setText(\"clear\");\n\t\t\t\t\tdsensor[i+5] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdsensor[i+5] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tMainDemo.alarmController.detect(dsensor);\n\t}", "String getSensorDataPoint();", "RegisterSensor() {\n }", "private void getTemperatureAndHumidity() {\n // Get Temp and Humid sensors only at PM10 locations, otherwise\n // the connection takes too long to load all\n for (Sensor pm10sensor : this.sensorsPm10) {\n this.sensorsTempHumid.addAll(\n this.getSensors(\n this.readHTML(\n this.buildURLTempHumid(\n pm10sensor.getLatLng()))));\n }\n }", "public LinkedList<Station> getStations() {\n return stations;\n }", "void addSensor(Sensor sensor) {\n List<Sensor> listToAddTo;\n\n switch (sensor.getSensorType()) {\n case PM10:\n listToAddTo = this.pm10Sensors;\n break;\n case TEMP:\n listToAddTo = this.tempSensors;\n break;\n case HUMID:\n listToAddTo = this.humidSensors;\n break;\n default:\n listToAddTo = new ArrayList<>();\n break;\n }\n listToAddTo.add(sensor);\n }", "public IDevice[] getDevices() { return devices; }", "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "@Override\n\tpublic void setupSensors() {\n\t\t\n\t}", "@Override\n public String[] readTemperature() throws IOException {\n LOG.info( \"#### DS1820 readTemperature\" );\n \n String[] temperature = null;\n\n getDeviceSpecifics();\n List<String> details = readTemperatureRaw();\n\n String rawTemperature = \"\";\n for ( String detail : details ) {\n LOG.debug( detail );\n rawTemperature = rawTemperature + detail;\n }\n temperature = getTemperatureFromDetail( rawTemperature, System.currentTimeMillis() );\n return temperature;\n }", "public abstract boolean sensorFound();", "public List<String> getAvailableDevices() {\n if (getEcologyDataSync().getData(\"devices\") != null) {\n return new ArrayList<>((Collection<? extends String>) ((Map<?, ?>) getEcologyDataSync().\n getData(\"devices\")).keySet());\n } else {\n return Collections.emptyList();\n }\n }", "public static ArrayList<Sensor> getSensorsFromFile(InputStream fileStream) {\n ArrayList<Sensor> sensors = new ArrayList<>();\n Properties props = new Properties();\n\n // load configuration file\n try {\n props.load(fileStream);\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n // for every property in the file...\n Enumeration e = props.propertyNames();\n iterateProperties:\n while(e.hasMoreElements()) {\n String sensorName = (String)e.nextElement();\n String[] parameters = props.getProperty(sensorName).split(\", *\");\n Duration[] refreshPeriods = new Duration[3];\n\n // validate parameter count\n if(parameters.length < 4) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (at least 4 needed)\");\n continue iterateProperties;\n }\n\n // parse refresh periods in ms\n for(int i = 0; i < 3; ++i)\n try {\n refreshPeriods[i] = Duration.ofMillis(Integer.parseInt(parameters[i + 1]));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect duration formatting (integer in milliseconds expected)\");\n continue iterateProperties;\n }\n\n // create sensor of specified type and add to arrayList\n switch (parameters[0]) {\n case \"LSM303a\":\n if(parameters.length != 6) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (LSM303a type requires exactly 6)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new LSM303AccelerationSensor(sensorName, refreshPeriods, Float.parseFloat(parameters[4]), Integer.parseInt(parameters[5])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"LSM303m\":\n if(parameters.length != 6) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (LSM303m type requires exactly 6)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new LSM303MagneticSensor(sensorName, refreshPeriods, Float.parseFloat(parameters[4]), Integer.parseInt(parameters[5])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"L3GD20H\":\n if(parameters.length != 6) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (L3GD20H type requires exactly 6)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new L3GD20HGyroscopeSensor(sensorName, refreshPeriods, Float.parseFloat(parameters[4]), Integer.parseInt(parameters[5])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"SimInt\":\n if(parameters.length != 5) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (SimInt type requires exactly 5)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new SimulatedSensorInt(sensorName, refreshPeriods, Integer.parseInt(parameters[4])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"SimFloat\":\n if(parameters.length != 5) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (SimFloat type requires exactly 5)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new SimulatedSensorFloat(sensorName, refreshPeriods, Float.parseFloat(parameters[4])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"SimVecFloat\":\n if(parameters.length != 7) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (SimFloat type requires exactly 7)\");\n continue iterateProperties;\n }\n try {\n float[] seed = new float[3];\n for(int i = 0; i < seed.length; ++i) {\n seed[i] = Float.parseFloat(parameters[i + 4]);\n }\n sensors.add(new SimulatedSensorVecFloat(sensorName, refreshPeriods, seed));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n default:\n System.err.println(\"config.properties error (\" + sensorName + \"): \" + parameters[0] + \" is not a valid sensor type\");\n continue iterateProperties;\n }\n }\n\n return sensors;\n }", "private void initSensor(){\n sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n\n registerListeners();\n }", "private void stopSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.stopListening();\n }\n }", "org.naru.park.ParkController.CommonAction getGetLatestSensorReadingForUser();", "public void addSensor(Sensor sensor){\n sensors.addSensor(sensor);\n sensor.setFieldStation(this);\n }", "public void logSensorData () {\n\t}", "public int getSensorState() {\n return -1;\n }", "public void handleSensorEvents(){\n\t}" ]
[ "0.73862463", "0.72232527", "0.71995044", "0.7159567", "0.6957924", "0.6844911", "0.6779049", "0.6745347", "0.66710603", "0.6539049", "0.64858955", "0.6478133", "0.6452102", "0.63415086", "0.6307565", "0.62922114", "0.62304384", "0.62033427", "0.6141221", "0.6079278", "0.60259384", "0.59820217", "0.59547263", "0.5930351", "0.5906584", "0.5880734", "0.58493215", "0.5846929", "0.5825402", "0.58244497", "0.57966197", "0.5783085", "0.5768765", "0.5766967", "0.57545996", "0.57495826", "0.57462084", "0.5736956", "0.5736442", "0.572268", "0.5720004", "0.57046264", "0.56942993", "0.5664445", "0.5641573", "0.5636891", "0.56283414", "0.56280833", "0.5620638", "0.5608367", "0.56011784", "0.55840546", "0.55790114", "0.5569213", "0.55636644", "0.5548699", "0.5538894", "0.5504402", "0.5490244", "0.5479962", "0.5479704", "0.5464711", "0.54563445", "0.5449339", "0.54489446", "0.5431259", "0.54268974", "0.5425579", "0.5422616", "0.5418704", "0.54182", "0.540691", "0.54044825", "0.5383383", "0.53820413", "0.5378158", "0.5375769", "0.53705376", "0.536113", "0.5350516", "0.5345889", "0.5345011", "0.5335113", "0.53339106", "0.5324683", "0.5307123", "0.52991396", "0.52984", "0.52935004", "0.52755344", "0.52741474", "0.5268716", "0.5266395", "0.525148", "0.52453", "0.52377486", "0.5236572", "0.5231568", "0.52278644", "0.5226233" ]
0.6709037
8
Adds a Sensor to the SetOfSensors sensors and sets the FieldStation on that Sensor.
public void addSensor(Sensor sensor){ sensors.addSensor(sensor); sensor.setFieldStation(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addSensor(Sensor sensor) {\n List<Sensor> listToAddTo;\n\n switch (sensor.getSensorType()) {\n case PM10:\n listToAddTo = this.pm10Sensors;\n break;\n case TEMP:\n listToAddTo = this.tempSensors;\n break;\n case HUMID:\n listToAddTo = this.humidSensors;\n break;\n default:\n listToAddTo = new ArrayList<>();\n break;\n }\n listToAddTo.add(sensor);\n }", "public synchronized int addSensor(Sensor s) throws Exception{\n int index = sList.addSensor(s);\n sensors.put(index, s);\n \n listeners.stream().forEach((listener) -> {\n listener.modelEventHandler(ModelEventType.SENSORADDED, index);\n });\n \n s.addListener(this);\n \n return index;\n }", "private void registerSensors()\n {\n // Double check that the device has the required sensor capabilities\n\n if(!HasGotSensorCaps()){\n showToast(\"Required sensors not supported on this device!\");\n return;\n }\n\n // Provide a little feedback via a toast\n\n showToast(\"Registering sensors!\");\n\n // Register the listeners. Used for receiving notifications from\n // the SensorManager when sensor values have changed.\n\n sensorManager.registerListener(this, senStepCounter, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, senStepDetector, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, senAccelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n }", "public void addSensor(String sensorId, String sensorType, String sensorUnits, int interval, int threshold, boolean upperlimit){\n Sensor theSensor = new Sensor(sensorId, sensorType, sensorUnits, interval, threshold, upperlimit);\n sensors.addSensor(theSensor);\n theSensor.setFieldStation(this);\n }", "public final flipsParser.defineSensor_return defineSensor() throws RecognitionException {\n flipsParser.defineSensor_return retval = new flipsParser.defineSensor_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal52=null;\n Token string_literal53=null;\n Token string_literal54=null;\n flipsParser.defineSensorValue_return defineSensorValue55 = null;\n\n\n CommonTree string_literal52_tree=null;\n CommonTree string_literal53_tree=null;\n CommonTree string_literal54_tree=null;\n RewriteRuleTokenStream stream_132=new RewriteRuleTokenStream(adaptor,\"token 132\");\n RewriteRuleTokenStream stream_131=new RewriteRuleTokenStream(adaptor,\"token 131\");\n RewriteRuleTokenStream stream_130=new RewriteRuleTokenStream(adaptor,\"token 130\");\n RewriteRuleSubtreeStream stream_defineSensorValue=new RewriteRuleSubtreeStream(adaptor,\"rule defineSensorValue\");\n try {\n // flips.g:176:2: ( ( 'sen' | 'sensor' | 'sensors' ) defineSensorValue -> defineSensorValue )\n // flips.g:176:4: ( 'sen' | 'sensor' | 'sensors' ) defineSensorValue\n {\n // flips.g:176:4: ( 'sen' | 'sensor' | 'sensors' )\n int alt21=3;\n switch ( input.LA(1) ) {\n case 130:\n {\n alt21=1;\n }\n break;\n case 131:\n {\n alt21=2;\n }\n break;\n case 132:\n {\n alt21=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 0, input);\n\n throw nvae;\n }\n\n switch (alt21) {\n case 1 :\n // flips.g:176:5: 'sen'\n {\n string_literal52=(Token)match(input,130,FOLLOW_130_in_defineSensor839); \n stream_130.add(string_literal52);\n\n\n }\n break;\n case 2 :\n // flips.g:176:11: 'sensor'\n {\n string_literal53=(Token)match(input,131,FOLLOW_131_in_defineSensor841); \n stream_131.add(string_literal53);\n\n\n }\n break;\n case 3 :\n // flips.g:176:20: 'sensors'\n {\n string_literal54=(Token)match(input,132,FOLLOW_132_in_defineSensor843); \n stream_132.add(string_literal54);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_defineSensorValue_in_defineSensor846);\n defineSensorValue55=defineSensorValue();\n\n state._fsp--;\n\n stream_defineSensorValue.add(defineSensorValue55.getTree());\n\n\n // AST REWRITE\n // elements: defineSensorValue\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 177:2: -> defineSensorValue\n {\n adaptor.addChild(root_0, stream_defineSensorValue.nextTree());\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public void startSensors() {\r\n\t\tsensorManager.registerListener(this, accelerometer,\r\n\t\t\t\tSensorManager.SENSOR_DELAY_UI);\r\n\t\tsensorManager.registerListener(this, magneticField,\r\n\t\t\t\tSensorManager.SENSOR_DELAY_UI);\r\n\r\n\t\tLog.d(TAG, \"Called startSensors\");\r\n\t}", "public void startSensors() {\n // Register listeners for each sensor\n sensorManager.registerListener(sensorEventListener, accelerometer, SensorManager.SENSOR_DELAY_GAME);\n }", "public SetSensorCommand(List<SensorType> requiredSensors) {\n super(CommandType.SetSensor);\n this.requiredSensors = requiredSensors;\n }", "protected void postSensorValues(Sensor[] s) { sensors = s; }", "public synchronized void addSensor(int type) {\n\n if (running) {\n throw new IllegalStateException(\"Is running\");\n }\n Sensor s = manager.getDefaultSensor(type);\n\n if (!sensorsList.contains(s)) {\n sensorsList.add(s);\n }\n }", "public static void setSensorData() throws SensorNotFoundException\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") +\"sensors/?state=\"+Constants.SENSOR_STATE_STOCK;\n\t\tsCollect = new SensorCollection();\n\t\tsCollect.setList(sURL);\n\t\t\t\n\t\tfor (SensorData sData : sCollect.getList())\n\t\t{\n\t\t\tif (sData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t{\n\t\t\t\tsensorText.setText(sData.getSensorData() + \"\\r\\n\" + \"Device: \"\n\t\t\t\t\t+ (ConnectionManager.getInstance().currentSensor(0).getDeviceName() + \"\\r\\n\" + \"Manufacture: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getManufacturerName() + \"\\r\\n\"\n\t\t\t\t\t\t\t+ \"FlashDate: \" + ConnectionManager.getInstance().currentSensor(0).getFlashDate()\n\t\t\t\t\t\t\t+ \"\\r\\n\" + \"Battery: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getBatteryVoltage()));\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void saveSensorsDB() throws Exception {\n\n\t\t//Get JDBC connection\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\tstmt = connection.createStatement();\n\t\tfor (int key : getMap().keySet()) {\n\t\t\tSubArea value = getMap().get(key);\n\t\t\tint fireValue = (value.isFireSensor()) ? 1 : 0;\n\t\t\tint burglaryValue = (value.isBurglarySensor()) ? 1 : 0;\n\t\t\t//Save Fire and Burglary sensors\n\t\t\tString sql = \"UPDATE section SET fireSensor=\" + fireValue\n\t\t\t\t\t+ \", burglarySensor=\" + burglaryValue + \" WHERE id=\" + key;\n\t\t\tstmt.executeUpdate(sql);\n\t\t}\n\n\t}", "private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }", "private void startSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.startListening();\n }\n }", "public void setSensor(byte sensor) {\r\n\t\tthis.sensor = sensor;\t\t\r\n\t}", "private void enableSensor() {\n if (DEBUG) Log.d(TAG, \">>> Sensor \" + getEmulatorFriendlyName() + \" is enabled.\");\n mEnabledByEmulator = true;\n mValue = null;\n\n Message msg = Message.obtain();\n msg.what = SENSOR_STATE_CHANGED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }", "public void loadSensors() {\r\n\t\thandlerBridge.loadBrigde();\r\n\t\thandlerSensor = new SensorHandler(handlerBridge.loadSensors());\r\n\t}", "public synchronized void addRawData (SensorData sensorData) {\n if (!isEnabled) {\n return;\n }\n\n rawData.add(sensorData);\n\n GarmentOSService.callback(CallbackFlags.VALUE_CHANGED, new ValueChangedCallback(sensorData.getLongUnixDate(), sensorData.getData()));\n\n if (rawData.size() > savePeriod) {\n saveSensor();\n }\n }", "public SetOfSensors getSetOfSensors(){\n return sensors;\n }", "private void initSensor(){\n sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n\n registerListeners();\n }", "RegisterSensor() {\n }", "@Override\n\tpublic boolean registerSensor(String name) {\n\t\t// Get an instance of the Sensor\n\t\tNamingContextExt namingService = CorbaHelper.getNamingService(this._orb());\n\t\tSensor sensor = null;\n\t\t\n\t\t// Get a reference to the sensor\n\t try {\n\t \tsensor = SensorHelper.narrow(namingService.resolve_str(name));\n\t\t} catch (NotFound | CannotProceed | InvalidName e) {\n\t\t\tSystem.out.println(\"Failed to add Sensor named: \" + name);\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t \n\t if(sensor != null) {\n\t \t// Lets check this sensors zone already exists. If not, create it\n\t\t if( ! this.sensors.containsKey(sensor.zone())) {\n\t\t \t// Create that zone\n\t\t \tArrayList<Sensor> sensors = new ArrayList<Sensor>();\n\t\t \t\n\t\t \t// Put the array into the sensors hashmap\n\t\t \tthis.sensors.put(sensor.zone(), sensors);\n\t\t }\n\t\t \n\t\t // Check if the sensor zone already contains this sensor\n\t\t if( ! this.sensors.get(sensor.zone()).contains(sensor)) {\n\t\t \t// Add the new sensor to the correct zone\n\t\t \tthis.sensors.get(sensor.zone()).add(sensor);\n\t\t \t\n\t\t \t// A little feedback\n\t\t \tthis.log(name + \" has registered with the LMS in zone \" + sensor.zone() + \". There are \" + this.sensors.get(sensor.zone()).size() + \" Sensors in this Zone.\");\n\t\t \t\n\t\t \t// Return success\n\t\t \treturn true;\n\t\t }\n\t } else {\n\t \tthis.log(\"Returned sensor was null\");\n\t }\n\t \n\t\t// At this stage, the sensor must exist already\n\t\treturn false;\n\t}", "@Override\n void add()\n {\n long sensorId = Long.parseLong(textSensorId.getText());\n MissionNumber missionNumber = textMissionNumber.getValue();\n String jobOrderNumber = textJobOrderNumber.getText();\n \n FPS16SensorDataGenerator generator = new FPS16SensorDataGenerator(tspiConfigurator.getTspiGenerator(), sensorId, missionNumber, jobOrderNumber);\n controller.addSensorDataGenerator(getRate(), getChannel(), generator);\n }", "public FieldStation(String id, String name){\n this.id = id;\n this.name = name;\n \n //Initialises the SetOfSensors sensors.\n sensors = new SetOfSensors();\n }", "@Override\n\tpublic void setupSensors() {\n\t\t\n\t}", "protected void registerSensors() {\n\n Handler handler = new Handler();\n\n SensorManager sm = (SensorManager) getSystemService(SENSOR_SERVICE);\n List<Sensor> sensorList = sm.getSensorList(Sensor.TYPE_ALL);\n for (int i = 0; i < sensorList.size(); i++) {\n int type = sensorList.get(i).getType();\n if (type == Sensor.TYPE_ACCELEROMETER) {\n accelerometerResultReceiver = new SensorResultReceiver(handler);\n accelerometerResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_GYROSCOPE) {\n gyroscopeResultReceiver = new SensorResultReceiver(handler);\n gyroscopeResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_MAGNETIC_FIELD) {\n magnitudeResultReceiver = new SensorResultReceiver(handler);\n magnitudeResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_ROTATION_VECTOR) {\n rotationVectorResultReceiver = new SensorResultReceiver(handler);\n rotationVectorResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_LIGHT) {\n lightResultReceiver = new LightResultReceiver(handler);\n lightResultReceiver.setReceiver(new LightReceiver());\n\n } else if (type == Sensor.TYPE_GRAVITY) {\n gravityResultReceiver = new SensorResultReceiver(handler);\n gravityResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_PRESSURE) {\n pressureResultReceiver = new PressureResultReceiver(handler);\n pressureResultReceiver.setReceiver(new PressureReceiver());\n\n }\n }\n /*if(magnitudeResultReceiver!= null && gyroscopeResultReceiver!=null) {\n orientationResultReceiver = new SensorResultReceiver(handler);\n orientationResultReceiver.setReceiver(new SensorDataReceiver());\n }*/\n }", "public Sensor(String id_, String buildingID_, String sensorType_){\n\t\tsuper(id_,buildingID_);\n\t\tsensorType = sensorType_;\t\n\t}", "public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.clear();\n\t\t\n\t\t//Getting the information from the keyboard listener\n\t\tif(keyboardListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.keyboardListener.getKeyboardEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.keyboardListener.getKeyboardEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.keyboardListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse listener\n\t\tif(mouseListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseListener.getMouseEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseListener.getMouseEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse motion listener\n\t\tif(mouseMotionListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseMotionListener.getMouseMotionEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseMotionListener.getMouseMotionEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseMotionListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse wheel listener\n\t\tif(mouseWheelListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseWheelListener.getMouseWheelEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseWheelListener.getMouseWheelEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseWheelListener.clearEvents();\n\t\t}\n\t\t\n\t\t//If we want to write a JSON file with the data\n\t\tif(Boolean.parseBoolean(this.configuration.get(artie.sensor.common.enums.ConfigurationEnum.SENSOR_FILE_REGISTRATION.toString()))){\n\t\t\tthis.writeDataToFile();\n\t\t}\n\t\t\n\t\treturn this.sensorData;\n\t}", "public int Register(){\n\t\tnumSensors = 0;\n\t\tm_azimuth_degrees = Integer.MIN_VALUE;\n\t\tm_sun_azimuth_degrees = 0;\n\t\trawSensorValue = 0;\n\t\tif(mSensorManager.registerListener(this, mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION), SensorManager.SENSOR_DELAY_GAME)) numSensors++; \n\t\treturn numSensors;\t\n\t}", "public void initSensorListener() {\n SensorManager mSensorManager = (SensorManager) this.mContext.getSystemService(\"sensor\");\n if (mSensorManager == null) {\n Slog.e(\"Fsm_MagnetometerWakeupManager\", \"connect SENSOR_SERVICE fail\");\n return;\n }\n boolean isRegisted = mSensorManager.registerListener(this.mMagnetometerListener, mSensorManager.getDefaultSensor(SENSOR_TYPE_HALL), 100000);\n Slog.d(\"Fsm_MagnetometerWakeupManager\", \"register Hall Sensor result:\" + isRegisted);\n }", "public void addStation(String station) {\n this.station = station;\n }", "private void initSensors() {\n\t\t\n\t\tmSsorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);\n\t\t\n\t\t\n\t\tif(!(hasLSsor = SensorTool.hasSensor(mSsorManager, Sensor.TYPE_LIGHT))) {\n\t\t\tmtvLssor.setText(mContext.getString(R.string.tv_lssor_not_available));\n\t\t} else {\n\t\t\tlssor = mSsorManager.getDefaultSensor(Sensor.TYPE_LIGHT);\n\t\t\t// set Pass button unClickable\n\t\t}\n\t\t\n\t}", "public void sendSensorData(String[] sensor) {\r\n\t\tlogger.info(\"intializing sensors: \" + Arrays.toString(sensor));\r\n\t\treadyToProcessData = false;\r\n\t\tthis.sensor = sensor;\r\n\t\tfor (int i = 0; i < sensor.length; i++) {\r\n\t\t\tif (sensor[i].equals(\"Dist-Nx-v3\")) {\r\n\t\t\t\t// dist_nx = controlClass.getDist_nx();\r\n\t\t\t\tsendCommand(10, 1, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"DIST-NX:\" + dist_nx);\r\n\t\t\t} else if (sensor[i].equals(\"LightSensorArray\")) {\r\n\t\t\t\t// lsa = controlClass.getLsa();\r\n\t\t\t\tsendCommand(10, 2, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"LSA:\" + lsa);\r\n\t\t\t} else if (sensor[i].equals(\"EOPDLinks\")) {\r\n\t\t\t\t// eopdLeft = controlClass.getEopdLeft();\r\n\t\t\t\tsendCommand(10, 3, i + 1, 1);\r\n\t\t\t\t// logger.debug(\"EOPD links\" + eopdLeft);\r\n\t\t\t} else if (sensor[i].equals(\"EOPDRechts\")) {\r\n\t\t\t\t// eopdRight = controlClass.getEopdRight();\r\n\t\t\t\tsendCommand(10, 3, i + 1, 2);\r\n\t\t\t\t// logger.debug(\"EOPD rechts\" + eopdRight);\r\n\t\t\t} else if (sensor[i].equals(\"AbsoluteIMU-ACG\")) {\r\n\t\t\t\t// absimu_acg = controlClass.getAbsimu_acg();\r\n\t\t\t\tsendCommand(10, 4, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"Gyro\" + absimu_acg);\r\n\t\t\t} else if (sensor[i].equals(\"IRThermalSensor\")) {\r\n\t\t\t\t// tsLeft = controlClass.getTsLeft();\r\n\t\t\t\tsendCommand(10, 5, i + 1, 1);\r\n\t\t\t\t// logger.debug(\"ts left\" + tsLeft);\r\n\t\t\t} else if (sensor[i].equals(\"ColourSensor\")) {\r\n\t\t\t\tsendCommand(10, 6, i + 1, 0);\r\n\t\t\t} else {\r\n\t\t\t\tsendCommand(0, 0, 0, 0);\r\n\t\t\t\tlogger.debug(\"Sensor existiert nicht\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treadyToProcessData = true;\r\n\r\n\t\ttry {\r\n\t\t\tint linearAccelaration = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.linearAccelaration\"));\r\n\t\t\tint rotationAccelaration = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.rotationAccelaration\"));\r\n\t\t\tint speed = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.rotationSpeed\"));\r\n\t\t\tsetLinearAccelaration(linearAccelaration);\r\n\t\t\tsetRotationAccelaration(rotationAccelaration);\r\n\t\t\tsetRotationSpeed(speed);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(\"sendSensorData: error while parsing properties\");\r\n\t\t}\r\n\t\t// notifyAll();\r\n\t\tlogger.debug(\"sendSensorData flag set to: \" + readyToProcessData);\r\n\t}", "public AddSensor() {\n initComponents();\n }", "private Sensor registerSensor(HalSensorConfig config){\n Sensor sensor = new Sensor();\n sensor.setDeviceConfig(config);\n manager.addAvailableDeviceConfig(config.getClass());\n manager.register(sensor);\n return sensor;\n }", "public int getSensorId() {\n\t\treturn sensorid;\n\t}", "private void configurateSensor()\n\t{\n\t\t// change state of measurement in RestApi\n\t\trestApiUpdate(\"CONFIGURING\", \"state1\");\n\t\tcheckFirmwareVersion();\n\t\t// Write configuration file to sensor\n\t\tsetAndWriteFiles();\n\n\t\t// push comment to RestApi\n\t\ttry\n\t\t{\n\t\t\trestApiUpdate(ConnectionManager.getInstance().currentSensor(0).getSerialNumber(), \"comment\");\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t\t// change state of measurement in RestApi\n\t\trestApiUpdate(\"SENSOR_OUTBOX\", \"state2\");\n\n\t\t// print address\n\t\tint index2 = customerList.getSelectionIndex();\n\t\tfor (Measurement element : mCollect.getList())\n\t\t{\n\t\t\tif (mCollect.getList().get(index2).getLinkId() == element.getLinkId())\n\t\t\t{\n\t\t\t\taData = new AddressData(element.getId());\n\t\t\t\tprintLabel(aData.getCustomerData(), element.getLinkId());\n\t\t\t}\n\n\t\t}\n\n\t\t// set configuration success message\n\t\tstatusBar.setText(\"Sensor is configurated.Please connect another sensor.\");\n\n\t\t// writing date to sensor for synchronization\n\t\t try\n\t\t{\n\t\t\tConnectionManager.getInstance().currentSensor(0).synchronize();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t\t// resetData();\n\t\t try\n\t\t{\n\t\t\tConnectionManager.getInstance().currentSensor(0).disconnect();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t}", "@Override\n public void receivedSensor(SensorData sensor) {\n synchronized(_sensorListeners) {\n if (!_sensorListeners.containsKey(sensor.channel)) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_SENSOR.str);\n UdpConstants.writeSensorData(resp.stream, sensor);\n \n // Send to all listeners\n synchronized(_sensorListeners) {\n Map<SocketAddress, Integer> _listeners = _sensorListeners.get(sensor.channel);\n _udpServer.bcast(resp, _listeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize sensor \" + sensor.channel);\n }\n }", "private void setAndWriteFiles()\n\t{\n\t\tSensorConfiguration config = new SensorConfiguration();\n\t\tString versionMajor = ConfigurationInterface_v1_0.VERSION.substring(0,\n\t\t\t\tConfigurationInterface_v1_0.VERSION.indexOf('.'));\n\t\tString versionMinor = ConfigurationInterface_v1_0.VERSION\n\t\t\t\t.substring(ConfigurationInterface_v1_0.VERSION.indexOf('.') + 1);\n\t\tconfig.setConfigurationInterfaceVersion(versionMajor, versionMinor);\n\n\t\tStartModes startModes = new StartModes();\n\t\t// set startMode for sensorConfiguration\n\t\tfor (StartMode element : startModes.getStartModeList())\n\t\t{\n\t\t\tif (element.getName().equals(\"DEFINED_TIME\"))\n\t\t\t{\n\t\t\t\tconfig.setStartMode(element);\n\t\t\t}\n\t\t}\n\n\t\tConfigurationSets configSets = new ConfigurationSets();\n\t\t// set configurationSet for sensorConfiguration\n\t\tfor (ConfigurationSet element : configSets.getConfigSetList())\n\t\t{\n\t\t\tif (element.getName().equals(\"mesana\"))\n\t\t\t{\n\n\t\t\t\tconfig.setConfigurationSet(element);\n\t\t\t}\n\t\t}\n\n\t\tif (config.getStartMode().getName().equals(\"DEFINED_TIME\"))\n\t\t{\n\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH, 10);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 5);\n\t\t\tcalendar.set(Calendar.MINUTE, 11);\n\t\t\tDate date = calendar.getTime();\n\t\t\tconfig.setRecordingStartTime(date);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconfig.setRecordingStartTime(null);\n\t\t}\n\t\t\n\t\tconfig.setRecordingDuration(12000);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnectionManager.getInstance().currentSensor(0).setSensorConfiguration(config);\n\t\t\t\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeConfigFile();\n\t\t\t\n\t\t\t// write Encrypted data to sensor\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeEncryptedParameters(\"123456789abcd12\");\n\t\t\t\n\t\t\tint index = customerList.getSelectionIndex();\n\t\t\tif (index >= 0 && index <= mCollect.getList().size())\n\t\t\t{\n\t\t\t\tString linkId = mCollect.getList().get(index).getLinkId();\n\t\t\t\tconfig.addParameter(\"LinkId\", linkId);\n\t\t\t}\n\t\t\t// write custom data to additional file in sensor\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeCustomFile();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t}", "public void addSampleToDB(Sample sensorSample, String TABLE_NAME) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(\"timestamp\", sensorSample.getTimestamp());\n values.put(\"x_val\", sensorSample.getX());\n values.put(\"y_val\", sensorSample.getY());\n values.put(\"z_val\", sensorSample.getZ());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "public void requestSensor(String sensorType){\n switch(sensorType){\n case \"SENSOR_ACC\":\n accelerometer = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n phoneSensorsMan.registerListener(sel,accelerometer, SensorManager.SENSOR_DELAY_GAME);\n break;\n case \"SENSOR_GYRO\":\n gyro = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_GYROSCOPE);\n phoneSensorsMan.registerListener(sel,gyro, SensorManager.SENSOR_DELAY_GAME);\n break;\n case \"SENSOR_MAGNET\":\n magnet = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);\n phoneSensorsMan.registerListener(sel,magnet, SensorManager.SENSOR_DELAY_GAME);\n break;\n case \"SENSOR_GPS\":\n phoneLocationMan.requestLocationUpdates(LocationManager.GPS_PROVIDER,100,1,locListener);\n break;\n case \"SENSOR_ORIENTATION\":\n orientation = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);\n phoneSensorsMan.registerListener(sel,orientation, SensorManager.SENSOR_DELAY_GAME);\n\n\n }\n }", "public Sensor registerSensor(String name, String type) {\n \tSCSensor sensor = new SCSensor(name);\n \n String uid = UUID.randomUUID().toString();\n sensor.setId(uid);\n sensor.setType(type);\n \n //temporary fix..\n if(sensorCatalog.hasSensorWithName(name))\n \tsensorCatalog.removeSensor(sensorCatalog.getSensorWithName(name).getId());\n \n // Setting PublicEndPoint\n sensor.setPublicEndpoint(publicEndPoint);\n \n /*sensor = generateSensorEndPoints(sensor);*/\n Endpoint dataEndpoint;\n if (Constants.SENSOR_TYPE_BLOCK.equalsIgnoreCase(type)) {\n dataEndpoint = new JMSEndpoint();\n dataEndpoint.setAddress(sensor.getId() + \"/data\");\n // TODO: we have to decide the connection factory to be used\n dataEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n } else if (Constants.SENSOR_TYPE_STREAMING.equalsIgnoreCase(type)) {\n dataEndpoint = new StreamingEndpoint();\n \n dataEndpoint.setProperties(configuration.getStreamingServer().getParameters());\n dataEndpoint.getProperties().put(\"PATH\", \"sensor/\" + sensor.getId() + \"/data\");\n \n // add the routing to the streaming server\n } else {\n // defaulting to JMS\n dataEndpoint = new JMSEndpoint();\n dataEndpoint.setAddress(sensor.getId() + \"/data\");\n // TODO: we have to decide the connection factory to be used\n dataEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n }\n \n sensor.setDataEndpoint(dataEndpoint);\n \n Endpoint controlEndpoint;\n \n controlEndpoint = new JMSEndpoint();\n controlEndpoint.setAddress(sensor.getId() + \"/control\");\n // TODO: we have to decide the connection factory to be used\n controlEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n sensor.setControlEndpoint(controlEndpoint);\n \n // set the update sending endpoint as the global endpoint\n Endpoint updateSendingEndpoint;\n updateSendingEndpoint = new JMSEndpoint();\n \n updateSendingEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n updateSendingEndpoint.setAddress(sensor.getId() + \"/update\");\n sensor.setUpdateEndpoint(updateSendingEndpoint);\n \n registry.addSensor(sensor);\n \n sensorCatalog.addSensor(sensor);\n updateManager.sensorChange(Constants.Updates.ADDED, sensor.getId());\n return sensor;\n }", "@Test\n public void addSensors() throws IOException, InterruptedException {\n Thread.sleep(2000);\n logger.info(\"Adding a list of sensors\");\n addPrimaryCall(11, 10, 6488238, 16);\n addPrimaryCall(12, 12, 6488239, 16);\n addPrimaryCall(13, 25, 6488224, 16);\n\n adc.New_ADC_session(adc.getAccountId());\n Thread.sleep(2000);\n adc.driver1.findElement(By.partialLinkText(\"Sensors\")).click();\n Thread.sleep(2000);\n adc.Request_equipment_list();\n }", "private Set<SensorConf> addSensorConfigurations(Session session,\n Set<SensorConf> sensorConfs) {\n for (SensorConf conf : sensorConfs) {\n session.save(conf);\n int id = ((BigInteger) session.createSQLQuery(\"SELECT LAST_INSERT_ID()\")\n .uniqueResult()).intValue();\n conf.setIdSensorConf(id);\n }\n return sensorConfs;\n }", "protected boolean registerSensor() {\n final android.hardware.Sensor sensor = mSensorConfig.getUnderlyingSensor();\n final int reportingDelay = mSensorConfig.getReportingDelayUs();\n final int samplingDelay = mSensorConfig.getSamplingDelayUs();\n final SensorManager sensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);\n isRegistered = sensorManager.registerListener(this, sensor, samplingDelay, reportingDelay);\n return isRegistered;\n }", "MonitoredSensor(Sensor sensor) {\n mSensor = sensor;\n mEnabledByUser = true;\n\n // Set appropriate sensor name depending on the type. Unfortunately,\n // we can't really use sensor.getName() here, since the value it\n // returns (although resembles the purpose) is a bit vaguer than it\n // should be. Also choose an appropriate format for the strings that\n // display sensor's value.\n switch (sensor.getType()) {\n case Sensor.TYPE_ACCELEROMETER:\n mUiName = \"Accelerometer\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"acceleration\";\n break;\n case 9: // Sensor.TYPE_GRAVITY is missing in API 7\n mUiName = \"Gravity\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"gravity\";\n break;\n case Sensor.TYPE_GYROSCOPE:\n mUiName = \"Gyroscope\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"gyroscope\";\n break;\n case Sensor.TYPE_LIGHT:\n mUiName = \"Light\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"light\";\n break;\n case 10: // Sensor.TYPE_LINEAR_ACCELERATION is missing in API 7\n mUiName = \"Linear acceleration\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"linear-acceleration\";\n break;\n case Sensor.TYPE_MAGNETIC_FIELD:\n mUiName = \"Magnetic field\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"magnetic-field\";\n break;\n case Sensor.TYPE_ORIENTATION:\n mUiName = \"Orientation\";\n mTextFmt = \"%+03.0f %+03.0f %+03.0f\";\n mEmulatorFriendlyName = \"orientation\";\n break;\n case Sensor.TYPE_PRESSURE:\n mUiName = \"Pressure\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"pressure\";\n break;\n case Sensor.TYPE_PROXIMITY:\n mUiName = \"Proximity\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"proximity\";\n break;\n case 11: // Sensor.TYPE_ROTATION_VECTOR is missing in API 7\n mUiName = \"Rotation\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"rotation\";\n break;\n case Sensor.TYPE_TEMPERATURE:\n mUiName = \"Temperature\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"temperature\";\n break;\n default:\n mUiName = \"<Unknown>\";\n mTextFmt = \"N/A\";\n mEmulatorFriendlyName = \"unknown\";\n if (DEBUG) Loge(\"Unknown sensor type \" + mSensor.getType() +\n \" for sensor \" + mSensor.getName());\n break;\n }\n }", "public void detectedNfcSensor(NfcSensor foundSensor) {\n if (detect) {\n for (Location location : locations) {\n if (location instanceof NfcSpot) {\n final NfcSpot nfcSpot = (NfcSpot) location;\n if (nfcSpot.getNfcSensor().getSerialNumber().equals(foundSensor.getSerialNumber())) {\n String log = \"Set NfcSpot \\\"\" + nfcSpot.getName() + \"\\\": \";\n Log.d(getClass().getSimpleName(), log + \"true\");\n nfcSpot.setActive(true);\n activeSpots.put(nfcSpot, timeToSetInactive);\n }\n }\n }\n }\n }", "public void setFunction(SoSensorCB f) {\n\t\t func = f; \n\t}", "public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }", "public void setSensorValue (float value) {\n this.currentSensorValue = value;\n }", "public int getNumberOfSensors() {\n\t\treturn numSensors;\n\t}", "public Sensor parseSensor() {\n Element e = document.getDocumentElement();\n // found Sensor Element in XML\n if (e != null && e.getNodeName().equals(\"sensor\")) {\n // creates new Sensor with id as the name\n Sensor sensor = new Sensor(e.getAttribute(\"id\"));\n\n for (int i = 0; i < e.getChildNodes().getLength(); i++) {\n Node childNode = e.getChildNodes().item(i);\n if (childNode instanceof Element) {\n Element childElement = (Element) childNode;\n switch (childNode.getNodeName()) {\n case \"measurement\" :\n Measurement m = parseMeasurement(childElement);\n sensor.addMeasurement(m);\n break;\n case \"information\" :\n // maybe a new Type for extra Information from the\n // Sensor\n break;\n\n default :\n System.out.println(\n \"No case for \" + childNode.getNodeName());\n }\n }\n }\n\n return sensor;\n } else {\n return null;\n }\n }", "void setStation(double station);", "public DataStorage (SensorManager sensorManager, Sensor gyro, Sensor acceleromter) {\n this.sensorManager = sensorManager;\n this.sensor = gyro;\n\n dataPoints = new LinkedList<>();\n gyroListener = new GyroListener();\n accelListener = new AccelListener();\n sensorManager.registerListener(gyroListener, gyro, SensorManager.SENSOR_DELAY_GAME);\n sensorManager.registerListener(accelListener, acceleromter, SensorManager.SENSOR_DELAY_GAME);\n }", "public int getSensorID() {\n return sensorID;\n }", "public void requestAllSensors() {\n mSensorManager.registerListener(this, mRotationSensor, SENSOR_DELAY_MICROS);\n }", "public int insertSensorData(DataValue dataVal) throws Exception;", "private void registerSensorListeners(){\n\n // Get the accelerometer and gyroscope sensors if they exist\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null){\n mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n }\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE) != null){\n mGyroscope = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);\n }\n\n // Acquire the wake lock to sample with the screen off\n mPowerManager = (PowerManager)getApplicationContext().getSystemService(Context.POWER_SERVICE);\n\n mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);\n mWakeLock.acquire();\n\n // Register sensor listener after delay to compensate for user putting phone in pocket\n\n long delay = 5;\n\n Log.d(TAG, \"Before start: \" + System.currentTimeMillis());\n\n exec.schedule(new Runnable() {\n @Override\n public void run() {\n mSensorManager.registerListener(PhoneSensorLogService.this, mAccelerometer, SAMPLE_RATE);\n mSensorManager.registerListener(PhoneSensorLogService.this, mGyroscope, SAMPLE_RATE);\n Log.d(TAG, \"Start: \" + System.currentTimeMillis());\n if (timedMode) {\n scheduleLogStop();\n }\n }\n }, delay, TimeUnit.SECONDS);\n }", "protected Sensor[] getSensorValues() { return sensors; }", "public abstract void recordSensorData(RealmObject sensorData);", "public void onSensorChanged() {\n\t\tsensorChanged();\n\t}", "void setStation(String stationType, double band);", "public void start() {\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR)==null){ // check if rotation sensor present\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD)==null\n || mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)==null){ // check if acc & mag sensors are present\n noSensorAlert(); // alert if no sensors are present\n }\n else { // use acc & mag sensors\n mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n mMagnetometer = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);\n haveSensor = mSensorManager.registerListener(this,mAccelerometer,SensorManager.SENSOR_DELAY_UI);\n haveSensor2 = mSensorManager.registerListener(this,mMagnetometer,SensorManager.SENSOR_DELAY_UI);\n }\n }\n else { // use rotation sensor\n mRotationV = mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);\n haveSensor = mSensorManager.registerListener(this,mRotationV,SensorManager.SENSOR_DELAY_UI);\n }\n }", "public void setStations(LinkedList<Station> stations) {\n this.stations = stations;\n }", "public static void removeAllSensors() {\n\t\tmSensors.clear();\n\t}", "public final flipsParser.defineSensorValue_return defineSensorValue() throws RecognitionException {\n flipsParser.defineSensorValue_return retval = new flipsParser.defineSensorValue_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token Identifier56=null;\n Token char_literal57=null;\n Token And58=null;\n Token char_literal59=null;\n Token And60=null;\n Token Identifier61=null;\n Token char_literal62=null;\n flipsParser.integerValuePositive_return sen = null;\n\n\n CommonTree Identifier56_tree=null;\n CommonTree char_literal57_tree=null;\n CommonTree And58_tree=null;\n CommonTree char_literal59_tree=null;\n CommonTree And60_tree=null;\n CommonTree Identifier61_tree=null;\n CommonTree char_literal62_tree=null;\n RewriteRuleTokenStream stream_124=new RewriteRuleTokenStream(adaptor,\"token 124\");\n RewriteRuleTokenStream stream_120=new RewriteRuleTokenStream(adaptor,\"token 120\");\n RewriteRuleTokenStream stream_Identifier=new RewriteRuleTokenStream(adaptor,\"token Identifier\");\n RewriteRuleTokenStream stream_And=new RewriteRuleTokenStream(adaptor,\"token And\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:181:2: ( Identifier '=' sen= integerValuePositive ( ( And | ',' ( And )? )? Identifier '=' sen= integerValuePositive )* -> ( ^( DEFINE Identifier ^( SENSOR $sen) ) )+ )\n // flips.g:181:4: Identifier '=' sen= integerValuePositive ( ( And | ',' ( And )? )? Identifier '=' sen= integerValuePositive )*\n {\n Identifier56=(Token)match(input,Identifier,FOLLOW_Identifier_in_defineSensorValue862); \n stream_Identifier.add(Identifier56);\n\n char_literal57=(Token)match(input,124,FOLLOW_124_in_defineSensorValue864); \n stream_124.add(char_literal57);\n\n pushFollow(FOLLOW_integerValuePositive_in_defineSensorValue868);\n sen=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(sen.getTree());\n // flips.g:181:44: ( ( And | ',' ( And )? )? Identifier '=' sen= integerValuePositive )*\n loop24:\n do {\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==Identifier) ) {\n int LA24_2 = input.LA(2);\n\n if ( (LA24_2==124) ) {\n alt24=1;\n }\n\n\n }\n else if ( (LA24_0==And||LA24_0==120) ) {\n alt24=1;\n }\n\n\n switch (alt24) {\n \tcase 1 :\n \t // flips.g:181:45: ( And | ',' ( And )? )? Identifier '=' sen= integerValuePositive\n \t {\n \t // flips.g:181:45: ( And | ',' ( And )? )?\n \t int alt23=3;\n \t int LA23_0 = input.LA(1);\n\n \t if ( (LA23_0==And) ) {\n \t alt23=1;\n \t }\n \t else if ( (LA23_0==120) ) {\n \t alt23=2;\n \t }\n \t switch (alt23) {\n \t case 1 :\n \t // flips.g:181:46: And\n \t {\n \t And58=(Token)match(input,And,FOLLOW_And_in_defineSensorValue872); \n \t stream_And.add(And58);\n\n\n \t }\n \t break;\n \t case 2 :\n \t // flips.g:181:50: ',' ( And )?\n \t {\n \t char_literal59=(Token)match(input,120,FOLLOW_120_in_defineSensorValue874); \n \t stream_120.add(char_literal59);\n\n \t // flips.g:181:54: ( And )?\n \t int alt22=2;\n \t int LA22_0 = input.LA(1);\n\n \t if ( (LA22_0==And) ) {\n \t alt22=1;\n \t }\n \t switch (alt22) {\n \t case 1 :\n \t // flips.g:181:54: And\n \t {\n \t And60=(Token)match(input,And,FOLLOW_And_in_defineSensorValue876); \n \t stream_And.add(And60);\n\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t Identifier61=(Token)match(input,Identifier,FOLLOW_Identifier_in_defineSensorValue881); \n \t stream_Identifier.add(Identifier61);\n\n \t char_literal62=(Token)match(input,124,FOLLOW_124_in_defineSensorValue883); \n \t stream_124.add(char_literal62);\n\n \t pushFollow(FOLLOW_integerValuePositive_in_defineSensorValue887);\n \t sen=integerValuePositive();\n\n \t state._fsp--;\n\n \t stream_integerValuePositive.add(sen.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop24;\n }\n } while (true);\n\n\n\n // AST REWRITE\n // elements: sen, Identifier\n // token labels: \n // rule labels: retval, sen\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_sen=new RewriteRuleSubtreeStream(adaptor,\"rule sen\",sen!=null?sen.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 182:2: -> ( ^( DEFINE Identifier ^( SENSOR $sen) ) )+\n {\n if ( !(stream_sen.hasNext()||stream_Identifier.hasNext()) ) {\n throw new RewriteEarlyExitException();\n }\n while ( stream_sen.hasNext()||stream_Identifier.hasNext() ) {\n // flips.g:182:5: ^( DEFINE Identifier ^( SENSOR $sen) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DEFINE, \"DEFINE\"), root_1);\n\n adaptor.addChild(root_1, stream_Identifier.nextNode());\n // flips.g:182:25: ^( SENSOR $sen)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SENSOR, \"SENSOR\"), root_2);\n\n adaptor.addChild(root_2, stream_sen.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n stream_sen.reset();\n stream_Identifier.reset();\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public void setSensorOn() {\n\n }", "@Override\r\n\tpublic void setFilter(Set<SensorDescriptionUpdateRate<Measurement>> bestSensors) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setFilter(Set<SensorDescriptionUpdateRate<Measurement>> bestSensors) {\n\t\t\r\n\t}", "public void addSupplier(Supplier newSupplier) {\n\t\tsupplierList.add(newSupplier);\n\t}", "DeviceSensor createDeviceSensor();", "void updateSensors() {\n\t\tint visionDim = ninterface.affectors.getVisionDim();\n\t\tdouble distance;\n\n\t\t/* Update food vision variables. */\n\t\tfor (int i = 0; i < visionDim; i++) {\n\t\t\t/* Food sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_FOOD);\n\t\t\tninterface.affectors.vFood[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Ally sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_AGENT);\n\t\t\tninterface.affectors.vAlly[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Enemy sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_ENEMY);\n\t\t\tninterface.affectors.vEnemy[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Wall sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_WALL);\n\t\t\tninterface.affectors.vWall[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\t\t}\n\t}", "private void startListening() {\n if (mEnabledByEmulator && mEnabledByUser) {\n if (DEBUG) Log.d(TAG, \"+++ Sensor \" + getEmulatorFriendlyName() + \" is started.\");\n mSenMan.registerListener(mListener, mSensor, SensorManager.SENSOR_DELAY_FASTEST);\n }\n }", "void addDeviceLocation(DeviceLocation deviceLocation) throws DeviceDetailsMgtException;", "Sensor getSensor();", "public Sensor(IGarmentDriver sensorDriver, int sampleRate, int savePeriod, float smoothness,\n String displayedSensorName, SensorType sensorType, String bluetoothID,\n MeasurementSystems rawDataMeasurementSystem, MeasurementUnits rawDataMeasurementUnit,\n MeasurementSystems displayedMeasurementSystem, MeasurementUnits displayedMeasurementUnit) {\n isInternalSensor = false;\n\n // compute the lowest external sensorID which is not forgiven yet\n int id = 100;\n for (Sensor sensor : SensorManager.getAllSensors()) {\n if (id <= sensor.getSensorID()) {\n id = sensor.getSensorID() + 1;\n }\n }\n\n sensorID = id;\n\n this.sensorDriver = sensorDriver;\n this.sampleRate = sampleRate;\n this.savePeriod = savePeriod;\n this.smoothness = smoothness;\n this.displayedSensorName = displayedSensorName;\n this.sensorType = sensorType;\n this.bluetoothID = bluetoothID;\n this.rawDataMeasurementSystem = rawDataMeasurementSystem;\n this.rawDataMeasurementUnit = rawDataMeasurementUnit;\n this.displayedMeasurementSystem = displayedMeasurementSystem;\n this.displayedMeasurementUnit = displayedMeasurementUnit;\n this.graphType = GraphType.LINE;\n this.isEnabled = true;\n\n SensorManager.addNewSensor(this);\n }", "public void updateShoeSettings(Side side, ArrayList<Double> xSensors, ArrayList<Double> ySensors, ArrayList<Double> xMotors, ArrayList<Double> yMotors, ArrayList<Integer> sensorGroups) throws IOException, NumberFormatException {\r\n FileWriter fileWriter = new FileWriter(\"././ressources/sensors\" + side.toString() + \".txt\");\r\n BufferedWriter writer = new BufferedWriter(fileWriter);\r\n for (int i = 0; i < xSensors.size(); i++) {\r\n writer.append(xSensors.get(i).intValue() + \" \" + ySensors.get(i).intValue() + \" \" + sensorGroups.get(i) + \"\\n\");\r\n }\r\n writer.close();\r\n fileWriter.close();\r\n fileWriter = new FileWriter(\"././ressources/motors\" + side.toString() + \".txt\");\r\n writer = new BufferedWriter(fileWriter);\r\n for (int i = 0; i < xMotors.size(); i++) {\r\n writer.append(xMotors.get(i).intValue() + \" \" + yMotors.get(i).intValue() + \"\\n\");\r\n }\r\n writer.close();\r\n fileWriter.close();\r\n if (side.equals(Side.LEFT)) {\r\n leftShoe.update();\r\n }\r\n else {\r\n rightShoe.update();\r\n }\r\n }", "public void sensorSystem() {\n\t}", "public void recordSensors(){\n\t\t//System.out.println(\"Your pitch is: \" + sd.getPitch());\n if (sd.getPitch() <= .1 || sd.getPitch() >6.2) {\n\t\t\t\tSystem.out.println(\"Yaw\" + sd.getYaw());\n\t\t\t\t\t//System.out.println(\"Printing off sensor data\");\n for (int i = 0; i < sd.getRSArrayLength(); i++) {\n double wallX = (sd.getLocationX() + (sd.getRangeScanner(i) * Math.cos((((i-90)* (Math.PI/180))- sd.getYaw())) + 0));\n //System.out.println(\"Wall X: \" + wallX);\n double wallY = (sd.getLocationY() + (0 - sd.getRangeScanner(i) * Math.sin((((i-90)* (Math.PI/180)) - sd.getYaw()))));\n //System.out.println(\"Wall Y: \" + wallY);\n int x = (int)Math.round((wallX * scale) + width/2);\n //System.out.println(\"X: \" + x);\n int y = (int)Math.round((wallY * scale) + height/2);\n //System.out.println(\"Y: \" + y);\n int drawline1 = (int)Math.round((sd.getLocationX() * scale) + width/2);\n int drawline2 = (int)Math.round((sd.getLocationY() * scale) + height/2);\n g2d.setColor(Color.green);\n g2d.drawLine(drawline1, drawline2, x, y);\n g2d.setColor(Color.black);\n g2d.fillRect(x,y,2,2);\n\n }\n }\n\t\t\t\t//System.out.println(\"Finished Writing Sensor Data\");\n\n\t}", "private void bindMean(){\n\t\tSensor local;\n\t\tfor (int index = 0; index < this.sensorList.getSize(); index++) {\n\t\t\tlocal = (Sensor) this.sensorList.elementAt(index);\n\t\t\tlocal.addPropertyChangeListener(moyenne);\n\t\t}\n\t}", "private void notificarSensores() {\n\t\tmvmSensorsObservers.forEach(sensorObserver -> sensorObserver.update());\n\t}", "public void recordSensors2(){\n\t\t//System.out.println(\"Your pitch is: \" + sd.getPitch());\n if (sd.getPitch() <= .1 || sd.getPitch() >6.2) {\n\t\t\t\t\t//System.out.println(\"Printing off sensor data\");\n\t\t\t\t\tSystem.out.println(\"OdTheta\" + sd.getOdTheta());\n for (int i = 0; i < sd.getRSArrayLength(); i++) {\n double wallX = (sd.getOdLocationX() + (sd.getRangeScanner(i) * Math.cos((((i-90)* (Math.PI/180))- sd.getOdTheta())) + 0));\n //System.out.println(\"Wall X: \" + wallX);\n double wallY = (sd.getOdLocationY() + (0 - sd.getRangeScanner(i) * Math.sin((((i-90)* (Math.PI/180)) - sd.getOdTheta()))));\n //System.out.println(\"Wall Y: \" + wallY);\n int x = (int)Math.round((wallX * scale) + width/2);\n //System.out.println(\"X: \" + x);\n int y = (int)Math.round((wallY * scale) + height/2);\n //System.out.println(\"Y: \" + y);\n \n\n }\n }\n\t\t\t\t//System.out.println(\"Finished Writing Sensor Data\");\n\n\t}", "@Override\n public void OnSensorChanged(SsensorEvent event) {\n Ssensor sIr = event.sensor;\n StringBuffer sb = new StringBuffer();\n sb.append(\"==== Sensor Information ====\\n\")\n .append(\"Name : \" + sIr.getName() + \"\\n\")\n .append(\"Vendor : \" + sIr.getVendor() + \"\\n\")\n .append(\"Type : \" + sIr.getType() + \"\\n\")\n .append(\"SDK Version : \"\n + mSsensorExtension.getVersionName() + \"\\n\")\n .append(\"MaxRange : \" + sIr.getMaxRange() + \"\\n\")\n .append(\"Resolution : \" + sIr.getResolution() + \"\\n\")\n .append(\"FifoMaxEventCount : \" + sIr.getFifoMaxEventCount()\n + \"\\n\").append(\"Power : \" + sIr.getPower() + \"\\n\")\n .append(\"----------------------------\\n\")\n .append(\"IR RAW DATA(HRM) : \" + event.values[0] + \"\\n\");\n tIR.setText(sb.toString());\n }", "public void buildStation(Station station) {\n stations.add(station);\n }", "@Override\n public void OnSensorChanged(SsensorEvent event) {\n Ssensor sIr = event.sensor;\n StringBuffer sb = new StringBuffer();\n sb.append(\"==== Sensor Information ====\\n\")\n .append(\"Name : \" + sIr.getName() + \"\\n\")\n .append(\"Vendor : \" + sIr.getVendor() + \"\\n\")\n .append(\"Type : \" + sIr.getType() + \"\\n\")\n .append(\"SDK Version : \"\n + mSsensorExtension.getVersionName() + \"\\n\")\n .append(\"MaxRange : \" + sIr.getMaxRange() + \"\\n\")\n .append(\"Resolution : \" + sIr.getResolution() + \"\\n\")\n .append(\"FifoMaxEventCount : \" + sIr.getFifoMaxEventCount()\n + \"\\n\")\n .append(\"Power : \" + sIr.getPower() + \"\\n\")\n .append(\"----------------------------\\n\")\n .append(\"RED LED RAW DATA(HRM) : \" + event.values[0] + \"\\n\");\n tRED.setText(sb.toString());\n }", "public void addElts(Meters meter){\r\n MetersList.add(meter);\r\n }", "public void markStationary(FireEngine engine) {\n stationaryEngines.add(engine);\n }", "public RegisterSensor(final String version, final Object sensorDescription, final ObservationTemplate observationTemplate) {\n super(version);\n this.observationTemplate = observationTemplate;\n this.sensorDescription = new SensorDescription(sensorDescription);\n }", "protected Sensor(android.hardware.Sensor sensor, int sampleRate, int savePeriod,\n float smoothness, String displayedSensorName, SensorType sensorType,\n MeasurementSystems rawDataMeasurementSystem,\n MeasurementUnits rawDataMeasurementUnit) {\n this.isInternalSensor = true;\n\n this.sensorID = sensor.getType();\n this.sampleRate = sampleRate;\n this.savePeriod = savePeriod;\n this.smoothness = smoothness;\n this.displayedSensorName = displayedSensorName;\n this.sensorType = sensorType;\n this.rawDataMeasurementSystem = rawDataMeasurementSystem;\n this.displayedMeasurementSystem = rawDataMeasurementSystem;\n this.rawDataMeasurementUnit = rawDataMeasurementUnit;\n this.displayedMeasurementUnit = rawDataMeasurementUnit;\n this.graphType = GraphType.LINE;\n\n SensorManager.addNewSensor(this);\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue create(\n long sensorValueId) {\n return getPersistence().create(sensorValueId);\n }", "public abstract void createSensors() throws Exception;", "public WeatherStation(String city, ArrayList<ie.nuig.stattion.Measurement> Measurement) \n\t{\n\t\tthis.city = city;\n\t\tthis.Measurement = Measurement;\n\t\tstations.add(this);// Every time you make new weather station it will get added to this list\n\t}", "ExternalSensor createExternalSensor();", "public int getSensors() {\n return sensors;\n }", "private void updateSensors()\r\n\t{\t\t\r\n\t\tthis.lineSensorRight\t\t= perception.getRightLineSensor();\r\n\t\tthis.lineSensorLeft \t\t= perception.getLeftLineSensor();\r\n\t\t\r\n\t\tthis.angleMeasurementLeft \t= this.encoderLeft.getEncoderMeasurement();\r\n\t\tthis.angleMeasurementRight \t= this.encoderRight.getEncoderMeasurement();\r\n\r\n\t\tthis.mouseOdoMeasurement\t= this.mouseodo.getOdoMeasurement();\r\n\r\n\t\tthis.frontSensorDistance\t= perception.getFrontSensorDistance();\r\n\t\tthis.frontSideSensorDistance = perception.getFrontSideSensorDistance();\r\n\t\tthis.backSensorDistance\t\t= perception.getBackSensorDistance();\r\n\t\tthis.backSideSensorDistance\t= perception.getBackSideSensorDistance();\r\n\t}", "@RequestMapping(value = \"/station/{id}/sensors\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Sensor>> findAllStationSensors(@PathVariable(\"id\") long id) {\n\t\tStation currentStation = stationDao.findById(id);\n\t\tif (currentStation == null) {\n\t\t\tlogger.info(\"Station with id \" + id + \" not found\");\n\t\t\treturn new ResponseEntity<List<Sensor>>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\tList<Sensor> sensors = stationDao.findAllStationSensors(id);\n\t\tif (sensors == null || sensors.isEmpty()) {\n\t\t\treturn new ResponseEntity<List<Sensor>>(HttpStatus.NO_CONTENT);\n\t\t}\n\t\treturn new ResponseEntity<List<Sensor>>(sensors, HttpStatus.OK);\n\t}", "public String getSensor()\n {\n return sensor;\n }", "public Builder setSaveSensor(\n org.naru.park.ParkController.CommonAction.Builder builderForValue) {\n if (saveSensorBuilder_ == null) {\n saveSensor_ = builderForValue.build();\n onChanged();\n } else {\n saveSensorBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void setWHStationNumber(String arg[]) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.WHSTATIONNUMBER.toString(), arg);\n\t}", "public void addLocation(LocationHandler locationHandlerArray) { \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put ( key_base_id, locationHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, locationHandlerArray.date_entry);\n\t\tvalues.put ( key_latitude, locationHandlerArray.longitude);\n\t\tvalues.put ( key_longitude, locationHandlerArray.latitude);\n\t\tvalues.put ( key_name, locationHandlerArray.name);\n\t\tvalues.put ( key_type, locationHandlerArray.type);\n\t\tvalues.put ( key_search_tag, locationHandlerArray.getSearchTag());\n\t\tvalues.put ( key_amountables, locationHandlerArray.getAmountables());\n\t\tvalues.put ( key_description, locationHandlerArray.getDescription());\n\t\tvalues.put ( key_best_seller, locationHandlerArray.getBestSeller());\n\t\tvalues.put ( key_web_site, locationHandlerArray.getWebsite());\n\t\tlong addLog = db.insert( table_location, null, values);\n\t\tLog.i(TAG, \"add data : \" + addLog);\n\t\tdb.close();\n\t}" ]
[ "0.6877479", "0.6541939", "0.64219254", "0.60309756", "0.58243126", "0.5783795", "0.577285", "0.5755717", "0.5610711", "0.5554779", "0.5545797", "0.54731786", "0.5442079", "0.54208535", "0.54144895", "0.54016584", "0.5398009", "0.5373768", "0.5318577", "0.53055286", "0.5282608", "0.52624375", "0.5199202", "0.5163696", "0.5161217", "0.51566505", "0.5147011", "0.50944686", "0.5091622", "0.50825316", "0.5031457", "0.50099826", "0.499486", "0.49879766", "0.49617055", "0.49275938", "0.4906536", "0.49031368", "0.48738262", "0.48438686", "0.4843577", "0.48242965", "0.48166764", "0.48094416", "0.48068103", "0.48055297", "0.4803824", "0.4793086", "0.4763711", "0.4761511", "0.47601113", "0.47551116", "0.47476083", "0.47386754", "0.4697607", "0.46952668", "0.4690048", "0.46900028", "0.4689101", "0.4686564", "0.46835437", "0.46806493", "0.4675006", "0.46648538", "0.46573395", "0.46529004", "0.46337032", "0.46308398", "0.46308398", "0.4628152", "0.46251315", "0.46236002", "0.46219274", "0.4617545", "0.46105957", "0.4610416", "0.4603407", "0.45979092", "0.459506", "0.45938006", "0.45890605", "0.45873982", "0.45868108", "0.45795926", "0.4577659", "0.45632178", "0.4562025", "0.45583305", "0.4549857", "0.45390236", "0.45328096", "0.45076177", "0.4503415", "0.4500229", "0.45002264", "0.44995162", "0.4495574", "0.44924384", "0.44907424", "0.4487495" ]
0.7899907
0
Removes a Sensor from the SetOfSensors sensors.
public void removeSensor(String id){ sensors.removeSensor(sensors.getSensor(id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeSensor(String sensorID) {\n\n\t\tthis.sensors.removeIf(sensor -> sensor.getSensorID().equals(sensorID));\n\t}", "public static void removeAllSensors() {\n\t\tmSensors.clear();\n\t}", "public synchronized void removeSensor(int id) throws Exception{\n sList.deleteSensor(id);\n sensors.remove(id);\n \n listeners.stream().forEach((listener) -> {\n listener.modelEventHandler(ModelEventType.SENSORREMOVED, id);\n });\n }", "private void unRegisterSensors()\n {\n // Double check that the device has the required sensor capabilities\n // If not then we can simply return as nothing will have been already\n // registered\n if(!HasGotSensorCaps()){\n return;\n }\n\n // Perform un-registration of the sensor listeners\n\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER));\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR));\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER));\n }", "public void stopSensors() {\r\n\t\tsensorManager.unregisterListener(this);\r\n\r\n\t\tLog.d(TAG, \"Called stopSensors\");\r\n\t}", "private void stopSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.stopListening();\n }\n }", "public static void removeBysensorId(long sensorId)\n throws com.liferay.portal.kernel.exception.SystemException {\n getPersistence().removeBysensorId(sensorId);\n }", "public static void removeNonPairedSensors() {\n\t\tArrayList<Sensor> mSensorsTemp = new ArrayList<Sensor>();\n\n\t\tfor (Sensor s : mSensors) {\n\t\t\tif (s.mPaired)\n\t\t\t\tmSensorsTemp.add(s);\n\t\t}\n\n\t\tmSensors = mSensorsTemp;\n\t}", "public void remove(Station station)\n {\n world.removeActor(station.getId());\n\n for (int i = 0; i < stations.length; ++i)\n {\n if (station == stations[i])\n {\n stations[i] = null;\n break;\n }\n }\n }", "public void releaseAllSensors() {\n mSensorManager.unregisterListener(this, mRotationSensor);\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue remove(\n long sensorValueId)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().remove(sensorValueId);\n }", "public void unRegisterSensor(String id) {\n if (sensorCatalog.hasSensor(id)) {\n updateManager.sensorChange(Constants.Updates.REMOVED, id);\n sensorCatalog.removeSensor(id);\n \n registry.unRegisterSensor(id);\n \n } else {\n handleException(\"Failed to unregister the sensor, non existing sensor\");\n }\n }", "public SetOfSensors getSetOfSensors(){\n return sensors;\n }", "protected boolean unregisterSensor() {\n if (isRegistered) {\n final SensorManager sensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);\n sensorManager.unregisterListener(this);\n isRegistered = false;\n }\n return false;\n }", "public void unegisterListener(BioSensorEventListener listener, BioSensor sensor, int sampleRate) {\n\t\tLog.d(TAG, \"unregister\");\n\t\tfor(int i = 0; i < mRegisterdListeners.size(); i++) {\n\t\t\tif(sensor.getSensorId() == mRegisterdListeners.get(i).getSensor().getSensorId()) { \n\t\t\t\tif(sampleRate == mRegisterdListeners.get(i).getSampleRate()) {\n\t\t\t\t\tmRegisterdListeners.remove(i);\n//\t\t\t\t\tmArduinoTasks.get(i).cancel();\n//\t\t\t\t\tmArduinoTasks.remove(i);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tmScheduler.cancel();\n\t}", "public void stop() {\n if (haveSensor && haveSensor2){ // acc & mag sensors used\n mSensorManager.unregisterListener(this, mAccelerometer);\n mSensorManager.unregisterListener(this, mMagnetometer);\n } else if (haveSensor){ // only rotation used\n mSensorManager.unregisterListener(this, mRotationV);\n }\n }", "public void removeRobot(String name){\n robotNames.remove(name);\n measurementHandlers.remove(name);\n }", "private void removeRobot(Actor r) {\n\t\tfor (int i = 0; i < attackRobots.size(); i++) {\n\t\t\tif (attackRobots.get(i).equals(r)) {\n\t\t\t\tattackRobots.remove(i);\n\t\t\t\tcheckLost();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < supportRobots.size(); i++) {\n\t\t\tif (supportRobots.get(i).equals(r))\n\t\t\t\tsupportRobots.remove(i);\n\t\t}\n\t}", "public Builder clearDeleteSensor() {\n if (deleteSensorBuilder_ == null) {\n deleteSensor_ = null;\n onChanged();\n } else {\n deleteSensor_ = null;\n deleteSensorBuilder_ = null;\n }\n\n return this;\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue removeByUUID_G(\n java.lang.String uuid, long groupId)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().removeByUUID_G(uuid, groupId);\n }", "public void removeByUuid(java.lang.String uuid);", "public void removeByUuid(String uuid);", "public void removeByUuid(String uuid);", "public void removeByUuid(String uuid);", "private void unregisterListener() {\n mSensorManager.unregisterListener(this);\n }", "public void deleteLaser(AsteroidsLaser laser) {\n\t\tlaserShots.remove(laser);\n\t\tlaser.destroy();\n\t}", "public void removeDevice(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DEVICE$12, i);\n }\n }", "public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }", "public synchronized void removeTheWarrior(){\n charactersOccupiedTheLocation[0]=null;\n notifyAll();\n }", "boolean hasDeleteSensor();", "void removeDevice(String device) {\n availableDevices.remove(device);\n resetSelectedDevice();\n }", "private void eliminatePlayer(Player loser){\n players.remove(loser);\n }", "public org.naru.park.ParkController.CommonAction getDeleteSensor() {\n return deleteSensor_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : deleteSensor_;\n }", "void addSensor(Sensor sensor) {\n List<Sensor> listToAddTo;\n\n switch (sensor.getSensorType()) {\n case PM10:\n listToAddTo = this.pm10Sensors;\n break;\n case TEMP:\n listToAddTo = this.tempSensors;\n break;\n case HUMID:\n listToAddTo = this.humidSensors;\n break;\n default:\n listToAddTo = new ArrayList<>();\n break;\n }\n listToAddTo.add(sensor);\n }", "private void stopOrientationSensor() {\n orientationValues = null;\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n sensorManager.unregisterListener(this);\n }", "public List<SuperSensor> getSensorsBySensorType(SensorType type)\n {\n return sensorModules.getSensorsBySensorType(type);\n }", "public void removeAllLights() {\n if (_lights != null){\n _lights.clear();\n }\n }", "public void remove(Student s1){\r\n this.studentList.remove(s1);\r\n }", "private void stopListening() {\n if (DEBUG) Log.d(TAG, \"--- Sensor \" + getEmulatorFriendlyName() + \" is stopped.\");\n mSenMan.unregisterListener(mListener);\n }", "List<Sensor> getHumidSensors() {\n return Collections.unmodifiableList(this.humidSensors);\n }", "public synchronized void removeMeasurement(int which)\n\t{\n\t\tsynchronized(measurementArray){\n\t\t\t\n\t\t\tif(measurementArray[which].mType==0){\n\t\t\t\tcurt1.setEnabled(false);\n\t\t\t\tcurt2.setEnabled(false);\n\t\t\t}\n\t\t\tif(measurementArray[which].mType==1){\n\t\t\t\tcurv1.setEnabled(false);\n\t\t\t\tcurv2.setEnabled(false);\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i=which;i<numMeasurements;i++)\n\t\t\t\tmeasurementArray[i]= i<numMeasurements-1 ? measurementArray[i+1] : null;\n\n\t\t}\n\t\t\n\t\tnumMeasurements = numMeasurements>0 ? numMeasurements-1 : 0 ;\n\t}", "@Override\n\tpublic void removeObserver(Sensor observer) {\n\n\t}", "public void removeDevice(Device device) {\n this.devices.remove(device);\n device.removeTheatre(this);\n }", "public void clearGyroCrits() {\n for (int i = 0; i < locations(); i++) {\n removeCriticals(i, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n }\n }", "public void removeSoftware(Software software){\n products.remove (software);\n }", "private void stopOrientationSensor() {\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n sensorManager.unregisterListener(this);\n }", "public void removeLocationObserver(String location);", "public static Sensor getFirstSensor() {\n\t\tSensor retVal = null;\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mEnabled) {\n\t\t\t\tretVal = mSensors.get(x);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}", "@Override\r\n\tpublic void removeByUuid(String uuid) {\r\n\t\tfor (Share share : findByUuid(uuid, QueryUtil.ALL_POS,\r\n\t\t\t\tQueryUtil.ALL_POS, null)) {\r\n\t\t\tremove(share);\r\n\t\t}\r\n\t}", "public Builder clearSaveSensor() {\n if (saveSensorBuilder_ == null) {\n saveSensor_ = null;\n onChanged();\n } else {\n saveSensor_ = null;\n saveSensorBuilder_ = null;\n }\n\n return this;\n }", "public void removeDeviceListener(DeviceDriverListener device);", "public void removeSoftware(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SOFTWARE$20, i);\n }\n }", "public void remove(double x, double y) {\n\t\tremove(new GPoint(x, y));\n\t}", "public synchronized void removeChangeListener(ChangeListener l) {\n if (changeListeners != null && changeListeners.contains(l)) {\n Vector v = (Vector) changeListeners.clone();\n v.removeElement(l);\n changeListeners = v;\n }\n }", "public void removeByWsi(long wsiId);", "public void removeReadingPointListener(ReadingPointListener l) {\n\t\tlisteners.remove(l);\n\t}", "public void removeFromList(Distributor distributor) {\n distributors.remove(distributor);\n distributor.kill();\n }", "public Location remove() {\n\t\t//empty set\n\t\tif (head == null){\n\t\t\treturn null;\n\t\t}\n\n\t\t//removes and returns the SquarePosition object from the top of the set\n\t\tLocation removedLocation = head.getElement();\n\t\thead = head.next;\n\t\tsize --;\n\t\treturn removedLocation;\n\t}", "public static void removeTower(Tower t)\n\t{\n\t\ttowers.remove(t);\n\t}", "@Override\n public void remove(SpectatorComponent spectatorComponent) {\n }", "public void removePeripheralEventListener(PeripheralHardwareDriverInterface l);", "@Override\n public void removeFromCache(String sensorID) {\n }", "public org.naru.park.ParkController.CommonAction getDeleteSensor() {\n if (deleteSensorBuilder_ == null) {\n return deleteSensor_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : deleteSensor_;\n } else {\n return deleteSensorBuilder_.getMessage();\n }\n }", "public static void unsetPairedFlagAllSensors() {\n\t\tfor (Sensor s : mSensors) {\n\t\t\ts.mPaired = false;\n\t\t}\n\t}", "public void remove(String s) {\n boolean remove = false;\n for (int i = 0; i < size && !remove; i++) {\n if (elements[i] == s) {\n remove = true;\n elements[i] = null;\n }\n }\n }", "org.naru.park.ParkController.CommonAction getDeleteSensor();", "public void removeAll(Set<Alarm> alarms) {\n\ttry {\n\t LOGGER.debug(I18n.getResource(LanguageKeys.LogsMessages.LOG_ALARM_REMOVE_ALL, true));\n\t alarmRepository.deleteAll(alarms);\n\t} catch (IllegalArgumentException e) {\n\t LOGGER.error(\n\t\t I18n.getResource(LanguageKeys.LogsMessages.LOG_ERROR_ALARM_SET_NULL, true, new Object[] { e }));\n\t} catch (Exception e) {\n\t LOGGER.error(I18n.getResource(LanguageKeys.LogsMessages.UNEXPECTED_ERROR, true, new Object[] { e }));\n\t}\n }", "public void removeWatersheds(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(WATERSHEDS$4, i);\r\n }\r\n }", "@JavascriptInterface\n public void STOP() {\n sensorManager.unregisterListener(this);\n }", "public void removeActor(int index) { ActorSet.removeElementAt(index); }", "@Override\r\n\tpublic void removeToElement(Student student) {\n\t}", "public List<SuperSensor> getSensorsByType(String type)\n {\n if(type == null)\n {\n return null;\n }\n return sensorModules.getSensorsByType(type.toLowerCase());\n }", "synchronized void remove(SocketIoSocket socket) {\n mSockets.remove(socket.getId());\n }", "void remove(Coordinates coords) throws IOException;", "public org.naru.park.ParkController.CommonActionOrBuilder getDeleteSensorOrBuilder() {\n return getDeleteSensor();\n }", "public void removeProbe(RadioProbe p) {\n probes.remove(p);\n }", "public static void removeListenersFromSpatial( Spatial s, MouseListener... listeners ) {\n if( s == null ) {\n return;\n }\n MouseEventControl mec = s.getControl(MouseEventControl.class); \n if( mec == null ) {\n return;\n } else {\n mec.listeners.removeAll(Arrays.asList(listeners));\n }\n }", "public static void removeGenomeChangedListener(Listener<GenomeChangedEvent> l) {\n genomeController.removeListener(l);\n }", "public void removeVehicle() {\n\t\tmVehicles.removeFirst();\n\t}", "void removeRobot(Position pos);", "public void removeSocketNodeEventListener(\n final SocketNodeEventListener l) {\n listenerList.remove(l);\n }", "public void removeLocation(int index)\n {\n this.locationLst.remove(index);\n }", "public void removeMonitor(Hardware monitor) {\n monitor.setTable(null, -1);\n monitors.remove(monitor);\n\n for (int i = 0; i < monitors.size(); i++) {\n monitors.get(i)\n .setCoordinates(WorkingTableView.MONITOR_POINTS[i].x,\n WorkingTableView.MONITOR_POINTS[i].y);\n }\n\n// removeHardwareFromRoom(monitor);\n }", "@Override\r\n\tpublic void removeFromElement(Student student) {\n\t\t// Add your implementation here\r\n\t\tif (student == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Null student object detected\");\r\n\r\n\t\tint index = getStudentIndex(student);\r\n\r\n\t\t/*\r\n\t\t * if(index >= 0) { this.students[index] = null; }\r\n\t\t */\r\n\r\n\t\t\r\n\t\tStudent[] students1 = new Student[this.students.length - 1];\r\n\r\n\t\tint i = 0;\r\n\t\tint x = 0;\r\n\t\twhile (i < students.length) {\r\n\t\t\tif (i == index) {\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\r\n\t\t\tstudents1[x] = students[i];\r\n\t\t\ti++;\r\n\t\t\tx++;\r\n\t\t}\r\n\r\n\t\tthis.students = students1;\r\n\t}", "public abstract int removeStone(int whoseTurn, int numberToRemove, int upperBound, int currentStone,\n\t\t\tint initialStones, Scanner scanner);", "public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void removeActor(Actor act) { ActorSet.removeElement(act); }", "void remove(int row, int column) {\n SparseArrayCompat<TObj> array = mData.get(row);\n if (array != null) {\n array.remove(column);\n }\n }", "public ModelElement removeSupplier(ModelElement supplier1)\n // -end- 335C0D7A02E4 remove_head327A646F00E6 \"Dependency::removeSupplier\"\n ;", "public void remover(Usuario u) {\n listaUse.remove(u);\n\n }", "private void unregisterListener() {\n\t\tif (!mHasStarted || mSensorManager == null) {\n\t\t\treturn;\n\t\t}\n\t\tmHasStarted = false;\n\t\tmSensorManager.unregisterListener(mAccListener);\n\t}", "@Override\n\tpublic void removeByUuid(String uuid) throws SystemException {\n\t\tfor (TvShow tvShow : findByUuid(uuid, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}", "public abstract void removeLocation(Location location);", "private void removeDrone(Drone drone){\n\t\tthis.getDroneSet().remove(drone);\n\t}", "private void removeDevice(final IDevice device) {\n int index = getDeviceIndex(device);\n if (index == -1) {\n Log.d(\"Can't find \" + device + \" in device list of DeviceManager\");\n return;\n }\n mDevices.get(index).disconnected();\n mDevices.remove(index);\n }", "public int getNumberOfSensors() {\n\t\treturn numSensors;\n\t}", "public void remove(int location,Object o){\n feedList.remove(location);\n notifyItemRemoved(location);\n notifyItemRangeChanged(location, feedList.size());\n }", "synchronized public void removeFromRoster(Student student) {\n if(getEveningRoster().contains(student)) {\n getEveningRoster().remove(student);\n updateWaitlist();\n }\n else {\n getMorningRoster().remove(student);\n updateWaitlist();\n }\n }", "@Override\n\tpublic void removeByUuid(String uuid) {\n\t\tfor (Paper paper : findByUuid(uuid, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "public void remove();" ]
[ "0.6902894", "0.68370587", "0.6439764", "0.6317683", "0.6259968", "0.6013496", "0.5937425", "0.5753663", "0.5629914", "0.5535003", "0.545113", "0.54477006", "0.53981787", "0.53862566", "0.5336011", "0.5320682", "0.5211424", "0.51945806", "0.5185023", "0.5177837", "0.49653164", "0.49562627", "0.49562627", "0.49562627", "0.49279308", "0.4918702", "0.4904715", "0.48762068", "0.48568577", "0.48293534", "0.48221242", "0.4815897", "0.48129174", "0.4806858", "0.4801683", "0.47996083", "0.47906587", "0.47726062", "0.47663423", "0.47607404", "0.47582313", "0.47540596", "0.4751836", "0.47448424", "0.4733861", "0.472036", "0.47195473", "0.47130996", "0.46920198", "0.46865454", "0.4678784", "0.4670326", "0.4669921", "0.466945", "0.4661856", "0.46550462", "0.46419132", "0.46362606", "0.46356452", "0.4628392", "0.46204233", "0.46020544", "0.45955765", "0.45945513", "0.45890567", "0.45682412", "0.45672452", "0.45653814", "0.45578578", "0.45545495", "0.45519465", "0.455108", "0.45486608", "0.4540846", "0.45405447", "0.4530613", "0.45206207", "0.45160207", "0.45147395", "0.45015025", "0.44947454", "0.44910687", "0.4467916", "0.44642285", "0.44616723", "0.44608727", "0.44551614", "0.4454389", "0.4448647", "0.44466847", "0.44416258", "0.4438117", "0.4437008", "0.4432903", "0.44216794", "0.44193596", "0.44171658", "0.44159824", "0.43950406", "0.43933266" ]
0.6578437
2
Adds SensorData to the Buffer. Then tries to write that Buffer to the Server if there's a connection.
public void update(String filename, SensorData sensorData){ //Adds the sensor data to the buffer. addToBuffer(filename, sensorData); //Uploads the data to the server if it's turned on. if (Server.getInstance().getServerIsOn()) if(uploadData()){ //If the upload was successful, clear the buffer. clearBuffer(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean uploadData(){\n ObjectInputStream instream = null;\n Vector<SensorData> dummyData = new Vector<SensorData>();\n \n try {\n //Tries to create an ObjectInStream for the buffer serialisation file.\n FileInputStream fileinput = new FileInputStream (\"data/buffer.ser\");\n instream = new ObjectInputStream(fileinput);\n \n //Loops through the ObjectInputStream\n do{\n try {\n //Tries to get an object from the ObjectInputStream\n SensorData newData = (SensorData)instream.readObject();\n //Adds the data to the Vector<SensorData> if not null.\n if (newData != null)\n dummyData.add(newData);\n } catch(ClassNotFoundException ex) {\n //Caught Exception if the instream.readObject() isn't of type SensorData\n System.out.println(ex);\n }\n } while (true);\n } catch(IOException io) {\n //Caught Exception if the instream.readObject found the end of the file or failed to create the instream\n System.out.println(io); \n }\n \n try {\n //Tries to colse the instream.\n instream.close();\n } catch (IOException ex) {\n System.out.println(ex); \n }\n \n if (dummyData.size() > 0){\n //if there was any SensorData found in the Buffer add it to the Server. \n Server.getInstance().addData(dummyData, id);\n return true;\n } else {\n //Otherwise something went wrong or there was no SensorData to add so return false.\n return false;\n }\n \n \n }", "public void addToBuffer(String filename, SensorData sensorData){\n ObjectOutputStream outstream;\n try {\n File bufferFile = new File(filename);\n //Checks to see if the buffer file already exists. \n if(bufferFile.exists())\n {\n //Create an AppendableObjectOutputStream to add the the end of the buffer file as opposed to over writeing it. \n outstream = new AppendableObjectOutputStream(new FileOutputStream (filename, true));\n } else {\n //Create an ObjectOutputStream to create a new Buffer file. \n outstream = new ObjectOutputStream(new FileOutputStream (filename)); \n }\n //Adds the SensorData to the end of the buffer file.\n outstream.writeObject(sensorData);\n outstream.close();\n } catch(IOException io) {\n System.out.println(io);\n }\n }", "public synchronized void addRawData (SensorData sensorData) {\n if (!isEnabled) {\n return;\n }\n\n rawData.add(sensorData);\n\n GarmentOSService.callback(CallbackFlags.VALUE_CHANGED, new ValueChangedCallback(sensorData.getLongUnixDate(), sensorData.getData()));\n\n if (rawData.size() > savePeriod) {\n saveSensor();\n }\n }", "private void sendData(SensorData sensorData) {\n EventMessage message = new EventMessage(EventMessage.EventType.RECEIVED_RAW_DATA);\n message.setSensorData(sensorData);\n EventBus.getDefault().post(message);\n }", "@Override\n public void receivedSensor(SensorData sensor) {\n synchronized(_sensorListeners) {\n if (!_sensorListeners.containsKey(sensor.channel)) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_SENSOR.str);\n UdpConstants.writeSensorData(resp.stream, sensor);\n \n // Send to all listeners\n synchronized(_sensorListeners) {\n Map<SocketAddress, Integer> _listeners = _sensorListeners.get(sensor.channel);\n _udpServer.bcast(resp, _listeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize sensor \" + sensor.channel);\n }\n }", "private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }", "public int insertSensorData(DataValue dataVal) throws Exception;", "@Override\n protected void sendBuffer(byte[] buffer) {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if (serialDriver != null) {\n try {\n serialDriver.write(buffer, 500);\n } catch (IOException e) {\n Log.e(TAG, \"Error Sending: \" + e.getMessage(), e);\n }\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 }", "private synchronized void update() {\n int numberOfPoints = buffer.get(0).size();\n if (numberOfPoints == 0) return;\n\n for (int i = 0; i < getNumberOfSeries(); i++) {\n final List<Double> bufferSeries = buffer.get(i);\n final List<Double> dataSeries = data.get(i);\n dataSeries.clear();\n dataSeries.addAll(bufferSeries);\n bufferSeries.clear();\n }\n\n //D.info(SineSignalGenerator.this, \"Update triggered, ready: \" + getNumberOfSeries() + \" series, each: \" + data[0].length + \" points\");\n bufferIdx = 0;\n\n // Don't want to create event, just \"ping\" listeners\n setDataReady(true);\n setDataReady(false);\n }", "public void append(IoBuffer buffer) {\n data.offerLast(buffer);\n updateBufferList();\n }", "@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n // Send data to phone\n if (count == 5) {\n count = 0;\n// Log.d(\"hudwear\", \"send accel data to mobile...\"\n// + \"\\nx-axis: \" + event.values[0]\n// + \"\\ny-axis: \" + event.values[1]\n// + \"\\nz-axis: \" + event.values[2]\n// );\n// Log.d(\"hudwear\", \"starting new task.\");\n\n if (connected)\n Log.d(\"atest\", \"values: \" + event.values[0] + \", \" + event.values[1] + \", \" + event.values[2]);\n// new DataTask().execute(new Float[]{event.values[0], event.values[1], event.values[2]});\n }\n else count++;\n }\n }", "public void logSensorData () {\n\t}", "private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}", "@Override\n public void onDataWrite(String deviceName, String data)\n {\n if(mTruconnectHandler.getLastWritePacket().contentEquals(data))\n {\n mTruconnectCallbacks.onDataWritten(data);\n\n String nextPacket = mTruconnectHandler.getNextWriteDataPacket();\n if(!nextPacket.contentEquals(\"\"))\n {\n mBLEHandler.writeData(deviceName, nextPacket);\n }\n }\n else\n {\n mTruconnectCallbacks.onError(TruconnectErrorCode.WRITE_FAILED);\n mTruconnectHandler.onError();\n }\n }", "private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "private void sendAnswer(SensorData sensorData, String newValueOfProduct) throws IOException{\n\n /** The IP address and port from client . */\n InetAddress address = sensorData.getAddress();\n int port = sensorData.getPortNummber();\n //increment for check\n String message = newValueOfProduct;\n data = message.getBytes();\n DatagramPacket sendPacket = new DatagramPacket(data, data.length, address, port);\n udpSocket.send(sendPacket);\n }", "public void writeToServer() throws IOException {\n\t\tserverBuffer.writeTo(serverChannel);\n\t\tif (serverBuffer.isReadyToWrite()) {\n\t\t\tregister();\n\t\t}\n\t}", "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 abstract void recordSensorData(RealmObject sensorData);", "@Override\n public void queueDeviceWrite(IpPacket packet) {\n\n deviceWrites.add(packet.getRawData());\n }", "@Override\n public void handle(NIOConnection conn, byte[] data) {\n this.data = data;\n countDownLatch.countDown();\n }", "private void saveSensorData(InetAddress address, int port, Product product, int length){\n sensorDatas.add(new SensorData(product,port,address,length));\n\n if(isHere(port,address,product.getNameOfProduct())){\n update(port,address,product);\n }else{\n actualSensorDatas.add(new SensorData(product,port,address,length));\n }\n }", "public void sensorReader() {\n try {\n Log.i(TAG, \"wants to read from Arduino\");\n this.inputStream = socket.getInputStream();\n this.inputStreamReader = new InputStreamReader(inputStream);\n Log.i(TAG, \"inputstream ready\");\n this.bufferedReader = new BufferedReader(inputStreamReader);\n Log.i(TAG, \"buffered reader ready\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n\n Log.i(TAG, \"onDataChanged()\");\n\n for (DataEvent dataEvent : dataEvents) {\n if (dataEvent.getType() == DataEvent.TYPE_CHANGED) {\n DataItem dataItem = dataEvent.getDataItem();\n Uri uri = dataItem.getUri();\n String path = uri.getPath();\n\n if (path.startsWith(\"/sensors/\")) {\n if (SmartWatch.getInstance() != null) {\n SmartWatch.getInstance().unpackSensorData(DataMapItem.fromDataItem(dataItem).getDataMap());\n }\n }\n }\n }\n }", "public abstract void SendData(int sock, String Data) throws LowLinkException, TransportLayerException, CommunicationException;", "public void onEncodeSerialData(StreamWriter streamWriter) {\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEventBuffer) {\n for (DataEvent event : dataEventBuffer) {\n if (event.getType() == DataEvent.TYPE_CHANGED) {\n // DataItem changed\n DataItem item = event.getDataItem();\n if (item.getUri().getPath().compareTo(\"/latlnglist\") == 0) {\n\n DataMap dataMap = DataMapItem.fromDataItem(item).getDataMap();\n\n Log.d(\"hudwear\", \"new data, sending message to handler\");\n\n Message m = new Message();\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", dataMap.getDouble(\"latitude\"));\n b.putDouble(\"longitude\", dataMap.getDouble(\"longitude\"));\n m.setData(b);\n handler.sendMessage(m);\n }\n\n } else if (event.getType() == DataEvent.TYPE_DELETED) {\n // DataItem deleted\n }\n }\n }", "public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\n\t}", "@Override\n public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {\n readNextSensor(gatt);\n }", "@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }", "void synchronizeHostData(DataBuffer buffer);", "private void sendData() throws DataProcessingException, IOException {\n Data cepstrum = null;\n do {\n cepstrum = frontend.getData();\n if (cepstrum != null) {\n if (!inUtterance) {\n if (cepstrum instanceof DataStartSignal) {\n inUtterance = true;\n dataWriter.writeDouble(Double.MAX_VALUE);\n dataWriter.flush();\n } else {\n throw new IllegalStateException\n (\"No DataStartSignal read\");\n }\n } else {\n if (cepstrum instanceof DoubleData) {\n // send the cepstrum data\n double[] data = ((DoubleData) cepstrum).getValues();\n for (double val : data) {\n dataWriter.writeDouble(val);\n }\n } else if (cepstrum instanceof DataEndSignal) {\n // send a DataEndSignal\n dataWriter.writeDouble(Double.MIN_VALUE);\n inUtterance = false;\n } else if (cepstrum instanceof DataStartSignal) {\n throw new IllegalStateException\n (\"Too many DataStartSignals.\");\n }\n dataWriter.flush();\n }\n }\n } while (cepstrum != null);\n }", "public void sendData(String message) {\n if (asyncClient != null) {\n asyncClient.write(new ByteBufferList(message.getBytes()));\n Timber.d(\"Data sent: %s\", message);\n } else {\n Timber.e(\"cannot send data - socket not yet ready\");\n }\n }", "public void beginListenForData() {\n stopWorker = false;\n readBufferPosition = 0;\n try {\n inStream = btSocket.getInputStream();\n } catch (IOException e) {\n Log.d(TAG, \"Bug while reading inStream\", e);\n }\n Thread workerThread = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted() && !stopWorker) {\n try {\n int bytesAvailable = inStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n inStream.read(packetBytes);\n for (int i = 0; i < bytesAvailable; i++) {\n // Log.d(TAG, \" 345 i= \" + i);\n byte b = packetBytes[i];\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0,\n encodedBytes, 0,\n encodedBytes.length);\n final String data = new String(\n encodedBytes, \"US-ASCII\");\n readBufferPosition = 0;\n handler.post(new Runnable() {\n public void run() {\n Log.d(TAG, \" M250 ingelezen data= \" + data);\n ProcesInput(data); // verwerk de input\n }\n });\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n } // einde bytesavalable > 0\n } catch (IOException ex) {\n stopWorker = true;\n }\n }\n }\n });\n workerThread.start();\n }", "@Override\n public void onRemoteSensorUpdate(final SensorData sensorData) {\n final String text = \"Heading: \" + Integer.toString(sensorData.getSensor().heading) + \" Battery \" + Integer.toString(sensorData.getSensor().battery) + \"%\\n\"\n + \"JoyX: \" + numberFormat.format(sensorData.getControl().joy1.X) + \" JoyY: \" + numberFormat.format(sensorData.getControl().joy1.Y);\n final Speech speech = new Speech(text);\n say(speech);\n }", "public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.clear();\n\t\t\n\t\t//Getting the information from the keyboard listener\n\t\tif(keyboardListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.keyboardListener.getKeyboardEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.keyboardListener.getKeyboardEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.keyboardListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse listener\n\t\tif(mouseListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseListener.getMouseEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseListener.getMouseEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse motion listener\n\t\tif(mouseMotionListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseMotionListener.getMouseMotionEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseMotionListener.getMouseMotionEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseMotionListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse wheel listener\n\t\tif(mouseWheelListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseWheelListener.getMouseWheelEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseWheelListener.getMouseWheelEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseWheelListener.clearEvents();\n\t\t}\n\t\t\n\t\t//If we want to write a JSON file with the data\n\t\tif(Boolean.parseBoolean(this.configuration.get(artie.sensor.common.enums.ConfigurationEnum.SENSOR_FILE_REGISTRATION.toString()))){\n\t\t\tthis.writeDataToFile();\n\t\t}\n\t\t\n\t\treturn this.sensorData;\n\t}", "public void writeSysCall() {\n clientChannel.write(writeBuffer, this, writeCompletionHandler);\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n super.onDataChanged(dataEvents);\n \n Log.d(TAG, \"onDataChanged: \" + dataEvents);\n \n final List<DataEvent> events = FreezableUtils.freezeIterable(dataEvents);\n \n // Establish a connection using Google API.\n GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this)\n \t.addApi(Wearable.API)\n \t.build();\n\n ConnectionResult connectionResult = googleApiClient.blockingConnect(30, TimeUnit.SECONDS);\n\n if (!connectionResult.isSuccess()) {\n \tLog.e(TAG, \"Failed to connect to GoogleApiClient.\");\n \treturn;\n }\n\n // Attempts to retrieve the data from Android Wear device.\n for (DataEvent event : events) {\n \n final Uri uri = event.getDataItem().getUri();\n final String path = uri!=null ? uri.getPath() : null;\n \n if (\"/dreamforcedata\".equals(path)) {\n \n String PEDOMETERKEY = \"df_pedometer\";\n final DataMap map = DataMapItem.fromDataItem(event.getDataItem()).getDataMap();\n int pedValues = map.getInt(PEDOMETERKEY);\n \n // Stores the value in preferences.\n AID_prefs = getSharedPreferences(AID_OPTIONS, MODE_PRIVATE); // Main preferences variable.\n AID_prefs_editor = AID_prefs.edit();\n AID_prefs_editor.putInt(PEDOMETERKEY, 0); // Stores the retrieved integer value.\n AID_prefs_editor.putBoolean(\"df_isWearDataSent\", true);\n Log.d(TAG, \"PEDOMETER VALUE: \" + pedValues); // LOGGING\n }\n }\n }", "public void sendSensorData(String[] sensor) {\r\n\t\tlogger.info(\"intializing sensors: \" + Arrays.toString(sensor));\r\n\t\treadyToProcessData = false;\r\n\t\tthis.sensor = sensor;\r\n\t\tfor (int i = 0; i < sensor.length; i++) {\r\n\t\t\tif (sensor[i].equals(\"Dist-Nx-v3\")) {\r\n\t\t\t\t// dist_nx = controlClass.getDist_nx();\r\n\t\t\t\tsendCommand(10, 1, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"DIST-NX:\" + dist_nx);\r\n\t\t\t} else if (sensor[i].equals(\"LightSensorArray\")) {\r\n\t\t\t\t// lsa = controlClass.getLsa();\r\n\t\t\t\tsendCommand(10, 2, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"LSA:\" + lsa);\r\n\t\t\t} else if (sensor[i].equals(\"EOPDLinks\")) {\r\n\t\t\t\t// eopdLeft = controlClass.getEopdLeft();\r\n\t\t\t\tsendCommand(10, 3, i + 1, 1);\r\n\t\t\t\t// logger.debug(\"EOPD links\" + eopdLeft);\r\n\t\t\t} else if (sensor[i].equals(\"EOPDRechts\")) {\r\n\t\t\t\t// eopdRight = controlClass.getEopdRight();\r\n\t\t\t\tsendCommand(10, 3, i + 1, 2);\r\n\t\t\t\t// logger.debug(\"EOPD rechts\" + eopdRight);\r\n\t\t\t} else if (sensor[i].equals(\"AbsoluteIMU-ACG\")) {\r\n\t\t\t\t// absimu_acg = controlClass.getAbsimu_acg();\r\n\t\t\t\tsendCommand(10, 4, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"Gyro\" + absimu_acg);\r\n\t\t\t} else if (sensor[i].equals(\"IRThermalSensor\")) {\r\n\t\t\t\t// tsLeft = controlClass.getTsLeft();\r\n\t\t\t\tsendCommand(10, 5, i + 1, 1);\r\n\t\t\t\t// logger.debug(\"ts left\" + tsLeft);\r\n\t\t\t} else if (sensor[i].equals(\"ColourSensor\")) {\r\n\t\t\t\tsendCommand(10, 6, i + 1, 0);\r\n\t\t\t} else {\r\n\t\t\t\tsendCommand(0, 0, 0, 0);\r\n\t\t\t\tlogger.debug(\"Sensor existiert nicht\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treadyToProcessData = true;\r\n\r\n\t\ttry {\r\n\t\t\tint linearAccelaration = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.linearAccelaration\"));\r\n\t\t\tint rotationAccelaration = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.rotationAccelaration\"));\r\n\t\t\tint speed = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.rotationSpeed\"));\r\n\t\t\tsetLinearAccelaration(linearAccelaration);\r\n\t\t\tsetRotationAccelaration(rotationAccelaration);\r\n\t\t\tsetRotationSpeed(speed);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(\"sendSensorData: error while parsing properties\");\r\n\t\t}\r\n\t\t// notifyAll();\r\n\t\tlogger.debug(\"sendSensorData flag set to: \" + readyToProcessData);\r\n\t}", "private void processDeviceStream(SelectionKey key, byte[] data) throws IOException{\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\tString sDeviceID = \"\";\n\t\t// Initial call where the device sends it's IMEI# - Sarat\n\t\tif ((data.length >= 10) && (data.length <= 17)) {\n\t\t\tint ii = 0;\n\t\t\tfor (byte b : data)\n\t\t\t{\n\t\t\t\tif (ii > 1) { // skipping first 2 bytes that defines the IMEI length. - Sarat\n\t\t\t\t\tchar c = (char)b;\n\t\t\t\t\tsDeviceID = sDeviceID + c;\n\t\t\t\t}\n\t\t\t\tii++;\n\t\t\t}\n\t\t\t// printing the IMEI #. - Sarat\n\t\t\tSystem.out.println(\"IMEI#: \"+sDeviceID);\n\n\t\t\tLinkedList<String> lstDevice = new LinkedList<String>();\n\t\t\tlstDevice.add(sDeviceID);\n\t\t\tdataTracking.put(channel, lstDevice);\n\n\t\t\t// send message to module that handshake is successful - Sarat\n\t\t\ttry {\n\t\t\t\tsendDeviceHandshake(key, true);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// second call post handshake where the device sends the actual data. - Sarat\n\t\t}else if(data.length > 17){\n\t\t\tmClientStatus.put(channel, System.currentTimeMillis());\n\t\t\tList<?> lst = (List<?>)dataTracking.get(channel);\n\t\t\tif (lst.size() > 0)\n\t\t\t{\n\t\t\t\t//Saving data to database\n\t\t\t\tsDeviceID = lst.get(0).toString();\n\t\t\t\tDeviceState.put(channel, sDeviceID);\n\n\t\t\t\t//String sData = org.bson.internal.Base64.encode(data);\n\n\t\t\t\t// printing the data after it has been received - Sarat\n\t\t\t\tStringBuilder deviceData = byteToStringBuilder(data);\n\t\t\t\tSystem.out.println(\" Data received from device : \"+deviceData);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t//publish device IMEI and packet data to Nats Server\n\t\t\t\t\tnatsPublisher.publishMessage(sDeviceID, deviceData);\n\t\t\t\t} catch(Exception nexp) {\n\t\t\t\t\tnexp.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t//sending response to device after processing the AVL data. - Sarat\n\t\t\t\ttry {\n\t\t\t\t\tsendDataReceptionCompleteMessage(key, data);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//storing late timestamp of device\n\t\t\t\tDeviceLastTimeStamp.put(sDeviceID, System.currentTimeMillis());\n\n\t\t\t}else{\n\t\t\t\t// data not good.\n\t\t\t\ttry {\n\t\t\t\t\tsendDeviceHandshake(key, false);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new IOException(\"Bad data received\");\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t// data not good.\n\t\t\ttry {\n\t\t\t\tsendDeviceHandshake(key, false);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"Bad data received\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void subScribeSensorEvent(Context androidContext, String sensorID,\n\t\t\tString dataCacheStationID, String hostAddress, String hostName,\n\t\t\tint hostPort) {\n\t\ttry {\n\t\t\tInetAddress remoteAddress = InetAddress.getByName(hostName);\n\t\t\t\n\t\t\t\n\t\t\tSensorNodeD2DManager.addNewDataCacheNode(remoteAddress,\n\t\t\t\t\thostAddress, hostName, \n\t\t\t\t\t Integer.toString(hostPort), null);\n\t\t\tboolean registeredBefore = SensorNodeD2DManager.registerSensorWithDataCacheNode(sensorID, dataCacheStationID);\n\t\t\t\n\t\t\tif ( !registeredBefore ){\n\t\t\t\tAndroidSensorDataManager androidSensorDataManager = AndroidSensorDataManagerSingleton.getInstance(androidContext);\n\t\t\t\t//need to register every single sensor with event driven data model turned on\n\t\t\t\t//when sensor service turned off, they can be all properly shut down\n\t\t\t\tAndroidSensorDataContentProviderImpl dataProvider = new AndroidSensorDataContentProviderImpl();\n\t\t\t\tSensorEventDrivenListener listener = new SensorEventDrivenListener();\n\t\t\t\tlistener.bindDataProvider(dataProvider);\n\t\t\t\tandroidSensorDataManager.startSensorDataAcquistionEventModel(sensorID, dataProvider, listener);\n\t\t\t}\t\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}", "public void addSensor(String sensorId, String sensorType, String sensorUnits, int interval, int threshold, boolean upperlimit){\n Sensor theSensor = new Sensor(sensorId, sensorType, sensorUnits, interval, threshold, upperlimit);\n sensors.addSensor(theSensor);\n theSensor.setFieldStation(this);\n }", "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 onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == SENS_ACCELEROMETER && event.values.length > 0) {\n float x = event.values[0];\n float y = event.values[1];\n float z = event.values[2];\n\n latestAccel = (float)Math.sqrt(Math.pow(x,2.)+Math.pow(y,2)+Math.pow(z,2));\n //Log.d(\"pow\", String.valueOf(latestAccel));\n\n }\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy >0) {\n\n Log.d(\"Sensor\", event.sensor.getType() + \",\" + event.accuracy + \",\" + event.timestamp + \",\" + Arrays.toString(event.values));\n\n int newValue = Math.round(event.values[0]);\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n \n if(newValue!=0 && lastTimeSentUnix < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnix = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", latestAccel);\n intent.putExtra(\"TIME\", event.timestamp);\n intent.putExtra(\"ACCEL\", latestAccel);\n\n\n Log.d(\"change\", \"send intent\");\n\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), latestAccel, event.timestamp, event.values);\n }\n }\n\n }", "@Override\n\t\tprotected void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) {\n\t\t\tfinal byte[] buffer = mOutgoingBuffer;\n\t\t\tif (mBufferOffset == buffer.length) {\n\t\t\t\ttry {\n\t\t\t\t\tmCallbacks.onDataSent(new String(buffer, \"UTF-8\"));\n\t\t\t\t} catch (final UnsupportedEncodingException e) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t\tmOutgoingBuffer = null;\n\t\t\t} else { // Otherwise...\n\t\t\t\tfinal int length = Math.min(buffer.length - mBufferOffset, MAX_PACKET_SIZE);\n\t\t\t\tfinal byte[] data = new byte[length]; // We send at most 20 bytes\n\t\t\t\tSystem.arraycopy(buffer, mBufferOffset, data, 0, length);\n\t\t\t\tmBufferOffset += length;\n\t\t\t\tmWriteCharacteristic.setValue(data);\n\t\t\t\twriteCharacteristic(mWriteCharacteristic);\n\t\t\t}\n\t\t}", "public void createDataSet(){\n final Thread thread = new Thread(new Runnable() {\r\n public void run(){\r\n while(true){//we want this running always, it is ok running while robot is disabled.\r\n whileCount++;\r\n currentVoltage = angleMeter.getVoltage(); //gets the non-average voltage of the sensor\r\n runningTotalVoltage[currentIndex] = currentVoltage;//store the new data point\r\n currentIndex = (currentIndex + 1) % arraySize;//currentIndex is the index to be changed\r\n if (bufferCount < arraySize) {\r\n bufferCount++;//checks to see if the array is full of data points\r\n }\r\n }\r\n }\r\n });\r\n thread.start();\r\n }", "public void addToBuffer(byte[] value, boolean isClient) {\n byte[] buffer;\n\n if (isClient) {\n buffer = mClientBuffer;\n } else {\n buffer = mServerBuffer;\n }\n\n if (buffer == null) {\n buffer = new byte[0];\n }\n byte[] tmp = new byte[buffer.length + value.length];\n System.arraycopy(buffer, 0, tmp, 0, buffer.length);\n System.arraycopy(value, 0, tmp, buffer.length, value.length);\n\n if (isClient) {\n mClientBuffer = tmp;\n } else {\n mServerBuffer = tmp;\n }\n }", "@Override\n\tpublic void run() {\n\n\t\tURLConnection connection = null;\n\t\ttry {\n\t\t\tIterator<String> iterator = targetSensor.iterator();\n\t\t\tfor (int i = 0; i < targetSensor.size(); i++) {\n\t\t\t\tString sensorName = iterator.next();\n\n\t\t\t\tURL oracle = new URL(\"http://localhost:8081/fakeDataSource/sensors/\" + sensorName + \"/data\");\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(oracle.openStream()));\n\t\t\t\tString inputLine;\n\n\t\t\t\tString res = \"\";\n\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n//System.out.println(\"Received\" + inputLine);\n\t\t\t\t\tres += inputLine;\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"Thread [%s] - Tracking sensor %s and received %s\\n\", this.getName(), sensorName, res);\n\n\t\t\t\tin.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void updateDevice(UeiData ueiData)\n\t{\n\t\tAbstractUei uei = (AbstractUei) this.devicesDiscovered.get(ueiData.getId()).get(0);\n\t\t\n\t\t// update\n\t\tuei.updateStatus(ueiData);\n\t\t\n\t\t// push over MQTT\n\t\tHashMap<String, Object> valuesMap = new HashMap<String, Object>();\n\t\tvaluesMap.put(\"getTemperature\", uei.getTemperature());\n\t\tvaluesMap.put(\"getLevel\", uei.getLevel());\n\t\tvaluesMap.put(\"getBattery\", uei.getBattery());\n\t\tPWALNewDataAvailableEvent event = new PWALNewDataAvailableEvent(uei.getUpdatedAt(), uei.getPwalId(),\n\t\t\t\tuei.getExpiresAt(), valuesMap, uei);\n\t\tlogger.info(\"Device {} is publishing a new data available event on topic: {}\", uei.getPwalId(),\n\t\t\t\tuei.getEventPublisher().getTopics());\n\t\tuei.getEventPublisher().publish(event);\n\t}", "public void writeToClient() throws IOException {\n\t\tclientBuffer.writeTo(clientChannel);\n\t\tif (clientBuffer.isReadyToWrite()) {\n\t\t\tregister();\n\t\t}\n\t}", "public void connectSensor() {\n mReleaseHandle = mSensorHandler.getReleaseHandle(mSensorResultReceiver, mSensorStateChangeReceiver);\n }", "@Override\r\n\tpublic void PushToBuffer(ByteBuffer buffer)\r\n\t{\r\n\t\r\n\t}", "private void sendSocket(String data) {\n if (!serviceStartNormalMethod) {\n pingStamp = System.currentTimeMillis();\n }\n\n if (ctrlSocketBufferOut != null && !ctrlSocketBufferOut.checkError() && ctrlSocketThreadState == SocketThreadStates.RUNNING) {\n ctrlSocketBufferOut.println(data);\n ctrlSocketBufferOut.flush();\n }\n\n if (ctrlSocketBufferOut != null && ctrlSocketBufferOut.checkError()) {\n // conn manager thread will re-connect us\n ctrlSocketThreadState = SocketThreadStates.ERROR;\n broadcastConnectionStatus();\n }\n }", "private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }", "@Override\n public void onSensorChanged(SensorEvent event) {\n\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy > 0) {\n int newValue = Math.round(event.values[0]);\n\n if(newValue!=0 && lastTimeSentUnixHR < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnixHR = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", event.accuracy);\n intent.putExtra(\"TIME\", event.timestamp);\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n\n }\n }\n // also send motion/humidity/step data to know when NOT to interpret hr data\n\n if (event.sensor.getType() == SENS_STEP_COUNTER && event.values[0]-currentStepCount!=0) {\n\n if(lastTimeSentUnixSC < (currentTimeUnix-nSeconds)){\n lastTimeSentUnixSC = System.currentTimeMillis() / 1000L;\n currentStepCount = event.values[0];\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n }\n\n }\n\n if (event.sensor.getType() == SENS_ACCELEROMETER) {\n\n if(lastTimeSentUnixACC < (currentTimeUnix-nSeconds)){\n lastTimeSentUnixACC = System.currentTimeMillis() / 1000L;\n\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n }\n }\n\n }", "public void updateData() {\n List<Device> devices = Lists.newArrayList();\n CustomAdapter customAdapter = (CustomAdapter) deviceListView.getAdapter();\n for (int i = 0; i < customAdapter.getCount(); i++) {\n Model model = customAdapter.getItem(i);\n if (model.isChecked()) {\n devices.add(model.getDevice());\n }\n }\n\n SensorDao sensorDao = new SensorDao(parentActivity);\n Map<Device, List<Sensor>> sensorDeviceMap = sensorDao.fetchDeviceSpecificSensors(devices);\n\n // Aggregate the information about sensor and devices based on unique\n // Map<BluetoothDevice, Map<FileName, List<SensorLabels>>>\n Map<BluetoothDevice, Map<String, List<String>>> rearrangedSensorDeviceInfo = Maps.newHashMap();\n for (Map.Entry<Device, List<Sensor>> elem : sensorDeviceMap.entrySet()) {\n Device device = elem.getKey();\n BluetoothDevice bluetoothDevice = CommonUtils.getBluetoothAdapter(\n parentActivity, REQUEST_BT_ENABLE).getRemoteDevice(device.getDeviceId());\n Map<String, List<String>> fileNameSensorNameMap = rearrangedSensorDeviceInfo.get(bluetoothDevice);\n List<Sensor> sensors = elem.getValue();\n\n if (fileNameSensorNameMap == null) {\n fileNameSensorNameMap = Maps.newHashMap();\n rearrangedSensorDeviceInfo.put(bluetoothDevice, fileNameSensorNameMap);\n }\n\n for(Sensor sensor : sensors) {\n String dataFilePath = sensor.getSensorDataFilePath();\n String sensorName = sensor.getSensorLabel();\n List<String> sensorNames = fileNameSensorNameMap.get(dataFilePath);\n if (sensorNames == null) {\n fileNameSensorNameMap.put(dataFilePath, Lists.newArrayList(sensorName));\n } else {\n sensorNames.add(sensorName);\n }\n }\n }\n\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_STARTED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_FINISHED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_ENDED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_INITIATED);\n parentActivity.registerReceiver(broadcastReceiver, intentFilter);\n\n //Start service for every device.\n for (Map.Entry<BluetoothDevice, Map<String, List<String>>> elem : rearrangedSensorDeviceInfo.entrySet()) {\n BluetoothDevice device = elem.getKey();\n Map<String, List<String>> fileNameSensorsMap = elem.getValue();\n if (fileNameSensorsMap.size() > 0) {\n Bundle bundle = new Bundle();\n bundle.putParcelable(ServerActionsService.PARAM_BLUETOOTH_DEVICE, device);\n bundle.putSerializable(PARAM_FILENAME_SENSOR_INFO, (Serializable) fileNameSensorsMap);\n\n Intent intent = new Intent(parentActivity, ServerActionsService.class);\n intent.setAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA);\n intent.putExtras(bundle);\n\n parentActivity.startService(intent);\n }\n }\n }", "public void recvSensorEvent(Object data_)\n\t{\n\t\tList<Tuple> event = ConstructSensingEvent((Message) data_) ;\n\t\tmicroLearner.handleSensorEvent(event);\t\t\n\t}", "public static void setSensorData() throws SensorNotFoundException\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") +\"sensors/?state=\"+Constants.SENSOR_STATE_STOCK;\n\t\tsCollect = new SensorCollection();\n\t\tsCollect.setList(sURL);\n\t\t\t\n\t\tfor (SensorData sData : sCollect.getList())\n\t\t{\n\t\t\tif (sData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t{\n\t\t\t\tsensorText.setText(sData.getSensorData() + \"\\r\\n\" + \"Device: \"\n\t\t\t\t\t+ (ConnectionManager.getInstance().currentSensor(0).getDeviceName() + \"\\r\\n\" + \"Manufacture: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getManufacturerName() + \"\\r\\n\"\n\t\t\t\t\t\t\t+ \"FlashDate: \" + ConnectionManager.getInstance().currentSensor(0).getFlashDate()\n\t\t\t\t\t\t\t+ \"\\r\\n\" + \"Battery: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getBatteryVoltage()));\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public void run() {\n if (socket != null) {\n byte b0 = get_sendbyte0();\n byte b1 = get_sendbyte1();\n Log.e(\"handler\", String.valueOf(b0) + String.valueOf(b1));\n if (outputStream == null) {\n try {\n outputStream = socket.getOutputStream();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n outputStream.write(new byte[]{(byte) 1, b0, b1, (byte) 1}); /*1, b0, b1, 1*/\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "public int appendData(byte[] data) {\n\t\t\n\t\tsynchronized (mData) {\n\n\t\t\tif (mDataLength + data.length > mData.capacity()) {\n\t\t\t\t//the buffer will overflow... attempt to trim data\n\t\t\t\t\n\t\t\t\tif ((mDataLength + data.length)-mDataPointer <= mData.capacity()) {\n\t\t\t\t\t//we can cut off part of the data to fit the rest\n\t\t\t\t\t\n\t\t\t\t\ttrimData();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//the encoder is gagging\n\t\t\t\t\t\n\t\t\t\t\treturn (mData.capacity() - (mDataLength + data.length)); // refuse data and tell the amount of overflow\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tmData.position(mDataLength);\n\t\t\tmData.put(data);\n\n\t\t\tmDataLength += data.length;\n\t\t\t\n\t\t\tstart(); //if idle\n\t\t\t\n\t\t\treturn (mData.capacity() - mDataLength); //return the remaining amount of space in the buffer\n\t\t}\n\t}", "public synchronized void bufferMessage() throws Exception\r\n {\r\n\r\n System.out.println(\"BUFFER: Message from future round received. Buffering message.\");\r\n // Wait until node moves to next round.\r\n wait();\r\n\r\n }", "private void updateReceivedData(byte[] data) {\n }", "@Override\n public void write(byte[] data) throws SerialError {\n int offset= 0;\n int size_toupload=0;\n byte[] buffer = new byte[SIZE_SERIALUSB];\n if(!isConnected())\n {\n open();\n }\n try\n {\n while(offset < data.length) {\n\n if(offset+SIZE_SERIALUSB > data.length)\n {\n size_toupload = data.length-offset;\n }\n System.arraycopy(data, offset, buffer, 0, size_toupload);\n int size_uploaded = conn.bulkTransfer(epOUT, buffer, size_toupload, TIMEOUT);\n if(size_uploaded<0)\n {\n throw new SerialError(\" bulk Transfer fail\");\n }\n offset += size_uploaded;\n }\n\n }catch (Exception e)\n {\n throw new SerialError(e.getMessage());\n }\n }", "public void sendData(IoBuffer outData) {\n\t\ttry {\n\t\t\tsession.write(outData);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void postSensorValues(Sensor[] s) { sensors = s; }", "@Override\n\tpublic void SendAndReceiveData() throws APIException \n\t{\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.beforeSendAndReceiveData();\n\t\ttry\n\t\t{\n\t\t\tapi.SendAndReceiveData();\n\t\t}\n\t\tcatch(APIException e)\n\t\t{\n\t\t\tfor (Listener listen : listeners1)\n\t\t\t\tlisten.onError(e);\n\t\t\tthrow new APIException(e);\n\t\t}\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.afterSendAndReceiveData();\n\t}", "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(byte[] buffer, int offset, int count) {\n try {\n if(buffer==null){\n Log.w(TAG, \"Can't write to device, nothing to send\");\n return;\n }\n //This would be a good spot to log out all bytes received\n mmOutStream.write(buffer, offset, count);\n if(connectionSuccessful == null){\n connectionSuccessful = false;\n }\n //Log.w(TAG, \"Wrote out to device: bytes = \"+ count);\n } catch (IOException|NullPointerException e) { // STRICTLY to catch mmOutStream NPE\n // Exception during write\n //OMG! WE MUST NOT BE CONNECTED ANYMORE! LET THE USER KNOW\n Log.e(TAG, \"Error sending bytes to connected device!\");\n connectionLost();\n }\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }", "void sendData(String msg) throws IOException\n {\n if ( msg.length() == 0 ) return;\n//\n msg += \"\\n\";\n// Log.d(msg, msg);\n if (outputStream != null)\n outputStream.write(msg.getBytes());\n// myLabel.setText(\"Data Sent\");\n// myTextbox.setText(\" \");\n }", "public boolean addData(String data){\r\n\r\n\t\t// the data parameter should be a json string with the following format:\r\n\t\t// \"Transmit ID\":\"Device ID\",\r\n \t\t//\t \"RSSI\":\"Decibels\",\r\n \t\t//\t \"Receive ID\":\"Device ID\"\r\n \t\t//\t \"GPS\":\"Location\",\r\n \t\t//\t \"IMU\":\"Orientation\",\r\n \t\t//\t \"Timestamp\":\"<UNIX time>\"\r\n \t\t//\tthis string will be parsed and its contents will be saved in the database \r\n \t\t\r\n\r\n\t}", "public Sensor() {\n if(this.rawData == null)\n this.rawData = new Vector<SensorData>();\n }", "public abstract int writeData(int address, byte[] buffer, int length);", "@Override\n public void onSensorChanged(SensorEvent event) {\n long now = SystemClock.elapsedRealtime();\n\n long deltaMs = 0;\n if (mLastUpdateTS != 0) {\n deltaMs = now - mLastUpdateTS;\n if (mUpdateTargetMs > 0 && deltaMs < mUpdateTargetMs) {\n // New sample is arriving too fast. Discard it.\n return;\n }\n }\n\n // Format and post message for the emulator.\n float[] values = event.values;\n final int len = values.length;\n\n mChangeMsg.order(getEndian());\n mChangeMsg.position(0);\n mChangeMsg.putInt(getType());\n mChangeMsg.putFloat(values[0]);\n if (len > 1) {\n mChangeMsg.putFloat(values[1]);\n if (len > 2) {\n mChangeMsg.putFloat(values[2]);\n }\n }\n postMessage(ProtocolConstants.SENSORS_SENSOR_EVENT, mChangeMsg);\n\n // Computes average update time for this sensor and average globally.\n if (mLastUpdateTS != 0) {\n if (mGlobalAvgUpdateMs != 0) {\n mGlobalAvgUpdateMs = (mGlobalAvgUpdateMs + deltaMs) / 2;\n } else {\n mGlobalAvgUpdateMs = deltaMs;\n }\n }\n mLastUpdateTS = now;\n\n // Update the UI for the sensor, with a static throttling of 10 fps max.\n if (hasUiHandler()) {\n if (mLastDisplayTS != 0) {\n long uiDeltaMs = now - mLastDisplayTS;\n if (uiDeltaMs < 1000 / 4 /* 4fps in ms */) {\n // Skip this UI update\n return;\n }\n }\n mLastDisplayTS = now;\n\n mValues[0] = values[0];\n if (len > 1) {\n mValues[1] = values[1];\n if (len > 2) {\n mValues[2] = values[2];\n }\n }\n mValue = null;\n\n Message msg = Message.obtain();\n msg.what = SENSOR_DISPLAY_MODIFIED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }\n\n if (DEBUG) {\n long now2 = SystemClock.elapsedRealtime();\n long processingTimeMs = now2 - now;\n Log.d(TAG, String.format(\"glob %d - local %d > target %d - processing %d -- %s\",\n mGlobalAvgUpdateMs, deltaMs, mUpdateTargetMs, processingTimeMs,\n mSensor.getName()));\n }\n }", "private int checkRegisteredSensors() {\n\n int counter = 0;\n\n if (listSensorDB.size() < 1) {\n Log.d(getClass().getName(), \"Lista de sensores cadastrados é ZERO! Retornando de checkRegisteredSensors()\");\n return 0;\n }\n\n if (HSSensor.getInstance().getListSensorOn().size() < 1)\n HSSensor.getInstance().setListSensorOn(listSensorDB);\n\n\n for (Sensor sensor : HSSensor.getInstance().getListSensorOn()) {\n\n Socket sock = new Socket();\n if (sensor.getIp().isEmpty()) {\n Log.d(getClass().getName(), \"O IP do sensor [\" + sensor.getNome() + \"] está vazio. Acabou de ser configurado? \" +\n \"Nada a fazer em checkRegisteredSensors()\");\n continue;\n }\n\n SocketAddress addr = new InetSocketAddress(sensor.getIp(), 8000);\n\n try {\n\n sock.connect(addr, 5000);\n Log.d(getClass().getName(), \"Conectamos em \" + sensor.getIp());\n\n\n PrintWriter pout = new PrintWriter(sock.getOutputStream());\n\n pout.print(\"getinfo::::::::\\n\");\n pout.flush();\n\n Log.d(getClass().getName(), \"Enviado getinfo:::::::: para \" + sensor.getIp() + \" - Aguardando resposta...\");\n\n byte[] b = new byte[256];\n\n sock.setSoTimeout(5000);\n int bytes = sock.getInputStream().read(b);\n sock.close();\n\n String result = new String(b, 0, bytes - 1);\n Log.d(getClass().getName(), \"Recebida resposta de \" + sensor.getIp() + \" para nosso getinfo::::::::\");\n\n Sensor tmpSensor = buildSensorFromGetInfo(result);\n if (tmpSensor == null) {\n Log.d(getClass().getName(), \"Resposta de \" + sensor.getIp() + \" nao é um sensor valido!\");\n Log.d(getClass().getName(), \"Resposta: \" + result);\n continue;\n }\n\n if (sensor.equals(tmpSensor)) {\n\n sensor.setActive(true);\n counter++;\n\n Log.d(getClass().getName(), \"Resposta de \" + sensor.getIp() + \" é um sensor valido!\");\n Log.d(getClass().getName(), \"Sensor \" + sensor.getNome() + \" : \" + sensor.getIp() + \" PAREADO!\");\n }\n\n\n } catch (Exception e) {\n\n if (e.getMessage() != null) {\n Log.d(getClass().getName(), e.getMessage());\n }\n sensor.setActive(false);\n }\n\n }\n\n return counter;\n }", "@Override\n public void doDataReceived(ResourceDataMessage dataMessage) {\n if(outputStream == null) return;\n if(startTime == 0) startTime = System.nanoTime();\n if (this.getTunnel() == null)\n this.setTunnel(dataMessage.getNetworkMessage().getTunnel());\n\n EventManager.callEvent(new ResourceTransferDataReceivedEvent(this, dataMessage));\n\n try {\n if (dataMessage.getResourceData().length != 0) {\n //Saving received chunks\n byte[] chunk = dataMessage.getResourceData();\n written += chunk.length;\n double speedInMBps = NANOS_PER_SECOND / BYTES_PER_MIB * written / (System.nanoTime() - startTime + 1);\n System.out.println();\n logger.info(\"Receiving file: {} | {}% ({}MB/s)\", this.getResource().attributes.get(1), ((float) written / (float) fileLength) * 100f, speedInMBps);\n\n //add to 4mb buffer\n System.arraycopy(chunk, 0, buffer, saved, chunk.length);\n saved += chunk.length;\n if (buffer.length - saved < BUFFER_SIZE || written >= fileLength) {\n //save and clear buffer\n outputStream.write(buffer, 0, saved);\n saved = 0;\n }\n\n\n if (written >= fileLength) {\n this.close();\n }\n } else {\n //Empty chunk, ending the transfer and closing the file.\n logger.info(\"Empty chunk received for: {}, ending the transfer...\", this.getResource().attributes.get(1));\n\n //File fully received.\n this.close();\n }\n } catch (Exception e) {\n callError(e);\n }\n }", "private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }", "public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}", "public abstract void sendData(Float data, int dataType);", "public void addData(ByteArrayList bytes) {\n data.add(bytes);\n if (data.size() == 1) {\n listeners.forEach(DataReceiveListener::hasData);\n }\n listeners.forEach(DataReceiveListener::received);\n }", "private void grabdata(){\n boolean bStop = false; //stop clause\r\n if (btSocket!=null){ //making sure its connected\r\n try {\r\n btSocket.getOutputStream().write(\"2\".toString().getBytes()); //sending the number 2 to the arduino\r\n try{\r\n InputStream input = collect_Data.this.btSocket.getInputStream(); //collecting what the arduino sent back\r\n while(!bStop){ //using the stop clause to make sure we don't go out of bounds\r\n byte[] buffer = new byte[256];\r\n if(input.available() > 0){\r\n input.read(buffer);\r\n int i =0;\r\n while(i < buffer.length && buffer[i] != 0){\r\n i++;\r\n }\r\n final String strinput = new String(buffer,0,i); //this is the compiled output from the arduino\r\n // System.out.println(strinput); **CONSOLE print to check if data is correct**\r\n bStop = true; //everything is done so change stop clause to true\r\n changeText(strinput); //call the function to change the text.\r\n }\r\n }\r\n }\r\n catch (IOException e){ //catching exceptions\r\n e.printStackTrace();\r\n }\r\n }\r\n catch (IOException e){ //catching exceptions\r\n }\r\n }\r\n }", "@Override\n public synchronized void addMeasurement(Measurement m){\n while(toBeConsumed>=size){\n try{\n wait();\n }\n catch (InterruptedException e){\n System.out.println(\"The thread was teared down\");\n }\n }\n /*try {\n Thread.sleep(1000);\n }\n catch(InterruptedException e){\n System.out.println(e.getMessage());\n }*/\n buf[(startIdx+toBeConsumed)%size]=m;\n //System.out.println(\"Inserting \"+m);\n toBeConsumed++;\n\n /*\n If the buffer is no more empty, notify to consumer\n */\n if(toBeConsumed>=windowSize)\n notifyAll();\n }", "public void refreshDataPacket() {\n ByteBuf buffer = PacketUtils.writePacket(getFreshFullDataPacket());\n setFullDataPacket(buffer);\n }", "private void publish(String deviceAddress)\n {\n if(mMqttServiceBound)\n {\n try\n {\n TexTronicsDevice device = mTexTronicsList.get(deviceAddress);\n if(device != null)\n {\n // Get the byte array from the CSV file stored in the device\n byte[] buffer = IOUtil.readFile(device.getCsvFile());\n // Create a new string using device info and new byte array\n String json = MqttConnectionService.generateJson(device.getDate(),\n device.getDeviceAddress(),\n Choice.toString(device.getChoice()),\n device.getExerciseID(),\n device.getRoutineID(),\n new String(buffer));\n Log.d(\"SmartGlove\", \"JSON: \" + json);\n // Call the service to publish this string, now in JSON format\n mMqttService.publishMessage(json);\n String exe_nm = MainActivity.exercise_name;\n\n List<Integer> ids = new ArrayList<>();\n try{\n ids = UserRepository.getInstance(getApplicationContext()).getAllIdentities();\n }\n catch (Exception e){\n Log.e(TAG, \"onCreate: \", e);\n }\n\n int current = ids.size();\n\n Log.d(TAG, \"UpdateData: logging the data\");\n\n if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_left(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_left(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_left(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_left(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_right(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_right(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_right(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_right(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_right(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_right(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_right(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_left(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_left(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_left(json,current);\n }\n }\n else {\n Log.d(TAG, \"publish: Publish failed. Device is null\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public void recordSensors2(){\n\t\t//System.out.println(\"Your pitch is: \" + sd.getPitch());\n if (sd.getPitch() <= .1 || sd.getPitch() >6.2) {\n\t\t\t\t\t//System.out.println(\"Printing off sensor data\");\n\t\t\t\t\tSystem.out.println(\"OdTheta\" + sd.getOdTheta());\n for (int i = 0; i < sd.getRSArrayLength(); i++) {\n double wallX = (sd.getOdLocationX() + (sd.getRangeScanner(i) * Math.cos((((i-90)* (Math.PI/180))- sd.getOdTheta())) + 0));\n //System.out.println(\"Wall X: \" + wallX);\n double wallY = (sd.getOdLocationY() + (0 - sd.getRangeScanner(i) * Math.sin((((i-90)* (Math.PI/180)) - sd.getOdTheta()))));\n //System.out.println(\"Wall Y: \" + wallY);\n int x = (int)Math.round((wallX * scale) + width/2);\n //System.out.println(\"X: \" + x);\n int y = (int)Math.round((wallY * scale) + height/2);\n //System.out.println(\"Y: \" + y);\n \n\n }\n }\n\t\t\t\t//System.out.println(\"Finished Writing Sensor Data\");\n\n\t}", "protected void add(ByteBuffer data) throws Exception {\n\tLog.d(TAG, \"add data: \"+data);\n\n\tint dataLength = data!=null ? data.capacity() : 0; ///Util.chunkLength(data); ///data.length;\n\tif (dataLength == 0) return;\n\tif (this.expectBuffer == null) {\n\t\tthis.overflow.add(data);\n\t\treturn;\n\t}\n\t\n\tLog.d(TAG, \"add data: ... 2\");\n\t\n\tint toRead = Math.min(dataLength, this.expectBuffer.capacity() - this.expectOffset);\n\tBufferUtil.fastCopy(toRead, data, this.expectBuffer, this.expectOffset);\n\t\n\tLog.d(TAG, \"add data: ... 3\");\n\n\tthis.expectOffset += toRead;\n\tif (toRead < dataLength) {\n\t\tthis.overflow.add((ByteBuffer) Util.chunkSlice(data, toRead, data.capacity())/*data.slice(toRead)*/);\n\t}\n\t\n\tLog.d(TAG, \"add data: ... 5\");\n\n\twhile (this.expectBuffer!=null && this.expectOffset == this.expectBuffer.capacity()) {\n\t\tByteBuffer bufferForHandler = this.expectBuffer;\n\t\tthis.expectBuffer = null;\n\t\tthis.expectOffset = 0;\n\t\t///this.expectHandler.call(this, bufferForHandler);\n\t\tthis.expectHandler.onPacket(bufferForHandler);\n\t}\n\t\n\tLog.d(TAG, \"add data: ... 6\");\n\n}", "public Sensor registerSensor(String name, String type) {\n \tSCSensor sensor = new SCSensor(name);\n \n String uid = UUID.randomUUID().toString();\n sensor.setId(uid);\n sensor.setType(type);\n \n //temporary fix..\n if(sensorCatalog.hasSensorWithName(name))\n \tsensorCatalog.removeSensor(sensorCatalog.getSensorWithName(name).getId());\n \n // Setting PublicEndPoint\n sensor.setPublicEndpoint(publicEndPoint);\n \n /*sensor = generateSensorEndPoints(sensor);*/\n Endpoint dataEndpoint;\n if (Constants.SENSOR_TYPE_BLOCK.equalsIgnoreCase(type)) {\n dataEndpoint = new JMSEndpoint();\n dataEndpoint.setAddress(sensor.getId() + \"/data\");\n // TODO: we have to decide the connection factory to be used\n dataEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n } else if (Constants.SENSOR_TYPE_STREAMING.equalsIgnoreCase(type)) {\n dataEndpoint = new StreamingEndpoint();\n \n dataEndpoint.setProperties(configuration.getStreamingServer().getParameters());\n dataEndpoint.getProperties().put(\"PATH\", \"sensor/\" + sensor.getId() + \"/data\");\n \n // add the routing to the streaming server\n } else {\n // defaulting to JMS\n dataEndpoint = new JMSEndpoint();\n dataEndpoint.setAddress(sensor.getId() + \"/data\");\n // TODO: we have to decide the connection factory to be used\n dataEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n }\n \n sensor.setDataEndpoint(dataEndpoint);\n \n Endpoint controlEndpoint;\n \n controlEndpoint = new JMSEndpoint();\n controlEndpoint.setAddress(sensor.getId() + \"/control\");\n // TODO: we have to decide the connection factory to be used\n controlEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n sensor.setControlEndpoint(controlEndpoint);\n \n // set the update sending endpoint as the global endpoint\n Endpoint updateSendingEndpoint;\n updateSendingEndpoint = new JMSEndpoint();\n \n updateSendingEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n updateSendingEndpoint.setAddress(sensor.getId() + \"/update\");\n sensor.setUpdateEndpoint(updateSendingEndpoint);\n \n registry.addSensor(sensor);\n \n sensorCatalog.addSensor(sensor);\n updateManager.sensorChange(Constants.Updates.ADDED, sensor.getId());\n return sensor;\n }", "@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}", "public void readFromServer() throws IOException {\n\t\tclientBuffer.writeFrom(serverChannel);\n\t\tif (clientBuffer.isReadyToRead()) {\n\t\t\tregister();\n\t\t}\n\t}", "public void recordSensors(){\n\t\t//System.out.println(\"Your pitch is: \" + sd.getPitch());\n if (sd.getPitch() <= .1 || sd.getPitch() >6.2) {\n\t\t\t\tSystem.out.println(\"Yaw\" + sd.getYaw());\n\t\t\t\t\t//System.out.println(\"Printing off sensor data\");\n for (int i = 0; i < sd.getRSArrayLength(); i++) {\n double wallX = (sd.getLocationX() + (sd.getRangeScanner(i) * Math.cos((((i-90)* (Math.PI/180))- sd.getYaw())) + 0));\n //System.out.println(\"Wall X: \" + wallX);\n double wallY = (sd.getLocationY() + (0 - sd.getRangeScanner(i) * Math.sin((((i-90)* (Math.PI/180)) - sd.getYaw()))));\n //System.out.println(\"Wall Y: \" + wallY);\n int x = (int)Math.round((wallX * scale) + width/2);\n //System.out.println(\"X: \" + x);\n int y = (int)Math.round((wallY * scale) + height/2);\n //System.out.println(\"Y: \" + y);\n int drawline1 = (int)Math.round((sd.getLocationX() * scale) + width/2);\n int drawline2 = (int)Math.round((sd.getLocationY() * scale) + height/2);\n g2d.setColor(Color.green);\n g2d.drawLine(drawline1, drawline2, x, y);\n g2d.setColor(Color.black);\n g2d.fillRect(x,y,2,2);\n\n }\n }\n\t\t\t\t//System.out.println(\"Finished Writing Sensor Data\");\n\n\t}", "public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}", "void writeData(String messageToBeSent) {\n\n try {\n if (clientSocket != null) {\n outputStream = clientSocket.getOutputStream();\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);\n objectOutputStream.writeObject(messageToBeSent);\n outputStream.flush();\n }\n\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Artifact configurations and test cases data sent to the synapse agent successfully\");\n }\n } catch (IOException e) {\n getLog().error(\"Error while sending deployable data to the synapse agent \", e);\n }\n }", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n RemoteSensor remoteSensor = RemoteSensorManager.getInstance().addSensorChannel(ctx);\n QueuerManager.getInstance().addClient(remoteSensor);\n// System.out.println(RemoteSensorManager.getInstance().getRemoteSensorsNamesList().size());\n }", "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 }", "@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tif (event.sensor.getType() == Sensor.TYPE_LINEAR_ACCELERATION) {\t\n\t\t\t\n\t\t\tfloat x, y, z;\n\t\t\tx = event.values[0];\n\t\t\ty = event.values[1];\n\t\t\tz = event.values[2];\n\t\t\t\n\t\t\tfloat [] first = {x,y,z};\n\t\t\tlast = lowpassFilter(first,last);\n\n\n\t\t\tdouble m = Math.sqrt(last[0] * last[0] + last[1] * last[1] + last[2] * last[2]);\n\n\t\t\t// Inserts the specified element into this queue if it is possible\n\t\t\t// to do so immediately without violating capacity restrictions,\n\t\t\t// returning true upon success and throwing an IllegalStateException\n\t\t\t// if no space is currently available. When using a\n\t\t\t// capacity-restricted queue, it is generally preferable to use\n\t\t\t// offer.\n\n\t\t\ttry {\n\t\t\t\tmAccBuffer.add(new Double(m));\n\n\t\t\t} catch (IllegalStateException e) {\n\n\t\t\t\t// Exception happens when reach the capacity.\n\t\t\t\t// Doubling the buffer. ListBlockingQueue has no such issue,\n\t\t\t\t// But generally has worse performance\n\t\t\t\tArrayBlockingQueue<Double> newBuf = new ArrayBlockingQueue<Double>( mAccBuffer.size() * 2);\n\t\t\t\tmAccBuffer.drainTo(newBuf);\n\t\t\t\tmAccBuffer = newBuf;\n\t\t\t\tmAccBuffer.add(new Double(m));\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void subScribeSensorEvent(String sensorID,\n\t\t\tString dataCacheStationID, String hostAddress, String hostName,\n\t\t\tint hostPort) {\n\t\tsubScribeSensorEvent(MyApplication.getAppContext(), sensorID, dataCacheStationID, hostAddress,\n\t\t\t\thostName, hostPort);\n\t}", "private void sendDataMsgToClient(String msg) {\n if (dataConnection == null || dataConnection.isClosed()) {\n sendMsgToClient(\"425 No data connection was established\");\n debugOutput(\"Cannot send message, because no data connection is established\");\n } else {\n dataOutWriter.print(msg + '\\r' + '\\n');\n }\n\n }", "public static void setData() \n\t{\n\t\tsetCustomerData();\n\t\ttry\n\t\t{\n\t\t\tsetSensorData();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t}", "public synchronized void addData(Object[] data) throws IOException {\n\t\tif (! stopped){\n\t\t\tsampleCount.add(incr);\n\t\t\tString sampleCountString = sampleCount.toString();\n\t\t\trealWriter.write(sampleCountString + \";\" + ((Integer)data[0]).toString() + \"\\n\");\n\n//\t\t\tdos.writeChars(sampleCountString);\n//\t\t\tdos.writeChar(';' );\n//\t\t\tdos.writeChars((((Integer)data[0]).toString()));\n//\t\t\tdos.writeChar('\\n' );\n\t\t}\n\t}" ]
[ "0.6620762", "0.6564099", "0.64496154", "0.63810277", "0.5822626", "0.5740938", "0.56566906", "0.5604681", "0.55432886", "0.55423427", "0.55322534", "0.54665554", "0.54310095", "0.54123163", "0.5400199", "0.539479", "0.5377168", "0.53669965", "0.52336717", "0.5219757", "0.5210005", "0.52017725", "0.5201183", "0.51863503", "0.5167815", "0.5167088", "0.51390415", "0.5138583", "0.51355094", "0.5124095", "0.511352", "0.5111247", "0.510549", "0.5104686", "0.50969225", "0.5059168", "0.50360334", "0.5035537", "0.5031578", "0.5030927", "0.5025638", "0.501332", "0.5010836", "0.50095546", "0.5003113", "0.49925992", "0.49820536", "0.49742645", "0.495422", "0.49483734", "0.49438152", "0.49435243", "0.49431533", "0.4934027", "0.49329156", "0.49297708", "0.49278966", "0.49042696", "0.4898817", "0.48905522", "0.4884544", "0.48787808", "0.48743516", "0.4863481", "0.48585284", "0.48532793", "0.4849599", "0.4847839", "0.48465192", "0.48455858", "0.4844899", "0.4844626", "0.48411703", "0.4838", "0.4834273", "0.4830173", "0.48208517", "0.48202264", "0.48162267", "0.48101634", "0.48096728", "0.47966075", "0.47798964", "0.4775641", "0.47754493", "0.4775049", "0.47736442", "0.47687635", "0.47639006", "0.47588474", "0.4756886", "0.47541404", "0.47409308", "0.47337642", "0.47323042", "0.4721376", "0.4710598", "0.47100773", "0.47076505", "0.47048515" ]
0.6194843
4
Returns the SensorData from a found Sensor.
public SensorData getData(String sensorId){ return sensors.getData(sensorId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataValue getLeastDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;", "public Sensor parseSensor() {\n Element e = document.getDocumentElement();\n // found Sensor Element in XML\n if (e != null && e.getNodeName().equals(\"sensor\")) {\n // creates new Sensor with id as the name\n Sensor sensor = new Sensor(e.getAttribute(\"id\"));\n\n for (int i = 0; i < e.getChildNodes().getLength(); i++) {\n Node childNode = e.getChildNodes().item(i);\n if (childNode instanceof Element) {\n Element childElement = (Element) childNode;\n switch (childNode.getNodeName()) {\n case \"measurement\" :\n Measurement m = parseMeasurement(childElement);\n sensor.addMeasurement(m);\n break;\n case \"information\" :\n // maybe a new Type for extra Information from the\n // Sensor\n break;\n\n default :\n System.out.println(\n \"No case for \" + childNode.getNodeName());\n }\n }\n }\n\n return sensor;\n } else {\n return null;\n }\n }", "public synchronized Sensor getSensor(int id)\n {\n return sensors.get(id);\n }", "Sensor getSensor();", "public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.clear();\n\t\t\n\t\t//Getting the information from the keyboard listener\n\t\tif(keyboardListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.keyboardListener.getKeyboardEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.keyboardListener.getKeyboardEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.keyboardListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse listener\n\t\tif(mouseListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseListener.getMouseEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseListener.getMouseEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse motion listener\n\t\tif(mouseMotionListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseMotionListener.getMouseMotionEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseMotionListener.getMouseMotionEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseMotionListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse wheel listener\n\t\tif(mouseWheelListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseWheelListener.getMouseWheelEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseWheelListener.getMouseWheelEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseWheelListener.clearEvents();\n\t\t}\n\t\t\n\t\t//If we want to write a JSON file with the data\n\t\tif(Boolean.parseBoolean(this.configuration.get(artie.sensor.common.enums.ConfigurationEnum.SENSOR_FILE_REGISTRATION.toString()))){\n\t\t\tthis.writeDataToFile();\n\t\t}\n\t\t\n\t\treturn this.sensorData;\n\t}", "public static Sensor getFirstSensor() {\n\t\tSensor retVal = null;\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mEnabled) {\n\t\t\t\tretVal = mSensors.get(x);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}", "public Sensor findSensorByID(int ID)\n\t{\n\t\tIterator<Entry<String, ArrayList<Sensor>>> it = sensors.entrySet().iterator();\n\t\t\n\t\twhile(it.hasNext()) \n\t\t{\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\n\t\t\tArrayList<Sensor> sensors = (ArrayList<Sensor>) pair.getValue();\n\t\t\t\n\t\t\tfor(Sensor sensor : sensors) {\n\t\t\t\tif(sensor.id() == ID)\n\t\t\t\t{\n\t\t\t\t\treturn sensor;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_C_First(uuid, companyId, orderByComparator);\n }", "public static void setSensorData() throws SensorNotFoundException\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") +\"sensors/?state=\"+Constants.SENSOR_STATE_STOCK;\n\t\tsCollect = new SensorCollection();\n\t\tsCollect.setList(sURL);\n\t\t\t\n\t\tfor (SensorData sData : sCollect.getList())\n\t\t{\n\t\t\tif (sData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t{\n\t\t\t\tsensorText.setText(sData.getSensorData() + \"\\r\\n\" + \"Device: \"\n\t\t\t\t\t+ (ConnectionManager.getInstance().currentSensor(0).getDeviceName() + \"\\r\\n\" + \"Manufacture: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getManufacturerName() + \"\\r\\n\"\n\t\t\t\t\t\t\t+ \"FlashDate: \" + ConnectionManager.getInstance().currentSensor(0).getFlashDate()\n\t\t\t\t\t\t\t+ \"\\r\\n\" + \"Battery: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getBatteryVoltage()));\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByUuid_First(uuid, orderByComparator);\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findBysensorId_First(\n long sensorId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findBysensorId_First(sensorId, orderByComparator);\n }", "protected Sensor[] getSensorValues() { return sensors; }", "public Sensor getSensor(int index) {\n if (index < 0 || index >= sensors.length)\n throw new IllegalArgumentException\n (\"Sensor index must be between 0 and \" + (sensors.length-1)) ;\n\n return sensors[index] ;\n }", "@Override\n\tprotected int getSensorData() {\n\t\treturn sensor.getLightValue();\n\t}", "public static java.util.List<com.lrexperts.liferay.liferayofthings.model.SensorValue> findBysensorId(\n long sensorId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().findBysensorId(sensorId);\n }", "private Sensor jsonToSensor(JsonElement rawSensor) throws IOException, InterruptedException {\n var sensorProperties = rawSensor.getAsJsonObject();\n var sensorLocation = sensorProperties.get(\"location\").getAsString();\n var coordinate = this.getCoordinate(sensorLocation); // get location information\n\n Double reading = null;\n float battery = sensorProperties.get(\"battery\").getAsFloat();\n if (battery > MIN_BATTERY) { // invalidate reading if below threshold\n String readingVal = sensorProperties.get(\"reading\").getAsString();\n reading = Double.valueOf(readingVal);\n }\n\n return new Sensor(sensorLocation, battery, reading, coordinate.x, coordinate.y);\n }", "String getSensorDataPoint();", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByPrimaryKey(\n long sensorValueId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByPrimaryKey(sensorValueId);\n }", "public static Sensor CreateSensorFromTable(String sensorName) {\n\n ResultSet rs = null;\n\n Sensor sensor = null;\n try (\n PreparedStatement stmt = conn.prepareStatement(SENSORSQL, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);) {\n stmt.setString(1, sensorName);\n\n rs = stmt.executeQuery();\n\n while (rs.next()) {\n String[] loca = rs.getString(2).split(\",\");\n Location location = new Location();\n location.setLongitude(Double.parseDouble(loca[0]));\n location.setLatitude(Double.parseDouble(loca[1]));\n\n sensor = Station.getInstance().createSensor(sensorName, rs.getString(1), location);\n sensor.setUpdateTime(rs.getInt(3));\n }\n\n } catch (SQLException e) {\n System.err.println(e);\n System.out.println(\"Query 1 Issue!!\");\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBExecute.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n }\n return sensor;\n\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchBysensorId_First(\n long sensorId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence()\n .fetchBysensorId_First(sensorId, orderByComparator);\n }", "public DataValue getLastDataByDeviceIdAndSensorTypeSortedByTimestamp(SensorValue sensorVal) throws Exception;", "public SensorData getLastSensorData() {\n if (mSensorData.size() > 0) {\n for (SensorData sensorData : mSensorData) {\n if (sensorData.isDatasetComplete()) {\n return sensorData;\n }\n }\n }\n return null;\n }", "private SensorData getSDFromString(String token) {\n final Set<String> sensorNames = agent.getPrevExternal().getSensorNames();\n\n int numSensorNames = sensorNames.size();\n\n SensorData data = new SensorData(false);\n int idx = 0;\n for (String name : sensorNames) {\n idx++;\n data.setSensor(name, token.charAt(numSensorNames - idx) == '1');\n }\n return data;\n }", "public String getSensor()\n {\n return sensor;\n }", "@Override\n\tpublic Hashtable getSensorData(String sensorID, long dateTime,\n\t\t\tlong timeDifference) {\n\t\treturn getSensorData(MyApplication.getAppContext(), sensorID, dateTime, timeDifference);\n\t}", "@Override\n\tpublic Hashtable getSensorData(Context androidContext, String sensorID, long dateTime,\n\t\t\tlong timeDifference) {\n\t\tString Time_Stamp = \"timestamp\";\n\t\tAndroidSensorDataManager androidSensorDataManager = AndroidSensorDataManagerSingleton.getInstance(androidContext);\n\t\t//androidSensorDataManager.startCollectSensorUsingThreads();\n\t\tAndroidSensorDataContentProviderImpl dataProvider = new AndroidSensorDataContentProviderImpl();\n\t\tandroidSensorDataManager.startSensorDataAcquistionPollingMode(sensorID, dataProvider, null);\n\t\ttry {\n\t\t\tThread.sleep(300);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tboolean dataFound = false;\n\t\tint counter = 0;\n\t\tBundle currentData = null;\n\t\tHashtable bundleHT = null;\n\t\tList<Bundle> sensorDataBundle;\n\t\twhile ( counter <3 && !dataFound ) {\n\t\t\t\tcounter++;\n\t\t\t\t\n\t\t\t\t//using data provider's data\n\t\t\t\t//instead of expensively requery the sensor\n\t\t\t\t//which might be also wrong\n\t\t\t\tsensorDataBundle = dataProvider.getSensorDataReading();\n\t\t\t\t\n\t\t\t if ( sensorDataBundle.isEmpty() ){\n//\t\t\t //\tsensorDataBundle = androidSensorDataManager.get\n\t\t \tsensorDataBundle = androidSensorDataManager.returnSensorDataAndroidAfterInitialization(sensorID, false);\n\t\t }\n\t\t\t if ( sensorDataBundle.isEmpty() ){\n\t\t\t \t//something very slow regarding with sensor reading\n\t\t\t \ttry {\n\t\t\t\t\t\tThread.sleep(500*counter);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t\tfor ( Bundle curData : sensorDataBundle) {\n\t\t\t\t\t//if ( curData.getLong(Time_Stamp) >= dateTime - timeDifference && curData.getLong(Time_Stamp) <= dateTime + timeDifference ) {\n\t\t\t\t\t\tcurrentData = curData;\n\t\t\t\t\t bundleHT = convertBundleToHash(currentData);\n\t\t\t\t\t\tdataFound = true;\n\t\t\t\t\t//}\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn bundleHT;\n\t\t\n\t\t\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence()\n .fetchByUuid_C_First(uuid, companyId, orderByComparator);\n }", "public static Sensor getSensor(String name, String address) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\tif (mSensors.get(x).mAddress.equals(address))\n\t\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByCompanyId_First(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByCompanyId_First(companyId, orderByComparator);\n }", "public Observable<Data> start(Sensor sensor){\n return Observable.interval(DELAY, DELAY, TimeUnit.MILLISECONDS).map(aLong -> {\n DataTypeInt dataTypeInt = new DataTypeInt(DateTime.getDateTime(), getStatus());\n return new Data(sensor, dataTypeInt);\n });\n }", "DeviceSensor createDeviceSensor();", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByUuid_First(uuid, orderByComparator);\n }", "public static java.util.List<com.lrexperts.liferay.liferayofthings.model.SensorValue> findByUuid_C(\n java.lang.String uuid, long companyId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().findByUuid_C(uuid, companyId);\n }", "public int getSensorID() {\n return sensorID;\n }", "public int getSensorId() {\n\t\treturn sensorid;\n\t}", "private MonitoredSensor getSensorByEFN(String name) {\n for (MonitoredSensor sensor : mSensors) {\n if (sensor.mEmulatorFriendlyName.contentEquals(name)) {\n return sensor;\n }\n }\n return null;\n }", "public int getSensorId();", "public synchronized Sensor[] getSensorArray(){\n\t\treturn sensorArray;\n\t}", "public synchronized MonitoringDevice getBySerial(String serial)\n\t{\n\t\tlogger.debug(\"search by serial:\" + serial);\n\t\tInteger id = this.indexBySerial.get(serial);\n\t\tif (id != null)\n\t\t\treturn (MonitoringDevice) super.getObject(id);\n\t\telse\n\t\t\treturn null;\n\t\t\n\t}", "public static java.util.List<com.lrexperts.liferay.liferayofthings.model.SensorValue> findByUuid(\n java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().findByUuid(uuid);\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n private List<SensorData> getLastSensorData(Session session, int idConcentrator)\n {\n Query query = session\n .createSQLQuery(\n \"SELECT SensorDatas.idMonitorData FROM SensorDatas, Sensors, Concentrators WHERE SensorDatas.idSensor = Sensors.idSensor AND Sensors.idConcentrator = Concentrators.idConcentrator AND Concentrators.idConcentrator = :id ORDER By SensorDatas.timeStamp DESC LIMIT 1\")\n .setParameter(\"id\", idConcentrator);\n List result = query.list();\n if (result.isEmpty()) {\n return null;\n }\n else\n {\n int idMonitorData = (Integer) result.iterator().next();\n Criteria cr = session.createCriteria(SensorData.class)\n .add(Restrictions.eq(\"monitorData.idMonitorData\", idMonitorData));\n return cr.list();\n }\n }", "Map<String, ISensor> getSensorMap();", "private List<Sensor> getSensors(String jsonString) {\n List<Sensor> readSensors = new ArrayList<>();\n\n JSONArray sensors;\n JSONObject sensor;\n\n Iterator typesIterator;\n String type;\n\n JSONArray coordinatesArray;\n double latitude;\n double longitude;\n\n double measure;\n\n try {\n sensors = new JSONArray(jsonString);\n\n for (int i = 0; i < sensors.length(); i++) {\n sensor = sensors.getJSONObject(i);\n\n if (sensor.getBoolean(IS_ACTIVE_KEY)) {\n typesIterator = sensor.getJSONObject(DATA_KEY).keys();\n\n while (typesIterator.hasNext()) {\n try {\n type = (String) typesIterator.next();\n JSONObject data =\n sensor.getJSONObject(DATA_KEY)\n .getJSONObject(type).getJSONObject(DATA_KEY);\n\n measure = data.getDouble(data.keys().next());\n if (measure < 0 || measure > MEASUREMENTS_LIMIT_UPPER) {\n continue;\n }\n\n coordinatesArray = \n sensor.getJSONObject(GEOM_KEY)\n .getJSONArray(COORDINATES_KEY);\n latitude = coordinatesArray.getDouble(1);\n longitude = coordinatesArray.getDouble(0);\n\n readSensors.add(new Sensor(this.parseType(type),\n new LatLng(latitude, longitude),\n measure));\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n }\n }\n }\n } catch (JSONException e) {\n Log.e(NO_JSON_OBJECT_FOUND_LOG_TITLE, NO_JSON_OBJECT_FOUND_LOG_CONTENTS);\n }\n\n return readSensors;\n }", "public DataValue getGreatestDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;", "protected String[] getSensorValues() {\r\n\t\t// FL, FM, FR, RB, RF, LF\r\n\t\tString[] sensorValues = sensor.getAllSensorsValue(this.x, this.y, getDirection());\r\n\t\treturn sensorValues;\r\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByC_G_First(\n long companyId, long groupId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByC_G_First(companyId, groupId, orderByComparator);\n }", "public static ResultSet getSensor(String sensorName) {\n ResultSet rs = null;\n\n try (\n PreparedStatement stmt = conn.prepareStatement(SENSORSQL, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);) {\n stmt.setString(1, sensorName);\n\n rs = stmt.executeQuery();\n\n } catch (SQLException e) {\n System.err.println(e);\n System.out.println(\"Query 2 Issue!!\");\n }\n return rs;\n\n }", "public static java.util.List<com.lrexperts.liferay.liferayofthings.model.SensorValue> findAll()\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().findAll();\n }", "void addSensor(Sensor sensor) {\n List<Sensor> listToAddTo;\n\n switch (sensor.getSensorType()) {\n case PM10:\n listToAddTo = this.pm10Sensors;\n break;\n case TEMP:\n listToAddTo = this.tempSensors;\n break;\n case HUMID:\n listToAddTo = this.humidSensors;\n break;\n default:\n listToAddTo = new ArrayList<>();\n break;\n }\n listToAddTo.add(sensor);\n }", "public byte getSensor() {\r\n\t\tbyte sensor;\r\n\t\tsensor=this.sensor;\r\n\t\treturn sensor;\r\n\t}", "@Override\n public void receivedSensor(SensorData sensor) {\n synchronized(_sensorListeners) {\n if (!_sensorListeners.containsKey(sensor.channel)) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_SENSOR.str);\n UdpConstants.writeSensorData(resp.stream, sensor);\n \n // Send to all listeners\n synchronized(_sensorListeners) {\n Map<SocketAddress, Integer> _listeners = _sensorListeners.get(sensor.channel);\n _udpServer.bcast(resp, _listeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize sensor \" + sensor.channel);\n }\n }", "public IGarmentDriver getSensorDriver() {\n return sensorDriver;\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_C_Last(uuid, companyId, orderByComparator);\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByGroupId_First(\n long groupId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByGroupId_First(groupId, orderByComparator);\n }", "public T caseSensor(Sensor object) {\n\t\treturn null;\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findBysensorId_Last(\n long sensorId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findBysensorId_Last(sensorId, orderByComparator);\n }", "public int insertSensorData(DataValue dataVal) throws Exception;", "@Override\n\tpublic Sensor[] getAllSensors() {\t\n\t\tArrayList<Sensor> sensorArray = new ArrayList<Sensor>();\n\t\t\n\t\tfor(Entry<String, ArrayList<Sensor>> entry : this.sensors.entrySet()) {\n\t\t\tfor(Sensor thisSensor : entry.getValue()) {\n\t\t\t\tsensorArray.add(thisSensor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ArrayList.toArray() didn't want to play ball.\n\t\tSensor[] sensorRealArray = new Sensor[sensorArray.size()];\n\t\t\n\t\treturn sensorArray.toArray(sensorRealArray);\n\t}", "public Sensor() {\n if(this.rawData == null)\n this.rawData = new Vector<SensorData>();\n }", "public EV3UltrasonicSensor getSensor() {\r\n\t\treturn sensor;\r\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByUuid_Last(uuid, orderByComparator);\n }", "public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }", "ExternalSensor createExternalSensor();", "GenericFloatSensor sensor();", "public RegisterSensor.SensorDescription getRealSensorDescription() {\n return sensorDescription;\n }", "public boolean getSensor(int x, int y) {\n\t\tif (x < size && x >= 0 && y < size && y >= 0) {\n \t\t\tboolean sensor[][] = ms.getMotionSensors();\n \t\t\treturn sensor[x][y];\n \t\t}\n \t\telse {\n \t\t\tSystem.out.println(\"Error with getSensor - index out of bounds!\");\n \t\t}\n \t\treturn false;\n \t}", "public List<SuperSensor> getSensorsBySensorType(SensorType type)\n {\n return sensorModules.getSensorsBySensorType(type);\n }", "public SuperSensor getSensorByTypeName(String type, String name)\n {\n if(type == null || name == null)\n {\n return null;\n }\n return (SuperSensor) sensorModules.getSensorByTypeName(type.toLowerCase(), name.toLowerCase());\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue create(\n long sensorValueId) {\n return getPersistence().create(sensorValueId);\n }", "public float[] getSensorValues() {\n return mVal;\n }", "public final flipsParser.defineSensor_return defineSensor() throws RecognitionException {\n flipsParser.defineSensor_return retval = new flipsParser.defineSensor_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal52=null;\n Token string_literal53=null;\n Token string_literal54=null;\n flipsParser.defineSensorValue_return defineSensorValue55 = null;\n\n\n CommonTree string_literal52_tree=null;\n CommonTree string_literal53_tree=null;\n CommonTree string_literal54_tree=null;\n RewriteRuleTokenStream stream_132=new RewriteRuleTokenStream(adaptor,\"token 132\");\n RewriteRuleTokenStream stream_131=new RewriteRuleTokenStream(adaptor,\"token 131\");\n RewriteRuleTokenStream stream_130=new RewriteRuleTokenStream(adaptor,\"token 130\");\n RewriteRuleSubtreeStream stream_defineSensorValue=new RewriteRuleSubtreeStream(adaptor,\"rule defineSensorValue\");\n try {\n // flips.g:176:2: ( ( 'sen' | 'sensor' | 'sensors' ) defineSensorValue -> defineSensorValue )\n // flips.g:176:4: ( 'sen' | 'sensor' | 'sensors' ) defineSensorValue\n {\n // flips.g:176:4: ( 'sen' | 'sensor' | 'sensors' )\n int alt21=3;\n switch ( input.LA(1) ) {\n case 130:\n {\n alt21=1;\n }\n break;\n case 131:\n {\n alt21=2;\n }\n break;\n case 132:\n {\n alt21=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 0, input);\n\n throw nvae;\n }\n\n switch (alt21) {\n case 1 :\n // flips.g:176:5: 'sen'\n {\n string_literal52=(Token)match(input,130,FOLLOW_130_in_defineSensor839); \n stream_130.add(string_literal52);\n\n\n }\n break;\n case 2 :\n // flips.g:176:11: 'sensor'\n {\n string_literal53=(Token)match(input,131,FOLLOW_131_in_defineSensor841); \n stream_131.add(string_literal53);\n\n\n }\n break;\n case 3 :\n // flips.g:176:20: 'sensors'\n {\n string_literal54=(Token)match(input,132,FOLLOW_132_in_defineSensor843); \n stream_132.add(string_literal54);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_defineSensorValue_in_defineSensor846);\n defineSensorValue55=defineSensorValue();\n\n state._fsp--;\n\n stream_defineSensorValue.add(defineSensorValue55.getTree());\n\n\n // AST REWRITE\n // elements: defineSensorValue\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 177:2: -> defineSensorValue\n {\n adaptor.addChild(root_0, stream_defineSensorValue.nextTree());\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "@ApiOperation(\"查询传感器的信息\")\n @GetMapping(\"alldata\")\n //PageParam pageParam\n public Result<List<Sensordetail>> allsensorinf() {\n return Result.createBySuccess(sensorDetailMapper.selectAll());\n }", "public List<SuperSensor> getSensorsByClass(Class c)\n {\n return sensorModules.getSensorsByClass(c);\n }", "private Sensor registerSensor(HalSensorConfig config){\n Sensor sensor = new Sensor();\n sensor.setDeviceConfig(config);\n manager.addAvailableDeviceConfig(config.getClass());\n manager.register(sensor);\n return sensor;\n }", "private void getSensorService() {\n mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n\n if (mSensorManager == null) {\n Log.e(TAG, \"----getSystemService failed\");\n\n } else {\n mWakeupUncalibratedGyro = mSensorManager.getDefaultSensor(\n Sensor.TYPE_GYROSCOPE_UNCALIBRATED, true);\n }\n\n if (mWakeupUncalibratedGyro != null) {\n mSensorManager.registerListener(mListener, mWakeupUncalibratedGyro,\n SensorManager.SENSOR_DELAY_UI);\n }\n }", "public synchronized Vector<SensorData> getRawData() {\n return rawData;\n }", "public LinkedList<Temperature> listSensorTemperature(){\r\n LinkedList<Temperature> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Temperature)\r\n aux.add((Temperature)s);\r\n }\r\n return aux;\r\n }", "public SensorBean getLatestReading() {\n return latestReading;\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUUID_G(\n java.lang.String uuid, long groupId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByUUID_G(uuid, groupId);\n }", "protected SuperSensor createNewSensor(SensorMessage message)\n {\n return ModuleInstanceProvider.getSensorInstanceByType(message.getType());\n }", "@RequestMapping(value = \"/station/{id}/sensors\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Sensor>> findAllStationSensors(@PathVariable(\"id\") long id) {\n\t\tStation currentStation = stationDao.findById(id);\n\t\tif (currentStation == null) {\n\t\t\tlogger.info(\"Station with id \" + id + \" not found\");\n\t\t\treturn new ResponseEntity<List<Sensor>>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\tList<Sensor> sensors = stationDao.findAllStationSensors(id);\n\t\tif (sensors == null || sensors.isEmpty()) {\n\t\t\treturn new ResponseEntity<List<Sensor>>(HttpStatus.NO_CONTENT);\n\t\t}\n\t\treturn new ResponseEntity<List<Sensor>>(sensors, HttpStatus.OK);\n\t}", "public PSensor toParcelable() {\n return new PSensor(this.sensorID, this.displayedSensorName, this.bluetoothID, this.sampleRate,\n this.savePeriod, this.smoothness, this.sensorType, this.graphType,\n this.rawDataMeasurementUnit, this.rawDataMeasurementSystem,\n this.displayedMeasurementUnit, this.displayedMeasurementSystem, this.isInternalSensor);\n }", "public double getValue() {\n\t\treturn sensorval;\n\t}", "Object getDataValue(final int row, final int column);", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByCompanyId_First(\n long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence()\n .fetchByCompanyId_First(companyId, orderByComparator);\n }", "public interface SensorData {\n String toString();\n}", "org.naru.park.ParkController.CommonAction getGetLatestSensorReadingForUser();", "public abstract boolean sensorFound();", "public interface DataDao {\r\n\t/*\r\n\t * Get the latest data of a specific device despite of sensor data type.\r\n\t */\r\n\tpublic DataValue getLastDataByDeviceIdSortedByTimestamp(String deviceId) throws Exception;\r\n\t/*\r\n\t * Get the latest data of a specific device and a sensor data type.\r\n\t */\r\n\tpublic DataValue getLastDataByDeviceIdAndSensorTypeSortedByTimestamp(SensorValue sensorVal) throws Exception;\r\n\t/*\r\n\t * Get the data information list from database that is between a specific time interval.\r\n\t */\r\n\tpublic List<DataValue> getDataListByDeviceIdAndSensorTypeAndDateSortedByTimestamp(DataValue dataVal) throws Exception;\r\n\t/*\r\n\t * Insert new sensor data into database.\r\n\t */\r\n\tpublic int insertSensorData(DataValue dataVal) throws Exception;\r\n\t/*\r\n\t * Get the greatest data value of a specific sensor type.\r\n\t */\r\n\tpublic DataValue getGreatestDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;\r\n\t/*\r\n\t * Get the least data value of a specific sensor type.\r\n\t */\r\n\tpublic DataValue getLeastDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;\r\n}", "public SensorData(String date, String sensorId, String type, Double value) {\n\t\tthis.date = date;\n\t\tthis.sensorId = sensorId;\n\t\tthis.type = type;\n\t\tthis.value = value;\n\t}", "private Coordinate getCoordinate(String sensorLocation) throws IOException,\n InterruptedException {\n String[] words = sensorLocation.split(\"\\\\.\");\n\n var locationUrl = String.format(\n \"%swords/%s/%s/%s/details.json\", this.baseUrl, words[0], words[1],\n words[2]);\n\n var response = this.gson.fromJson(this.getResponse(locationUrl), JsonObject.class);\n var coords = response.get(\"coordinates\").getAsJsonObject();\n var coordinate = new Coordinate(\n coords.get(\"lng\").getAsDouble(),\n coords.get(\"lat\").getAsDouble());\n\n return coordinate;\n }", "List<Sensor> getTempSensors() {\n return Collections.unmodifiableList(this.tempSensors);\n }", "public int[] getTempSensorData()\n {\n return tempSensorData;\n }", "public final SensorMatrix getSensorMatrix() {\n return sensorMatrix;\n }", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByLTCreateDate_First(\n java.util.Date createDate,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByLTCreateDate_First(createDate, orderByComparator);\n }", "public List<Double> getRainValueBySensorId(Integer sensorId) {\n\t\treturn outRainDao.getRainValueBySensorId(sensorId);\r\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceSensorOutputs/{device}\")\n List<JsonSensorOutput> byDevice(@PathParam(\"device\") int device);", "@SuppressWarnings(\"unchecked\")\n private List<Sensor> getSensors(Session session, int idConcentrator) {\n Query query = session.createQuery(\"FROM Sensor WHERE idConcentrator = :id\");\n query.setParameter(\"id\", idConcentrator);\n return query.list();\n }" ]
[ "0.6816482", "0.6806091", "0.6718311", "0.657181", "0.65187526", "0.64594984", "0.6387394", "0.62483203", "0.6244288", "0.62203455", "0.6205102", "0.6133808", "0.6118583", "0.6084674", "0.60709447", "0.6049228", "0.6034595", "0.59871334", "0.597598", "0.59596795", "0.5932842", "0.5915047", "0.58278227", "0.58225065", "0.57653564", "0.5709828", "0.5659932", "0.5653237", "0.5651015", "0.5649601", "0.5648242", "0.5623772", "0.5619251", "0.5609285", "0.56004465", "0.5593582", "0.5584336", "0.55770475", "0.5576375", "0.55596817", "0.55461365", "0.5500838", "0.54666567", "0.54465634", "0.54436", "0.54435956", "0.54102486", "0.53631526", "0.53501344", "0.5340699", "0.53126144", "0.53111404", "0.53100425", "0.53025615", "0.52984846", "0.52621514", "0.5255612", "0.5242279", "0.5172495", "0.51655483", "0.516516", "0.51495475", "0.51335406", "0.5127507", "0.5123692", "0.5117555", "0.5116451", "0.5114143", "0.5113919", "0.5097542", "0.50946504", "0.50820863", "0.50762033", "0.5075383", "0.50614095", "0.5052233", "0.50500786", "0.50491965", "0.5037653", "0.50276715", "0.50254524", "0.50056916", "0.5001274", "0.49933213", "0.49899918", "0.49662408", "0.49654043", "0.49629596", "0.49516916", "0.4948925", "0.4939166", "0.49379408", "0.4936585", "0.4918113", "0.49150896", "0.49143338", "0.4894153", "0.488458", "0.48823008", "0.48751238" ]
0.74568886
0
Uploads the data from the Buffer to the Server.
public boolean uploadData(){ ObjectInputStream instream = null; Vector<SensorData> dummyData = new Vector<SensorData>(); try { //Tries to create an ObjectInStream for the buffer serialisation file. FileInputStream fileinput = new FileInputStream ("data/buffer.ser"); instream = new ObjectInputStream(fileinput); //Loops through the ObjectInputStream do{ try { //Tries to get an object from the ObjectInputStream SensorData newData = (SensorData)instream.readObject(); //Adds the data to the Vector<SensorData> if not null. if (newData != null) dummyData.add(newData); } catch(ClassNotFoundException ex) { //Caught Exception if the instream.readObject() isn't of type SensorData System.out.println(ex); } } while (true); } catch(IOException io) { //Caught Exception if the instream.readObject found the end of the file or failed to create the instream System.out.println(io); } try { //Tries to colse the instream. instream.close(); } catch (IOException ex) { System.out.println(ex); } if (dummyData.size() > 0){ //if there was any SensorData found in the Buffer add it to the Server. Server.getInstance().addData(dummyData, id); return true; } else { //Otherwise something went wrong or there was no SensorData to add so return false. return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void upload() {\r\n\t\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vboVertexId);\r\n\t\t\tFloatBuffer coordinates = shapePeer.shape.getVertexData().coordinates;\r\n\t\t\tint tempIdx=0;\r\n\t\t\tfor (int i=0; i<count; i++) {\r\n\t\t\t\ttempP3f.x = coordinates.get((minIndex+i)*3+0);\r\n\t\t\t\ttempP3f.y = coordinates.get((minIndex+i)*3+1);\r\n\t\t\t\ttempP3f.z = coordinates.get((minIndex+i)*3+2);\r\n\t\t\t\tshapePeer.shape.getModelMatrix().transform(tempP3f);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+0, tempP3f.x);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+1, tempP3f.y);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+2, tempP3f.z);\r\n\t\t\t\tif (tempIdx*3 >= uploadBuffer.capacity() || i==count-1) {\r\n\t\t\t\t\tint offset = (startIdx+i-tempIdx)*3;\r\n\t\t\t\t\tuploadBuffer.position(0).limit((tempIdx+1)*3);\r\n//\t\t\t\t\tSystem.out.println(\"upload \"+offset+\" \"+uploadBuffer.limit()+\" \"+startIdx);\r\n\t\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, uploadBuffer);\r\n\t\t\t\t\tuploadBuffer.position(0).limit(uploadBuffer.capacity());\r\n\t\t\t\t\ttempIdx=0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempIdx++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// upload colors\r\n\t\t\tFloatBuffer colors = shapePeer.shape.getVertexData().colors;\r\n\t\t\tif (colors != null) {\r\n\t\t\t\tcolors.position(minIndex).limit(minIndex+count*3);\r\n\t\t\t\tint offset = (numElements*3)+(startIdx*3);\r\n\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, colors);\r\n\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// upload texture coordinates\r\n\t\t\tObjectArray<VertexData.TexCoordData> texCoords = shapePeer.shape.getVertexData().texCoords;\r\n\t\t\tif (texCoords != null) {\r\n\t\t\t\tfor (int unit=0; unit<texCoords.length(); unit++) {\r\n\t\t\t\t\tVertexData.TexCoordData texCoord = texCoords.get(unit);\r\n\t\t\t\t\tif (texCoord != null) {\r\n\t\t\t\t\t\tGL13.glClientActiveTexture(GL13.GL_TEXTURE0 + unit);\r\n\t\t\t\t\t\ttexCoord.data.position(minIndex*2).limit(minIndex*2+count*2);\r\n//\t\t\t\t\t\tint offset = (numElements*(6+unit*2))+(startIdx*2);\r\n\t\t\t\t\t\tint offset = (numElements*(6+unit*2))+startIdx+startIdx;\r\n\t\t\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, texCoord.data);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tGL13.glClientActiveTexture(GL13.GL_TEXTURE0);\r\n\t\t\t\r\n\t\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);\r\n\r\n\t\t\tVertexData vertexData = shapePeer.shape.getVertexData();\r\n\t\t\tIntBuffer indices = vertexData.indices;\r\n\t\t\tindices.position(0).limit(indices.capacity());\r\n\t\t\tthis.indices = new int[indices.capacity()];\r\n\t\t\tindices.get(this.indices);\r\n\t\t\tfor (int i=0; i<this.indices.length; i++) {\r\n\t\t\t\tthis.indices[i] += startIdx-minIndex;\r\n\t\t\t}\r\n\t\t\tUtil.checkGLError();\r\n\t\t}", "private void uploadFromDataStorage() {\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 }", "protected void storeBuffer(Buffer buffer, String targetPath) {\n\t\tFileSystem fileSystem = Mesh.vertx().fileSystem();\n\t\tfileSystem.writeFileBlocking(targetPath, buffer);\n\t\t// log.error(\"Failed to save file to {\" + targetPath + \"}\", error);\n\t\t// throw error(INTERNAL_SERVER_ERROR, \"node_error_upload_failed\", error);\n\t}", "public synchronized void upload(){\n\t}", "public static void vu0UploadData(int index, byte[] data) { }", "public void write(byte[] buffer);", "public void update(String filename, SensorData sensorData){\n //Adds the sensor data to the buffer. \n addToBuffer(filename, sensorData);\n \n //Uploads the data to the server if it's turned on. \n if (Server.getInstance().getServerIsOn())\n if(uploadData()){\n //If the upload was successful, clear the buffer.\n clearBuffer();\n }\n }", "@Override\r\n\tpublic void PushToBuffer(ByteBuffer buffer)\r\n\t{\r\n\t\r\n\t}", "void bytesToUpload(long bytes);", "public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}", "public void sendData(IoBuffer outData) {\n\t\ttry {\n\t\t\tsession.write(outData);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void upload(X x) {\n }", "@Override\n protected void sendBuffer(byte[] buffer) {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if (serialDriver != null) {\n try {\n serialDriver.write(buffer, 500);\n } catch (IOException e) {\n Log.e(TAG, \"Error Sending: \" + e.getMessage(), e);\n }\n }\n }", "public void uploadObject() {\n\n\t}", "protected abstract void sendInternal(ByteBuffer outputBuffer) throws IOException;", "public void run() {\n\t\t\t\t\tString resultString = upload(url, formParameters, datas);\n\t\t\t\t\tif (null != resultString) {\n\t\t\t\t\t\tMessage message = handler.obtainMessage(MessageWhat.UPLOADRESP, resultString);\n\t\t\t\t\t\thandler.sendMessage(message);\n\t\t\t\t\t}\n\t\t\t\t}", "private void uploadImage(byte[] imageData) {\n\n }", "protected void forwardData(String from, byte[] data)\n\t\t\tthrows QueueBlockedException {\n\t\tthis.writer.write(from, data);\n\t}", "@Override\r\n public void processBuffer(UsbIoBuf servoBuf){\r\n ServoCommand cmd=null;\r\n servoBuf.NumberOfBytesToTransfer=ENDPOINT_OUT_LENGTH; // must send full buffer because that is what controller expects for interrupt transfers\r\n servoBuf.OperationFinished=false; // setting true will finish all transfers and end writer thread\r\n servoBuf.BytesTransferred=0;\r\n try{\r\n cmd=servoQueue.take(); // wait forever until there is a command\r\n }catch(InterruptedException e){\r\n log.info(\"servo queue wait interrupted\");\r\n T.interrupt(); // important to call again so that isInterrupted in run loop see that thread should terminate\r\n }\r\n if(cmd==null) {\r\n return;\r\n }\r\n System.arraycopy(cmd.bytes,0,servoBuf.BufferMem,0,cmd.bytes.length);\r\n }", "public uploader(Socket s) throws Exception {\n\n this.s = s;\n writer = new ObjectOutputStream(s.getOutputStream());\n\n }", "@Override\r\n public void run() {\n upload();\r\n }", "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 stream(T data) {\n channel.write(new DataMessage<>(data));\n }", "public void write(ByteBuffer buffer) throws IOException {\n _channel.write(buffer);\n }", "@Override\n\t\tpublic void write(byte[] buffer) throws IOException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tout.write(buffer);\n\t\t\tamount+=buffer.length;\n\t\t\tthis.listener.AmountTransferred(amount);\n\t\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}", "@Override\n\tpublic void send(OutputStream stream) throws IOException {\n\t\tstream.write(this.data);\n\t}", "private void Upload(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// given packet w/no header!\n\t\t// (for uploading request c->s) [header | filesize(8) | filename(?)]\n\t\t// (for upload acknowledgement s->c) [header | already exists (1) | file id (4)]\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"filename not correctly uploaded\");\n\t\tlong buf_size = packet.getLong(0);\n\t\tString buf_name = \"\";\n\t\tfor (int i = 0; i < buf.capacity(); i++){\n\t\t\tif (buf.get(8 +i) == '\\0')\n\t\t\t\tbreak;\n\t\t\tbuf_name += (char)buf.get(8 + i);\n\t\t}\n\t\tif (buf_name.length() == 0)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"filename not correctly uploaded\");\n\t\t\n\t\tint id = buf_name.hashCode() + (int)buf_size;\n\t\tboolean add = true;\n\t\tfor (ClientObj c : clients)\n\t\t\tif (c.hasFile(id)) // Check for duplicate id's, which would be problematic\n\t\t\t\tadd = false;\n\t\tbyte exists = 0;\n\t\tif (add)\n\t\t\tclient.addUpload(new ServerFile(buf_name, buf_size, id));\n\t\telse {\n\t\t\tfor (ServerFile f : totalFiles().keySet())\n\t\t\t\tif (f.id() == id)\n\t\t\t\t\tclient.addUpload(f);\n\t\t\texists = 1;\n\t\t}\n\t\tSystem.out.println(client.getAddress() + \": Correctly processed upload req for \" + buf_name \n\t\t\t\t+ \" with size \" + buf_size + \" bytes and id \" + id);\n\t\t\n\t\t//construct/send response\n\t\tbuf = Utility.addHeader(3, 5, client.getId());\n\t\tbuf.put(Constants.HEADER_LEN, exists);\n\t\tbuf.putInt(Constants.HEADER_LEN + 1, id);\n\t\tbyte[] sendData = buf.array();\n\t\t\n\t\t// send response\n\t\tout.write(sendData);\n\t\tout.flush();\n\t}", "public void write_to_buffer(byte[] buffer) throws IOException {\r\n ByteArrayOutputStream byte_out = new ByteArrayOutputStream(buffer.length);\r\n DataOutputStream out = new DataOutputStream(byte_out);\r\n\r\n write_to_buffer(out);\r\n\r\n byte[] bytes = byte_out.toByteArray();\r\n for (int i = 0; i < buffer.length; ++i) {\r\n buffer[i] = bytes[i];\r\n }\r\n\r\n out.close();\r\n byte_out.close();\r\n }", "public void writeToServer() throws IOException {\n\t\tserverBuffer.writeTo(serverChannel);\n\t\tif (serverBuffer.isReadyToWrite()) {\n\t\t\tregister();\n\t\t}\n\t}", "@Override\n public void flushBuffer() throws IOException {\n\n }", "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 }", "public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}", "@Override\n public void handle(NIOConnection conn, byte[] data) {\n this.data = data;\n countDownLatch.countDown();\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 }", "void setBuffer(byte[] b)\n {\n buffer = b;\n }", "@Override\n public void fromBuffer(byte[] buffer) {\n set(bytesToContent(buffer));\n }", "public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }", "@Override\n\t\t\t\tpublic int fileTransferSend(LinphoneCore lc, LinphoneChatMessage message,\n\t\t\t\t\t\tLinphoneContent content, ByteBuffer buffer, int size) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "public void run() {\n String fileName;\n DataInputStream in;\n byte[] arr = new byte[5000];\n try {\n //getting the file name from client\n in = new DataInputStream(clientSocket.getInputStream());\n fileName = in.readUTF();\n // calling the function to send the file back to the client\n sendDataToClient(s3, fileName);\n //read file from disk\n FileInputStream fis = new FileInputStream(\"/home/ubuntu/\" + fileName);\n BufferedInputStream bis = new BufferedInputStream(fis);\n //output stream for socket\n BufferedOutputStream out = new BufferedOutputStream(clientSocket.getOutputStream());\n // if the file is for getting RTT\n if ( !fileName.equals(\"RTTFile.txt\") )\n System.out.println(\"\\n Serving file: \" + fileName + \"\\n\");\n // writing to streams\n int count;\n while ((count = bis.read(arr)) > 0) {\n out.write(arr, 0, count);\n }\n // flushing and closing all the open streams\n out.flush();\n out.close();\n fis.close();\n bis.close();\n clientSocket.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void uploadSuccessful(long bytes);", "public void doPut() throws IOException {\n\n String otherContent = \".\";\n\n int contentLength = 0;\n\n while (!otherContent.equals(\"\")) {\n otherContent = in.readLine();\n if (otherContent.startsWith(\"Content-Length\")) {\n contentLength = Integer.parseInt(otherContent.split(\" \")[1]);\n }\n }\n\n char[] buffer = new char[contentLength];\n this.in.read(buffer, 0, contentLength); // read parameter\n\n String parameters = decodeValue(new String(buffer));\n System.out.println(\"Param \" + parameters);\n byte[] contentByte = parameters.getBytes();\n // traiter le buffer\n\n String path = RESOURCE_DIRECTORY + this.url;\n\n File file = new File(path);\n\n if (file.exists() && !file.isDirectory()) {\n Files.write(Paths.get(path), contentByte);\n statusCode = NO_CONTENT;\n } else {\n if (file.createNewFile()) {\n Files.write(Paths.get(path), contentByte);\n statusCode = CREATED;\n } else {\n statusCode = FORBIDEN;\n }\n\n }\n\n //Response to client\n sendHeader(statusCode, \"text/html\", contentByte.length);\n\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 send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\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 }", "private boolean sendChunk() throws IOException {\n // allocate Buffer\n final Buffer buffer = mm.allocate(chunkSize);\n // mark it available for disposal after content is written\n buffer.allowBufferDispose(true);\n\n // read file to the Buffer\n final int justReadBytes = (int) Buffers.readFromFileChannel(\n fileChannel, buffer);\n \n if (justReadBytes <= 0) {\n complete();\n return false;\n }\n\n // prepare buffer to be written\n buffer.trim();\n\n // write the Buffer\n outputStream.write(buffer);\n size -= justReadBytes;\n\n // check the remaining size here to avoid extra onWritePossible() invocation\n if (size <= 0) {\n complete();\n return false;\n }\n\n return true;\n }", "@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}", "void uploadFinished(StreamingEndEvent event, File uploadedTemporaryFile);", "private void postImg(File index) {\n FileInputStream imgIn = null;\n byte[] imgData = new byte[(int)index.length()];\n try {\n imgIn = new FileInputStream(index);\n imgIn.read(imgData);\n\n BufferedOutputStream imgOut = new BufferedOutputStream(connectionSocket.getOutputStream());\n\n\n out.println(OK);\n out.println(htmlType);\n out.println(closed);\n out.println(\"Content-Length: \" + index.length());\n out.write(ENDLINE);\n out.flush();\n imgOut.write(imgData, 0, (int)index.length());\n imgOut.flush();\n\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "public void flush(){\r\n mBufferData.clear();\r\n }", "public int send (byte[] buffer)\n throws IOException, IllegalArgumentException\n {\n return sendNative (buffer, 0, buffer.length);\n }", "public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }", "void sendData() throws IOException\n\t{\n\t}", "private void handleImage(byte[] b) throws IOException {\n Log.i(\"ScrencapHandler\",\"handleImage\");\n long utime = System.currentTimeMillis();\n byte[] unixTime = toByteArray(utime);\n int start = b.length - unixTime.length - 1; //-1 for the seqnum\n for (int i = 0; i < unixTime.length; i++) {\n b[start + i] = unixTime[i];\n }\n\n if (jitterControl.channelIsFree()) {\n int seq = jitterControl.sendt(utime, b.length);\n\n // Add seq number.\n b[b.length - 1] = (byte) seq;\n\n // Send out the data to the network.\n Log.i(\"ScrencapHandler\",\"Send out the data to the network\");\n mWebkeyVisitor.send(b);\n }\n }", "protected void uploadFrom(VFSTransfer transferInfo, VFile localSource) throws VlException \n {\n // copy contents into this file. \n vrsContext.getTransferManager().doStreamCopy(transferInfo, localSource,this); \n }", "@Override\r\n public void write(byte[] buffer) throws IOException {\r\n inWrite1 = true;\r\n try {\r\n super.write(buffer);\r\n if (!inWrite3) {\r\n /*if (!Helper.NEW_IO_HANDLING \r\n && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, buffer.length);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, buffer.length, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n inWrite1 = false;\r\n } catch (IOException e) {\r\n inWrite1 = false;\r\n throw e;\r\n }\r\n }", "void send(SftpDatagram head,byte[] data){\r\n\t\tdata_send = data;\r\n\t\t//first send the first one\r\n\t\ttotal_datagrams = 1;\r\n\t\tcovered_datagrams++;\r\n\t\thead.send_datagram();\r\n\t\tput_and_set_timer(head);\r\n\t\t//sending\r\n\t\tif(data_send != null){\r\n\t\t\tlong size = data_send.length;\r\n\t\t\tif(size != 0)\r\n\t\t\t\ttotal_datagrams = (int)((size+BLOCK_SIZE-1) / BLOCK_SIZE);\r\n\t\t}\r\n\t\t//check sendings(if not small mode)\r\n\t\tcheck_and_send();\r\n\t}", "public void addBytes( final ByteBuffer _buffer ) {\n\n // sanity checks...\n if( isNull( _buffer ) )\n throw new IllegalArgumentException( \"Missing buffer to append from\" );\n if( _buffer.remaining() <= 0)\n throw new IllegalArgumentException( \"Specified buffer has no bytes to append\" );\n\n // figure out how many bytes we can append, and configure the source buffer accordingly...\n int appendCount = Math.min( buffer.capacity() - buffer.limit(), _buffer.remaining() );\n int specifiedBufferLimit = _buffer.limit();\n _buffer.limit( _buffer.position() + appendCount );\n\n // remember our old position, so we can put it back later...\n int pos = buffer.position();\n\n // setup to copy our bytes to the right place...\n buffer.position( buffer.limit() );\n buffer.limit( buffer.capacity() );\n\n // copy our bytes...\n buffer.put( _buffer );\n\n // get the specified buffer's limit back to its original state...\n _buffer.limit( specifiedBufferLimit );\n\n // get our position and limit to the right place...\n buffer.limit( buffer.position() );\n buffer.position( pos );\n }", "public void run() {\n\t\t\t\t\tMessage msg;\n\t\t\t\t\tVector<File> files = new Vector<File>();\n\t\t\t\t\tfiles.add(new File(fileName));\n\t\t\t\t\tString result = upload(url, formParameters, files);\n\t\t\t\t\tif (StringUtils.isEmpty(result)) {\n\t\t\t\t\t\tmsg = handler.obtainMessage(Constant.UPLOAD_FAIL_CODE, Constant.UPLOAD_EXCEPTION);\n\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLog.i(TAG, result);\n\t\t\t\t\t\tmsg = handler.obtainMessage(messageWhat, result);\n\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t}\n\n\t\t\t\t}", "@Override\n\tpublic void flushBuffer() throws IOException {\n\t}", "private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }", "public void sendData(byte[] data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.length + 10);\n\t\tbuf.put(data);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}", "private static void sendRequestUserTextUpload(Socket s, PrintWriter pw, String method, Boolean requestFileFlag, Boolean bodyFlag) throws IOException {\n pw.print(method + \" /\");\n if (requestFileFlag) {\n pw.print(\"UserTextUpload/\");\n }\n pw.print(\" HTTP/1.1\\r\\n\");\n //request headers formation.\n pw.print(\"Host: localhost\\r\\n\");\n pw.print(\"Content-Type: text/html\\r\\n\");\n\n //This is to add a new header with the size of the sent file.\n pw.print(\"Content-Size: \" + Files.size(Path.of(FILE_PATH)) + \"\\r\\n\");\n pw.print(\"\\r\\n\");\n pw.flush();\n\n //request body formation.\n if (bodyFlag) {\n //Change to your own txt file\n Files.copy(Path.of(FILE_PATH), s.getOutputStream());\n }\n pw.flush();\n }", "public void PUT(String address){\r\n\r\n try {\r\n /**\r\n * sends passive command to establish a new port in which the server will be listening on \r\n */\r\n out.println(\"PASV\");\r\n out.flush();\r\n String portnum = in.readLine();\r\n int index = portnum.indexOf(\"(\") + 1;\r\n int indexLast = portnum.indexOf(\")\");\r\n String newStr = portnum.substring(index, indexLast);\r\n portData = newStr.split(\",\");\r\n \r\n int port1, port2;\r\n port1 = Integer.parseInt(portData[4]);\r\n port2 = Integer.parseInt(portData[5]);\r\n int newPort = (port1 * 256) + port2;\r\n \r\n String hostNumberIP = portData[0] + \".\" + portData[1] + \".\" +portData[2] + \".\" + portData[3];\r\n \r\n sock2 = new Socket(hostNumberIP, newPort);\r\n //in2 = new BufferedReader(new InputStreamReader(sock2.getInputStream()));\r\n out.println(\"STOR \" + address);\r\n out.flush();\r\n String line = in.readLine();\r\n System.out.println(in.readLine());\r\n\r\n /**\r\n * uses file streams and input/buffered readers to send and receive byes for file transfer\r\n */\r\n File file = new File(address);\r\n FileInputStream fis = new FileInputStream(file);\r\n BufferedInputStream bis = new BufferedInputStream(fis);\r\n BufferedOutputStream out = new BufferedOutputStream(sock2.getOutputStream());\r\n byte[] buffer = new byte[8192];\r\n int count;\r\n while ((count = bis.read(buffer)) > 0) {\r\n out.write(buffer, 0, count);\r\n\r\n }\r\n out.close();\r\n fis.close();\r\n bis.close();\r\n \r\n\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n\r\n }", "private void uploadByteArray(ByteArrayOutputStream bytes, String messageType) {\n DatabaseReference databaseReference = rootReference.child(NodeNames.MESSAGES).child(currentUserId).child(chatUserId).push();\n String pushId = databaseReference.getKey();\n\n StorageReference storageReference = FirebaseStorage.getInstance().getReference();\n String folderName = messageType.equals(Constants.MESSAGE_TYPE_VIDEO)?Constants.MESSAGE_VIDEOS:Constants.MESSAGE_IMAGES;\n String fileName = messageType.equals(Constants.MESSAGE_TYPE_VIDEO)?pushId+\".mp4\":pushId+\".jpg\";\n\n StorageReference fileReference = storageReference.child(folderName).child(fileName);\n UploadTask uploadTask = fileReference.putBytes(bytes.toByteArray());\n uploadProgress(uploadTask, fileReference, pushId, messageType);\n }", "public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }", "public void sendRequest(){\n fileServer.sendMessage(this.packet,new FileNode(ip,port));\n }", "@Override\n public void write(byte[] data) throws SerialError {\n int offset= 0;\n int size_toupload=0;\n byte[] buffer = new byte[SIZE_SERIALUSB];\n if(!isConnected())\n {\n open();\n }\n try\n {\n while(offset < data.length) {\n\n if(offset+SIZE_SERIALUSB > data.length)\n {\n size_toupload = data.length-offset;\n }\n System.arraycopy(data, offset, buffer, 0, size_toupload);\n int size_uploaded = conn.bulkTransfer(epOUT, buffer, size_toupload, TIMEOUT);\n if(size_uploaded<0)\n {\n throw new SerialError(\" bulk Transfer fail\");\n }\n offset += size_uploaded;\n }\n\n }catch (Exception e)\n {\n throw new SerialError(e.getMessage());\n }\n }", "@Override\n public void doDataReceived(ResourceDataMessage dataMessage) {\n if(outputStream == null) return;\n if(startTime == 0) startTime = System.nanoTime();\n if (this.getTunnel() == null)\n this.setTunnel(dataMessage.getNetworkMessage().getTunnel());\n\n EventManager.callEvent(new ResourceTransferDataReceivedEvent(this, dataMessage));\n\n try {\n if (dataMessage.getResourceData().length != 0) {\n //Saving received chunks\n byte[] chunk = dataMessage.getResourceData();\n written += chunk.length;\n double speedInMBps = NANOS_PER_SECOND / BYTES_PER_MIB * written / (System.nanoTime() - startTime + 1);\n System.out.println();\n logger.info(\"Receiving file: {} | {}% ({}MB/s)\", this.getResource().attributes.get(1), ((float) written / (float) fileLength) * 100f, speedInMBps);\n\n //add to 4mb buffer\n System.arraycopy(chunk, 0, buffer, saved, chunk.length);\n saved += chunk.length;\n if (buffer.length - saved < BUFFER_SIZE || written >= fileLength) {\n //save and clear buffer\n outputStream.write(buffer, 0, saved);\n saved = 0;\n }\n\n\n if (written >= fileLength) {\n this.close();\n }\n } else {\n //Empty chunk, ending the transfer and closing the file.\n logger.info(\"Empty chunk received for: {}, ending the transfer...\", this.getResource().attributes.get(1));\n\n //File fully received.\n this.close();\n }\n } catch (Exception e) {\n callError(e);\n }\n }", "protected void work() {\n try {\n if(theFile!=null) { \n //construct filePath, fileSize\n int fileSize = theFile.getFileSize();\n if(fileSize==0) fileSize=1;\n String filePath = path+\"/\"+theFile.getFileName();\n if(log.isDebugEnabled()) log.debug(\"Uploading file: \"+filePath+\", filesize: \"+fileSize/1000+\"KB\");\n\t\t\t\n //write out file\n InputStream stream = theFile.getInputStream();\n OutputStream bos = new FileOutputStream(filePath);\n int bytesRead = 0;\n byte[] buffer = new byte[Constants.FILEUPLOAD_BUFFER];\n while(isRunning() && ((bytesRead = stream.read(buffer, 0, Constants.FILEUPLOAD_BUFFER)) != -1)) {\n bos.write(buffer, 0, bytesRead);\n sum+=bytesRead;\n setPercent(sum/fileSize);\n }\n bos.close();\n stream.close();\n }\n } catch(Exception ex) {\n setRunning(false);\n log.error(\"Error while uploading: \"+ex.getMessage());\n ex.printStackTrace();\n }\n }", "protected void upload(final AbstractBackupPath bp) throws Exception\n {\n new RetryableCallable<Void>()\n {\n @Override\n public Void retriableCall() throws Exception\n {\n fs.upload(bp, bp.localReader());\n return null;\n }\n }.call();\n }", "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 }", "@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}", "public void transferFile() {\n\t\t// create file event and set client and server path\n\t\tfileEvent = new FileEvent();\n\t\tfileEvent.setClientPath(clientPath);\n\t\tfileEvent.setServerPath(serverPath);\n\t\t\n\t\t// get client name and set filename\n\t\tFile file = new File(clientPath);\n\t\tString name = clientPath.substring(clientPath.lastIndexOf(\"/\") + 1, \n\t\t\t\t\t\tclientPath.length());\n\t\tfileEvent.setFilename(name);\n\t\t\n\t\t// checks if the file exists in the path mentioned or sets valid to No\n\t\tif (file.isFile()) {\n\t\t\t//creates input stream setup the data in byte arrays\n\t\t\tDataInputStream inStream = null;\n\t\t\ttry {\n\t\t\t\tinStream = new DataInputStream(new FileInputStream(file));\n\t\t\t\tlong length = (int) file.length();\n\t\t\t\tbyte[] byteArray = new byte[(int) length];\n\t\t\t\tint start = 0;\n\t\t\t\tint last = 0;\n\t\t\t\tint rest = inStream.read(byteArray, start, \n\t\t\t\t\t\t\t\t\t\t\tbyteArray.length - start);\n\t\t\t\twhile (start < byteArray.length && (last = rest) >= 0) {\n\t\t\t\t\tstart = start + last;\n\t\t\t\t}\n\t\t\t\tfileEvent.setFileSize(length);\n\t\t\t\tfileEvent.setFileData(byteArray);\n\t\t\t\tfileEvent.setValid(\"Yes\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tfileEvent.setValid(\"No\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Path does not exist.\");\n\t\t\tfileEvent.setValid(\"No\");\n\t\t}\n\t\t// Start sending the data byte array\n\t\ttry {\n\t\t\toutStream.writeObject(fileEvent);\n\t\t\tSystem.out.println(\"Done...\");\n\t\t\tThread.sleep(5000);\n\t\t\tSystem.exit(0);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public abstract void put(long position, ByteBuffer src);", "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 sendFile(SocketChannel socketChannel) throws IOException {\n int index = -1;\n RandomAccessFile aFile = null;\n try {\n File file = new File(\"C:\\\\Users\\\\ASUS\\\\Downloads\\\\Music\\\\Marshmello-One-Thing-Right-(Ft-Kane-Brown).mp3\");\n aFile = new RandomAccessFile(file, \"r\");\n FileChannel inChannel = aFile.getChannel();\n ByteBuffer buffer = ByteBuffer.allocate(1024);\n while (inChannel.read(buffer) > 0) {\n buffer.flip();\n socketChannel.write(buffer);\n buffer.clear();\n }\n Thread.sleep(1000);\n System.out.println(\"End of file reached..\");\n socketChannel.close();\n aFile.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }", "public void postRequestUploadProgress(Request<?> request, long transferredBytesSize, long totalSize, int currentFileIndex, File currentFile);", "void sendChunkRequest(int chunkX, int chunkY);", "@Override\r\n public synchronized void flush() throws IOException {\r\n\t\tif ( count != 0 ) {\r\n\t\t writeBuffer(buf, 0, count );\r\n\t\t count = 0;\r\n\t\t}\r\n\t}", "void flushBuffer();", "private void sendFileContents() {\n\t\t// mostramos un log\n\t\tthis.getLogger().debug(\"Sending file (\" + this.getFile().getName() + \": \" + this.getFile().length() + \" bytes)..\");\n\t\t// iniciamos una bandera\n\t\tint bytesRead = 0;\n\t\ttry {\n\t\t\t// abrimos el fichero\n\t\t\tfinal FileInputStream inFile = new FileInputStream(this.getFile());\n\t\t\t// creamos un buffer para el envio\n\t\t\tfinal byte[] buff = new byte[this.getConnection().getSendBufferSize()];\n\t\t\t// leemos el fichero\n\t\t\twhile ((bytesRead = inFile.read(buff)) > 0) {\n\t\t\t\t// enviamos el buffer por el socket\n\t\t\t\tthis.getConnection().getOutputStream().write(buff, 0, bytesRead);\n\t\t\t\t// vaciamos el buffer\n\t\t\t\tthis.getConnection().getOutputStream().flush();\n\t\t\t}\n\t\t\t// cerramos el fichero\n\t\t\tinFile.close();\n\t\t\t// vaciamos el fichero enviado\n\t\t\tthis.file = null;\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().info(\"File sent\");\n\t\t} catch (final SocketException e) {\n\t\t\t// mostramos el trace de la excepcion\n\t\t\tthis.getLogger().error(e);\n\t\t} catch (final FileNotFoundException e) {\n\t\t\ttry {\n\t\t\t\t// enviamos -1 para finalizar\n\t\t\t\tthis.getConnection().getOutputStream().write(-1);\n\t\t\t} catch (final IOException ignored) {}\n\t\t} catch (final IOException e) {\n\t\t\t// mostramos el trace de la excepcion\n\t\t\tthis.getLogger().error(e);\n\t\t}\n\t}", "private void transfer(Transfer associatedUpload) throws IOException {\n \t\ttry {\n \t\t\t_started = System.currentTimeMillis();\n \t\t\tif (_mode == 'A') {\n \t\t\t\t_out = new AddAsciiOutputStream(_out);\n \t\t\t}\n \n \t\t\tbyte[] buff = new byte[Math.max(_slave.getBufferSize(), 65535)];\n \t\t\tint count;\n \t\t\tlong currentTime = System.currentTimeMillis();\n \n \t\t\ttry {\n \t\t\t\twhile (true) {\n \t\t\t\t\tif (_abortReason != null) {\n \t\t\t\t\t\tthrow new TransferFailedException(\n \t\t\t\t\t\t\t\t\"Transfer was aborted - \" + _abortReason,\n \t\t\t\t\t\t\t\tgetTransferStatus());\n \t\t\t\t\t}\n \t\t\t\t\tcount = _in.read(buff);\n \t\t\t\t\tif (count == -1) {\n \t\t\t\t\t\tif (associatedUpload == null) {\n \t\t\t\t\t\t\tbreak; // done transferring\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (associatedUpload.getTransferStatus().isFinished()) {\n \t\t\t\t\t\t\tbreak; // done transferring\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tThread.sleep(500);\n \t\t\t\t\t\t} catch (InterruptedException e) {\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcontinue; // waiting for upload to catch up\n \t\t\t\t\t}\n \t\t\t\t\t// count != -1\n \t\t\t\t\tif ((System.currentTimeMillis() - currentTime) >= 1000) {\n \t\t\t\t\t\tTransferStatus ts = getTransferStatus();\n \t\t\t\t\t\tif (ts.isFinished()) {\n \t\t\t\t\t\t\tthrow new TransferFailedException(\n \t\t\t\t\t\t\t\t\t\"Transfer was aborted - \" + _abortReason,\n \t\t\t\t\t\t\t\t\tts);\n \t\t\t\t\t\t}\n \t\t\t\t\t\t_slave\n \t\t\t\t\t\t\t\t.sendResponse(new AsyncResponseTransferStatus(\n \t\t\t\t\t\t\t\t\t\tts));\n \t\t\t\t\t\tcurrentTime = System.currentTimeMillis();\n \t\t\t\t\t}\n \t\t\t\t\t_transfered += count;\n \t\t\t\t\t_out.write(buff, 0, count);\n \t\t\t\t}\n \n \t\t\t\t_out.flush();\n \t\t\t} catch (IOException e) {\n \t\t\t\tthrow new TransferFailedException(e, getTransferStatus());\n \t\t\t}\n \t\t} finally {\n \t\t\t_finished = System.currentTimeMillis();\n \t\t\t_slave.removeTransfer(this); // transfers are added in setting up\n \t\t\t\t\t\t\t\t\t\t\t// the transfer,\n \t\t\t\t\t\t\t\t\t\t\t// issueListenToSlave()/issueConnectToSlave()\n \t\t}\n \t}", "@Override\n public void onBufferReceived(byte[] buffer) {\n }", "@Override\r\n public void sendData(byte[] buffer, int bytes) {\r\n try {\r\n mOutputStream.write(buffer, 0, bytes);\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error sending data on socket: \" + ioe.getMessage());\r\n cancel();\r\n mPeer.communicationErrorOccured();\r\n }\r\n }", "public void upload(String token) {\n\t\tString json = this.toJson();\n\t\t\n\t\tHttpURLConnection conn;\n\t\ttry {\n\t\t\tconn = (HttpURLConnection ) new URL(UPLOAD_URL).openConnection();\n\t\t\tOutputStreamWriter writer = new OutputStreamWriter(conn.getOutputStream());\n\t\t\twriter.write(json);\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\tfinally{\n\t\t\t\n\t\t}\n\t\t\t\n\t}", "void synchronizeHostData(DataBuffer buffer);", "private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "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 boolean sendData(String data) throws IOException;", "public void addToBuffer(String filename, SensorData sensorData){\n ObjectOutputStream outstream;\n try {\n File bufferFile = new File(filename);\n //Checks to see if the buffer file already exists. \n if(bufferFile.exists())\n {\n //Create an AppendableObjectOutputStream to add the the end of the buffer file as opposed to over writeing it. \n outstream = new AppendableObjectOutputStream(new FileOutputStream (filename, true));\n } else {\n //Create an ObjectOutputStream to create a new Buffer file. \n outstream = new ObjectOutputStream(new FileOutputStream (filename)); \n }\n //Adds the SensorData to the end of the buffer file.\n outstream.writeObject(sensorData);\n outstream.close();\n } catch(IOException io) {\n System.out.println(io);\n }\n }", "private void formWriteBegin() {\n\t\tsendData = new byte[4];\n\t\tsendData[0] = 0;\n\t\tsendData[1] = 4;\n\t\tsendData[2] = 0;\n\t\tsendData[3] = 0;\n\t\t\n\t\t// Now that the data has been set up, let's form the packet.\n\t\tsendPacket = new DatagramPacket(sendData, 4, receivePacket.getAddress(),\n\t\t\t\treceivePacket.getPort());\t\n\t}", "public Long upload(MusicUploadData music) throws MusicAppException;", "public void uploadImage(int pos) throws InterruptedException {\n\t}", "public void postData()\n\t{\n\t\tnew NetworkingTask().execute(message);\n\t}", "public void streamWrite(byte[] buffer,int bufferOffset,int nrOfBytes) throws VlException\n {\n if (this instanceof VStreamWritable)\n {\n VStreamWritable wfile = (VStreamWritable) (this);\n OutputStream ostr = wfile.getOutputStream(); // do not append\n\n try\n {\n ostr.write(buffer, bufferOffset, nrOfBytes);\n ostr.flush(); \n ostr.close(); // Close between actions !\n }\n catch (IOException e)\n {\n throw new VlIOException(\"Failed to write to file:\" + this, e);\n }\n }\n else\n {\n throw new nl.uva.vlet.exception.NotImplementedException(\"File type does not support (remote) write access\");\n }\n }", "@Override\n\t\t\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\t\t\tuploadMsg(fUerInfo);\n\t\t\t\t\t}", "public void uploadFile( String selectedFilePath) {\n\n\n int serverResponseCode = 0;\n HttpURLConnection connection;\n DataOutputStream dataOutputStream;\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File selectedFile = new File(selectedFilePath);\n\n\n String[] parts = selectedFilePath.split(\"/\");\n final String fileName = parts[parts.length - 1];\n\n if (!selectedFile.isFile()) {\n //dialog.dismiss();\n //Log.v(TAG,\"gloabal\"+selectedFilePath);\n //showToast(selectedFilePath);\n //showToast(\"file issue\");\n return;\n } else {\n try {\n\n //Log.v(TAG, \"im in try\");\n\n\n FileInputStream fileInputStream = new FileInputStream(selectedFile);\n URL url = new URL(SERVER_URL);\n connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);//Allow Inputs\n connection.setDoOutput(true);//Allow Outputs\n connection.setUseCaches(false);//Don't use a cached Copy\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Connection\", \"Keep-Alive\");\n connection.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n connection.setRequestProperty(\"uploaded_file\", selectedFilePath);\n //showToast(selectedFilePath);\n //creating new dataoutputstream\n\n dataOutputStream = new DataOutputStream(connection.getOutputStream());\n //showToast(\"im after path\");\n //writing bytes to data outputstream\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"uploaded_file\\\";filename=\\\"\"\n + selectedFilePath + \"\\\"\" + lineEnd);\n\n dataOutputStream.writeBytes(lineEnd);\n\n\n //returns no. of bytes present in fileInputStream\n bytesAvailable = fileInputStream.available();\n //selecting the buffer size as minimum of available bytes or 1 MB\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n //setting the buffer as byte array of size of bufferSize\n buffer = new byte[bufferSize];\n\n //reads bytes from FileInputStream(from 0th index of buffer to buffersize)\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n //Log.v(TAG, \"before while\");\n\n\n //loop repeats till bytesRead = -1, i.e., no bytes are left to read\n while (bytesRead > 0) {\n //write the bytes read from inputstream\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n //Log.v(TAG, \"after while\");\n\n dataOutputStream.writeBytes(lineEnd);\n dataOutputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n serverResponseCode = connection.getResponseCode();\n String serverResponseMessage = connection.getResponseMessage();\n\n Log.i(TAG, \"Server Response is: \" + serverResponseMessage + \": \" + serverResponseCode);\n\n //response code of 200 indicates the server status OK\n if (serverResponseCode == 200) {\n Log.v(TAG, \"file upload complete\");\n }\n\n Log.v(TAG, \"now close\");\n\n //closing the input and output streams\n fileInputStream.close();\n dataOutputStream.flush();\n dataOutputStream.close();\n\n Log.v(TAG, \"CLosed \");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //showToast(\"FIle not found\");\n }\n });\n } catch (MalformedURLException e) {\n e.printStackTrace();\n //showToast(\"URL error\");\n\n } catch (IOException e) {\n e.printStackTrace();\n //showToast(\"Cannot read/Write file\");\n }\n dialog.dismiss();\n //postData(\"langitudes----\",\"longitues----\");\n\n //return serverResponseCode;\n }\n\n }", "void encode(ByteBuffer buffer, Message message);" ]
[ "0.6421902", "0.6403028", "0.63445807", "0.6171765", "0.6028488", "0.5955824", "0.58747506", "0.58433664", "0.5828545", "0.5753865", "0.5710479", "0.5697197", "0.5691961", "0.5688271", "0.5664398", "0.5647581", "0.56455094", "0.56040496", "0.55950296", "0.5568899", "0.5552153", "0.55456173", "0.55388254", "0.5531672", "0.55279046", "0.5516514", "0.5500445", "0.5495331", "0.5490895", "0.54711837", "0.5457648", "0.5441083", "0.54385316", "0.5435471", "0.5427145", "0.5419392", "0.53966457", "0.5394783", "0.5391442", "0.5377212", "0.53485495", "0.53469586", "0.5340841", "0.5340461", "0.53310996", "0.53103846", "0.5308902", "0.53040695", "0.5301986", "0.52994555", "0.52974236", "0.5271125", "0.52663374", "0.52605945", "0.52604806", "0.52506256", "0.5249197", "0.5242686", "0.5229383", "0.522937", "0.5226403", "0.5223656", "0.52078265", "0.5199507", "0.51961523", "0.51961243", "0.51912796", "0.5188514", "0.5186631", "0.51742387", "0.5172743", "0.5165233", "0.5164994", "0.51601154", "0.51581556", "0.5154418", "0.5141902", "0.5139563", "0.51347697", "0.51336145", "0.5128746", "0.512683", "0.51226", "0.5121112", "0.51132387", "0.51122206", "0.51077384", "0.5096715", "0.5096224", "0.5095381", "0.5087998", "0.5084876", "0.50825185", "0.5077222", "0.5076199", "0.5075422", "0.5074911", "0.50747234", "0.5072928", "0.5065231" ]
0.6486645
0
Adds the SensorData to the Buffer.
public void addToBuffer(String filename, SensorData sensorData){ ObjectOutputStream outstream; try { File bufferFile = new File(filename); //Checks to see if the buffer file already exists. if(bufferFile.exists()) { //Create an AppendableObjectOutputStream to add the the end of the buffer file as opposed to over writeing it. outstream = new AppendableObjectOutputStream(new FileOutputStream (filename, true)); } else { //Create an ObjectOutputStream to create a new Buffer file. outstream = new ObjectOutputStream(new FileOutputStream (filename)); } //Adds the SensorData to the end of the buffer file. outstream.writeObject(sensorData); outstream.close(); } catch(IOException io) { System.out.println(io); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void addRawData (SensorData sensorData) {\n if (!isEnabled) {\n return;\n }\n\n rawData.add(sensorData);\n\n GarmentOSService.callback(CallbackFlags.VALUE_CHANGED, new ValueChangedCallback(sensorData.getLongUnixDate(), sensorData.getData()));\n\n if (rawData.size() > savePeriod) {\n saveSensor();\n }\n }", "public int insertSensorData(DataValue dataVal) throws Exception;", "private void sendData(SensorData sensorData) {\n EventMessage message = new EventMessage(EventMessage.EventType.RECEIVED_RAW_DATA);\n message.setSensorData(sensorData);\n EventBus.getDefault().post(message);\n }", "public void append(IoBuffer buffer) {\n data.offerLast(buffer);\n updateBufferList();\n }", "public synchronized void addData(Object[] data) throws IOException {\n\t\tif (! stopped){\n\t\t\tsampleCount.add(incr);\n\t\t\tString sampleCountString = sampleCount.toString();\n\t\t\trealWriter.write(sampleCountString + \";\" + ((Integer)data[0]).toString() + \"\\n\");\n\n//\t\t\tdos.writeChars(sampleCountString);\n//\t\t\tdos.writeChar(';' );\n//\t\t\tdos.writeChars((((Integer)data[0]).toString()));\n//\t\t\tdos.writeChar('\\n' );\n\t\t}\n\t}", "public boolean uploadData(){\n ObjectInputStream instream = null;\n Vector<SensorData> dummyData = new Vector<SensorData>();\n \n try {\n //Tries to create an ObjectInStream for the buffer serialisation file.\n FileInputStream fileinput = new FileInputStream (\"data/buffer.ser\");\n instream = new ObjectInputStream(fileinput);\n \n //Loops through the ObjectInputStream\n do{\n try {\n //Tries to get an object from the ObjectInputStream\n SensorData newData = (SensorData)instream.readObject();\n //Adds the data to the Vector<SensorData> if not null.\n if (newData != null)\n dummyData.add(newData);\n } catch(ClassNotFoundException ex) {\n //Caught Exception if the instream.readObject() isn't of type SensorData\n System.out.println(ex);\n }\n } while (true);\n } catch(IOException io) {\n //Caught Exception if the instream.readObject found the end of the file or failed to create the instream\n System.out.println(io); \n }\n \n try {\n //Tries to colse the instream.\n instream.close();\n } catch (IOException ex) {\n System.out.println(ex); \n }\n \n if (dummyData.size() > 0){\n //if there was any SensorData found in the Buffer add it to the Server. \n Server.getInstance().addData(dummyData, id);\n return true;\n } else {\n //Otherwise something went wrong or there was no SensorData to add so return false.\n return false;\n }\n \n \n }", "@Override\n void add()\n {\n long sensorId = Long.parseLong(textSensorId.getText());\n MissionNumber missionNumber = textMissionNumber.getValue();\n String jobOrderNumber = textJobOrderNumber.getText();\n \n FPS16SensorDataGenerator generator = new FPS16SensorDataGenerator(tspiConfigurator.getTspiGenerator(), sensorId, missionNumber, jobOrderNumber);\n controller.addSensorDataGenerator(getRate(), getChannel(), generator);\n }", "public void logSensorData () {\n\t}", "@Override\r\n\tpublic void PushToBuffer(ByteBuffer buffer)\r\n\t{\r\n\t\r\n\t}", "private synchronized void update() {\n int numberOfPoints = buffer.get(0).size();\n if (numberOfPoints == 0) return;\n\n for (int i = 0; i < getNumberOfSeries(); i++) {\n final List<Double> bufferSeries = buffer.get(i);\n final List<Double> dataSeries = data.get(i);\n dataSeries.clear();\n dataSeries.addAll(bufferSeries);\n bufferSeries.clear();\n }\n\n //D.info(SineSignalGenerator.this, \"Update triggered, ready: \" + getNumberOfSeries() + \" series, each: \" + data[0].length + \" points\");\n bufferIdx = 0;\n\n // Don't want to create event, just \"ping\" listeners\n setDataReady(true);\n setDataReady(false);\n }", "public void addData(F dataObject) {\r\n this.data = dataObject;\r\n }", "public void addData(byte[] arrby) {\n if (arrby == null) return;\n {\n try {\n if (arrby.length == 0) {\n return;\n }\n if ((int)this.len.get() + arrby.length > this.buf.length) {\n Log.w(TAG, \"setData: Input size is greater than the maximum allocated ... returning! b.len = \" + arrby.length);\n return;\n }\n this.buf.add(arrby);\n this.len.set(this.len.get() + (long)arrby.length);\n return;\n }\n catch (Exception exception) {\n Log.e(TAG, \"addData exception!\");\n exception.printStackTrace();\n return;\n }\n }\n }", "public void update(String filename, SensorData sensorData){\n //Adds the sensor data to the buffer. \n addToBuffer(filename, sensorData);\n \n //Uploads the data to the server if it's turned on. \n if (Server.getInstance().getServerIsOn())\n if(uploadData()){\n //If the upload was successful, clear the buffer.\n clearBuffer();\n }\n }", "public void addData(DataPoint point)\n {\n data.add(point);\n }", "private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }", "public void addSensor(Sensor sensor){\n sensors.addSensor(sensor);\n sensor.setFieldStation(this);\n }", "public abstract void recordSensorData(RealmObject sensorData);", "private void populateSensorData(String name, long timeStamp, float x, float y, float z) {\n //Log.d(CLASS_NAME,sensorData.toString());\n\n //Appending the key and Co-ordinates\n logValues.append(name).append(\";\").append(timeStamp).append(\";\").append(pressedKey).append(\";\")\n .append(coordinateX).append(\";\").append(coordinateY).append(\";\").append(x).append(\";\")\n .append(y).append(\";\").append(z).append(\"\\r\\n\");\n\n }", "@Override\r\n\tpublic void addToBuffer(byte[] buff, int len) {\r\n\t\tbios.write(buff, 0, len);\r\n\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n // Send data to phone\n if (count == 5) {\n count = 0;\n// Log.d(\"hudwear\", \"send accel data to mobile...\"\n// + \"\\nx-axis: \" + event.values[0]\n// + \"\\ny-axis: \" + event.values[1]\n// + \"\\nz-axis: \" + event.values[2]\n// );\n// Log.d(\"hudwear\", \"starting new task.\");\n\n if (connected)\n Log.d(\"atest\", \"values: \" + event.values[0] + \", \" + event.values[1] + \", \" + event.values[2]);\n// new DataTask().execute(new Float[]{event.values[0], event.values[1], event.values[2]});\n }\n else count++;\n }\n }", "public void add(String newData) {\r\n dataTag.add(0);\r\n data.add(newData);\r\n }", "private int addBuffer( FloatBuffer directBuffer, FloatBuffer newBuffer ) {\n int oldPosition = directBuffer.position();\n if ( ( directBuffer.capacity() - oldPosition ) >= newBuffer.capacity() ) {\n directBuffer.put( newBuffer );\n } else {\n oldPosition = -1;\n }\n return oldPosition;\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEventBuffer) {\n for (DataEvent event : dataEventBuffer) {\n if (event.getType() == DataEvent.TYPE_CHANGED) {\n // DataItem changed\n DataItem item = event.getDataItem();\n if (item.getUri().getPath().compareTo(\"/latlnglist\") == 0) {\n\n DataMap dataMap = DataMapItem.fromDataItem(item).getDataMap();\n\n Log.d(\"hudwear\", \"new data, sending message to handler\");\n\n Message m = new Message();\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", dataMap.getDouble(\"latitude\"));\n b.putDouble(\"longitude\", dataMap.getDouble(\"longitude\"));\n m.setData(b);\n handler.sendMessage(m);\n }\n\n } else if (event.getType() == DataEvent.TYPE_DELETED) {\n // DataItem deleted\n }\n }\n }", "public void add( Comparable newVal ) {\n \t//if _data is full, expand the array\n \tif (_size == _data.length){\n\t \texpand();\n \t}\n \t\n\tset(_lastPos + 1, newVal);\n \t//increases _lastPos and _size\n \t_lastPos++;\n \t_size++;\n }", "@Override\n public synchronized void addMeasurement(Measurement m){\n while(toBeConsumed>=size){\n try{\n wait();\n }\n catch (InterruptedException e){\n System.out.println(\"The thread was teared down\");\n }\n }\n /*try {\n Thread.sleep(1000);\n }\n catch(InterruptedException e){\n System.out.println(e.getMessage());\n }*/\n buf[(startIdx+toBeConsumed)%size]=m;\n //System.out.println(\"Inserting \"+m);\n toBeConsumed++;\n\n /*\n If the buffer is no more empty, notify to consumer\n */\n if(toBeConsumed>=windowSize)\n notifyAll();\n }", "public void addData(@NonNull T data) {\n mData.add(data);\n notifyItemInserted(mData.size() + getHeaderLayoutCount());\n compatibilityDataSizeChanged(1);\n }", "@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n storage.writePhoneAccelerometer(new double[]{sensorEvent.values[0], sensorEvent.values[1], sensorEvent.values[2]});\n //System.out.println(\"x: \" + sensorEvent.values[0] + \", y: \" + sensorEvent.values[1] + \", z: \" + sensorEvent.values[2]);\n }", "public void addData(AggregateRecord record) {\n this.data.add(record);\n }", "public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}", "public void add(byte[] arrby) {\n ByteBuffer byteBuffer;\n ByteBuffer byteBuffer2 = byteBuffer = Blob.this.getByteBuffer();\n synchronized (byteBuffer2) {\n byteBuffer.position(Blob.this.getByteBufferPosition() + this.offset() + this.mCurrentDataSize);\n byteBuffer.put(arrby);\n this.mCurrentDataSize += arrby.length;\n return;\n }\n }", "void addSensor(Sensor sensor) {\n List<Sensor> listToAddTo;\n\n switch (sensor.getSensorType()) {\n case PM10:\n listToAddTo = this.pm10Sensors;\n break;\n case TEMP:\n listToAddTo = this.tempSensors;\n break;\n case HUMID:\n listToAddTo = this.humidSensors;\n break;\n default:\n listToAddTo = new ArrayList<>();\n break;\n }\n listToAddTo.add(sensor);\n }", "public void store(FloatBuffer buf){\n\t\tambient.store(buf);\n\t\tdiffuse.store(buf);\n\t\tspecular.store(buf);\n\t\tposition.store(buf);\n\t\tbuf.put(range);\n\t\tdirection.store(buf);\n\t\tbuf.put(spot);\n\t\tatt.store(buf);\n\t\tbuf.put(pad);\n\t}", "public void addData(ByteArrayList bytes) {\n data.add(bytes);\n if (data.size() == 1) {\n listeners.forEach(DataReceiveListener::hasData);\n }\n listeners.forEach(DataReceiveListener::received);\n }", "public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.clear();\n\t\t\n\t\t//Getting the information from the keyboard listener\n\t\tif(keyboardListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.keyboardListener.getKeyboardEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.keyboardListener.getKeyboardEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.keyboardListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse listener\n\t\tif(mouseListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseListener.getMouseEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseListener.getMouseEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse motion listener\n\t\tif(mouseMotionListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseMotionListener.getMouseMotionEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseMotionListener.getMouseMotionEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseMotionListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse wheel listener\n\t\tif(mouseWheelListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseWheelListener.getMouseWheelEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseWheelListener.getMouseWheelEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseWheelListener.clearEvents();\n\t\t}\n\t\t\n\t\t//If we want to write a JSON file with the data\n\t\tif(Boolean.parseBoolean(this.configuration.get(artie.sensor.common.enums.ConfigurationEnum.SENSOR_FILE_REGISTRATION.toString()))){\n\t\t\tthis.writeDataToFile();\n\t\t}\n\t\t\n\t\treturn this.sensorData;\n\t}", "private void saveSensorData(InetAddress address, int port, Product product, int length){\n sensorDatas.add(new SensorData(product,port,address,length));\n\n if(isHere(port,address,product.getNameOfProduct())){\n update(port,address,product);\n }else{\n actualSensorDatas.add(new SensorData(product,port,address,length));\n }\n }", "public void createDataSet(){\n final Thread thread = new Thread(new Runnable() {\r\n public void run(){\r\n while(true){//we want this running always, it is ok running while robot is disabled.\r\n whileCount++;\r\n currentVoltage = angleMeter.getVoltage(); //gets the non-average voltage of the sensor\r\n runningTotalVoltage[currentIndex] = currentVoltage;//store the new data point\r\n currentIndex = (currentIndex + 1) % arraySize;//currentIndex is the index to be changed\r\n if (bufferCount < arraySize) {\r\n bufferCount++;//checks to see if the array is full of data points\r\n }\r\n }\r\n }\r\n });\r\n thread.start();\r\n }", "public int appendData(byte[] data) {\n\t\t\n\t\tsynchronized (mData) {\n\n\t\t\tif (mDataLength + data.length > mData.capacity()) {\n\t\t\t\t//the buffer will overflow... attempt to trim data\n\t\t\t\t\n\t\t\t\tif ((mDataLength + data.length)-mDataPointer <= mData.capacity()) {\n\t\t\t\t\t//we can cut off part of the data to fit the rest\n\t\t\t\t\t\n\t\t\t\t\ttrimData();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//the encoder is gagging\n\t\t\t\t\t\n\t\t\t\t\treturn (mData.capacity() - (mDataLength + data.length)); // refuse data and tell the amount of overflow\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tmData.position(mDataLength);\n\t\t\tmData.put(data);\n\n\t\t\tmDataLength += data.length;\n\t\t\t\n\t\t\tstart(); //if idle\n\t\t\t\n\t\t\treturn (mData.capacity() - mDataLength); //return the remaining amount of space in the buffer\n\t\t}\n\t}", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "public void addSensor(String sensorId, String sensorType, String sensorUnits, int interval, int threshold, boolean upperlimit){\n Sensor theSensor = new Sensor(sensorId, sensorType, sensorUnits, interval, threshold, upperlimit);\n sensors.addSensor(theSensor);\n theSensor.setFieldStation(this);\n }", "public Buffers(double[] data) {\n for (int i = 0; i < (data.length - size); i++) {\n double[] bufferData = new double[size];\n for (int j = 0; j < size; j++) {\n bufferData[j] = data[i + j];\n }\n buffers.add(bufferData);\n }\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n\n Log.i(TAG, \"onDataChanged()\");\n\n for (DataEvent dataEvent : dataEvents) {\n if (dataEvent.getType() == DataEvent.TYPE_CHANGED) {\n DataItem dataItem = dataEvent.getDataItem();\n Uri uri = dataItem.getUri();\n String path = uri.getPath();\n\n if (path.startsWith(\"/sensors/\")) {\n if (SmartWatch.getInstance() != null) {\n SmartWatch.getInstance().unpackSensorData(DataMapItem.fromDataItem(dataItem).getDataMap());\n }\n }\n }\n }\n }", "public DataStorage (SensorManager sensorManager, Sensor gyro, Sensor acceleromter) {\n this.sensorManager = sensorManager;\n this.sensor = gyro;\n\n dataPoints = new LinkedList<>();\n gyroListener = new GyroListener();\n accelListener = new AccelListener();\n sensorManager.registerListener(gyroListener, gyro, SensorManager.SENSOR_DELAY_GAME);\n sensorManager.registerListener(accelListener, acceleromter, SensorManager.SENSOR_DELAY_GAME);\n }", "public void addToBuffer(byte[] value, boolean isClient) {\n byte[] buffer;\n\n if (isClient) {\n buffer = mClientBuffer;\n } else {\n buffer = mServerBuffer;\n }\n\n if (buffer == null) {\n buffer = new byte[0];\n }\n byte[] tmp = new byte[buffer.length + value.length];\n System.arraycopy(buffer, 0, tmp, 0, buffer.length);\n System.arraycopy(value, 0, tmp, buffer.length, value.length);\n\n if (isClient) {\n mClientBuffer = tmp;\n } else {\n mServerBuffer = tmp;\n }\n }", "@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tif (event.sensor.getType() == Sensor.TYPE_LINEAR_ACCELERATION) {\t\n\t\t\t\n\t\t\tfloat x, y, z;\n\t\t\tx = event.values[0];\n\t\t\ty = event.values[1];\n\t\t\tz = event.values[2];\n\t\t\t\n\t\t\tfloat [] first = {x,y,z};\n\t\t\tlast = lowpassFilter(first,last);\n\n\n\t\t\tdouble m = Math.sqrt(last[0] * last[0] + last[1] * last[1] + last[2] * last[2]);\n\n\t\t\t// Inserts the specified element into this queue if it is possible\n\t\t\t// to do so immediately without violating capacity restrictions,\n\t\t\t// returning true upon success and throwing an IllegalStateException\n\t\t\t// if no space is currently available. When using a\n\t\t\t// capacity-restricted queue, it is generally preferable to use\n\t\t\t// offer.\n\n\t\t\ttry {\n\t\t\t\tmAccBuffer.add(new Double(m));\n\n\t\t\t} catch (IllegalStateException e) {\n\n\t\t\t\t// Exception happens when reach the capacity.\n\t\t\t\t// Doubling the buffer. ListBlockingQueue has no such issue,\n\t\t\t\t// But generally has worse performance\n\t\t\t\tArrayBlockingQueue<Double> newBuf = new ArrayBlockingQueue<Double>( mAccBuffer.size() * 2);\n\t\t\t\tmAccBuffer.drainTo(newBuf);\n\t\t\t\tmAccBuffer = newBuf;\n\t\t\t\tmAccBuffer.add(new Double(m));\n\t\t\t}\n\t\t}\n\n\t}", "private void add(GyroReading gyroReading) {\n m_gyroData.addFirst(gyroReading);\n\n try {\n while (gyroReading.timeStamp - (m_gyroData.get(m_gyroData.size() - 2).timeStamp) >= m_minimumRecordTime) {\n m_gyroData.removeLast();\n }\n } catch (Exception NoSuchElementException) {\n\n }\n }", "public synchronized int addSensor(Sensor s) throws Exception{\n int index = sList.addSensor(s);\n sensors.put(index, s);\n \n listeners.stream().forEach((listener) -> {\n listener.modelEventHandler(ModelEventType.SENSORADDED, index);\n });\n \n s.addListener(this);\n \n return index;\n }", "public void AddData(byte [] data, int size)\n\t{\t\n\t\tif (mBufferIndex + size > mBufferSize)\n\t\t{\n\t\t\tUpgradeBufferSize();\n\t\t}\n\t\t\n\t\tSystem.arraycopy(data, 0, mBuffer, mBufferIndex, size);\n\t\tmBufferIndex += size;\n\t}", "@Override\n public void queueDeviceWrite(IpPacket packet) {\n\n deviceWrites.add(packet.getRawData());\n }", "private int addFromStream( FloatBuffer directBuffer, ObjectInputStream in )\n throws IOException {\n int numberOfValues = in.readInt();\n int oldPosition = -1;\n if ( numberOfValues != -1 ) {\n oldPosition = directBuffer.position();\n if ( ( directBuffer.capacity() - oldPosition ) >= numberOfValues ) {\n for ( int i = 0; i < numberOfValues; ++i ) {\n directBuffer.put( in.readFloat() );\n }\n }\n }\n return oldPosition;\n }", "@Override\n public void receivedSensor(SensorData sensor) {\n synchronized(_sensorListeners) {\n if (!_sensorListeners.containsKey(sensor.channel)) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_SENSOR.str);\n UdpConstants.writeSensorData(resp.stream, sensor);\n \n // Send to all listeners\n synchronized(_sensorListeners) {\n Map<SocketAddress, Integer> _listeners = _sensorListeners.get(sensor.channel);\n _udpServer.bcast(resp, _listeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize sensor \" + sensor.channel);\n }\n }", "public MovementData() {\n\t\tsensorData = new ArrayList<SensorReading>();\t\t\n\t\tthis.nextIndex = 0;\n\t\tthis.prevIndex = -1;\n\t}", "@Override\r\n\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t\ttemp_m[0] = event.values[0];\r\n\t\t\t\ttemp_m[1] = event.values[1];\r\n\t\t\t\ttemp_m[2] = event.values[2];\r\n\t\t\t}", "@Override\n\tpublic void addNotify() {\n\t\tsuper.addNotify();\n\t\t// Buffer\n\t\tcreateBufferStrategy(2);\n\t\ts = getBufferStrategy();\n\t}", "public void add(ProbeObject obj) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_DATA, obj.getData());\n values.put(KEY_CONFIG, obj.getConfig());\n values.put(KEY_TIMESTAMP, obj.getTimestamp());\n values.put(KEY_DEVICE, obj.getBuild());\n\n // Inserting Row\n db.insert(TABLE_MOBILE_SENSOR, null, values);\n db.close(); // Closing database connection\n }", "public void push(T data)\n {\n ll.insert(ll.getSize(), data);\n }", "@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == SENS_ACCELEROMETER && event.values.length > 0) {\n float x = event.values[0];\n float y = event.values[1];\n float z = event.values[2];\n\n latestAccel = (float)Math.sqrt(Math.pow(x,2.)+Math.pow(y,2)+Math.pow(z,2));\n //Log.d(\"pow\", String.valueOf(latestAccel));\n\n }\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy >0) {\n\n Log.d(\"Sensor\", event.sensor.getType() + \",\" + event.accuracy + \",\" + event.timestamp + \",\" + Arrays.toString(event.values));\n\n int newValue = Math.round(event.values[0]);\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n \n if(newValue!=0 && lastTimeSentUnix < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnix = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", latestAccel);\n intent.putExtra(\"TIME\", event.timestamp);\n intent.putExtra(\"ACCEL\", latestAccel);\n\n\n Log.d(\"change\", \"send intent\");\n\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), latestAccel, event.timestamp, event.values);\n }\n }\n\n }", "protected void add(ByteBuffer data) throws Exception {\n\tLog.d(TAG, \"add data: \"+data);\n\n\tint dataLength = data!=null ? data.capacity() : 0; ///Util.chunkLength(data); ///data.length;\n\tif (dataLength == 0) return;\n\tif (this.expectBuffer == null) {\n\t\tthis.overflow.add(data);\n\t\treturn;\n\t}\n\t\n\tLog.d(TAG, \"add data: ... 2\");\n\t\n\tint toRead = Math.min(dataLength, this.expectBuffer.capacity() - this.expectOffset);\n\tBufferUtil.fastCopy(toRead, data, this.expectBuffer, this.expectOffset);\n\t\n\tLog.d(TAG, \"add data: ... 3\");\n\n\tthis.expectOffset += toRead;\n\tif (toRead < dataLength) {\n\t\tthis.overflow.add((ByteBuffer) Util.chunkSlice(data, toRead, data.capacity())/*data.slice(toRead)*/);\n\t}\n\t\n\tLog.d(TAG, \"add data: ... 5\");\n\n\twhile (this.expectBuffer!=null && this.expectOffset == this.expectBuffer.capacity()) {\n\t\tByteBuffer bufferForHandler = this.expectBuffer;\n\t\tthis.expectBuffer = null;\n\t\tthis.expectOffset = 0;\n\t\t///this.expectHandler.call(this, bufferForHandler);\n\t\tthis.expectHandler.onPacket(bufferForHandler);\n\t}\n\t\n\tLog.d(TAG, \"add data: ... 6\");\n\n}", "@Override\n public void feedRawData(byte[] data) {\n mARGSession.feedRawData(data);\n }", "public Sensor() {\n if(this.rawData == null)\n this.rawData = new Vector<SensorData>();\n }", "protected void useDataOld() {\n\t\tfloat x = values[0];\n\t\tfloat y = values[1];\n\t\tfloat z = values[2];\n\n\t\tcallListener(new AccelarationSensorData(millis, nanos, x, y, z));\n\t}", "@Override\n protected void sendBuffer(byte[] buffer) {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if (serialDriver != null) {\n try {\n serialDriver.write(buffer, 500);\n } catch (IOException e) {\n Log.e(TAG, \"Error Sending: \" + e.getMessage(), e);\n }\n }\n }", "public AddData() {\n\t\tsuper();\n\t\tfilled = false;\n\t}", "public void attachData(double[] newData) {\n\t\tdouble[] newDataArray = new double[data.length + newData.length];\n\t\tSystem.arraycopy(data, 0, newDataArray, 0, data.length);\n\t\tSystem.arraycopy(newData, 0, newDataArray, data.length, newData.length);\n\t\tdata = newDataArray;\n\t}", "public void addMeteoData(MeteoDataInfo aDataInfo) {\n dataInfoList.add(aDataInfo);\n currentDataInfo = aDataInfo; \n }", "public boolean addData(String data){\r\n\r\n\t\t// the data parameter should be a json string with the following format:\r\n\t\t// \"Transmit ID\":\"Device ID\",\r\n \t\t//\t \"RSSI\":\"Decibels\",\r\n \t\t//\t \"Receive ID\":\"Device ID\"\r\n \t\t//\t \"GPS\":\"Location\",\r\n \t\t//\t \"IMU\":\"Orientation\",\r\n \t\t//\t \"Timestamp\":\"<UNIX time>\"\r\n \t\t//\tthis string will be parsed and its contents will be saved in the database \r\n \t\t\r\n\r\n\t}", "void processData(float[] receiveData) {\r\n\t\tlogger.debug(\"verarbeite Daten\");\r\n\t\t// gibt empfangene Daten weiter\r\n\r\n\t\tlogger.debug(\"value processData:\" + Arrays.toString(receiveData));\r\n\t\tif (receiveData[0] == Sensor.DistNx.getNumber()) {\r\n\t\t\t// Dist-Nx\r\n\t\t\tlogger.info(\"DistNX-Werte: \" + receiveData[2]);\r\n\t\t\tdistNx.setDistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.LightSensorArray.getNumber()) {\r\n\t\t\t// LSA\r\n\t\t\tlsa.setLSA(Math.round(receiveData[1] - 1),\r\n\t\t\t\t\tMath.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.EOPDLinks.getNumber()) {\r\n\t\t\t// linker EOPD\r\n\t\t\teopdLeft.setEOPDdistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.EOPDRechts.getNumber()) {\r\n\t\t\t// rechter EOPD\r\n\t\t\teopdRight.setEOPDdistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.AbsoluteIMU.getNumber()) {\r\n\t\t\t// AbsIMU-ACG\r\n\t\t\tif (Math.round(receiveData[1]) >= 16) {\r\n\t\t\t\tabs_Imu.setAngle(Math.round(receiveData[2]),\r\n\t\t\t\t\t\tMath.round(receiveData[1]) - 16);\r\n\t\t\t} else {\r\n\t\t\t\tabs_Imu.setTiltData(Math.round(receiveData[2]),\r\n\t\t\t\t\t\tMath.round(receiveData[1]) - 11);\r\n\t\t\t}\r\n\r\n\t\t} else if (receiveData[0] == 6) {\r\n\t\t\t// Akkuladung\r\n\t\t\taccumulator.setMilliVolt(Math.round(receiveData[1]));\r\n\t\t} else if (receiveData[0] == 7) {\r\n\t\t\tlogger.debug(\"Genuegend Werte uebermittelt: \" + this);\r\n\t\t\tsensorReady = false;\r\n\t\t} else if (receiveData[0] == Sensor.IRThermalSensor.getNumber()) {\r\n\t\t\t// ThermalSensor\r\n\t\t\tthermal.setTemperature(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == 9) {\r\n\t\t\tif (receiveData[1] == 1) {\r\n\t\t\t\t// TODO Reset Button gedrueckt; ggf. muss noch weiteres getan\r\n\t\t\t\t// werden\r\n\t\t\t\tinitializeProgram.renewNavigation();\r\n\t\t\t} else if (receiveData[1] == 2) {\r\n\t\t\t\tinitializeProgram.setProgramStarted();\r\n\t\t\t}\r\n\t\t} else if (receiveData[0] == 10) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 11) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 12) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 13) {\r\n\t\t\tsemaphore.down();\r\n\t\t\tsemaphore.down();\r\n\t\t} else {\r\n\r\n\t\t\t// System.out.println(\"process Data (no sensor) \" +\r\n\t\t\t// Arrays.toString(receiveData));\r\n\t\t\t// logger.error(\"process Data (no sensor) \"\r\n\t\t\t// + Arrays.toString(receiveData));\r\n\t\t}\r\n\r\n\t}", "public void newBufLine() {\n this.buffer.add(new ArrayList<Integer>());\n this.columnT = 0;\n this.lineT++;\n }", "public DeviceData() {\r\n this.rtAddress = 0;\r\n this.subAddress = 0;\r\n this.txRx = 0;\r\n this.data = new short[32];\r\n }", "void add(byte[] data, int offset, int length);", "public void push(T data) {\n numberList.addAtStart(data);\n }", "private void updateReceivedData(byte[] data) {\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }", "public void addSampleToDB(Sample sensorSample, String TABLE_NAME) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(\"timestamp\", sensorSample.getTimestamp());\n values.put(\"x_val\", sensorSample.getX());\n values.put(\"y_val\", sensorSample.getY());\n values.put(\"z_val\", sensorSample.getZ());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "@Override\n public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {\n readNextSensor(gatt);\n }", "protected void postSensorValues(Sensor[] s) { sensors = s; }", "public void setData(float[] x, float[] y){\n insertData(x, y, true);\n }", "private final void buffer_push_back(byte d)\n\t{\n\t\tif (buffer_size_ >= buffer_.length) {\n int newsize = buffer_size_ * 2 + 10;\n byte[] newbuffer = new byte[newsize];\n\n for (int i = 0; i < buffer_size_; ++i)\n {\n newbuffer[i] = buffer_[i];\n }\n buffer_ = newbuffer;\n\t\t}\n\t\tbuffer_[buffer_size_] = d;\n\t\tbuffer_size_ = buffer_size_ + 1;\n\t}", "@Override\n\tprotected int getSensorData() {\n\t\treturn sensor.getLightValue();\n\t}", "public void recvSensorEvent(Object data_)\n\t{\n\t\tList<Tuple> event = ConstructSensingEvent((Message) data_) ;\n\t\tmicroLearner.handleSensorEvent(event);\t\t\n\t}", "public synchronized void add(DataTypeDoubleArray sample) {\n samples.add(sample);\n }", "public void addDatastream(EventDataStream stream)\n\t{\n\t\tthis.eventDataStreams.add(stream);\n\t}", "public void addData(@IntRange(from = 0) int position, @NonNull T data) {\n mData.add(position, data);\n notifyItemInserted(position + getHeaderLayoutCount());\n compatibilityDataSizeChanged(1);\n }", "public static void setSensorData() throws SensorNotFoundException\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") +\"sensors/?state=\"+Constants.SENSOR_STATE_STOCK;\n\t\tsCollect = new SensorCollection();\n\t\tsCollect.setList(sURL);\n\t\t\t\n\t\tfor (SensorData sData : sCollect.getList())\n\t\t{\n\t\t\tif (sData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t{\n\t\t\t\tsensorText.setText(sData.getSensorData() + \"\\r\\n\" + \"Device: \"\n\t\t\t\t\t+ (ConnectionManager.getInstance().currentSensor(0).getDeviceName() + \"\\r\\n\" + \"Manufacture: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getManufacturerName() + \"\\r\\n\"\n\t\t\t\t\t\t\t+ \"FlashDate: \" + ConnectionManager.getInstance().currentSensor(0).getFlashDate()\n\t\t\t\t\t\t\t+ \"\\r\\n\" + \"Battery: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getBatteryVoltage()));\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "private void add(Pair<MarketDataRequestAtom,Event> inData)\n {\n getQueue().add(inData);\n }", "public void recieve(String reading) {\n\t\tif(zeroValues == null) {\n\t\t\tsetZeroValues(reading);\n\t\t\treturn;\n\t\t}\n\t\tSensorReading s = extractReading(reading);\n\t\tif(s != null) {\n\t\t\tsensorData.add(s);\n\t\t\tnotifyListeners(s);\n\t\t}\n\t}", "void add(S3TimeData timeData) {\n assert timeData != null;\n\n synchronized (mux) {\n map.put(timeData.getKey(), timeData);\n\n mux.notifyAll();\n }\n }", "void addData();", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n super.onDataChanged(dataEvents);\n \n Log.d(TAG, \"onDataChanged: \" + dataEvents);\n \n final List<DataEvent> events = FreezableUtils.freezeIterable(dataEvents);\n \n // Establish a connection using Google API.\n GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this)\n \t.addApi(Wearable.API)\n \t.build();\n\n ConnectionResult connectionResult = googleApiClient.blockingConnect(30, TimeUnit.SECONDS);\n\n if (!connectionResult.isSuccess()) {\n \tLog.e(TAG, \"Failed to connect to GoogleApiClient.\");\n \treturn;\n }\n\n // Attempts to retrieve the data from Android Wear device.\n for (DataEvent event : events) {\n \n final Uri uri = event.getDataItem().getUri();\n final String path = uri!=null ? uri.getPath() : null;\n \n if (\"/dreamforcedata\".equals(path)) {\n \n String PEDOMETERKEY = \"df_pedometer\";\n final DataMap map = DataMapItem.fromDataItem(event.getDataItem()).getDataMap();\n int pedValues = map.getInt(PEDOMETERKEY);\n \n // Stores the value in preferences.\n AID_prefs = getSharedPreferences(AID_OPTIONS, MODE_PRIVATE); // Main preferences variable.\n AID_prefs_editor = AID_prefs.edit();\n AID_prefs_editor.putInt(PEDOMETERKEY, 0); // Stores the retrieved integer value.\n AID_prefs_editor.putBoolean(\"df_isWearDataSent\", true);\n Log.d(TAG, \"PEDOMETER VALUE: \" + pedValues); // LOGGING\n }\n }\n }", "private void saveGyroData(float axis_x, float axis_y, float axis_z, long timestamp){\n //Log.v(TAG, \"saveGyroData:: axis_x: \"+axis_x+\" axis_y: \"+axis_y+\" axis_z: \"+axis_z);\n //SensorData sensorData = new SensorData(axis_x, axis_y, axis_z, Util.getTimeMillis(System.currentTimeMillis()));\n SensorData sensorData = new SensorData(axis_x, axis_y, axis_z, Util.getTimeMillis(timestamp));\n listGyroData.add(sensorData);\n }", "@Override\n public void onRemoteSensorUpdate(final SensorData sensorData) {\n final String text = \"Heading: \" + Integer.toString(sensorData.getSensor().heading) + \" Battery \" + Integer.toString(sensorData.getSensor().battery) + \"%\\n\"\n + \"JoyX: \" + numberFormat.format(sensorData.getControl().joy1.X) + \" JoyY: \" + numberFormat.format(sensorData.getControl().joy1.Y);\n final Speech speech = new Speech(text);\n say(speech);\n }", "public void appendData(T data){\n Node<T> newEnd = new Node<>(data); // new Node referenced by newEnd\n Node<T> thisNode = this; // grab this Node\n\n // traverse list and append to the tail\n while (thisNode.next != null){\n thisNode = thisNode.next;\n }\n thisNode.next = newEnd;\n }", "@Override\r\n\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t\ttemp_r[0] = event.values[0];\r\n\t\t\t\ttemp_r[1] = event.values[1];\r\n\t\t\t\ttemp_r[2] = event.values[2];\r\n\t\t\t\t// TipsTextView.setText(String.valueOf(temp_r[0]) + \" \"\r\n\t\t\t\t// + String.valueOf(temp_r[1]) + \" \"\r\n\t\t\t\t// + String.valueOf(temp_r[2]));\r\n\t\t\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n\n // This code is directly taken from the Android website.\n // I used it since the linear accelerometer doesn't seem to work correctly.\n // Without borrowing this code, I would have had no idea how to do this.\n // https://developer.android.com/guide/topics/sensors/sensors_motion.html\n\n final float alpha = 0.8F;\n\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];\n gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];\n\n // don't include first 10 pieces of data to make sure sensor is properly adjusted\n if(accuracyCounter>=0) {\n accuracyCounter--;\n } else {\n // Add the information to the dataset.\n dataSet.establishNextDataPoint(\n event.values[0] - gravity[0],\n event.values[1] - gravity[1],\n event.values[2] - gravity[2]);\n }\n }", "private void addSampleData() {\r\n }", "@Override\n\t\t\t\tpublic void onVideoFrame(byte[] data, long timestampUs) {\n\t\t\t\t\tByteBuffer byteBuffer = ByteBuffer.allocateDirect(mDummyOffset + data.length);\n\t\t\t\t\tbyteBuffer.position(mDummyOffset);\n\n\t\t\t\t\tbyteBuffer.put(data);\n\t\t\t\t\tbyteBuffer.flip();\n\t\t\t\t\tbyteBuffer.position(mDummyOffset);\n\n\t\t\t\t\tmListener.sendFrame(byteBuffer, timestampUs);\n\t\t\t\t\tmDummyOffset++;\n\t\t\t\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n float[] valuesCopy = event.values.clone();\n\n if (uptime == 0) {\n uptime = event.timestamp;\n }\n\n double x = (double) ((event.timestamp - uptime))/1000000000.0;\n this.addValues(x, valuesCopy);\n\n TextView xAxisValue = (TextView) findViewById(R.id.xAxisValue);\n xAxisValue.setText(Float.toString(valuesCopy[0]) + \" \" + STI.getUnitString(sensorType));\n\n if (STI.getNumberValues(sensorType) > 1) {\n //set y value to textfield\n TextView yAxisValue = (TextView) findViewById(R.id.yAxisValue);\n yAxisValue.setText(Float.toString(valuesCopy[1]) + \" \" + STI.getUnitString(sensorType));\n\n //set z value to textfield\n TextView zAxisValue = (TextView) findViewById(R.id.zAxisValue);\n zAxisValue.setText(Float.toString(valuesCopy[2]) + \" \" + STI.getUnitString(sensorType));\n }\n }", "public void push(T val){ if(this.isUpgraded) this.linkArray.push(val); else this.nativeArray.add(val); }", "@Override\n public void payload(byte[] data) {\n \tmLastMessage.append(new String(data));\n Log.d(TAG, \"Payload received: \" + data);\n }", "public void add(Object o) {\n Logger.log(\"DEBUG\", \"Data to add to queue: \" + o.toString());\n while(isLocked()) {\n try {\n Thread.sleep(10);\n }\n catch(InterruptedException ie) {\n // do nothing\n }\n }\n addToTail(o);\n LAST_WRITE_TIME = now();\n }" ]
[ "0.70560825", "0.62125516", "0.6171762", "0.61515266", "0.5809755", "0.5715037", "0.57020503", "0.56944877", "0.5685842", "0.5673848", "0.5656822", "0.5655638", "0.5623923", "0.5569626", "0.55630034", "0.55108327", "0.54965675", "0.54386806", "0.5431872", "0.5405618", "0.5398218", "0.5396101", "0.53909624", "0.5369947", "0.5369319", "0.53562784", "0.53550184", "0.53475577", "0.5315606", "0.53074133", "0.5304995", "0.5300807", "0.5298245", "0.5296883", "0.529311", "0.5289459", "0.5280943", "0.52529806", "0.52428466", "0.5235197", "0.52160573", "0.521539", "0.5189427", "0.5181583", "0.5177995", "0.51701164", "0.51636773", "0.5159101", "0.5154467", "0.5151382", "0.5143922", "0.51350135", "0.5103386", "0.51022387", "0.5101691", "0.5099851", "0.50977504", "0.5096751", "0.50926006", "0.50852764", "0.5082139", "0.5070812", "0.5050487", "0.50476265", "0.5045355", "0.50385916", "0.50353426", "0.501944", "0.50169015", "0.50089973", "0.5002148", "0.499967", "0.498267", "0.49742568", "0.49730527", "0.4971694", "0.49666524", "0.49628574", "0.49605876", "0.4958696", "0.49565133", "0.49513617", "0.49466187", "0.49437806", "0.493661", "0.49356607", "0.49354148", "0.49201208", "0.49184346", "0.49110284", "0.49043953", "0.48997682", "0.48876837", "0.48861322", "0.48810405", "0.48801473", "0.4879485", "0.48781335", "0.48777094", "0.4873641" ]
0.7095435
0
Clears down the Buffer after the content has been added to the Server to avoid replications.
public void clearBuffer(){ System.out.println("Clearning beffer"); //Deletes the buffer file File bufferFile = new File("data/buffer.ser"); bufferFile.delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flush(){\r\n mBufferData.clear();\r\n }", "public void clear() {\n\t\tbufferLast = 0;\n\t\tbufferIndex = 0;\n\t}", "public void resetBuffer() {\n this.response.resetBuffer();\n }", "public void clearContent() {\n\t\tcontent.setLength(0);\n\t}", "public void clear() {\n this.init(buffer.length);\n }", "private void clearBuffer() {\n\t\tfor (int i = 0; i < buffer.length; i++) {\n\t\t\tbuffer[i] = 0x0;\n\t\t}\n\t}", "public void clearBuffer() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "private void resetBuffer() {\n baos.reset();\n }", "private void clearStrBuf() {\n strBufLen = 0;\n }", "@SuppressWarnings( \"unused\" )\n private void clear() {\n frameOpenDetected = false;\n frameLength = 0;\n buffer.limit( 0 ); // this marks our buffer as empty...\n }", "public void resetResponseBuffer()\n {\n bufferIndex = 0;\n responseFlag = false;\n }", "public void resetBuffer() {\n\n\t}", "@Override\n\tpublic void reset() {\n\t\tthis.buffer = new String();\n\t}", "void flushBuffer();", "protected final void resetBuffer() {\n buffer.reset();\n }", "public void flushBuffer() throws IOException {\n this.response.flushBuffer();\n }", "public void clear() {\n\t\tthis.sizeinbits = 0;\n\t\tthis.actualsizeinwords = 1;\n\t\tthis.rlw.position = 0;\n\t\t// buffer is not fully cleared but any new set operations should\n\t\t// overwrite stale data\n\t\tthis.buffer[0] = 0;\n\t}", "public void flush(){\n\t\ttry{\n\t\t\tse.write(buffer, 0, bufferPos);\n\t\t\tbufferPos = 0;\n\t\t\tse.flush();\n\t\t}catch(IOException ioex){\n\t\t\tfailures = true;\n\t\t}\n\t}", "public void resetBuffer(){\n bufferSet = false;\n init();\n }", "@Override\n public void resetBuffer() {\n\n }", "public final void clear()\n {\n\t\tcmr_queue_.removeAllElements();\n buffer_size_ = 0;\n }", "@Override\n\tprotected void clearBuffer() {\n\t\tsynchronized (listLock) {\n\t\t\tif (deleteList != null && deleteList.size() > 0) {\n\t\t\t\tdeleteList.clear();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void resetBuffer() {\n\t}", "public void clearConnection() {\n serverSock = null;\n in = null;\n out = null;\n }", "public void removeContent() {\n messageContent = null;\n messageContentBytes = null;\n messageContentObject = null;\n \ttry {\n this.contentLengthHeader.setContentLength(0);\n \t} catch (InvalidArgumentException ex) {}\n }", "public final void resetDataBuffer() {\n dataBuffer_.resetReaderIndex();\n lastValidBytePosition_ = 0;\n currentRowPosition_ = 0;\n nextRowPosition_ = 0;\n setAllRowsReceivedFromServer(false);\n }", "private void flushBuffer(Runnable paramRunnable) {\n/* 149 */ int i = this.buf.position();\n/* 150 */ if (i > 0 || paramRunnable != null)\n/* */ {\n/* 152 */ flushBuffer(this.buf.getAddress(), i, paramRunnable);\n/* */ }\n/* */ \n/* 155 */ this.buf.clear();\n/* */ \n/* 157 */ this.refSet.clear();\n/* */ }", "public void clear() {\n\t\tthis.contents.clear();\n\t}", "@Override\n public void flushBuffer() throws IOException {\n\n }", "public void clear()\r\n/* 416: */ {\r\n/* 417:580 */ this.headers.clear();\r\n/* 418: */ }", "private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }", "protected void resetTextBuffer() {\n this.textBuffer = new StringBuffer();\n }", "@Override\r\n public synchronized void flush() throws IOException {\r\n\t\tif ( count != 0 ) {\r\n\t\t writeBuffer(buf, 0, count );\r\n\t\t count = 0;\r\n\t\t}\r\n\t}", "private synchronized void popBuffer() {\n IoBuffer buf = data.removeFirst();\n if(marked) {\n resetCache.push(buf);\n if(!data.isEmpty()) {\n data.getFirst().mark();\n }\n } else {\n buf.free();\n }\n }", "private void clearData() {}", "@Override\n\tpublic void flushBuffer() throws IOException {\n\t}", "public void flush()\r\n {\r\n if ( content != null )\r\n {\r\n content.flush();\r\n }\r\n }", "void clearContent() {\n try {\n super.remove(0, getLength());\n } catch (Exception exception) {\n //Logger.error(\"Could not clear script window content\", exception);\n }\n }", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "@Override\n public void clearData() {\n }", "private synchronized void clear(){\n if(line != null){\n line.flush();\n line.stop();\n line.close();\n if(audioInputStream != null) {\n try {\n audioInputStream.close();\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n }\n }\n }", "private static void buffer() {\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t\tByteBuffer mBuffer=ByteBuffer.allocate(10240000);\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n// mBuffer.clear();\n System.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t}", "public void flush() {\n mMessages.postToServer();\n }", "private void clearBuffer(ByteBuffer buffer) {\n while (numberLeftInBuffer > 0) {\n readbit(buffer);\n }\n }", "public void clear() {\n streams.clear();\n }", "@Override\n public void clearLastResponse() {\n super.clearLastResponse();\n mFileLinesHaveStarted = false;\n }", "public void clear() {\n content = \"EMPTY\";\n }", "public void clear() {\r\n\t\tdata.clear();\r\n\r\n\t}", "private void clearLongStrBuf() {\n longStrBufLen = 0;\n longStrBufPending = '\\u0000';\n }", "public synchronized void clear()\n {\n clear(false);\n }", "private void clearChatWithServerRelay() {\n if (rspCase_ == 3) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void clear()\n \t{\n \t\tint byteLength = getLengthInBytes();\n \t\tfor (int ix=0; ix < byteLength; ix++)\n value[ix] = 0;\n \t}", "public void clear()\n\t{\n\t\t_totalMsgsPerSec = 0;\n\t\t_latencyMsgsPerSec = 0;\n\t\t_ticksPerSec = 0;\n\t\t_arrayCount = 0;\n\t}", "private void reset() {\n // Reset to the inital state.\n command = null;\n headers = new DefaultHeaders();\n body = null;\n currentDecodedByteCount = 0;\n totalDecodedByteCount = 0;\n }", "public void clear() {\r\n this.line.clear();\r\n }", "private void clearContent() {\n \n content_ = getDefaultInstance().getContent();\n }", "private void clearContent() {\n \n content_ = getDefaultInstance().getContent();\n }", "private void clearChatWithServerReq() {\n if (reqCase_ == 3) {\n reqCase_ = 0;\n req_ = null;\n }\n }", "@Override\n public synchronized void clear() {\n }", "public void clearReceived() {\n\t\t_received = false;\n\t}", "public void clearCommandBuffer() {\n d_AdminCommandsBuffer.clear();\n }", "private void clearContent() {\n \n content_ = getDefaultInstance().getContent();\n }", "private void clearContent() {\n \n content_ = getDefaultInstance().getContent();\n }", "public final void clearBuffer() {\n width = 0;\n height = 0;\n noiseBuffer = null;\n }", "public void clear() {\n payload = null;\n // Leave termBuffer to allow re-use\n termLength = 0;\n termText = null;\n positionIncrement = 1;\n flags = 0;\n // startOffset = endOffset = 0;\n // type = DEFAULT_TYPE;\n }", "public void reset() {\n started = false;\n flushing = false;\n moreText = true;\n headerCount = 0;\n actualLen = 0;\n }", "public void clear() {\n this.data().clear();\n }", "void pushBack() throws IOException {\n iis.seek(iis.getStreamPosition()-bufAvail);\n bufAvail = 0;\n bufPtr = 0;\n }", "private void clearRequests() {\n requests_ = emptyProtobufList();\n }", "protected void finish() {\n writerServerTimingHeader();\n\n try {\n\n // maybe nobody ever call getOutputStream() or getWriter()\n if (bufferedOutputStream != null) {\n\n // make sure the writer flushes everything to the underlying output stream\n if (bufferedWriter != null) {\n bufferedWriter.flush();\n }\n\n // send the buffered response to the client\n bufferedOutputStream.writeBufferTo(getResponse().getOutputStream());\n\n }\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Could not flush response buffer\", e);\n }\n\n }", "public final void clear() {\n clear(true);\n }", "public void clean() {\n\t\tdata = new ServerData();\n\t\tdataSaver.clean();\n\t}", "public void reset() {\n\t\tnewBuffer = null;\n\t\treadyBuffer = new StringBuilder();\n\t\tstatus = ConsumptionStatus.EMPTY;\n\t}", "@Override\n public void clear() {\n size = 0;\n }", "@Override\n public void clear() {\n size = 0;\n }", "@Override\n public void clear() {\n size = 0;\n }", "public void clean() {\n\t\tbufferSize = 0;\n\t\tbuffer = new Object[Consts.N_ELEMENTS_FACTORY];\n\t}", "public void clear() {\n\t\tcurrentSize = 0;\n\t}", "public void clear(){\r\n currentSize = 0;\r\n }", "public void clear()\n {\n keys.clear();\n comments.clear();\n data.clear();\n }", "public void clear()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tlines.clear();\r\n\t\t}\r\n\t}", "public void clearData() {\r\n\t\tdata = null;\r\n\t}", "public void clearData()\r\n {\r\n \r\n }", "public void clear() {\r\n\t\tsize = 0;\r\n\t}", "public void clear(){\r\n\t\tthis.countRead \t\t\t= 0;\r\n\t\tthis.countReadData \t\t= 0;\r\n\t\tthis.countRemoved \t\t= 0;\r\n\t\tthis.countRemovedData \t= 0;\r\n\t\tthis.countWrite \t\t= 0;\r\n\t\tthis.countWriteData \t= 0;\r\n\t\tthis.dataList.clear();\r\n\t\tthis.dataMap.clear();\r\n\t}", "public void ClearSentQueue() {\n \t\tjobsent.clear();\n \t}", "@Override\n public void clear()\n {\n }", "@Override public void clear() {\n }", "@Override\r\n\tpublic void clear() {\n\t\t\r\n\t}", "@Override\n public void clear() {\n \n }", "private void clearResponse() { response_ = null;\n \n }", "private void clearResponse() { response_ = null;\n \n }", "public void clear(){\n\t\tclear(0);\n\t}", "@Override\n public void clear()\n {\n\n }", "private static void clear() {\n\t\tvxl = new StringBuffer();\n\t}", "private void clearSeenServerToB() {\n if (rspCase_ == 19) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }", "public void replayFinal() {\n for (InnerDisposable<T> rp : (InnerDisposable[]) this.observers.getAndSet(TERMINATED)) {\n this.buffer.replay(rp);\n }\n }", "public void clear(){\r\n\t\tqueue.clear();\r\n\t}", "@Override\n protected void releaseBuffer() {\n }" ]
[ "0.7328279", "0.7258281", "0.70938766", "0.7025724", "0.68326354", "0.67168766", "0.67098325", "0.66245246", "0.6585446", "0.6502984", "0.64860857", "0.64698493", "0.6448161", "0.6384498", "0.63830364", "0.6381686", "0.63800573", "0.63720816", "0.6354229", "0.6353252", "0.63515145", "0.6308786", "0.6270298", "0.6227552", "0.6205495", "0.61958766", "0.61635524", "0.61575437", "0.61569464", "0.61539626", "0.61514854", "0.6150991", "0.606444", "0.6061393", "0.60553914", "0.60522306", "0.60448", "0.60425156", "0.6031044", "0.60301334", "0.60252774", "0.602204", "0.60151863", "0.60060346", "0.59999406", "0.5999774", "0.59914327", "0.5966954", "0.59612185", "0.5953587", "0.592366", "0.5915868", "0.5907999", "0.5905848", "0.59054327", "0.5887337", "0.5887337", "0.5885863", "0.5876049", "0.5866011", "0.5827346", "0.5818995", "0.5818995", "0.58135813", "0.581131", "0.5811225", "0.57981485", "0.57912886", "0.5779111", "0.5774642", "0.57708335", "0.575467", "0.57522976", "0.5750456", "0.5750456", "0.5750456", "0.57322776", "0.573149", "0.5719653", "0.5709082", "0.57007235", "0.56993645", "0.56976175", "0.56974477", "0.56970435", "0.56920105", "0.56896645", "0.568648", "0.56829745", "0.56821793", "0.56815875", "0.56815875", "0.5679947", "0.5670963", "0.5669556", "0.56671035", "0.5663188", "0.56625104", "0.5651814", "0.564425" ]
0.69403166
4
Adds a new Sensor to the SetOfSensors.
public void addSensor(String sensorId, String sensorType, String sensorUnits, int interval, int threshold, boolean upperlimit){ Sensor theSensor = new Sensor(sensorId, sensorType, sensorUnits, interval, threshold, upperlimit); sensors.addSensor(theSensor); theSensor.setFieldStation(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addSensor(Sensor sensor) {\n List<Sensor> listToAddTo;\n\n switch (sensor.getSensorType()) {\n case PM10:\n listToAddTo = this.pm10Sensors;\n break;\n case TEMP:\n listToAddTo = this.tempSensors;\n break;\n case HUMID:\n listToAddTo = this.humidSensors;\n break;\n default:\n listToAddTo = new ArrayList<>();\n break;\n }\n listToAddTo.add(sensor);\n }", "public void addSensor(Sensor sensor){\n sensors.addSensor(sensor);\n sensor.setFieldStation(this);\n }", "public synchronized int addSensor(Sensor s) throws Exception{\n int index = sList.addSensor(s);\n sensors.put(index, s);\n \n listeners.stream().forEach((listener) -> {\n listener.modelEventHandler(ModelEventType.SENSORADDED, index);\n });\n \n s.addListener(this);\n \n return index;\n }", "public synchronized void addSensor(int type) {\n\n if (running) {\n throw new IllegalStateException(\"Is running\");\n }\n Sensor s = manager.getDefaultSensor(type);\n\n if (!sensorsList.contains(s)) {\n sensorsList.add(s);\n }\n }", "private void registerSensors()\n {\n // Double check that the device has the required sensor capabilities\n\n if(!HasGotSensorCaps()){\n showToast(\"Required sensors not supported on this device!\");\n return;\n }\n\n // Provide a little feedback via a toast\n\n showToast(\"Registering sensors!\");\n\n // Register the listeners. Used for receiving notifications from\n // the SensorManager when sensor values have changed.\n\n sensorManager.registerListener(this, senStepCounter, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, senStepDetector, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, senAccelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n }", "@Override\n\tpublic boolean registerSensor(String name) {\n\t\t// Get an instance of the Sensor\n\t\tNamingContextExt namingService = CorbaHelper.getNamingService(this._orb());\n\t\tSensor sensor = null;\n\t\t\n\t\t// Get a reference to the sensor\n\t try {\n\t \tsensor = SensorHelper.narrow(namingService.resolve_str(name));\n\t\t} catch (NotFound | CannotProceed | InvalidName e) {\n\t\t\tSystem.out.println(\"Failed to add Sensor named: \" + name);\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t \n\t if(sensor != null) {\n\t \t// Lets check this sensors zone already exists. If not, create it\n\t\t if( ! this.sensors.containsKey(sensor.zone())) {\n\t\t \t// Create that zone\n\t\t \tArrayList<Sensor> sensors = new ArrayList<Sensor>();\n\t\t \t\n\t\t \t// Put the array into the sensors hashmap\n\t\t \tthis.sensors.put(sensor.zone(), sensors);\n\t\t }\n\t\t \n\t\t // Check if the sensor zone already contains this sensor\n\t\t if( ! this.sensors.get(sensor.zone()).contains(sensor)) {\n\t\t \t// Add the new sensor to the correct zone\n\t\t \tthis.sensors.get(sensor.zone()).add(sensor);\n\t\t \t\n\t\t \t// A little feedback\n\t\t \tthis.log(name + \" has registered with the LMS in zone \" + sensor.zone() + \". There are \" + this.sensors.get(sensor.zone()).size() + \" Sensors in this Zone.\");\n\t\t \t\n\t\t \t// Return success\n\t\t \treturn true;\n\t\t }\n\t } else {\n\t \tthis.log(\"Returned sensor was null\");\n\t }\n\t \n\t\t// At this stage, the sensor must exist already\n\t\treturn false;\n\t}", "public SetOfSensors getSetOfSensors(){\n return sensors;\n }", "public void startSensors() {\n // Register listeners for each sensor\n sensorManager.registerListener(sensorEventListener, accelerometer, SensorManager.SENSOR_DELAY_GAME);\n }", "public SetSensorCommand(List<SensorType> requiredSensors) {\n super(CommandType.SetSensor);\n this.requiredSensors = requiredSensors;\n }", "private void startSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.startListening();\n }\n }", "RegisterSensor() {\n }", "public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }", "public List<SensorObject> getSensorData(){\n\t\t\n\t\t//Cleaning all the information stored\n\t\tthis.sensorData.clear();\n\t\t\n\t\t//Getting the information from the keyboard listener\n\t\tif(keyboardListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.keyboardListener.getKeyboardEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.keyboardListener.getKeyboardEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.keyboardListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse listener\n\t\tif(mouseListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseListener.getMouseEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseListener.getMouseEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse motion listener\n\t\tif(mouseMotionListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseMotionListener.getMouseMotionEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseMotionListener.getMouseMotionEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseMotionListener.clearEvents();\n\t\t}\n\t\t//Getting the information from the mouse wheel listener\n\t\tif(mouseWheelListenerIsActive){\n\t\t\t\n\t\t\tint elements = this.mouseWheelListener.getMouseWheelEvents().size();\n\t\t\tfor(int i=0; i<elements; i++) {\n\t\t\t\tthis.addSensorObject(this.mouseWheelListener.getMouseWheelEvent(i));\n\t\t\t}\n\t\t\t\n\t\t\tthis.mouseWheelListener.clearEvents();\n\t\t}\n\t\t\n\t\t//If we want to write a JSON file with the data\n\t\tif(Boolean.parseBoolean(this.configuration.get(artie.sensor.common.enums.ConfigurationEnum.SENSOR_FILE_REGISTRATION.toString()))){\n\t\t\tthis.writeDataToFile();\n\t\t}\n\t\t\n\t\treturn this.sensorData;\n\t}", "@Override\n void add()\n {\n long sensorId = Long.parseLong(textSensorId.getText());\n MissionNumber missionNumber = textMissionNumber.getValue();\n String jobOrderNumber = textJobOrderNumber.getText();\n \n FPS16SensorDataGenerator generator = new FPS16SensorDataGenerator(tspiConfigurator.getTspiGenerator(), sensorId, missionNumber, jobOrderNumber);\n controller.addSensorDataGenerator(getRate(), getChannel(), generator);\n }", "public void startSensors() {\r\n\t\tsensorManager.registerListener(this, accelerometer,\r\n\t\t\t\tSensorManager.SENSOR_DELAY_UI);\r\n\t\tsensorManager.registerListener(this, magneticField,\r\n\t\t\t\tSensorManager.SENSOR_DELAY_UI);\r\n\r\n\t\tLog.d(TAG, \"Called startSensors\");\r\n\t}", "public synchronized void addRawData (SensorData sensorData) {\n if (!isEnabled) {\n return;\n }\n\n rawData.add(sensorData);\n\n GarmentOSService.callback(CallbackFlags.VALUE_CHANGED, new ValueChangedCallback(sensorData.getLongUnixDate(), sensorData.getData()));\n\n if (rawData.size() > savePeriod) {\n saveSensor();\n }\n }", "public final flipsParser.defineSensor_return defineSensor() throws RecognitionException {\n flipsParser.defineSensor_return retval = new flipsParser.defineSensor_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal52=null;\n Token string_literal53=null;\n Token string_literal54=null;\n flipsParser.defineSensorValue_return defineSensorValue55 = null;\n\n\n CommonTree string_literal52_tree=null;\n CommonTree string_literal53_tree=null;\n CommonTree string_literal54_tree=null;\n RewriteRuleTokenStream stream_132=new RewriteRuleTokenStream(adaptor,\"token 132\");\n RewriteRuleTokenStream stream_131=new RewriteRuleTokenStream(adaptor,\"token 131\");\n RewriteRuleTokenStream stream_130=new RewriteRuleTokenStream(adaptor,\"token 130\");\n RewriteRuleSubtreeStream stream_defineSensorValue=new RewriteRuleSubtreeStream(adaptor,\"rule defineSensorValue\");\n try {\n // flips.g:176:2: ( ( 'sen' | 'sensor' | 'sensors' ) defineSensorValue -> defineSensorValue )\n // flips.g:176:4: ( 'sen' | 'sensor' | 'sensors' ) defineSensorValue\n {\n // flips.g:176:4: ( 'sen' | 'sensor' | 'sensors' )\n int alt21=3;\n switch ( input.LA(1) ) {\n case 130:\n {\n alt21=1;\n }\n break;\n case 131:\n {\n alt21=2;\n }\n break;\n case 132:\n {\n alt21=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 0, input);\n\n throw nvae;\n }\n\n switch (alt21) {\n case 1 :\n // flips.g:176:5: 'sen'\n {\n string_literal52=(Token)match(input,130,FOLLOW_130_in_defineSensor839); \n stream_130.add(string_literal52);\n\n\n }\n break;\n case 2 :\n // flips.g:176:11: 'sensor'\n {\n string_literal53=(Token)match(input,131,FOLLOW_131_in_defineSensor841); \n stream_131.add(string_literal53);\n\n\n }\n break;\n case 3 :\n // flips.g:176:20: 'sensors'\n {\n string_literal54=(Token)match(input,132,FOLLOW_132_in_defineSensor843); \n stream_132.add(string_literal54);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_defineSensorValue_in_defineSensor846);\n defineSensorValue55=defineSensorValue();\n\n state._fsp--;\n\n stream_defineSensorValue.add(defineSensorValue55.getTree());\n\n\n // AST REWRITE\n // elements: defineSensorValue\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 177:2: -> defineSensorValue\n {\n adaptor.addChild(root_0, stream_defineSensorValue.nextTree());\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public void loadSensors() {\r\n\t\thandlerBridge.loadBrigde();\r\n\t\thandlerSensor = new SensorHandler(handlerBridge.loadSensors());\r\n\t}", "@Test\n public void addSensors() throws IOException, InterruptedException {\n Thread.sleep(2000);\n logger.info(\"Adding a list of sensors\");\n addPrimaryCall(11, 10, 6488238, 16);\n addPrimaryCall(12, 12, 6488239, 16);\n addPrimaryCall(13, 25, 6488224, 16);\n\n adc.New_ADC_session(adc.getAccountId());\n Thread.sleep(2000);\n adc.driver1.findElement(By.partialLinkText(\"Sensors\")).click();\n Thread.sleep(2000);\n adc.Request_equipment_list();\n }", "protected void registerSensors() {\n\n Handler handler = new Handler();\n\n SensorManager sm = (SensorManager) getSystemService(SENSOR_SERVICE);\n List<Sensor> sensorList = sm.getSensorList(Sensor.TYPE_ALL);\n for (int i = 0; i < sensorList.size(); i++) {\n int type = sensorList.get(i).getType();\n if (type == Sensor.TYPE_ACCELEROMETER) {\n accelerometerResultReceiver = new SensorResultReceiver(handler);\n accelerometerResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_GYROSCOPE) {\n gyroscopeResultReceiver = new SensorResultReceiver(handler);\n gyroscopeResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_MAGNETIC_FIELD) {\n magnitudeResultReceiver = new SensorResultReceiver(handler);\n magnitudeResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_ROTATION_VECTOR) {\n rotationVectorResultReceiver = new SensorResultReceiver(handler);\n rotationVectorResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_LIGHT) {\n lightResultReceiver = new LightResultReceiver(handler);\n lightResultReceiver.setReceiver(new LightReceiver());\n\n } else if (type == Sensor.TYPE_GRAVITY) {\n gravityResultReceiver = new SensorResultReceiver(handler);\n gravityResultReceiver.setReceiver(new SensorDataReceiver());\n\n } else if (type == Sensor.TYPE_PRESSURE) {\n pressureResultReceiver = new PressureResultReceiver(handler);\n pressureResultReceiver.setReceiver(new PressureReceiver());\n\n }\n }\n /*if(magnitudeResultReceiver!= null && gyroscopeResultReceiver!=null) {\n orientationResultReceiver = new SensorResultReceiver(handler);\n orientationResultReceiver.setReceiver(new SensorDataReceiver());\n }*/\n }", "protected Sensor[] getSensorValues() { return sensors; }", "public int getNumberOfSensors() {\n\t\treturn numSensors;\n\t}", "public int Register(){\n\t\tnumSensors = 0;\n\t\tm_azimuth_degrees = Integer.MIN_VALUE;\n\t\tm_sun_azimuth_degrees = 0;\n\t\trawSensorValue = 0;\n\t\tif(mSensorManager.registerListener(this, mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION), SensorManager.SENSOR_DELAY_GAME)) numSensors++; \n\t\treturn numSensors;\t\n\t}", "public synchronized Sensor getSensor(int id)\n {\n return sensors.get(id);\n }", "private Sensor registerSensor(HalSensorConfig config){\n Sensor sensor = new Sensor();\n sensor.setDeviceConfig(config);\n manager.addAvailableDeviceConfig(config.getClass());\n manager.register(sensor);\n return sensor;\n }", "public List<SuperSensor> getSensorsBySensorType(SensorType type)\n {\n return sensorModules.getSensorsBySensorType(type);\n }", "List<Sensor> getHumidSensors() {\n return Collections.unmodifiableList(this.humidSensors);\n }", "public List<SuperSensor> getSensorsByType(String type)\n {\n if(type == null)\n {\n return null;\n }\n return sensorModules.getSensorsByType(type.toLowerCase());\n }", "public Sensor(String id_, String buildingID_, String sensorType_){\n\t\tsuper(id_,buildingID_);\n\t\tsensorType = sensorType_;\t\n\t}", "@Override\n\tpublic void setupSensors() {\n\t\t\n\t}", "protected void postSensorValues(Sensor[] s) { sensors = s; }", "public void addElts(Meters meter){\r\n MetersList.add(meter);\r\n }", "public int getSensorId() {\n\t\treturn sensorid;\n\t}", "public List<SuperSensor> getSensorsByClass(Class c)\n {\n return sensorModules.getSensorsByClass(c);\n }", "public Sensor parseSensor() {\n Element e = document.getDocumentElement();\n // found Sensor Element in XML\n if (e != null && e.getNodeName().equals(\"sensor\")) {\n // creates new Sensor with id as the name\n Sensor sensor = new Sensor(e.getAttribute(\"id\"));\n\n for (int i = 0; i < e.getChildNodes().getLength(); i++) {\n Node childNode = e.getChildNodes().item(i);\n if (childNode instanceof Element) {\n Element childElement = (Element) childNode;\n switch (childNode.getNodeName()) {\n case \"measurement\" :\n Measurement m = parseMeasurement(childElement);\n sensor.addMeasurement(m);\n break;\n case \"information\" :\n // maybe a new Type for extra Information from the\n // Sensor\n break;\n\n default :\n System.out.println(\n \"No case for \" + childNode.getNodeName());\n }\n }\n }\n\n return sensor;\n } else {\n return null;\n }\n }", "public int getSensors() {\n return sensors;\n }", "public static void setSensorData() throws SensorNotFoundException\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") +\"sensors/?state=\"+Constants.SENSOR_STATE_STOCK;\n\t\tsCollect = new SensorCollection();\n\t\tsCollect.setList(sURL);\n\t\t\t\n\t\tfor (SensorData sData : sCollect.getList())\n\t\t{\n\t\t\tif (sData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t{\n\t\t\t\tsensorText.setText(sData.getSensorData() + \"\\r\\n\" + \"Device: \"\n\t\t\t\t\t+ (ConnectionManager.getInstance().currentSensor(0).getDeviceName() + \"\\r\\n\" + \"Manufacture: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getManufacturerName() + \"\\r\\n\"\n\t\t\t\t\t\t\t+ \"FlashDate: \" + ConnectionManager.getInstance().currentSensor(0).getFlashDate()\n\t\t\t\t\t\t\t+ \"\\r\\n\" + \"Battery: \"\n\t\t\t\t\t\t\t+ ConnectionManager.getInstance().currentSensor(0).getBatteryVoltage()));\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "Sensor getSensor();", "protected boolean registerSensor() {\n final android.hardware.Sensor sensor = mSensorConfig.getUnderlyingSensor();\n final int reportingDelay = mSensorConfig.getReportingDelayUs();\n final int samplingDelay = mSensorConfig.getSamplingDelayUs();\n final SensorManager sensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);\n isRegistered = sensorManager.registerListener(this, sensor, samplingDelay, reportingDelay);\n return isRegistered;\n }", "private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }", "DeviceSensor createDeviceSensor();", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue create(\n long sensorValueId) {\n return getPersistence().create(sensorValueId);\n }", "public int insertSensorData(DataValue dataVal) throws Exception;", "private LinkedList<Smoke> listSensorSmoke(){\r\n LinkedList<Smoke> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Smoke)\r\n aux.add((Smoke)s);\r\n }\r\n return aux;\r\n }", "public AddSensor() {\n initComponents();\n }", "public void addSampleToDB(Sample sensorSample, String TABLE_NAME) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(\"timestamp\", sensorSample.getTimestamp());\n values.put(\"x_val\", sensorSample.getX());\n values.put(\"y_val\", sensorSample.getY());\n values.put(\"z_val\", sensorSample.getZ());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "public abstract void createSensors() throws Exception;", "private void enableSensor() {\n if (DEBUG) Log.d(TAG, \">>> Sensor \" + getEmulatorFriendlyName() + \" is enabled.\");\n mEnabledByEmulator = true;\n mValue = null;\n\n Message msg = Message.obtain();\n msg.what = SENSOR_STATE_CHANGED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }", "public static Sensor getFirstSensor() {\n\t\tSensor retVal = null;\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mEnabled) {\n\t\t\t\tretVal = mSensors.get(x);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}", "MonitoredSensor(Sensor sensor) {\n mSensor = sensor;\n mEnabledByUser = true;\n\n // Set appropriate sensor name depending on the type. Unfortunately,\n // we can't really use sensor.getName() here, since the value it\n // returns (although resembles the purpose) is a bit vaguer than it\n // should be. Also choose an appropriate format for the strings that\n // display sensor's value.\n switch (sensor.getType()) {\n case Sensor.TYPE_ACCELEROMETER:\n mUiName = \"Accelerometer\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"acceleration\";\n break;\n case 9: // Sensor.TYPE_GRAVITY is missing in API 7\n mUiName = \"Gravity\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"gravity\";\n break;\n case Sensor.TYPE_GYROSCOPE:\n mUiName = \"Gyroscope\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"gyroscope\";\n break;\n case Sensor.TYPE_LIGHT:\n mUiName = \"Light\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"light\";\n break;\n case 10: // Sensor.TYPE_LINEAR_ACCELERATION is missing in API 7\n mUiName = \"Linear acceleration\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"linear-acceleration\";\n break;\n case Sensor.TYPE_MAGNETIC_FIELD:\n mUiName = \"Magnetic field\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"magnetic-field\";\n break;\n case Sensor.TYPE_ORIENTATION:\n mUiName = \"Orientation\";\n mTextFmt = \"%+03.0f %+03.0f %+03.0f\";\n mEmulatorFriendlyName = \"orientation\";\n break;\n case Sensor.TYPE_PRESSURE:\n mUiName = \"Pressure\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"pressure\";\n break;\n case Sensor.TYPE_PROXIMITY:\n mUiName = \"Proximity\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"proximity\";\n break;\n case 11: // Sensor.TYPE_ROTATION_VECTOR is missing in API 7\n mUiName = \"Rotation\";\n mTextFmt = \"%+.2f %+.2f %+.2f\";\n mEmulatorFriendlyName = \"rotation\";\n break;\n case Sensor.TYPE_TEMPERATURE:\n mUiName = \"Temperature\";\n mTextFmt = \"%.0f\";\n mEmulatorFriendlyName = \"temperature\";\n break;\n default:\n mUiName = \"<Unknown>\";\n mTextFmt = \"N/A\";\n mEmulatorFriendlyName = \"unknown\";\n if (DEBUG) Loge(\"Unknown sensor type \" + mSensor.getType() +\n \" for sensor \" + mSensor.getName());\n break;\n }\n }", "public static void removeAllSensors() {\n\t\tmSensors.clear();\n\t}", "private void initSensor(){\n sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n\n registerListeners();\n }", "public synchronized Sensor[] getSensorArray(){\n\t\treturn sensorArray;\n\t}", "ExternalSensor createExternalSensor();", "public static Sensor checkAndAddSensor(Context aContext, String name, String address) {\n\t\tSensor s = getSensor(name, address);\n\t\t\n\t\tif (s != null) {\n\t\t\treturn s;\n\t\t}\n\n\t\tif (name.contains(Defines.ZEPHYR_DEVICE_NAME)) {\n\t\t\tif (Globals.IS_ZEPHYR_ENABLED) {\n\t\t\t\ts = new ZephyrSensor(name, address);\n\t\t\t\tmSensors.add(s);\n\t\t\t}\n\t\t} else if (name.contains(Defines.POLAR_DEVICE_NAME)) {\n\t\t\tif (Globals.IS_POLAR_ENABLED) {\n\t\t\t\ts = new PolarSensor(name, address);\n\t\t\t\tmSensors.add(s);\n\t\t\t}\n\t\t} else if (name.contains(Defines.WOCKET_DEVICE_NAME)) {\n\t\t\tif (Globals.IS_WOCKETS_ENABLED) {\n\t\t\t\ts = new WocketSensor(aContext, name, address);\n\t\t\t\tmSensors.add(s);\n\t\t\t}\n\t\t} else if (name.contains(Defines.ASTHMAPOLIS_DEVICE_NAME)) {\n\t\t\tif (Globals.IS_ASTHMAPOLIS_ENABLED) {\n\t\t\t\ts = new AsthmapolisSensor(name, address);\n\t\t\t\tmSensors.add(s);\n\n\t\t\t}\n\t\t}\n\n\t\treturn s;\n\t}", "public void addReading(Reading r) {\n readingList.add(r);\n }", "public synchronized void add(DataTypeDoubleArray sample) {\n samples.add(sample);\n }", "public void add(OpenWeatherResponse owr){\n owrList.add(owr);\n fireTableDataChanged();\n }", "public void requestAllSensors() {\n mSensorManager.registerListener(this, mRotationSensor, SENSOR_DELAY_MICROS);\n }", "public void add(Object o) {\n\t\tTrain train = (Train)o;\n\t\ttrainlist.add(train);\n\t\tSystem.out.println(\"Train \"+train.toString()+\" has been added.\");\n\t\tSystem.out.println(\"Index in list is \"+trainlist.indexOf(train));\n\t}", "@RequestMapping(value = \"/station/{id}/sensors\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Sensor>> findAllStationSensors(@PathVariable(\"id\") long id) {\n\t\tStation currentStation = stationDao.findById(id);\n\t\tif (currentStation == null) {\n\t\t\tlogger.info(\"Station with id \" + id + \" not found\");\n\t\t\treturn new ResponseEntity<List<Sensor>>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\tList<Sensor> sensors = stationDao.findAllStationSensors(id);\n\t\tif (sensors == null || sensors.isEmpty()) {\n\t\t\treturn new ResponseEntity<List<Sensor>>(HttpStatus.NO_CONTENT);\n\t\t}\n\t\treturn new ResponseEntity<List<Sensor>>(sensors, HttpStatus.OK);\n\t}", "private void bindMean(){\n\t\tSensor local;\n\t\tfor (int index = 0; index < this.sensorList.getSize(); index++) {\n\t\t\tlocal = (Sensor) this.sensorList.elementAt(index);\n\t\t\tlocal.addPropertyChangeListener(moyenne);\n\t\t}\n\t}", "public Sensor() {\n if(this.rawData == null)\n this.rawData = new Vector<SensorData>();\n }", "public int getSensorID() {\n return sensorID;\n }", "public void saveSensorsDB() throws Exception {\n\n\t\t//Get JDBC connection\n\t\tConnection connection = null;\n\t\tStatement stmt = null;\n\t\tConnectDB conn = new ConnectDB();\n\t\tconnection = conn.getConnection();\n\n\t\tstmt = connection.createStatement();\n\t\tfor (int key : getMap().keySet()) {\n\t\t\tSubArea value = getMap().get(key);\n\t\t\tint fireValue = (value.isFireSensor()) ? 1 : 0;\n\t\t\tint burglaryValue = (value.isBurglarySensor()) ? 1 : 0;\n\t\t\t//Save Fire and Burglary sensors\n\t\t\tString sql = \"UPDATE section SET fireSensor=\" + fireValue\n\t\t\t\t\t+ \", burglarySensor=\" + burglaryValue + \" WHERE id=\" + key;\n\t\t\tstmt.executeUpdate(sql);\n\t\t}\n\n\t}", "public void addLight(LightSource... lights) {\r\n for (int i = 0; i < lights.length; ++i)\r\n _lights.add(lights[i]);\r\n }", "public Sensor registerSensor(String name, String type) {\n \tSCSensor sensor = new SCSensor(name);\n \n String uid = UUID.randomUUID().toString();\n sensor.setId(uid);\n sensor.setType(type);\n \n //temporary fix..\n if(sensorCatalog.hasSensorWithName(name))\n \tsensorCatalog.removeSensor(sensorCatalog.getSensorWithName(name).getId());\n \n // Setting PublicEndPoint\n sensor.setPublicEndpoint(publicEndPoint);\n \n /*sensor = generateSensorEndPoints(sensor);*/\n Endpoint dataEndpoint;\n if (Constants.SENSOR_TYPE_BLOCK.equalsIgnoreCase(type)) {\n dataEndpoint = new JMSEndpoint();\n dataEndpoint.setAddress(sensor.getId() + \"/data\");\n // TODO: we have to decide the connection factory to be used\n dataEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n } else if (Constants.SENSOR_TYPE_STREAMING.equalsIgnoreCase(type)) {\n dataEndpoint = new StreamingEndpoint();\n \n dataEndpoint.setProperties(configuration.getStreamingServer().getParameters());\n dataEndpoint.getProperties().put(\"PATH\", \"sensor/\" + sensor.getId() + \"/data\");\n \n // add the routing to the streaming server\n } else {\n // defaulting to JMS\n dataEndpoint = new JMSEndpoint();\n dataEndpoint.setAddress(sensor.getId() + \"/data\");\n // TODO: we have to decide the connection factory to be used\n dataEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n }\n \n sensor.setDataEndpoint(dataEndpoint);\n \n Endpoint controlEndpoint;\n \n controlEndpoint = new JMSEndpoint();\n controlEndpoint.setAddress(sensor.getId() + \"/control\");\n // TODO: we have to decide the connection factory to be used\n controlEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n sensor.setControlEndpoint(controlEndpoint);\n \n // set the update sending endpoint as the global endpoint\n Endpoint updateSendingEndpoint;\n updateSendingEndpoint = new JMSEndpoint();\n \n updateSendingEndpoint.setProperties(\n configuration.getBrokerPool().getBroker(sensor.getId()).getConnections(\"topic\").getParameters());\n updateSendingEndpoint.setAddress(sensor.getId() + \"/update\");\n sensor.setUpdateEndpoint(updateSendingEndpoint);\n \n registry.addSensor(sensor);\n \n sensorCatalog.addSensor(sensor);\n updateManager.sensorChange(Constants.Updates.ADDED, sensor.getId());\n return sensor;\n }", "private List<Sensor> getSensors(String jsonString) {\n List<Sensor> readSensors = new ArrayList<>();\n\n JSONArray sensors;\n JSONObject sensor;\n\n Iterator typesIterator;\n String type;\n\n JSONArray coordinatesArray;\n double latitude;\n double longitude;\n\n double measure;\n\n try {\n sensors = new JSONArray(jsonString);\n\n for (int i = 0; i < sensors.length(); i++) {\n sensor = sensors.getJSONObject(i);\n\n if (sensor.getBoolean(IS_ACTIVE_KEY)) {\n typesIterator = sensor.getJSONObject(DATA_KEY).keys();\n\n while (typesIterator.hasNext()) {\n try {\n type = (String) typesIterator.next();\n JSONObject data =\n sensor.getJSONObject(DATA_KEY)\n .getJSONObject(type).getJSONObject(DATA_KEY);\n\n measure = data.getDouble(data.keys().next());\n if (measure < 0 || measure > MEASUREMENTS_LIMIT_UPPER) {\n continue;\n }\n\n coordinatesArray = \n sensor.getJSONObject(GEOM_KEY)\n .getJSONArray(COORDINATES_KEY);\n latitude = coordinatesArray.getDouble(1);\n longitude = coordinatesArray.getDouble(0);\n\n readSensors.add(new Sensor(this.parseType(type),\n new LatLng(latitude, longitude),\n measure));\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n }\n }\n }\n } catch (JSONException e) {\n Log.e(NO_JSON_OBJECT_FOUND_LOG_TITLE, NO_JSON_OBJECT_FOUND_LOG_CONTENTS);\n }\n\n return readSensors;\n }", "public RegisterSensor(final String version, final Object sensorDescription, final ObservationTemplate observationTemplate) {\n super(version);\n this.observationTemplate = observationTemplate;\n this.sensorDescription = new SensorDescription(sensorDescription);\n }", "public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByUuid_First(uuid, orderByComparator);\n }", "public LinkedList<Temperature> listSensorTemperature(){\r\n LinkedList<Temperature> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Temperature)\r\n aux.add((Temperature)s);\r\n }\r\n return aux;\r\n }", "private void initSensors() {\n\t\t\n\t\tmSsorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);\n\t\t\n\t\t\n\t\tif(!(hasLSsor = SensorTool.hasSensor(mSsorManager, Sensor.TYPE_LIGHT))) {\n\t\t\tmtvLssor.setText(mContext.getString(R.string.tv_lssor_not_available));\n\t\t} else {\n\t\t\tlssor = mSsorManager.getDefaultSensor(Sensor.TYPE_LIGHT);\n\t\t\t// set Pass button unClickable\n\t\t}\n\t\t\n\t}", "public void add(ProbeObject obj) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_DATA, obj.getData());\n values.put(KEY_CONFIG, obj.getConfig());\n values.put(KEY_TIMESTAMP, obj.getTimestamp());\n values.put(KEY_DEVICE, obj.getBuild());\n\n // Inserting Row\n db.insert(TABLE_MOBILE_SENSOR, null, values);\n db.close(); // Closing database connection\n }", "List<Sensor> getTempSensors() {\n return Collections.unmodifiableList(this.tempSensors);\n }", "public static Sensor CreateSensorFromTable(String sensorName) {\n\n ResultSet rs = null;\n\n Sensor sensor = null;\n try (\n PreparedStatement stmt = conn.prepareStatement(SENSORSQL, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);) {\n stmt.setString(1, sensorName);\n\n rs = stmt.executeQuery();\n\n while (rs.next()) {\n String[] loca = rs.getString(2).split(\",\");\n Location location = new Location();\n location.setLongitude(Double.parseDouble(loca[0]));\n location.setLatitude(Double.parseDouble(loca[1]));\n\n sensor = Station.getInstance().createSensor(sensorName, rs.getString(1), location);\n sensor.setUpdateTime(rs.getInt(3));\n }\n\n } catch (SQLException e) {\n System.err.println(e);\n System.out.println(\"Query 1 Issue!!\");\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBExecute.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n }\n return sensor;\n\n }", "private void add(GyroReading gyroReading) {\n m_gyroData.addFirst(gyroReading);\n\n try {\n while (gyroReading.timeStamp - (m_gyroData.get(m_gyroData.size() - 2).timeStamp) >= m_minimumRecordTime) {\n m_gyroData.removeLast();\n }\n } catch (Exception NoSuchElementException) {\n\n }\n }", "public void requestSensor(String sensorType){\n switch(sensorType){\n case \"SENSOR_ACC\":\n accelerometer = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n phoneSensorsMan.registerListener(sel,accelerometer, SensorManager.SENSOR_DELAY_GAME);\n break;\n case \"SENSOR_GYRO\":\n gyro = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_GYROSCOPE);\n phoneSensorsMan.registerListener(sel,gyro, SensorManager.SENSOR_DELAY_GAME);\n break;\n case \"SENSOR_MAGNET\":\n magnet = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);\n phoneSensorsMan.registerListener(sel,magnet, SensorManager.SENSOR_DELAY_GAME);\n break;\n case \"SENSOR_GPS\":\n phoneLocationMan.requestLocationUpdates(LocationManager.GPS_PROVIDER,100,1,locListener);\n break;\n case \"SENSOR_ORIENTATION\":\n orientation = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);\n phoneSensorsMan.registerListener(sel,orientation, SensorManager.SENSOR_DELAY_GAME);\n\n\n }\n }", "protected SuperSensor createNewSensor(SensorMessage message)\n {\n return ModuleInstanceProvider.getSensorInstanceByType(message.getType());\n }", "private int checkRegisteredSensors() {\n\n int counter = 0;\n\n if (listSensorDB.size() < 1) {\n Log.d(getClass().getName(), \"Lista de sensores cadastrados é ZERO! Retornando de checkRegisteredSensors()\");\n return 0;\n }\n\n if (HSSensor.getInstance().getListSensorOn().size() < 1)\n HSSensor.getInstance().setListSensorOn(listSensorDB);\n\n\n for (Sensor sensor : HSSensor.getInstance().getListSensorOn()) {\n\n Socket sock = new Socket();\n if (sensor.getIp().isEmpty()) {\n Log.d(getClass().getName(), \"O IP do sensor [\" + sensor.getNome() + \"] está vazio. Acabou de ser configurado? \" +\n \"Nada a fazer em checkRegisteredSensors()\");\n continue;\n }\n\n SocketAddress addr = new InetSocketAddress(sensor.getIp(), 8000);\n\n try {\n\n sock.connect(addr, 5000);\n Log.d(getClass().getName(), \"Conectamos em \" + sensor.getIp());\n\n\n PrintWriter pout = new PrintWriter(sock.getOutputStream());\n\n pout.print(\"getinfo::::::::\\n\");\n pout.flush();\n\n Log.d(getClass().getName(), \"Enviado getinfo:::::::: para \" + sensor.getIp() + \" - Aguardando resposta...\");\n\n byte[] b = new byte[256];\n\n sock.setSoTimeout(5000);\n int bytes = sock.getInputStream().read(b);\n sock.close();\n\n String result = new String(b, 0, bytes - 1);\n Log.d(getClass().getName(), \"Recebida resposta de \" + sensor.getIp() + \" para nosso getinfo::::::::\");\n\n Sensor tmpSensor = buildSensorFromGetInfo(result);\n if (tmpSensor == null) {\n Log.d(getClass().getName(), \"Resposta de \" + sensor.getIp() + \" nao é um sensor valido!\");\n Log.d(getClass().getName(), \"Resposta: \" + result);\n continue;\n }\n\n if (sensor.equals(tmpSensor)) {\n\n sensor.setActive(true);\n counter++;\n\n Log.d(getClass().getName(), \"Resposta de \" + sensor.getIp() + \" é um sensor valido!\");\n Log.d(getClass().getName(), \"Sensor \" + sensor.getNome() + \" : \" + sensor.getIp() + \" PAREADO!\");\n }\n\n\n } catch (Exception e) {\n\n if (e.getMessage() != null) {\n Log.d(getClass().getName(), e.getMessage());\n }\n sensor.setActive(false);\n }\n\n }\n\n return counter;\n }", "public void addLight(Light light) { LightSet.addElement(light); }", "@Override\n public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {\n readNextSensor(gatt);\n }", "public void sendSensorData(String[] sensor) {\r\n\t\tlogger.info(\"intializing sensors: \" + Arrays.toString(sensor));\r\n\t\treadyToProcessData = false;\r\n\t\tthis.sensor = sensor;\r\n\t\tfor (int i = 0; i < sensor.length; i++) {\r\n\t\t\tif (sensor[i].equals(\"Dist-Nx-v3\")) {\r\n\t\t\t\t// dist_nx = controlClass.getDist_nx();\r\n\t\t\t\tsendCommand(10, 1, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"DIST-NX:\" + dist_nx);\r\n\t\t\t} else if (sensor[i].equals(\"LightSensorArray\")) {\r\n\t\t\t\t// lsa = controlClass.getLsa();\r\n\t\t\t\tsendCommand(10, 2, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"LSA:\" + lsa);\r\n\t\t\t} else if (sensor[i].equals(\"EOPDLinks\")) {\r\n\t\t\t\t// eopdLeft = controlClass.getEopdLeft();\r\n\t\t\t\tsendCommand(10, 3, i + 1, 1);\r\n\t\t\t\t// logger.debug(\"EOPD links\" + eopdLeft);\r\n\t\t\t} else if (sensor[i].equals(\"EOPDRechts\")) {\r\n\t\t\t\t// eopdRight = controlClass.getEopdRight();\r\n\t\t\t\tsendCommand(10, 3, i + 1, 2);\r\n\t\t\t\t// logger.debug(\"EOPD rechts\" + eopdRight);\r\n\t\t\t} else if (sensor[i].equals(\"AbsoluteIMU-ACG\")) {\r\n\t\t\t\t// absimu_acg = controlClass.getAbsimu_acg();\r\n\t\t\t\tsendCommand(10, 4, i + 1, 0);\r\n\t\t\t\t// logger.debug(\"Gyro\" + absimu_acg);\r\n\t\t\t} else if (sensor[i].equals(\"IRThermalSensor\")) {\r\n\t\t\t\t// tsLeft = controlClass.getTsLeft();\r\n\t\t\t\tsendCommand(10, 5, i + 1, 1);\r\n\t\t\t\t// logger.debug(\"ts left\" + tsLeft);\r\n\t\t\t} else if (sensor[i].equals(\"ColourSensor\")) {\r\n\t\t\t\tsendCommand(10, 6, i + 1, 0);\r\n\t\t\t} else {\r\n\t\t\t\tsendCommand(0, 0, 0, 0);\r\n\t\t\t\tlogger.debug(\"Sensor existiert nicht\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treadyToProcessData = true;\r\n\r\n\t\ttry {\r\n\t\t\tint linearAccelaration = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.linearAccelaration\"));\r\n\t\t\tint rotationAccelaration = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.rotationAccelaration\"));\r\n\t\t\tint speed = Integer\r\n\t\t\t\t\t.parseInt(propPiServer\r\n\t\t\t\t\t\t\t.getProperty(\"CommunicationPi.BrickControlPi.rotationSpeed\"));\r\n\t\t\tsetLinearAccelaration(linearAccelaration);\r\n\t\t\tsetRotationAccelaration(rotationAccelaration);\r\n\t\t\tsetRotationSpeed(speed);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(\"sendSensorData: error while parsing properties\");\r\n\t\t}\r\n\t\t// notifyAll();\r\n\t\tlogger.debug(\"sendSensorData flag set to: \" + readyToProcessData);\r\n\t}", "private void startListening() {\n if (mEnabledByEmulator && mEnabledByUser) {\n if (DEBUG) Log.d(TAG, \"+++ Sensor \" + getEmulatorFriendlyName() + \" is started.\");\n mSenMan.registerListener(mListener, mSensor, SensorManager.SENSOR_DELAY_FASTEST);\n }\n }", "public String getSensor()\n {\n return sensor;\n }", "public int getSensorCount() {\n return sensorCount ;\n }", "public void addSupplier(Supplier newSupplier) {\n\t\tsupplierList.add(newSupplier);\n\t}", "public void initSensorListener() {\n SensorManager mSensorManager = (SensorManager) this.mContext.getSystemService(\"sensor\");\n if (mSensorManager == null) {\n Slog.e(\"Fsm_MagnetometerWakeupManager\", \"connect SENSOR_SERVICE fail\");\n return;\n }\n boolean isRegisted = mSensorManager.registerListener(this.mMagnetometerListener, mSensorManager.getDefaultSensor(SENSOR_TYPE_HALL), 100000);\n Slog.d(\"Fsm_MagnetometerWakeupManager\", \"register Hall Sensor result:\" + isRegisted);\n }", "public static ArrayList<Sensor> getSensorsFromFile(InputStream fileStream) {\n ArrayList<Sensor> sensors = new ArrayList<>();\n Properties props = new Properties();\n\n // load configuration file\n try {\n props.load(fileStream);\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n // for every property in the file...\n Enumeration e = props.propertyNames();\n iterateProperties:\n while(e.hasMoreElements()) {\n String sensorName = (String)e.nextElement();\n String[] parameters = props.getProperty(sensorName).split(\", *\");\n Duration[] refreshPeriods = new Duration[3];\n\n // validate parameter count\n if(parameters.length < 4) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (at least 4 needed)\");\n continue iterateProperties;\n }\n\n // parse refresh periods in ms\n for(int i = 0; i < 3; ++i)\n try {\n refreshPeriods[i] = Duration.ofMillis(Integer.parseInt(parameters[i + 1]));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect duration formatting (integer in milliseconds expected)\");\n continue iterateProperties;\n }\n\n // create sensor of specified type and add to arrayList\n switch (parameters[0]) {\n case \"LSM303a\":\n if(parameters.length != 6) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (LSM303a type requires exactly 6)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new LSM303AccelerationSensor(sensorName, refreshPeriods, Float.parseFloat(parameters[4]), Integer.parseInt(parameters[5])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"LSM303m\":\n if(parameters.length != 6) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (LSM303m type requires exactly 6)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new LSM303MagneticSensor(sensorName, refreshPeriods, Float.parseFloat(parameters[4]), Integer.parseInt(parameters[5])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"L3GD20H\":\n if(parameters.length != 6) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (L3GD20H type requires exactly 6)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new L3GD20HGyroscopeSensor(sensorName, refreshPeriods, Float.parseFloat(parameters[4]), Integer.parseInt(parameters[5])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"SimInt\":\n if(parameters.length != 5) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (SimInt type requires exactly 5)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new SimulatedSensorInt(sensorName, refreshPeriods, Integer.parseInt(parameters[4])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"SimFloat\":\n if(parameters.length != 5) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (SimFloat type requires exactly 5)\");\n continue iterateProperties;\n }\n try {\n sensors.add(new SimulatedSensorFloat(sensorName, refreshPeriods, Float.parseFloat(parameters[4])));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n case \"SimVecFloat\":\n if(parameters.length != 7) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect number of parameters (SimFloat type requires exactly 7)\");\n continue iterateProperties;\n }\n try {\n float[] seed = new float[3];\n for(int i = 0; i < seed.length; ++i) {\n seed[i] = Float.parseFloat(parameters[i + 4]);\n }\n sensors.add(new SimulatedSensorVecFloat(sensorName, refreshPeriods, seed));\n } catch(NumberFormatException ex) {\n System.err.println(\"config.properties error (\" + sensorName + \"): incorrect formatting\");\n continue iterateProperties;\n }\n break;\n\n default:\n System.err.println(\"config.properties error (\" + sensorName + \"): \" + parameters[0] + \" is not a valid sensor type\");\n continue iterateProperties;\n }\n }\n\n return sensors;\n }", "public static java.util.List<com.lrexperts.liferay.liferayofthings.model.SensorValue> findBysensorId(\n long sensorId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().findBysensorId(sensorId);\n }", "private Sensor jsonToSensor(JsonElement rawSensor) throws IOException, InterruptedException {\n var sensorProperties = rawSensor.getAsJsonObject();\n var sensorLocation = sensorProperties.get(\"location\").getAsString();\n var coordinate = this.getCoordinate(sensorLocation); // get location information\n\n Double reading = null;\n float battery = sensorProperties.get(\"battery\").getAsFloat();\n if (battery > MIN_BATTERY) { // invalidate reading if below threshold\n String readingVal = sensorProperties.get(\"reading\").getAsString();\n reading = Double.valueOf(readingVal);\n }\n\n return new Sensor(sensorLocation, battery, reading, coordinate.x, coordinate.y);\n }", "private void registerSensorListeners(){\n\n // Get the accelerometer and gyroscope sensors if they exist\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null){\n mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n }\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE) != null){\n mGyroscope = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);\n }\n\n // Acquire the wake lock to sample with the screen off\n mPowerManager = (PowerManager)getApplicationContext().getSystemService(Context.POWER_SERVICE);\n\n mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);\n mWakeLock.acquire();\n\n // Register sensor listener after delay to compensate for user putting phone in pocket\n\n long delay = 5;\n\n Log.d(TAG, \"Before start: \" + System.currentTimeMillis());\n\n exec.schedule(new Runnable() {\n @Override\n public void run() {\n mSensorManager.registerListener(PhoneSensorLogService.this, mAccelerometer, SAMPLE_RATE);\n mSensorManager.registerListener(PhoneSensorLogService.this, mGyroscope, SAMPLE_RATE);\n Log.d(TAG, \"Start: \" + System.currentTimeMillis());\n if (timedMode) {\n scheduleLogStop();\n }\n }\n }, delay, TimeUnit.SECONDS);\n }", "@Override\n public boolean equals(final Object object) {\n if (object == this) {\n return true;\n }\n if (object instanceof SensorDescription && super.equals(object)) {\n final SensorDescription that = (SensorDescription) object;\n return Objects.equals(this.any, that.any);\n }\n return false;\n }", "public void addReading(Reading newReading) {\n\t\tint i = 0;\n\t\t\n\t\twhile (_readings[i] != null) {\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t_readings[i] = newReading;\n\t}", "public BasicSensor() {}", "public Sensor getSensor(int index) {\n if (index < 0 || index >= sensors.length)\n throw new IllegalArgumentException\n (\"Sensor index must be between 0 and \" + (sensors.length-1)) ;\n\n return sensors[index] ;\n }", "private LinkedList<Wind> listSensorWind(){\r\n LinkedList<Wind> aux=new LinkedList<>();\r\n for (Sensor doo:sensors){\r\n if(doo instanceof Wind)\r\n aux.add((Wind)doo);\r\n }\r\n return aux;\r\n }", "@Override\n public void receivedSensor(SensorData sensor) {\n synchronized(_sensorListeners) {\n if (!_sensorListeners.containsKey(sensor.channel)) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_SENSOR.str);\n UdpConstants.writeSensorData(resp.stream, sensor);\n \n // Send to all listeners\n synchronized(_sensorListeners) {\n Map<SocketAddress, Integer> _listeners = _sensorListeners.get(sensor.channel);\n _udpServer.bcast(resp, _listeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize sensor \" + sensor.channel);\n }\n }", "private Set<SensorConf> addSensorConfigurations(Session session,\n Set<SensorConf> sensorConfs) {\n for (SensorConf conf : sensorConfs) {\n session.save(conf);\n int id = ((BigInteger) session.createSQLQuery(\"SELECT LAST_INSERT_ID()\")\n .uniqueResult()).intValue();\n conf.setIdSensorConf(id);\n }\n return sensorConfs;\n }", "public org.landxml.schema.landXML11.WatershedsDocument.Watersheds addNewWatersheds()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;\r\n target = (org.landxml.schema.landXML11.WatershedsDocument.Watersheds)get_store().add_element_user(WATERSHEDS$4);\r\n return target;\r\n }\r\n }" ]
[ "0.69899464", "0.69529945", "0.6869322", "0.6344533", "0.6098798", "0.58566076", "0.5697729", "0.5514944", "0.5501412", "0.5373231", "0.53408194", "0.53302735", "0.5304325", "0.52936697", "0.5277269", "0.5241878", "0.52103186", "0.51740277", "0.51733285", "0.5157217", "0.5058418", "0.505484", "0.50455487", "0.50450534", "0.5040886", "0.5004208", "0.49994886", "0.49556398", "0.49324957", "0.49318373", "0.49282762", "0.4924055", "0.49201968", "0.4908125", "0.49010578", "0.48849586", "0.488355", "0.4837347", "0.48277768", "0.47818944", "0.47797096", "0.47791755", "0.47732258", "0.4773196", "0.47680265", "0.47632593", "0.47624967", "0.47615093", "0.47603723", "0.4746258", "0.47418243", "0.47377032", "0.47359425", "0.47253272", "0.4680738", "0.466318", "0.46599913", "0.46598518", "0.46399206", "0.46363357", "0.46202657", "0.461845", "0.46141487", "0.4604468", "0.4603417", "0.45986935", "0.45985165", "0.45960662", "0.4587858", "0.4578433", "0.45529792", "0.45525262", "0.45495287", "0.45465836", "0.45446616", "0.4533334", "0.45316777", "0.4530432", "0.45270064", "0.45262522", "0.45157853", "0.45134726", "0.45001423", "0.4499932", "0.44991416", "0.44942284", "0.44881576", "0.4482253", "0.4474283", "0.44710726", "0.44354606", "0.4434864", "0.44280982", "0.4414087", "0.44042137", "0.43976474", "0.43868643", "0.43811116", "0.43784776", "0.43784374" ]
0.64014506
3
Created by F on 2017/10/29.
public interface ArticleService { public void save(Article article); public void update(Article article); public List<Article> queryAll(); public List<Article> queryByPage(@Param("pageNow") Integer pageNow, @Param("pageNum") Integer pageNum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dormir() {\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}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void m50366E() {\n }", "private void init() {\n\n\t}", "@Override\n public void init() {\n }", "private void kk12() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n void init() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\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\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "public void mo21877s() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public Pitonyak_09_02() {\r\n }", "public void mo12930a() {\n }", "public void mo55254a() {\n }", "private void strin() {\n\n\t}", "@Override\n public void initialize() { \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "private void init() {\n\n\n\n }", "Petunia() {\r\n\t\t}" ]
[ "0.5957865", "0.58489656", "0.58092165", "0.57269377", "0.5687755", "0.5687755", "0.56560034", "0.5647196", "0.5646699", "0.5598488", "0.5574387", "0.5565917", "0.55653715", "0.55644006", "0.552986", "0.5526341", "0.5511064", "0.5507792", "0.5507792", "0.5507792", "0.5507792", "0.5507792", "0.5499087", "0.548907", "0.54851514", "0.54765064", "0.54763395", "0.546837", "0.5467643", "0.5462015", "0.5461575", "0.5460731", "0.5448281", "0.5436349", "0.5434752", "0.54283434", "0.54211587", "0.54191816", "0.54191655", "0.5408084", "0.540002", "0.53956336", "0.53813916", "0.53813916", "0.53725445", "0.53725445", "0.53725445", "0.53715646", "0.53665847", "0.53665847", "0.53665847", "0.53665847", "0.53665847", "0.53665847", "0.53583574", "0.5357508", "0.5356559", "0.5356559", "0.5356559", "0.5356559", "0.5356559", "0.5356559", "0.5356559", "0.5354936", "0.53541833", "0.53541833", "0.53541833", "0.53535736", "0.53535736", "0.5347326", "0.5346502", "0.5346502", "0.5346502", "0.5340607", "0.53397226", "0.53297794", "0.5329751", "0.5329751", "0.53265476", "0.53244644", "0.5320185", "0.53156817", "0.5297285", "0.52902585", "0.52878994", "0.5284033", "0.5283698", "0.5278304", "0.52751523", "0.5275065", "0.5263645", "0.5255387", "0.5241049", "0.5233942", "0.5231948", "0.52295995", "0.52294016", "0.5227917", "0.52206856", "0.5213337", "0.52128965" ]
0.0
-1
if (!(message instanceof SerializableCall)) return false; SerializableCall serializableCall = (SerializableCall) message; Method method = serializableCall.getSerializableMethod().getMethod(); return ReflectionUtility.isGetter(method);
boolean isGetter(Object message) { if (!(message instanceof RemoteCall)) return false; RemoteCall serializableCall = (RemoteCall) message; Method method = serializableCall.getMethod(); return RemoteReflectionUtility.isGetter(method); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String isGetter(final Method<?> method)\r\n {\r\n \r\n String methodName = method.getName();\r\n String propertyName;\r\n \r\n if (methodName.startsWith(ClassUtils.JAVABEAN_GET_PREFIX))\r\n {\r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_GET_PREFIX.length());\r\n \r\n }\r\n else if (methodName.startsWith(ClassUtils.JAVABEAN_IS_PREFIX)\r\n && boolean.class.equals(method.getQualifiedReturnType()))\r\n {\r\n \r\n // As per section 8.3.2 (Boolean properties) of The JavaBeans API specification, 'is'\r\n // only applies to boolean (little 'b')\r\n \r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_IS_PREFIX.length());\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n \r\n if (!StringUtils.isCapitalized(propertyName))\r\n {\r\n return null;\r\n }\r\n \r\n return StringUtils.decapitalize(propertyName);\r\n }", "private boolean readHasCorrespondingIsProperty(Method paramMethod, Class paramClass) {\n/* 294 */ return false;\n/* */ }", "public interface ObjMessageIF extends Serializable {\n\n public boolean hasMsgId();\n\n public long getMsgId();\n\n void setMsgId(long msgId);\n\n boolean isResponse();\n\n void setResponse(boolean isReponse);\n\n boolean isError();\n\n void setError(boolean isError);\n\n}", "public interface SerializationRequest extends Serializable {\n String getMethodName();\n\n Object[] getArgs();\n}", "public boolean isSerialized() {\n return serialized;\n }", "boolean hasReflectionResponse();", "public boolean isGet();", "public static boolean isGetter(Method method) {\n if (!method.getName().startsWith(\"get\")) {\n return false;\n }\n if (method.getParameterTypes().length != 0) {\n return false;\n }\n if (void.class.equals(method.getReturnType())) {\n return false;\n }\n return true;\n }", "public boolean hasSer() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "boolean hasReflectionRequest();", "private boolean isHasCorrespondingReadProperty(Method paramMethod, Class paramClass) {\n/* 321 */ String str = paramMethod.getName();\n/* 322 */ boolean bool = false;\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 327 */ String str1 = str.replaceFirst(\"is\", \"get\");\n/* */ \n/* 329 */ Method method = paramClass.getMethod(str1, new Class[0]);\n/* */ \n/* 331 */ bool = isPropertyAccessorMethod(method, paramClass);\n/* */ }\n/* 333 */ catch (Exception exception) {}\n/* */ \n/* */ \n/* */ \n/* 337 */ return bool;\n/* */ }", "public boolean hasSer() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasInvocations() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean hasMethod() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isMaybeGetter() {\n checkNotPolymorphicOrUnknown();\n return getters != null;\n }", "private boolean isGetterSetterMethod(MethodBean pMethod, ClassBean pClass) {\n for (InstanceVariableBean var : pClass.getInstanceVariables()) {\n if (pMethod.getName().toLowerCase().equals(\"get\" + var.getName())) {\n return true;\n } else if (pMethod.getName().toLowerCase().equals(\"set\" + var.getName())) {\n return true;\n }\n }\n return false;\n }", "public boolean hasMethod() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public interface Condition extends Serializable {\n\n /**\n * Returns a boolean indicating whether the given message is valid.\n *\n * @param message\n * The message to validate.\n * @return\n * Indicates whether the given message is valid.\n */\n boolean isValid(JsonMessage message);\n\n}", "boolean isReflectable();", "public boolean hasInvocationKind() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "public boolean hasMethodName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasMethodName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "protected RemoteInvocation readRemoteInvocation(HttpExchange exchange, InputStream is)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 116 */ ObjectInputStream ois = createObjectInputStream(decorateInputStream(exchange, is));\n/* 117 */ return doReadRemoteInvocation(ois);\n/* */ }", "public boolean hasInvocations() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean isSerialized(MetaProperty<?> prop) {\n return prop.style().isSerializable() || (prop.style().isDerived() && includeDerived);\n }", "protected RemoteInvocation readRemoteInvocation(HttpExchange exchange, InputStream is)\r\n/* 44: */ throws IOException, ClassNotFoundException\r\n/* 45: */ {\r\n/* 46:110 */ ObjectInputStream ois = createObjectInputStream(decorateInputStream(exchange, is));\r\n/* 47:111 */ return doReadRemoteInvocation(ois);\r\n/* 48: */ }", "private boolean handleCustomSerialization(Method method, Object o, Type genericType, OutputStream stream)\n throws IOException {\n CustomSerialization customSerialization = method.getAnnotation(CustomSerialization.class);\n if ((customSerialization == null)) {\n return false;\n }\n Class<? extends BiFunction<ObjectMapper, Type, ObjectWriter>> biFunctionClass = customSerialization.value();\n ObjectWriter objectWriter = perMethodWriter.computeIfAbsent(method,\n new MethodObjectWriterFunction(biFunctionClass, genericType, originalMapper));\n objectWriter.writeValue(stream, o);\n return true;\n }", "public boolean hasMethodName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasMethodName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static boolean serializeField(String keyName, Field field, Method getter) {\n log.trace(\"serializeField - keyName: {} field: {} method: {}\", new Object[] { keyName, field, getter });\n // if \"field\" is a class or is transient, skip it\n if (\"class\".equals(keyName)) {\n return false;\n }\n if (field != null) {\n if (Modifier.isTransient(field.getModifiers())) {\n log.trace(\"Skipping {} because its transient\", keyName);\n return false;\n } else if (field.isAnnotationPresent(DontSerialize.class)) {\n log.trace(\"Skipping {} because its marked with @DontSerialize\", keyName);\n return false;\n }\n }\n if (getter != null && getter.isAnnotationPresent(DontSerialize.class)) {\n log.trace(\"Skipping {} because its marked with @DontSerialize\", keyName);\n return false;\n }\n log.trace(\"Serialize field: {}\", field);\n return true;\n }", "boolean hasInvoke();", "public interface Message extends Serializable {\n\t/**\n\t * set current message object\n\t * @param messageObject\n\t * @throws UtilsException\n\t */\n\tpublic void setObjet(Object messageObject) throws UtilsException;\n\t\n\t/**\n\t * return current's message object\n\t * @return\n\t */\n\tpublic Object getObject() ;\n\t\n\t/**\n\t * return true if this message match filter\n\t * @param filter\n\t * @return\n\t */\n\tpublic boolean matchFilter(Map<String,String> filter);\n\t\n\t/**\n\t * add a new text property to current message\n\t * @param propertyName\n\t * @param propertyValue\n\t * @throws UtilsException\n\t */\n\tpublic void setStringProperty(String propertyName,String propertyValue) throws UtilsException;\n\n\tvoid rewriteStringProperty(String propertyName,String propertyValue) throws UtilsException;\n\t\n\t/**\n\t * return value of property propertyName\n\t * @param propertyName\n\t * @return\n\t */\n\tpublic String getStringProperty(String propertyName) ;\n}", "@Test\r\n public void testGetterMethodSucess() throws Exception {\r\n Method m = GetterMethod.getGetter(Tumor.class, \"tumorId\");\r\n assertNotNull(m);\r\n assertEquals(\"getTumorId\", m.getName());\r\n }", "boolean isSetMethod();", "abstract String applicable(Method[] getters) throws InvalidObjectException;", "boolean hasGetProperty();", "public interface IPlainRequest extends Serializable\r\n{\r\n\t/**\r\n\t * Returns the id of the request\r\n\t * \r\n\t * @return the id of the request\r\n\t */\r\n\tLong getId();\r\n\r\n\t/**\r\n\t * Returns the status of the request\r\n\t * \r\n\t * @return the status of the request\r\n\t */\r\n\tRequestStatus getStatus();\r\n\r\n\t/**\r\n\t * Returns information about the sender of the request\r\n\t * \r\n\t * @return information about the sender of the request\r\n\t */\r\n\tINotificationTraveller getSender();\r\n}", "public boolean hasInvocationKind() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "public boolean hasMethodName() {\r\n\t\t\t\treturn ((bitField0_ & 0x00000001) == 0x00000001);\r\n\t\t\t}", "public interface Request extends Serializable {\n}", "public boolean hasMethodName() {\r\n\t\t\treturn ((bitField0_ & 0x00000001) == 0x00000001);\r\n\t\t}", "Boolean isMessageRead(String msgId);", "boolean isCallableAccess();", "@java.lang.Override\n public boolean hasSerializedPaymentDetails() {\n return instance.hasSerializedPaymentDetails();\n }", "public boolean hasCallerData() {\n return false;\n }", "boolean isSerializeResponse();", "public boolean getCallReturnOnMessage() {\n\t return isCallReturnOnMessage.get();\n\t}", "public interface Request extends Serializable {\n }", "public boolean hasForRead() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean is_set_msg() {\n return this.msg != null;\n }", "public boolean hasForRead() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Test\n public void testPublicValuesWithGetMethod() {\n JsonableTestClassWithGetMethod jtc = Jsonable.loadFromJson(\"{\\\"publicDouble\\\":4.765765,\\\"publicInt\\\":4765765,\\\"publicFloat\\\":4.7657,\\\"publicString\\\":\\\"String Value\\\"}\", JsonableTestClassWithGetMethod.class);\n assertEquals(4.765765, jtc.publicDouble, 0);\n assertEquals(4765765, jtc.publicInt);\n assertEquals(4.7657, jtc.publicFloat, .00001);\n assertEquals(\"String Value\", jtc.publicString);\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"publicDouble\\\":4.765765\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicFloat\\\":4.7657\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicInt\\\":4765765\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicString\\\":\\\"String Value\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateInt\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateFloat\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateDouble\\\":0\"));\n assertThat(jsonString, Matchers.not(Matchers.containsString(\"\\\"privateString\\\":\\\"\\\"\")));\n }", "public boolean isMethodCallAllowed(Object obj, String sMethod) {\r\n\t\tif (_sess.isNew())\r\n\t\t\treturn false;\r\n\t\tBoolean bAllowed = (Boolean) _sess.getAttribute(_reflectionallowedattribute);\r\n\t\tif (bAllowed != null && !bAllowed.booleanValue())\r\n\t\t\treturn false;\r\n\t\treturn super.isMethodCallAllowed(obj, sMethod);\r\n\t}", "public boolean wasRead(){\n return isRead==null || isRead;\n }", "@java.lang.Override\n public boolean hasSignature() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "boolean hasSerializedPaymentDetails();", "public boolean deserialize(POPBuffer buffer) {\n\t\tboolean result = true;\n\t\tod.deserialize(buffer);\n\t\tpopAccessPoint.deserialize(buffer);\n\t\tint ref = buffer.getInt(); //related to the addRef called in serialize()\n\t\tif (ref > 0) {\n\t\t\ttry {\n\t\t\t\tbind(popAccessPoint);\n\t\t\t} catch (POPException e) {\n\t\t\t\tresult = false;\n\t\t\t\tLogWriter.writeDebugInfo(\"Deserialize. Cannot bind to \" + popAccessPoint.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (result){\n\t\t\t\tdecRef();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }", "public boolean isCorrigeDatosRetencion()\r\n/* 623: */ {\r\n/* 624:696 */ return this.corrigeDatosRetencion;\r\n/* 625: */ }", "private boolean hasCorrespondingReadProperty(Method paramMethod, Class paramClass, String paramString) {\n/* 268 */ String str = paramMethod.getName();\n/* 269 */ Class[] arrayOfClass = paramMethod.getParameterTypes();\n/* 270 */ boolean bool = false;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 276 */ String str1 = str.replaceFirst(\"set\", paramString);\n/* 277 */ Method method = paramClass.getMethod(str1, new Class[0]);\n/* */ \n/* */ \n/* */ \n/* 281 */ bool = (isPropertyAccessorMethod(method, paramClass) && method.getReturnType() == arrayOfClass[0]) ? true : false;\n/* */ }\n/* 283 */ catch (Exception exception) {}\n/* */ \n/* */ \n/* */ \n/* 287 */ return bool;\n/* */ }", "public void testSimpleSerializableMessage() {\n String handlerId = \"u7p3$\";\n String requestId = \"i0-s@\";\n SimpleSerializableMessage message = new SimpleSerializableMessage(handlerId, requestId);\n\n assertTrue(\"Message is not serialzable.\", message instanceof Serializable);\n\n assertEquals(\"Incorrect handler id.\", handlerId, message.getHandlerId());\n assertEquals(\"Incorrect request id.\", requestId, message.getRequestId());\n\n assertEquals(\"Incorrect serializer type.\", SerializableMessageSerializer.class.getName(), message.getSerializerType());\n }", "public boolean hasGetterForField(FieldDescription field) {\n Set<String> gettersCompatibleWithFieldType = new HashSet<>();\n for (GetterDescription getter : union(this.gettersDescriptions, this.declaredGettersDescriptions)) {\n if (Objects.equals(field.getValueType(), getter.getValueType())) {\n gettersCompatibleWithFieldType.add(getter.getOriginalMember().getName());\n }\n }\n // check boolean getters\n final String capName = capitalize(field.getName());\n if (field.isPredicate()) {\n for (String prefix : PREDICATE_PREFIXES.keySet()) {\n if (gettersCompatibleWithFieldType.contains(prefix + capName)) return true;\n }\n }\n // standard getter\n return gettersCompatibleWithFieldType.contains(\"get\" + capName);\n }", "public boolean hasRead() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasMessageType();", "public interface Message extends Serializable {\r\n\t\r\n\t/**\r\n\t * An unique serial number.\r\n\t */\r\n\tstatic final long serialVersionUID = -2075547926990832957L;\r\n\r\n}", "protected RemoteInvocation readRemoteInvocation(HttpExchange exchange)\r\n/* 38: */ throws IOException, ClassNotFoundException\r\n/* 39: */ {\r\n/* 40: 91 */ return readRemoteInvocation(exchange, exchange.getRequestBody());\r\n/* 41: */ }", "@java.lang.Override\n public boolean hasSerializedPaymentDetails() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "public boolean hasRead() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "public boolean isMaybeGetterOrSetter() {\n checkNotPolymorphicOrUnknown();\n return getters != null || setters != null;\n }", "@Test\n public void testEmptyStringWithGetMethod() {\n JsonableTestClassWithGetMethod jtc = Jsonable.loadFromJson(\"{}\", JsonableTestClassWithGetMethod.class);\n assertEquals(0, jtc.publicDouble, 0);\n assertEquals(0, jtc.publicInt);\n assertEquals(0, jtc.publicFloat, 0);\n assertNull(jtc.publicString);\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"publicDouble\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicFloat\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicInt\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicString\\\":\\\"\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateInt\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateFloat\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateDouble\\\":0\"));\n assertThat(jsonString, Matchers.not(Matchers.containsString(\"\\\"privateString\\\":\\\"\\\"\")));\n }", "@Override\n public boolean onCall() {\n return true;\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "boolean hasForRead();", "public interface SerializableAssert {\n\n /**\n * Compares deserialized and reference objects.\n *\n * @param initial - initial object used for creating serialized form\n * @param deserialized - deserialized object\n */\n void assertDeserialized(Serializable initial, Serializable deserialized);\n }", "public abstract interface INetworkMessage extends Serializable\r\n{\r\n public String getMessageId();\r\n}", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "boolean hasPayload();", "private static void verifySerializable(Serializable logic) {\n \n final Class<?> logicClass = logic.getClass();\n \n for (Field f : logicClass.getDeclaredFields()) {\n final int modifiers = f.getModifiers();\n if (Modifier.isStatic(modifiers))\n continue;\n if (Modifier.isTransient(modifiers))\n continue;\n \n // We can't check for regular fields as the\n // declaration might be valid as Object, but only\n // contain serializable objects at runtime.\n if (!f.isSynthetic())\n continue;\n \n Class<?> fieldClass = f.getType();\n if (fieldClass.isPrimitive())\n continue;\n \n if (!Serializable.class.isAssignableFrom(fieldClass)) {\n throw new IllegalArgumentException(\n \"Functional logic argument \" + logic + \" contains a non-serializable field:\"\n + f.getName() + \" ,\"\n + \"ensure anonymous classes are declared in a static context.\");\n } \n }\n }", "boolean hasSer();", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }" ]
[ "0.5782584", "0.5711523", "0.56882477", "0.56220055", "0.5567959", "0.5546078", "0.5525566", "0.5515475", "0.5494062", "0.5493194", "0.54891413", "0.5472849", "0.54663116", "0.54631495", "0.54500073", "0.54403657", "0.5426834", "0.5404446", "0.5402146", "0.5394305", "0.5391295", "0.53880364", "0.53880364", "0.5374462", "0.53405064", "0.5328633", "0.53283155", "0.5320569", "0.53148603", "0.53148603", "0.53133994", "0.5288134", "0.5284751", "0.5278149", "0.5272134", "0.5253761", "0.52532816", "0.52468765", "0.5237138", "0.52222776", "0.52053773", "0.52005935", "0.5190321", "0.51832354", "0.5180109", "0.51712465", "0.51620966", "0.51594746", "0.5139675", "0.51388764", "0.5126818", "0.51232374", "0.51205975", "0.51177627", "0.5111137", "0.5100646", "0.5084609", "0.50814337", "0.5079769", "0.5074201", "0.5069388", "0.50631315", "0.5052476", "0.5046753", "0.5034833", "0.50341904", "0.5031747", "0.5026423", "0.5017006", "0.50108194", "0.50108194", "0.50108194", "0.50108194", "0.50108194", "0.50108194", "0.50108194", "0.50108194", "0.49847165", "0.4983386", "0.49793345", "0.49743453", "0.49739707", "0.4964362", "0.4962211", "0.4961527", "0.4961527", "0.49603826", "0.49603826", "0.49603826", "0.49603826", "0.49599847", "0.4957318", "0.49473375", "0.49426752", "0.49389505", "0.49389505", "0.49389505", "0.49389505", "0.49372452", "0.49372452" ]
0.851657
0
param:id,set by SimpleCursorAdapter , is the id in database
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { //TODO display phone number //use Context get ContentResolver ContentResolver resolver = getContentResolver(); //get phone number Uri to query Uri uri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI; Cursor cursor = resolver.query( uri, null,//row name "contact_id = ?",//where new String[]{Long.toString(id)},//where condition(id) null);//order by //use cursor to traverse(遍历) data if (cursor != null) { //TODO handle cursor StringBuilder sb = new StringBuilder(); while (cursor.moveToNext()) { //get index // data all storage in the row of data1 int indexPhone = cursor.getColumnIndex("data1");//data1 express phone number row if (indexPhone > -1) { //get data by index String phoneNumber = cursor.getString(indexPhone); sb.append(phoneNumber).append('\n'); } } String number = sb.toString(); cursor.close(); Toast.makeText(this, number, Toast.LENGTH_LONG).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(int id){ this.id = id; }", "private void setId(Integer id) { this.id = id; }", "public void setId(long id) {\n id_ = id;\n }", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void setId(int id){\r\n this.id = id;\r\n }", "Prueba selectByPrimaryKey(Integer id);", "public void setID(int id){\n this.id=id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "Caiwu selectByPrimaryKey(Integer id);", "public void setId( Integer id )\n {\n this.id = id ;\n }", "Notice selectByPrimaryKey(Integer id);", "public void setID(String id){\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setID(int id)\r\n {\r\n\tthis.id = id;\r\n }", "public void setId(int id) {\n\tthis.id = id;\n}", "public void setId(Long id) \n {\n this.id = id;\n }", "public void setID(String idIn) {this.id = idIn;}", "Shareholder selectByPrimaryKey(Integer id);", "public void setId(Long id){\n this.id = id;\n }", "public void setId( Long id ) {\n this.id = id ;\n }", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "Yqbd selectByPrimaryKey(Integer id);", "public void setId(int id) {\n this.id = id;\n\t}", "Dormitory selectByPrimaryKey(Integer id);", "public void setId(int id)\n {\n\tthis.id = id;\n }", "Tourst selectByPrimaryKey(String id);", "void setId(int id) {\n this.id = id;\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "PrhFree selectByPrimaryKey(Integer id);", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "public void set_id(String id)\r\n\t{\r\n\t\tthis.id = id;\r\n\t}", "public void set_id(String id)\r\n\t{\r\n\t\tthis.id = id;\r\n\t}", "public void set_id(String id)\r\n\t{\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(int id)\n {\n this.id = id;\n }", "public void setID(Integer id) {\r\n this.id = id;\r\n }", "WxNews selectByPrimaryKey(Integer id);", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "TCpySpouse selectByPrimaryKey(Integer id);", "Abum selectByPrimaryKey(String id);", "@Override\n\tpublic void setId(Integer id) {\n this.id = id;\n }", "public void setID( String id ) {\r\n this.id = id;\r\n }", "public void setID(int id) {\n this.id = id;\n }", "public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId(Long id)\r\n {\r\n this.id = id;\r\n }", "public void setId( Long id );", "HpItemParamItem selectByPrimaryKey(Long id);", "AccuseInfo selectByPrimaryKey(Integer id);", "public void setId(String id)\n {\n this.id = id;\n }", "public void setId(ID id)\n {\n this.id = id;\n }", "public void setId(long id) {\r\n this.id = id;\r\n }" ]
[ "0.71265113", "0.70902514", "0.7053568", "0.70380837", "0.70380837", "0.7016059", "0.7016059", "0.6997628", "0.6997628", "0.69802564", "0.6971918", "0.69596803", "0.691548", "0.6914555", "0.6907077", "0.68900424", "0.6884245", "0.68638873", "0.68612224", "0.68612224", "0.68612224", "0.68612224", "0.68612224", "0.68612224", "0.68612224", "0.6838058", "0.6838058", "0.68368596", "0.68366826", "0.6836571", "0.68294966", "0.68173313", "0.6796822", "0.67714435", "0.6767645", "0.67608213", "0.67577136", "0.67534804", "0.6752214", "0.6751938", "0.67456114", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744729", "0.6744597", "0.67431086", "0.67431086", "0.67431086", "0.67431086", "0.67377055", "0.6729982", "0.6728527", "0.6728527", "0.6728527", "0.67200947", "0.67200947", "0.6719126", "0.67057526", "0.66980743", "0.669538", "0.66945845", "0.66799533", "0.66786945", "0.66771907", "0.666972", "0.6651088", "0.66492444", "0.66485834", "0.6644565", "0.66412586", "0.66383183", "0.66366017", "0.66357464" ]
0.0
-1
Set up a Properties object for the JMX connector attributes
private void createAdminClient(String address, Integer port, String user, String password) throws Exception { Properties connectProps = new Properties(); connectProps.setProperty(AdminClient.CONNECTOR_TYPE, AdminClient.CONNECTOR_TYPE_SOAP); connectProps.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED, address.startsWith("https")? "true":"false"); connectProps.setProperty(AdminClient.CONNECTOR_HOST, address.replace("https://", "")); connectProps.setProperty(AdminClient.CONNECTOR_PORT, port.toString()); connectProps.setProperty(AdminClient.USERNAME, user); connectProps.setProperty(AdminClient.PASSWORD, password); try { adminClient = AdminClientFactory.createAdminClient(connectProps); } catch (ConnectorException e) { System.out.println("Exception creating admin client: " + e); throw new Exception(e); } System.out.println("Connected to DeploymentManager"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupProperties() {\n // left empty for subclass to override\n }", "public void setConnectionProperties(String hostname, String dbName, String username, String password);", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public\n YutilProperties()\n {\n super(new Properties());\n }", "private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "private void initializeProperties () throws Exception {\n String userHome = System.getProperty(\"user.home\");\n String userDir = System.getProperty(\"user.dir\");\n String hackyHome = userHome + \"/.hackystat\";\n String sensorBaseHome = hackyHome + \"/sensorbase\"; \n String propFile = userHome + \"/.hackystat/sensorbase/sensorbase.properties\";\n this.properties = new Properties();\n // Set defaults\n properties.setProperty(ADMIN_EMAIL_KEY, \"[email protected]\");\n properties.setProperty(ADMIN_PASSWORD_KEY, \"[email protected]\");\n properties.setProperty(CONTEXT_ROOT_KEY, \"sensorbase\");\n properties.setProperty(DB_DIR_KEY, sensorBaseHome + \"/db\");\n properties.setProperty(DB_IMPL_KEY, \"org.hackystat.sensorbase.db.derby.DerbyImplementation\");\n properties.setProperty(HOSTNAME_KEY, \"localhost\");\n properties.setProperty(LOGGING_LEVEL_KEY, \"INFO\");\n properties.setProperty(SMTP_HOST_KEY, \"mail.hawaii.edu\");\n properties.setProperty(PORT_KEY, \"9876\");\n properties.setProperty(XML_DIR_KEY, userDir + \"/xml\");\n properties.setProperty(TEST_INSTALL_KEY, \"false\");\n properties.setProperty(TEST_DOMAIN_KEY, \"hackystat.org\");\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propFile);\n properties.load(stream);\n System.out.println(\"Loading SensorBase properties from: \" + propFile);\n }\n catch (IOException e) {\n System.out.println(propFile + \" not found. Using default sensorbase properties.\");\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n // Now add to System properties. Since the Mailer class expects to find this stuff on the \n // System Properties, we will add everything to it. In general, however, clients should not\n // use the System Properties to get at these values, since that precludes running several\n // SensorBases in a single JVM. And just is generally bogus. \n Properties systemProperties = System.getProperties();\n systemProperties.putAll(properties);\n System.setProperties(systemProperties);\n }", "public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }", "public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\", \"password\");\n\t\tthis.setProperty(\"management.port\", \"8443\");\n\n\t\t// Festlegung der Werte für CouchDB-Verbindung\n\t\tthis.setProperty(\"couchdb.adress\", \"http://localhost\");\n\t\tthis.setProperty(\"couchdb.port\", \"5984\");\n\t\tthis.setProperty(\"couchdb.databaseName\", \"profiles\");\n\n\t\t// Festlegung der Werte für Zeitvergleiche\n\t\tthis.setProperty(\"server.minTimeDifference\", \"5\");\n\t\tthis.setProperty(\"server.monthsBeforeDeletion\", \"18\");\n\t}", "private static Properties init(){\n // Get a Properties object\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\n props.setProperty(\"mail.smtp.port\", \"465\");\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n props.put(\"mail.smtp.auth\", \"true\");\n //props.put(\"mail.debug\", \"true\");\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n\n return props;\n }", "private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}", "protected void readProperties() {\n\t\tproperties = new HashMap<>();\n\t\tproperties.put(MQTT_PROP_CLIENT_ID, id);\n\t\tproperties.put(MQTT_PROP_BROKER_URL, brokerUrl);\n\t\tproperties.put(MQTT_PROP_KEEP_ALIVE, 30);\n\t\tproperties.put(MQTT_PROP_CONNECTION_TIMEOUT, 30);\n\t\tproperties.put(MQTT_PROP_CLEAN_SESSION, true);\n\t\tproperties.put(MQTT_PROP_USERNAME, user);\n\t\tproperties.put(MQTT_PROP_PASSWORD, password.toCharArray());\n\t\tproperties.put(MQTT_PROP_MQTT_VERSION, MqttConnectOptions.MQTT_VERSION_3_1_1);\n\t}", "public ComponentProperties() throws WebserverSystemException {\r\n\r\n // setting up some default values\r\n setCreatedById(UserContext.getId());\r\n setCreatedByName(UserContext.getRealName());\r\n }", "public PSBeanProperties()\n {\n loadProperties();\n }", "private void saveProperties() {\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.driver\", driver);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.serverURL\", serverURL);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.username\", username);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.password\", password);\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.minConnections\",\n Integer.toString(minConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.maxConnections\",\n Integer.toString(maxConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.connectionTimeout\",\n Double.toString(connectionTimeout));\n }", "private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "public Properties getProperties() {\n \tProperties p = new Properties(); \n if (charSet != null) {\n \t p.put(\"charSet\",charSet);\n } \n\t\n\tif (user != null) {\n \t p.put(\"user\", user);\n }\n\t\n\tif (password != null) {\n \t p.put(\"password\", password);\n }\n\t\n\tif (url != null){\n\t p.put(\"url\",url);\t\n\t}\t\n\tp.put(\"loginTimeout\",\"\"+loginTimeout);\n \treturn p; \n }", "public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }", "public static Properties getProperties(){\n properties=new Properties();\n // properties.setProperty(\"selectBindDefaults\",selectBindDefaults);\n properties.setProperty(\"urlString\",urlString);\n properties.setProperty(\"userName\",userName);\n properties.setProperty(\"password\",password);\n properties.setProperty(\"packageName\",packageName);\n properties.setProperty(\"outputDirectory\",outputDirectory);\n properties.setProperty(\"taglibName\",TagLibName);\n properties.setProperty(\"jarFilename\",jarFilename);\n properties.setProperty(\"whereToPlaceJar\",whereToPlaceJar);\n properties.setProperty(\"tmpWorkDir\",tmpWorkDir);\n properties.setProperty(\"aitworksPackageBase\",aitworksPackageBase);\n properties.setProperty(\"databaseDriver\",databaseDriver);\n \n if(includeSource)\n properties.setProperty(\"includeSource\",\"true\");\n else\n properties.setProperty(\"includeSource\",\"false\");\n \n if(includeClasses)\n properties.setProperty(\"includeClasses\",\"true\");\n else\n properties.setProperty(\"includeClasses\",\"false\");\n \n if(generatedClasses)\n properties.setProperty(\"generatedClasses\",\"true\");\n else\n properties.setProperty(\"generatedClasses\",\"false\");\n\n return properties;\n }", "private static Properties setup() {\n Properties props = System.getProperties();\n try {\n props.load(new FileInputStream(new File(\"src/config.properties\")));\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return props;\n }", "public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }", "public\n YutilProperties(String argv[])\n {\n super(new Properties());\n setPropertiesDefaults(argv);\n }", "private void initializeProperties() throws IOException {\n String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString();\n String wattDepotHome = userHome + \"/.wattdepot\";\n String clientHome = wattDepotHome + \"/client\";\n String propFile = clientHome + \"/datainput.properties\";\n initializeProperties(propFile);\n }", "public\n YutilProperties(YutilProperties argprops)\n {\n super(new Properties());\n setPropertiesDefaults(argprops);\n }", "public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}", "public void setConfiguration(Properties props);", "private static void setPropertiesFromRuntime(RuntimeConfigManager manager) {\n try {\n if (manager != null) {\n if (manager.getDeploymentId() != null && System.getProperty(COMPSsConstants.DEPLOYMENT_ID) == null) {\n System.setProperty(COMPSsConstants.DEPLOYMENT_ID, manager.getDeploymentId());\n }\n if (manager.getMasterName() != null && System.getProperty(COMPSsConstants.MASTER_NAME) == null) {\n System.setProperty(COMPSsConstants.MASTER_NAME, manager.getMasterName());\n }\n if (manager.getMasterPort() != null && System.getProperty(COMPSsConstants.MASTER_PORT) == null) {\n System.setProperty(COMPSsConstants.MASTER_PORT, manager.getMasterPort());\n }\n if (manager.getAppName() != null && System.getProperty(COMPSsConstants.APP_NAME) == null) {\n System.setProperty(COMPSsConstants.APP_NAME, manager.getAppName());\n }\n if (manager.getTaskSummary() != null && System.getProperty(COMPSsConstants.TASK_SUMMARY) == null) {\n System.setProperty(COMPSsConstants.TASK_SUMMARY, manager.getTaskSummary());\n }\n if (manager.getCOMPSsBaseLogDir() != null && System.getProperty(COMPSsConstants.BASE_LOG_DIR) == null) {\n System.setProperty(COMPSsConstants.BASE_LOG_DIR, manager.getCOMPSsBaseLogDir());\n }\n if (manager.getSpecificLogDir() != null && System.getProperty(COMPSsConstants.SPECIFIC_LOG_DIR) == null) {\n System.setProperty(COMPSsConstants.SPECIFIC_LOG_DIR, manager.getSpecificLogDir());\n }\n if (manager.getLog4jConfiguration() != null && System.getProperty(COMPSsConstants.LOG4J) == null) {\n System.setProperty(COMPSsConstants.LOG4J, manager.getLog4jConfiguration());\n }\n if (manager.getResourcesFile() != null && System.getProperty(COMPSsConstants.RES_FILE) == null) {\n System.setProperty(COMPSsConstants.RES_FILE, manager.getResourcesFile());\n }\n if (manager.getResourcesSchema() != null && System.getProperty(COMPSsConstants.RES_SCHEMA) == null) {\n System.setProperty(COMPSsConstants.RES_SCHEMA, manager.getResourcesSchema());\n }\n if (manager.getProjectFile() != null && System.getProperty(COMPSsConstants.PROJ_FILE) == null) {\n System.setProperty(COMPSsConstants.PROJ_FILE, manager.getProjectFile());\n }\n if (manager.getProjectSchema() != null && System.getProperty(COMPSsConstants.PROJ_SCHEMA) == null) {\n System.setProperty(COMPSsConstants.PROJ_SCHEMA, manager.getProjectSchema());\n }\n\n if (manager.getScheduler() != null && System.getProperty(COMPSsConstants.SCHEDULER) == null) {\n System.setProperty(COMPSsConstants.SCHEDULER, manager.getScheduler());\n }\n if (manager.getMonitorInterval() > 0 && System.getProperty(COMPSsConstants.MONITOR) == null) {\n System.setProperty(COMPSsConstants.MONITOR, Long.toString(manager.getMonitorInterval()));\n }\n if (manager.getGATAdaptor() != null && System.getProperty(COMPSsConstants.GAT_ADAPTOR_PATH) == null) {\n System.setProperty(COMPSsConstants.GAT_ADAPTOR_PATH, manager.getGATAdaptor());\n }\n if (manager.getGATBrokerAdaptor() != null && System.getProperty(COMPSsConstants.GAT_BROKER_ADAPTOR) == null) {\n System.setProperty(COMPSsConstants.GAT_BROKER_ADAPTOR, manager.getGATBrokerAdaptor());\n }\n if (manager.getGATFileAdaptor() != null && System.getProperty(COMPSsConstants.GAT_FILE_ADAPTOR) == null) {\n System.setProperty(COMPSsConstants.GAT_FILE_ADAPTOR, manager.getGATFileAdaptor());\n }\n\n if (manager.getWorkerCP() != null && System.getProperty(COMPSsConstants.WORKER_CP) == null) {\n System.setProperty(COMPSsConstants.WORKER_CP, manager.getWorkerCP());\n }\n if (manager.getWorkerJVMOpts() != null && System.getProperty(COMPSsConstants.WORKER_JVM_OPTS) == null) {\n System.setProperty(COMPSsConstants.WORKER_JVM_OPTS, manager.getWorkerJVMOpts());\n }\n if (System.getProperty(COMPSsConstants.WORKER_CPU_AFFINITY) == null\n || System.getProperty(COMPSsConstants.WORKER_CPU_AFFINITY).isEmpty()) {\n System.setProperty(COMPSsConstants.WORKER_CPU_AFFINITY, Boolean.toString(manager.isWorkerCPUAffinityEnabled()));\n }\n if (System.getProperty(COMPSsConstants.WORKER_GPU_AFFINITY) == null\n || System.getProperty(COMPSsConstants.WORKER_GPU_AFFINITY).isEmpty()) {\n System.setProperty(COMPSsConstants.WORKER_GPU_AFFINITY, Boolean.toString(manager.isWorkerGPUAffinityEnabled()));\n }\n\n if (manager.getServiceName() != null && System.getProperty(COMPSsConstants.SERVICE_NAME) == null) {\n System.setProperty(COMPSsConstants.SERVICE_NAME, manager.getServiceName());\n }\n if (System.getProperty(COMPSsConstants.COMM_ADAPTOR) == null) {\n if (manager.getCommAdaptor() != null) {\n System.setProperty(COMPSsConstants.COMM_ADAPTOR, manager.getCommAdaptor());\n } else {\n System.setProperty(COMPSsConstants.COMM_ADAPTOR, COMPSsConstants.DEFAULT_ADAPTOR);\n }\n }\n if (System.getProperty(COMPSsConstants.CONN) == null) {\n if (manager.getConn() != null) {\n System.setProperty(COMPSsConstants.CONN, manager.getConn());\n } else {\n System.setProperty(COMPSsConstants.CONN, COMPSsConstants.DEFAULT_CONNECTOR);\n }\n }\n if (System.getProperty(COMPSsConstants.GAT_DEBUG) == null) {\n System.setProperty(COMPSsConstants.GAT_DEBUG, Boolean.toString(manager.isGATDebug()));\n }\n if (System.getProperty(COMPSsConstants.LANG) == null) {\n System.setProperty(COMPSsConstants.LANG, manager.getLang());\n }\n if (System.getProperty(COMPSsConstants.GRAPH) == null) {\n System.setProperty(COMPSsConstants.GRAPH, Boolean.toString(manager.isGraph()));\n }\n if (System.getProperty(COMPSsConstants.TRACING) == null) {\n System.setProperty(COMPSsConstants.TRACING, String.valueOf(manager.getTracing()));\n }\n if (System.getProperty(COMPSsConstants.EXTRAE_CONFIG_FILE) == null) {\n System.setProperty(COMPSsConstants.EXTRAE_CONFIG_FILE, manager.getCustomExtraeFile());\n }\n if (System.getProperty(COMPSsConstants.TASK_EXECUTION) == null\n || System.getProperty(COMPSsConstants.TASK_EXECUTION).equals(\"\")) {\n System.setProperty(COMPSsConstants.TASK_EXECUTION, COMPSsConstants.EXECUTION_INTERNAL);\n }\n\n if (manager.getContext() != null) {\n System.setProperty(COMPSsConstants.COMPSS_CONTEXT, manager.getContext());\n }\n System.setProperty(COMPSsConstants.COMPSS_TO_FILE, Boolean.toString(manager.isToFile()));\n } else {\n setDefaultProperties();\n }\n } catch (Exception e) {\n System.err.println(WARN_IT_FILE_NOT_READ);\n e.printStackTrace();\n }\n }", "void initProperties()\n\t{\n\t\tpropertyPut(LIST_SIZE, 10);\n\t\tpropertyPut(LIST_LINE, 1);\n\t\tpropertyPut(LIST_MODULE, 1); // default to module #1\n\t\tpropertyPut(COLUMN_WIDTH, 70);\n\t\tpropertyPut(UPDATE_DELAY, 25);\n\t\tpropertyPut(HALT_TIMEOUT, 7000);\n\t\tpropertyPut(BPNUM, 0);\t\t\t\t// set current breakpoint number as something bad\n\t\tpropertyPut(LAST_FRAME_DEPTH, 0);\t\t// used to determine how much context information should be displayed\n\t\tpropertyPut(CURRENT_FRAME_DEPTH, 0); // used to determine how much context information should be displayed\n\t\tpropertyPut(DISPLAY_FRAME_NUMBER, 0); // houses the current frame we are viewing\n\t\tpropertyPut(FILE_LIST_WRAP, 999999); // default 1 file name per line\n\t\tpropertyPut(NO_WAITING, 0);\n\t\tpropertyPut(INFO_STACK_SHOW_THIS, 1); // show this pointer for info stack\n\t}", "public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }", "public void init(java.util.Properties props) {\r\n }", "private HashMap createSendProperties(MessageContext context)\n {\n HashMap props = createApplicationProperties(context);\n\n if(context.containsProperty(JMSConstants.PRIORITY))\n props.put(JMSConstants.PRIORITY,\n context.getProperty(JMSConstants.PRIORITY));\n if(context.containsProperty(JMSConstants.DELIVERY_MODE))\n props.put(JMSConstants.DELIVERY_MODE,\n context.getProperty(JMSConstants.DELIVERY_MODE));\n if(context.containsProperty(JMSConstants.TIME_TO_LIVE))\n props.put(JMSConstants.TIME_TO_LIVE,\n context.getProperty(JMSConstants.TIME_TO_LIVE));\n if(context.containsProperty(JMSConstants.JMS_CORRELATION_ID))\n props.put(JMSConstants.JMS_CORRELATION_ID,\n context.getProperty(JMSConstants.JMS_CORRELATION_ID));\n return props;\n }", "private SystemPropertiesRemoteSettings() {}", "public XMLDatabaseConnector()\n\t{\n\t\t\n\t\tProperties prop = new Properties();\n\t\t\n\t\t InputStream inputStream = this.getClass().getClassLoader()\n\t .getResourceAsStream(\"config.properties\");\n\t\t \n \ttry {\n //load a properties file\n \t\tprop.load(inputStream);\n \n //get the property value and print it out\n \t\tsetURI(prop.getProperty(\"existURI\"));\n \t\tusername = prop.getProperty(\"username\");\n \t\tpassword = prop.getProperty(\"password\");\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n\t}", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "public static Properties getProperties() {\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"user\", \"root\");\n\t\tproperties.setProperty(\"password\", \"password1\");\n\t\tproperties.setProperty(\"useSSL\", \"false\");\n\n\t\treturn properties;\n\t}", "org.apache.calcite.avatica.proto.Common.ConnectionProperties getConnProps();", "public static void registerProps() throws API_Exception {\n\t\tProperties.registerProp( DOCKER_IMG_VERSION, Properties.STRING_TYPE, DOCKER_IMG_VERSION_DESC );\n\t\tProperties.registerProp( SAVE_CONTAINER_ON_EXIT, Properties.BOOLEAN_TYPE, SAVE_CONTAINER_ON_EXIT_DESC );\n\t\tProperties.registerProp( DOCKER_HUB_USER, Properties.STRING_TYPE, DOCKER_HUB_USER_DESC );\n\t}", "public abstract void connect(JMXServiceURL url, Map<String, Object> env) throws IOException;", "public ManagedHsmProperties() {\n }", "public Properties setProperties(String kafkaHosts,String flinkConsumerGroup){\n Properties properties = new Properties();\n properties.setProperty(\"bootstrap.servers\", kafkaHosts);\n properties.setProperty(\"group.id\", flinkConsumerGroup);\n return properties;\n }", "private void initProperties(URL url) {\n if(null == url) {\n LOGGER.error(\"Can Load empty path.\");\n return;\n }\n\n Properties invProperties = getProperties(url);\n if(null == invProperties || invProperties.isEmpty()) {\n LOGGER.error(\"Load invsvr.properties failed !\");\n return;\n }\n\n INVTABLEPREFIX = invProperties.getProperty(\"tableprefix\");\n EXTENSIONTABLEPOSTFIX = invProperties.getProperty(\"exttablepostfix\");\n RELATIONTABLEPOSTFIX = invProperties.getProperty(\"relationtablepostfix\");\n CHANGESETAUTHOR = invProperties.getProperty(\"changesetauthor\");\n DEFAULTSCHEMA = invProperties.getProperty(\"defaultschema\");\n BASICTABLEFIXEDCOLIMN = invProperties.getProperty(\"basictablefixedcolumn\").split(\"/\");\n EXRENSIONTABLECOLUMN = invProperties.getProperty(\"exttablecolumn\").split(\"/\");\n EXTENDINDEXS = invProperties.getProperty(\"exttableindex\").split(\"/\");\n RELATIONTABLECOLUMN = invProperties.getProperty(\"relationtablecolumn\").split(\"/\");\n RELATIONINDEXS = invProperties.getProperty(\"relationtableindex\").split(\"/\");\n\n INFOMODELPREFIX = invProperties.getProperty(\"infomodelprefix\");\n DATAMODELPREFIX = invProperties.getProperty(\"datamodelprefix\");\n RELAMODELPREFIX = invProperties.getProperty(\"relamodelprefix\");\n RELATIONTYPEVALUES = getRelationTypeValues(invProperties.getProperty(\"relationtypevalue\"));\n }", "private void setSysProperties() {\n Properties sysProperties = System.getProperties();\n\n // SMTP properties\n sysProperties.put(\"mail.smtp.auth\", \"true\");\n sysProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n sysProperties.put(\"mail.smtp.host\", smtpHost);\n sysProperties.put(\"mail.smtp.port\", \"587\");\n\n //IMAP properties\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n\n // Credentials\n sysProperties.put(\"mail.user\", username);\n sysProperties.put(\"mail.password\", password);\n\n __logger.info(\"Set system properties\");\n }", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "public ModelCleanerProperties(Properties props) {\r\n\t\tthis.mysqlUsername = getRequiredProperty(props, PROP_MYSQL_USERNAME);\r\n\t\tthis.mysqlPassword = getRequiredProperty(props, PROP_MYSQL_PASSWORD);\r\n\t\tthis.mysqlDbName = getRequiredProperty(props, PROP_MYSQL_DB_NAME);\r\n\r\n\t\tthis.webappDirectory = confirmWebappDirectory(props);\r\n\r\n\t\tthis.tomcatCheckReadyCommand = getRequiredProperty(props,\r\n\t\t\t\tPROP_TOMCAT_CHECK_READY_COMMAND);\r\n\t\tthis.tomcatStopCommand = getRequiredProperty(props,\r\n\t\t\t\tPROP_TOMCAT_STOP_COMMAND);\r\n\t\tthis.tomcatStartCommand = getRequiredProperty(props,\r\n\t\t\t\tPROP_TOMCAT_START_COMMAND);\r\n\t}", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"call afterPropertiesSet()...\");\n//\t\tadminId = env.getProperty(\"adminid\");\n//\t\tadminPw = env.getProperty(\"adminpw\");\t\t\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 void init(Properties props) ;", "public void init() {\n\t\tProperties prop = new Properties();\n\t\tInputStream propStream = this.getClass().getClassLoader().getResourceAsStream(\"db.properties\");\n\n\t\ttry {\n\t\t\tprop.load(propStream);\n\t\t\tthis.host = prop.getProperty(\"host\");\n\t\t\tthis.port = prop.getProperty(\"port\");\n\t\t\tthis.dbname = prop.getProperty(\"dbname\");\n\t\t\tthis.schema = prop.getProperty(\"schema\");\n\t\t\tthis.passwd=prop.getProperty(\"passwd\");\n\t\t\tthis.user=prop.getProperty(\"user\");\n\t\t} catch (IOException e) {\n\t\t\tString message = \"ERROR: db.properties file could not be found\";\n\t\t\tSystem.err.println(message);\n\t\t\tthrow new RuntimeException(message, e);\n\t\t}\n\t}", "private static Properties getProperties() {\n var properties = new Properties();\n properties.setProperty(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, \"127.0.0.1:9092\");\n properties.setProperty(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class.getName());\n properties.setProperty(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, GsonSerializer.class.getName());\n return properties;\n }", "public static Properties getJndiJbossProperties() {\n\t\tProperties properties = new Properties();\n\t\tproperties.put(Context.INITIAL_CONTEXT_FACTORY, \"org.jboss.naming.remote.client.InitialContextFactory\");\n\t\tproperties.put(Context.PROVIDER_URL,\"remote://127.0.0.1:4447\");\n\t\t// this user and password was added with a tool: %JBOSS_HOME%/bin/add-user.sh\n\t\tproperties.put(Context.SECURITY_PRINCIPAL, \"user\");\n\t\tproperties.put(Context.SECURITY_CREDENTIALS, \"1234abc@\");\n\t\tproperties.put(\"jboss.naming.client.ejb.context\", Boolean.TRUE);\n\t\treturn properties;\n\t}", "private mxPropertiesManager()\n\t{\n\t}", "private DataSource initializeDataSourceFromSystemProperty() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(System.getProperty(PropertyName.JDBC_DRIVER, PropertyDefaultValue.JDBC_DRIVER));\n dataSource.setUrl(System.getProperty(PropertyName.JDBC_URL, PropertyDefaultValue.JDBC_URL));\n dataSource.setUsername(System.getProperty(PropertyName.JDBC_USERNAME, PropertyDefaultValue.JDBC_USERNAME));\n dataSource.setPassword(System.getProperty(PropertyName.JDBC_PASSWORD, PropertyDefaultValue.JDBC_PASSWORD));\n\n return dataSource;\n }", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public boolean setProperties(Properties props) {\n String str;\n\n super.setProperties(props);\n str=props.getProperty(\"shun\");\n if(str != null) {\n shun=Boolean.valueOf(str).booleanValue();\n props.remove(\"shun\");\n }\n\n str=props.getProperty(\"merge_leader\");\n if(str != null) {\n merge_leader=Boolean.valueOf(str).booleanValue();\n props.remove(\"merge_leader\");\n }\n\n str=props.getProperty(\"print_local_addr\");\n if(str != null) {\n print_local_addr=Boolean.valueOf(str).booleanValue();\n props.remove(\"print_local_addr\");\n }\n\n str=props.getProperty(\"join_timeout\"); // time to wait for JOIN\n if(str != null) {\n join_timeout=Long.parseLong(str);\n props.remove(\"join_timeout\");\n }\n\n str=props.getProperty(\"join_retry_timeout\"); // time to wait between JOINs\n if(str != null) {\n join_retry_timeout=Long.parseLong(str);\n props.remove(\"join_retry_timeout\");\n }\n\n str=props.getProperty(\"leave_timeout\"); // time to wait until coord responds to LEAVE req.\n if(str != null) {\n leave_timeout=Long.parseLong(str);\n props.remove(\"leave_timeout\");\n }\n\n str=props.getProperty(\"merge_timeout\"); // time to wait for MERGE_RSPS from subgroup coordinators\n if(str != null) {\n merge_timeout=Long.parseLong(str);\n props.remove(\"merge_timeout\");\n }\n\n str=props.getProperty(\"digest_timeout\"); // time to wait for GET_DIGEST_OK from PBCAST\n if(str != null) {\n digest_timeout=Long.parseLong(str);\n props.remove(\"digest_timeout\");\n }\n\n str=props.getProperty(\"view_ack_collection_timeout\");\n if(str != null) {\n view_ack_collection_timeout=Long.parseLong(str);\n props.remove(\"view_ack_collection_timeout\");\n }\n\n str=props.getProperty(\"resume_task_timeout\");\n if(str != null) {\n resume_task_timeout=Long.parseLong(str);\n props.remove(\"resume_task_timeout\");\n }\n\n str=props.getProperty(\"disable_initial_coord\");\n if(str != null) {\n disable_initial_coord=Boolean.valueOf(str).booleanValue();\n props.remove(\"disable_initial_coord\");\n }\n\n str=props.getProperty(\"handle_concurrent_startup\");\n if(str != null) {\n handle_concurrent_startup=Boolean.valueOf(str).booleanValue();\n props.remove(\"handle_concurrent_startup\");\n }\n\n str=props.getProperty(\"num_prev_mbrs\");\n if(str != null) {\n num_prev_mbrs=Integer.parseInt(str);\n props.remove(\"num_prev_mbrs\");\n }\n\n if(props.size() > 0) {\n log.error(\"GMS.setProperties(): the following properties are not recognized: \" + props);\n\n return false;\n }\n return true;\n }", "private void connect() throws IOException\n {\n JMXServiceURL jmxUrl = new JMXServiceURL(String.format(fmtUrl, host, port));\n JMXConnector jmxc = JMXConnectorFactory.connect(jmxUrl, null);\n mbeanServerConn = jmxc.getMBeanServerConnection();\n \n try\n {\n ObjectName name = new ObjectName(ssObjName);\n ssProxy = JMX.newMBeanProxy(mbeanServerConn, name, StorageServiceMBean.class);\n } catch (MalformedObjectNameException e)\n {\n throw new RuntimeException(\n \"Invalid ObjectName? Please report this as a bug.\", e);\n }\n \n memProxy = ManagementFactory.newPlatformMXBeanProxy(mbeanServerConn, \n ManagementFactory.MEMORY_MXBEAN_NAME, MemoryMXBean.class);\n runtimeProxy = ManagementFactory.newPlatformMXBeanProxy(\n mbeanServerConn, ManagementFactory.RUNTIME_MXBEAN_NAME, RuntimeMXBean.class);\n }", "private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }", "public ModemWorker (Properties connectionProperties) {\n\t\tthis.connectionProperties = connectionProperties;\n\t}", "Properties getProperties();", "void setupPropertiesPostDeserialization() {\n initLayout();\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (prop instanceof Properties) {\n ((Properties) prop).setupPropertiesPostDeserialization();\n } else {\n prop.setI18nMessageFormater(getI18nMessageFormater());\n }\n }\n\n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "public PropertyStoreConsul(ConsulConnection connection) {\n super(connection, new JsonStringPropertyMapper());\n }", "public EJCoreFrameworkExtensionPropertyListEntry()\n {\n _propertyEntries = new HashMap<String, String>();\n }", "public static Props props(){\n return Props.create(ManagingServer.class,ManagingServer::new);\n }", "PropertiesTask setProperties( Properties properties );", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "public void setProperties(Properties properties);", "private ConfiguredDataSourceProperties createDataSourceProperties(Map configMap) {\n ConfiguredDataSourceProperties configs = new ConfiguredDataSourceProperties();\n for (final Object o : configMap.entrySet()) {\n Map.Entry entry = (Map.Entry) o;\n String name = (String) entry.getKey();\n final Object obj = entry.getValue();\n if (name.equals(\"connection-url\")) {\n configs.setURL((String) obj);\n } else if (name.equals(\"user-name\")) {\n configs.setUser((String) obj);\n } else if (name.equals(\"password\")) {\n configs.setPassword(PasswordUtil.decrypt((String) obj));\n } else if (name.equals(\"jdbc-driver-class\")) {\n configs.setJDBCDriver((String) obj);\n } else if (name.equals(\"init-pool-size\")) {\n configs.setInitialPoolSize(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_INIT_LIMIT) : obj)));\n } else if (name.equals(\"max-pool-size\")) {\n configs.setMaxPoolSize(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_MAX_LIMIT) : obj)));\n } else if (name.equals(\"idle-timeout-seconds\")) {\n configs.setConnectionExpirationTime(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_EXPIRATION_TIME) : obj)));\n } else if (name.equals(\"blocking-timeout-seconds\")) {\n configs.setConnectionTimeOut(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_ACTIVE_TIME_OUT) : obj)));\n } else if (name.equals(\"login-timeout-seconds\")) {\n configs.setLoginTimeOut(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_CLIENT_TIME_OUT) : obj)));\n } else if (name.equals(\"conn-pooled-datasource-class\")) {\n configs.setConnectionPoolDSClass((String) obj);\n } else if (name.equals(\"xa-datasource-class\")) {\n configs.setXADSClass((String) obj);\n } else if (name.equals(\"managed-conn-factory-class\")) {\n configs.setMCFClass((String) obj);\n } else if (name.equals(\"transaction-type\")) {\n configs.setTransactionType((String) obj);\n }\n }\n\n /*\n * Test hook for replacing URL\n */\n if (TEST_CONNECTION_URL != null) {\n configs.setURL(TEST_CONNECTION_URL);\n }\n return configs;\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}", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "protected Properties newTestProperties() throws IOException\n {\n Properties props = new Properties();\n storeTestConf(props); \n return props;\n }", "public traceProperties() { \n //setProperty(\"WorkingDirectory\",\"null\");\n //setProperty(\"situated\",\"false\"); \n \n }", "public void createMBeanProxies() {\n createMBeanProxy(EngineMetricMBean.class, getObjectName(EngineMetric.class));\n createMBeanProxy(StatementMetricMBean.class, getObjectName(StatementMetric.class));\n }", "public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}", "@PostConstruct\n\tprivate void init() {\n\t\ttry {\n\t\t\tif (environment.getProperty(\"marathon.uri\") != null)\n\t\t\t\tmarathonUrl = environment.getProperty(\"marathon.uri\");\n\t\t\tif (environment.getProperty(\"quay.url\") != null)\n\t\t\t\tquayHost = environment.getProperty(\"quay.url\");\n\t\t\t{\n\t\t\t\tint slashslash = quayHost.indexOf(\"//\") + 2;\n\t\t\t\tquayHost = quayHost.substring(slashslash, quayHost.indexOf('/', slashslash));\n\t\t\t\t/*\n\t\t\t\t * URL aURL = new URL(\"quayhost\"); quayhost = aURL.getHost();\n\t\t\t\t */\n\t\t\t}\n\t\t\tif (environment.getProperty(\"chronos.uri.prefix\") != null) {\n\t\t\t\tchronosUrlPrefix = environment.getProperty(\"chronos.uri.prefix\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"docker.uri.prefix\") != null) {\n\t\t\t\tdockerUri = environment.getProperty(\"docker.uri.prefix\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"websocket.retsapi.server.url\") != null) {\n\t\t\t\twebsocketServerUrl = environment.getProperty(\"websocket.retsapi.server.url\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"tomcat.url\") != null) {\n\t\t\t\ttomcatUri = environment.getProperty(\"tomcat.url\");\n\t\t\t\t// String myString = tomcatUri;\n\t\t\t\t// tomcatUri = myString.replace(\"http://\",\"\").replace(\"http://\n\t\t\t\t// www.\",\"\").replace(\"www.\",\"\");\n\t\t\t\t// int slashslash = tomcatUri.indexOf(\"//\") + 2;\n\t\t\t\t// tomcatUri = tomcatUri.substring(slashslash,\n\t\t\t\t// tomcatUri.indexOf('/', slashslash));\n\t\t\t\t// System.out.println(a);\n\t\t\t}\n\t\t\tif (environment.getProperty(\"nvidia.host\") != null) {\n\t\t\t\tnvidiaHost = environment.getProperty(\"nvidia.host\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"mesos.slave.prefix\") != null) {\n\t\t\t\tmesosSlvaePrefix = environment.getProperty(\"mesos.slave.prefix\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error while reading properties for Marathon\", e);\n\n\t\t}\n\t}", "private void createApplicationProperties()\n {\n _applicationPropertiesMap = new HashMap<String,Object>();\n _message.setApplicationProperties(new ApplicationProperties(_applicationPropertiesMap));\n }", "Map<String, String> properties();", "Map<String, String> properties();", "public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tinit();\n\t}", "@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private static void init()\n {\n long nTimeOut = 12 * 60 * 60 * 1000; // Default == 12 hrs\n \n // Loading values from properties file\n Properties props = new Properties();\n \n try\n {\n ClassLoader classLoader = Constant.class.getClassLoader();\n InputStream is = classLoader.getResourceAsStream(\"joing-server.properties\");\n props.load( is );\n is.close();\n }\n catch( Exception exc )\n {\n // If can not read the file, create a file with default values\n String sHome = System.getProperty( \"user.home\" );\n char cDir = File.separatorChar;\n \n if( sHome.charAt( sHome.length() - 1 ) != cDir )\n sHome += cDir;\n \n // Initialise properties instance with default values\n props.setProperty( sSYSTEM_NAME , \"joing.org\" );\n props.setProperty( sBASE_DIR , cDir +\"joing\" );\n props.setProperty( sEMAIL_SRV , \"localhost\" );\n props.setProperty( sSESSION_TIMEOUT, Long.toString( nTimeOut ));\n }\n \n // Read properties from created props\n sVersion = \"0.1\"; // It's better to hardcode this property than to store it in a file\n sSysName = props.getProperty( sSYSTEM_NAME );\n fBaseDir = new File( props.getProperty( sBASE_DIR ) );\n fUserDir = new File( fBaseDir, \"users\" );\n fAppDir = new File( fBaseDir, \"apps\" );\n \n if( ! fBaseDir.exists() )\n fBaseDir.mkdirs();\n \n if( ! fAppDir.exists() )\n fAppDir.mkdirs();\n \n if( ! fUserDir.exists() )\n fUserDir.mkdirs();\n \n try\n {\n emailServer = new URL( props.getProperty( sEMAIL_SRV ) );\n }\n catch( MalformedURLException exc )\n {\n emailServer = null;\n }\n \n try\n { // From minutes (in file) to milliseconds\n nSessionTimeOut = Long.parseLong( props.getProperty( sSESSION_TIMEOUT ) ) * 60 * 1000;\n }\n catch( NumberFormatException exc )\n {\n nSessionTimeOut = nTimeOut;\n }\n }", "public MaintenanceWindowsProperties() {\n }", "@Override\npublic void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {\narg2.setType(Feeds.class);\narg2.setName(\"Feeds\");\n\narg2.setNamespace(n1);\n\n}", "JobDetails properties();", "void configure(Properties properties);", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }", "@PostConstruct\n private void init() {\n Properties props = new Properties();\n props.put(\"oracle.user.name\", user);\n props.put(\"oracle.password\", pwd);\n props.put(\"oracle.service.name\", serviceName);\n //props.put(\"oracle.instance.name\", instanceName);\n props.put(\"oracle.net.tns_admin\", tnsAdmin); //eg: \"/user/home\" if ojdbc.properies file is in home \n props.put(\"security.protocol\", protocol);\n props.put(\"bootstrap.servers\", broker);\n //props.put(\"group.id\", group);\n props.put(\"enable.auto.commit\", \"true\");\n props.put(\"auto.commit.interval.ms\", \"10000\");\n props.put(\"linger.ms\", 1000);\n // Set how to serialize key/value pairs\n props.setProperty(\"key.serializer\", \"org.oracle.okafka.common.serialization.StringSerializer\");\n props.setProperty(\"value.serializer\", \"org.oracle.okafka.common.serialization.StringSerializer\");\n\n producer = new KafkaProducer<>(props);\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "@Override\n public void afterPropertiesSet() {\n }", "public Properties getProperties() {\n return this.serverProperties;\n }", "public DimensionProperties() {\n }", "Map<String, String> getConfigProperties();", "public static Props props(final MetricsFactory metricsFactory) {\n return Props.create(\n ProxyConnection.class,\n metricsFactory);\n }", "private void installProcessingBeanProperties() {\n ProcessingBeanUpdater.getInstance();\r\n }", "@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}", "public CMProps() {\n super();\n final char c = Thread.currentThread().getThreadGroup().getName().charAt(0);\n if (props[c] == null)\n props[c] = this;\n }", "private static Properties getConfiguration(\n String bootstrapInfo,\n boolean reinit\n ) throws Exception {\n Properties properties = null;\n Properties prop = new Properties();\n prop.setProperty(PROP_SECURITY_ENCRYPTOR, DEFAULT_SECURITY_ENCRYPTOR);\n prop.setProperty(Constants.SERVER_MODE, \"true\");\n \n boolean isLdap = false;\n // need to do this because URL class does not understand ldap://\n if (bootstrapInfo.startsWith(\"ldap://\")) {\n bootstrapInfo = \"http://\" + bootstrapInfo.substring(7);\n isLdap = true; \n }\n \n URL url = new URL(bootstrapInfo);\n String instanceName = null;\n String dshost = \"ds.opensso.java.net\";\n String dsport = \"389\";\n String dsbasedn = \"dc=opensso,dc=java,dc=net\";\n String dsmgr = \"cn=dsameuser,ou=DSAME Users,\" + dsbasedn;\n String dspwd = \"11111111\";\n Map mapQuery = queryStringToMap(url.getQuery());\n String pwd = (String)mapQuery.get(PWD);\n boolean proceed = true;\n \n //NOTE: need to add more protocol is we support more of them\n if (!isLdap) {\n prop.setProperty(PROP_SMS_OBJECT, PROP_SMS_OBJECT_FILE);\n prop.setProperty(PROP_SMS_FILE_DIR,\n (String)mapQuery.get(FF_BASE_DIR));\n instanceName = url.getPath();\n int idx = instanceName.lastIndexOf('/');\n if (idx != -1) {\n instanceName = instanceName.substring(idx+1);\n }\n instanceName = URLDecoder.decode(instanceName, \"UTF-8\");\n initializeSystemComponents(prop, dsbasedn, reinit, isLdap, dshost,\n dsport, dsmgr, dspwd, pwd);\n } else {\n prop.setProperty(PROP_SMS_OBJECT, PROP_SMS_OBJECT_LDAP);\n dshost = url.getHost();\n dsport = Integer.toString(url.getPort());\n dsbasedn = (String)mapQuery.get(DS_BASE_DN);\n dsmgr = (String)mapQuery.get(DS_MGR);\n dspwd = (String)mapQuery.get(DS_PWD);\n instanceName = URLDecoder.decode(url.getPath(), \"UTF-8\");\n if (instanceName.startsWith(\"/\")) {\n instanceName = instanceName.substring(1);\n }\n \n initializeSystemComponents(prop, dsbasedn, reinit, isLdap, dshost,\n dsport, dsmgr, dspwd, pwd);\n \n String embeddedDS = (String)mapQuery.get(EMBEDDED_DS);\n if ((embeddedDS != null) && (embeddedDS.length() > 0)) {\n proceed = startEmbeddedDS(embeddedDS);\n }\n }\n \n if (proceed) {\n String dsameUser = \"cn=dsameuser,ou=DSAME Users,\" + dsbasedn;\n SSOToken ssoToken = getSSOToken(dsbasedn, dsameUser,\n Crypt.decode(pwd, Crypt.getHardcodedKeyEncryptor()));\n try {\n properties = ServerConfiguration.getServerInstance(\n ssoToken, instanceName);\n if (properties != null) {\n SystemProperties.initializeProperties(\n properties, true, false);\n String serverConfigXML =\n ServerConfiguration.getServerConfigXML(\n ssoToken, instanceName);\n Crypt.reinitialize();\n loadServerConfigXML(serverConfigXML);\n AdminUtils.initialize();\n SMSAuthModule.initialize();\n SystemProperties.initializeProperties(\n properties, true, true);\n SystemProperties.setServerInstanceName(instanceName);\n \n ServiceConfigManager scm = new ServiceConfigManager(\n Constants.SVC_NAME_PLATFORM, (SSOToken)AccessController.\n doPrivileged(AdminTokenAction.getInstance()));\n scm.addListener(new ConfigurationObserver());\n }\n } catch (SMSException e) {\n //ignore. product is not configured yet.\n properties = null;\n }\n }\n return properties;\n }" ]
[ "0.6085047", "0.59773123", "0.5935141", "0.59143424", "0.5911585", "0.58523595", "0.57650334", "0.57578516", "0.57395244", "0.570337", "0.5688359", "0.56701696", "0.5633315", "0.56239134", "0.56181693", "0.560898", "0.5595138", "0.55776435", "0.55716217", "0.5525669", "0.5508716", "0.54380137", "0.5430622", "0.5417378", "0.541715", "0.54054624", "0.54011536", "0.5395955", "0.5375637", "0.53700584", "0.53519636", "0.5350515", "0.5344417", "0.5341396", "0.5328849", "0.5323081", "0.53227043", "0.5311838", "0.5306999", "0.53007466", "0.5293001", "0.529074", "0.52892387", "0.5283728", "0.52836305", "0.52776295", "0.52701926", "0.526541", "0.5264784", "0.52588683", "0.52572995", "0.52465683", "0.523585", "0.52343243", "0.52299356", "0.5228119", "0.52269864", "0.5225154", "0.52213496", "0.52147233", "0.5198318", "0.5190418", "0.5179671", "0.51741904", "0.516229", "0.515366", "0.5152499", "0.5150582", "0.5145892", "0.5145392", "0.5133788", "0.513295", "0.5127801", "0.5124812", "0.51159436", "0.5109399", "0.51086444", "0.5096406", "0.5096406", "0.50925964", "0.5076253", "0.5075613", "0.50738174", "0.506857", "0.5062792", "0.5060558", "0.5059501", "0.50576454", "0.50548774", "0.50369257", "0.50301486", "0.5024283", "0.5020741", "0.50200754", "0.5019623", "0.5019069", "0.50183415", "0.5015824", "0.5009834", "0.50090605", "0.5002824" ]
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { Log.i(TAG, "called onCreate"); super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); setContentView(R.layout.face_detect_surface_view); mModelPath = this.getIntent().getStringExtra(INTENT_MODEL_DIR_DATA); mImagePath = this.getIntent().getStringExtra(INTENT_IMAGE_DIR_DATA); Log.d(TAG,"mModelPath:"+mModelPath+",mImagePath:"+mImagePath); mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.fd_activity_surface_view); // mOpenCvCameraView.setVisibility(CameraBridgeViewBase.VISIBLE); mOpenCvCameraView.setCvCameraViewListener(this); mFaceView = (ImageView)this.findViewById(R.id.face_surface_view); mTextView = (TextView)this.findViewById(R.id.text_view); mTextView.setTextSize(50.0f); mTextView.setTextColor(Color.rgb(255, 255, 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "protected void onCreate() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "@Override\n public void onCreate() {\n initData();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onCreate() {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "@Override\n public void onCreate() {\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "public void onCreate() {\n }", "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }", "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}", "public void onCreate();", "public void onCreate();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }", "@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }", "@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}", "@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }" ]
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879", "0.74805456", "0.7475343", "0.7469598", "0.7469598", "0.7455178", "0.743656", "0.74256307", "0.7422192", "0.73934627", "0.7370002", "0.73569906", "0.73569906", "0.7353011", "0.7347353", "0.7347353", "0.7333878", "0.7311508", "0.72663945", "0.72612154", "0.7252271", "0.72419256", "0.72131634", "0.71865886", "0.718271", "0.71728176", "0.7168954", "0.7166841", "0.71481615", "0.7141478", "0.7132933", "0.71174103", "0.7097966", "0.70979583", "0.7093163", "0.7093163", "0.7085773", "0.7075851", "0.7073558", "0.70698684", "0.7049258", "0.704046", "0.70370424", "0.7013127", "0.7005552", "0.7004414", "0.7004136", "0.69996923", "0.6995201", "0.69904065", "0.6988358", "0.69834954", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69783133", "0.6977392", "0.69668365", "0.69660246", "0.69651115", "0.6962911", "0.696241", "0.6961096", "0.69608897", "0.6947069", "0.6940148", "0.69358927", "0.6933102", "0.6927288", "0.69265485", "0.69247025" ]
0.0
-1
TODO Autogenerated method stub super.handleMessage(msg); Log.i(tag, "handleMessage " + msg.what);
@Override public void handleMessage(Message msg) { switch (msg.what){ case 0: Bitmap bmp = null; bmp = Bitmap.createBitmap( mface.cols(), mface.rows(), Bitmap.Config.ARGB_8888); Utils.matToBitmap(mface, bmp); mFaceView.setImageBitmap(bmp); mFaceView.invalidate(); mFaceView.setVisibility(View.VISIBLE); break; case 1: String id = (String)(msg.obj); mTextView.setText(" 姓 名:" + id); Intent intent = new Intent(); intent.putExtra(INTENT_PATH_DATA, id+".jpg"); Log.i(TAG, "handleMessage id" + id); FrActivity.this.setResult(Activity.RESULT_OK, intent); FrActivity.this.finish(); break; default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n Log.d(TAG,\"In Handler, Msg = \"+msg.arg1);\n }", "@Override\r\n public void handleMessage(Message msg) {\n }", "protected void handleMessage(Message msg) {}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 911:\n\t\t\t\tqueryMsg();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "@Override\n public void handleMessage(Message message) {}", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\r\n\r\n\t\t\tjuhua.cancel();\r\n\r\n\t\t\tswitch (msg.what) {\r\n\t\t\tcase 0:\r\n\t\t\t\tToast.makeText(HuanKuan.this,\r\n\t\t\t\t\t\tmsg.getData().getString(\"errMsg\"), 1000).show();\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tToast.makeText(HuanKuan.this,\r\n\t\t\t\t\t\tmsg.getData().getString(\"msg\"), 1000).show();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "public void handleMessage(Message msg) {\n\t\t\tLog.e(\"DownloaderManager \", \"newFrameHandler\");\n\t\t\tMessage msgg = new Message();\n\t\t\tmsgg.what=2;\n\t\t\tmsgg.obj = msg.obj;\n\t\t\t\n\t\t\t_replyTo.sendMessage(msgg);\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n\tpublic void handleMessage(Message msg) {\n\t Message msgg=null;\n\t\tswitch (msg.what) {\n\t\tcase MSG_GET_RSS_DATA:\n\t\t\tif(null!=handler){\n//\t\t\t\tString keyword = (String)msg.obj;\n//\t\t\t\thandler.sendEmptyMessage(MSG_DIALOG_SHOW);\n//\t\t\t\tmsgg = handler.obtainMessage(MSG_UPDATE_RSS);\n//\t\t\t\tmsgg.obj = WeiDataTools.getWeiDataByGroup(null);\n//\t\t\t\thandler.sendEmptyMessage(MSG_DIALOG_DISMISS);\n//\t\t\t\thandler.sendMessage(msgg);\n\t\t\t}\n\t\t break;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tString temp;\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase MSG_SHOW_RESULT:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\t Reader.writelog(temp,tvResult);\n\t\t\t\t\t break;\n\t\t\t\tcase MSG_SHOW_INFO:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\treadContent.setText(temp);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\r\n\t\t\t\tswitch (msg.what) {\r\n\t\t\t\tcase 101:\r\n\t\t\t\t\tMyUntils.cancleProgress();\r\n\t\t\t\t\tif (data == null) {\r\n\t\t\t\t\t\tif (Statics.internetcode != -1) {\r\n\t\t\t\t\t\t\tMyUntils.myToast(MRPingguActivity.this,\r\n\t\t\t\t\t\t\t\t\tStatics.internetstate[Statics.internetcode]);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMyUntils.myToast(MRPingguActivity.this,\"此病人暂无每日评估信息\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if(data.size()>0){\r\n\t\t\t\t\t\tadapter = new RYpingguAdapter(data,\r\n\t\t\t\t\t\t\t\tMRPingguActivity.this, Integer.parseInt(itemid));\r\n\t\t\t\t\t\tlistview.setAdapter(adapter);\r\n\t\t\t\t\t} else{\r\n\t\t\t\t\t\tMyUntils.myToast(MRPingguActivity.this,\"此病人暂无每日评估信息\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}", "public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 1:\n if (!isStop) {\n updateTimeSpent();\n mHandler.sendEmptyMessageDelayed(1, 1000);\n }\n break;\n case 0:\n break;\n }\n }", "@Override\r\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\r\n\t\t\t\tswitch (msg.what) {\r\n\t\t\t\tcase 101:\r\n\t\t\t\t\tMyUntils.cancleProgress();\r\n\t\t\t\t\tif (data == null) {\r\n\t\t\t\t\t\tif (Statics.internetcode != -1) {\r\n\t\t\t\t\t\t\tMyUntils.myToast(AddjiaoyvActivity.this,\r\n\t\t\t\t\t\t\t\t\tStatics.internetstate[Statics.internetcode]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\tadapter = new YizhuAdapter(data,\r\n\t\t\t\t\t\t\t\tAddjiaoyvActivity.this);\r\n\t\t\t\t\t\tlistview.setAdapter(adapter);\r\n\t\t\t\t\t} \r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void getMessage(TranObject msg) {\n\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 1:\n\t\t\t\tToast.makeText(MydetialActivity.this, \"加载数据成功\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tToast.makeText(MydetialActivity.this, \"加载数据失败\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch(msg.what){\n\t\t\t\tcase SHOW_UPDATE_DIALOG:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"准备升级中\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tupdate();\n\t\t\t\t\tbreak;\n\t\t\t\tcase NET_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"网络异常\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tgoHome();\n\t\t\t\t\tbreak;\n\t\t\t\tcase JSON_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"JSON解析出错\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\tcase URL_ERROR:\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"URL出错\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch(msg.what)\n\t\t\t\t{\n\t\t\t\tcase HANDLER_MSG_REFRESH_UNREADCOUNT:\n\t\t\t\t{\n\t\t\t\t\tif (mTVUnreadMsgCount != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (mUnreadCount > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setText(\"\" + mUnreadCount);\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setVisibility(View.GONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase HANDLER_MSG_REFRESHT_EXIT:\n\t\t\t\t{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\r\n\t\t\tsuper.handleMessage(msg);\r\n\r\n\t\t\twantToClose = false;\r\n\r\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SUCCESS:\n\t\t\t\tmCallback.onSuccess(mTag);\n\t\t\t\tbreak;\n\t\t\tcase FAIL:\n\t\t\t\tmCallback.onFail(mTag);\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n Context context=mContext.get();\r\n try {\r\n switch (msg.what) {\r\n case -1:\r\n Toast.makeText(context, String.format(\"Exception: %s\", (String) msg.obj), Toast.LENGTH_LONG).show();\r\n break;\r\n case -2:\r\n Toast.makeText(context, (String) msg.obj, Toast.LENGTH_LONG).show();\r\n break;\r\n case -3:\r\n Toast.makeText(context, \"keine Internetverbindung\", Toast.LENGTH_LONG).show();\r\n break;\r\n }\r\n } catch(Exception ex) {\r\n Toast.makeText(context, String.format(\"Exception: %s\", ex.getMessage()), Toast.LENGTH_LONG).show();\r\n }\r\n }", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "@Override\r\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\r\n\t\t\t\tcase Constant.CONFERENCE_QUERY_SECCUESS:\r\n\t\t\t\t\tdismissProgressDialog();\r\n\t\t\t\t\tMeetingDetail.this.data = (ConferenceUpdateQueryResponseItem) msg.obj;\r\n\t\t\t\t\tiniParams();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase Constant.CONFERENCE_QUERY_FAIL:\r\n\t\t\t\t\tdismissProgressDialog();\r\n\t\t\t\t\tshowLongToast(\"错误代码:\" + ((NormalServerResponse) msg.obj).getEc());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void handleMsg(String in) {\n\n\t}", "@Override\n public void handleMessage(Message msg) {\n Bundle bundle = msg.getData();\n /**\n * Values coming from Other thread\n */\n Log.d(\"Message\",\"Message from UI thread is\"+bundle.getString(\"MSG2_FROM_UI\")+\"\");\n Log.d(\"Message\",\"Message from First thread is\"+msg.arg1+\"\");\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisExit = false;\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tString reslutInfo = (String) msg.obj;\n\t\t\tLog.d(App.LOG_TAG, reslutInfo);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 200:\n\t\t\t\tpb.setProgress(7);\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tclearSign();\n\t\t\t\tsaveRecodes();\n\t\t\t\tbreak;\n\t\t\tcase 201:\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tbreak;\n\t\t\tcase 501:\n\t\t\t\tpb.setProgress(7);\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tpb.setProgress(msg.what);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "@Override\r\n public void handleMessage(Message message) \r\n {\r\n switch (message.what) \r\n {\r\n case BlueToothService.MESSAGE_REMOTE_CODE:\r\n Utilities.popToast (\"MESSAGE_REMOTE_CODE : \" + message.obj);\r\n break;\r\n case BlueToothService.MESSAGE_REQUEST:\r\n Utilities.popToast (\"MESSAGE_REQUEST : \" + message.obj);\r\n break;\r\n default:\r\n super.handleMessage(message);\r\n }\r\n }", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case Constants.MESSAGE_STATE_CHANGE:\n\n break;\n\n }\n }", "public void handleMessage(Message msg) {\n \t\t\tif (msg.what < 0) {\n \t\t\t\tMyOrder.getFlaovorFromSetting();\n \t\t\t} else {\n \t\t\t\tMyOrder.saveFlavorToSetting();\n \t\t\t}\n \t\t}", "public abstract void msgHandler(Message msg);", "@Override\n public void handleMessage(Message msg){\n switch (msg.what) {\n case PSensor.MESSAGE_STATE_CHANGE:\n break;\n case PSensor.MESSAGE_WRITE:\n break;\n case PSensor.MESSAGE_READ:\n PSensor.sensorData.parseInput((byte[])msg.obj);//parseInput((byte[])msg.obj);\n multiGauge.handleSensor(PSensor.sensorData.boost);\n multiGaugeVolts.handleSensor(PSensor.sensorData.batVolt);\n break;\n case PSensor.MESSAGE_DEVICE_NAME:\n break;\n case PSensor.MESSAGE_TOAST:\n break;\n default:\n break;\n }\n }", "@Override\n public void handleMessage(Message msg) {\n\n Bundle bundle = msg.getData();\n if(bundle != null)\n {\n String cmd = bundle.getString(\"cmd\");\n\n writeToBle(cmd);\n }\n\n switch (msg.what) {\n case MSG_SET_TRACKING:\n setTracking(msg.arg1 == 1);\n break;\n case MSG_REGISTER_CLIENT:\n mClients.add(msg.replyTo);\n break;\n case MSG_UNREGISTER_CLIENT:\n mClients.remove(msg.replyTo);\n break;\n default:\n super.handleMessage(msg);\n }\n }", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 0x001:\n Bundle bundle1 = msg.getData();\n String result1 = bundle1.getString(\"result\");\n parseData(result1);\n break;\n default:\n break;\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tif(msg.what==0)\n\t\t\t{\n\t\t\t\tif(mDatas.size()<pangSize)\n\t\t\t\t{\n\t\t\t\t\tmlistview.hindLoadView(false);\n\t\t\t\t}\n\t\t\t\tmlistview.setAdapter(mAdapter);\n\t\t\t\tinitDate();\n\t\t\t}\n\t\t\telse if(msg.what==1)\n\t\t\t{\n\t\t\t\tToast.makeText(ChemicalsDirectoryActivity.this, \"搜索结果为空\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "@Override\r\n\t\tpublic void handleMessage(Message msg)\r\n\t\t{\n\t\t\tswitch (msg.what)\r\n\t\t\t{\r\n\t\t\t\tcase CONNECT_ERROR:\r\n\t\t\t\t\tmyAlert.ShowToast(aty_SWP_Circle.this, getString(R.string.network_error));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase RESTART_CIRCLE:\r\n\t\t\t\t\t//关闭资源,重新发起圈存过程\r\n\t\t\t\t\tm_swp.UICCClose();\r\n\t\t\t\t\tInitSWP(mHandler);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase CIRCLE_COMPELETE:\r\n\t\t\t\t\t//启用服务发送完成报告\r\n\t\t\t\t\tBindSerive(aty_SWP_Circle.this);\r\n\t\t\t\t\t//添加圈存完成界面\r\n\t\t\t\t\tAddCircleCompelete();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tswitch(msg.what){\n\t\t\t\tcase COMMENT_OK:\n\t\t\t\t\tString[] operatStatus = (String[]) msg.obj;\n\t\t\t\t\tif (\"1\".equals(operatStatus[0])) {\n\t\t\t\t\t\tinputView.setText(\"\");\n\t\t\t\t\t\tToast.makeText(mContext,\"发布成功\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\tif(post_comment_list!=null){\n\t\t\t\t\t\t\tpost_comment_list.refresh();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(mContext, \"发布失败\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase WeibaBaseHelper.DATA_ERROR:\n\t\t\t\t\tToast.makeText(mContext, \"数据加载失败\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\tbreak;\n\t\t\t\tcase WeibaBaseHelper.NET_ERROR:\n\t\t\t\t\tToast.makeText(mContext, \"网络故障\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }", "@Override\n public boolean handleMessage(Message msg) {\n switch (msg.what){\n case 1:{\n initData();\n break;\n }\n default:\n break;\n }\n return false;\n }", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case EVENT_VOICEMAIL_CHANGED:\n handleSetVMMessage((AsyncResult) msg.obj);\n break;\n default:\n // TODO: should never reach this, may want to throw exception\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase SearchBluetoothActivity.DEVICE_DISCOVERIED:\n\t\t\t\tbdApdater.notifyDataSetChanged();\n\t\t\t\tToast.makeText(SearchBluetoothActivity.this, \"发现新设备:\" + devices.get(devices.size() - 1).getName(),\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\tcase SearchBluetoothActivity.FINISH_DISCOVERIED:\n\t\t\t\tbt_searchBluetooth_searchBluetooth.setText(getResources().getString(R.string.bt_search_bluetooth_text));\n\t\t\t\tbreak;\n\t\t\tcase SearchBluetoothActivity.REFRESH_LISTVIEW:\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase 1:\n\t\t\t\t\tXmladapter adapter = new Xmladapter((List<Contact>)msg.obj, mContext);\n\t\t\t\t\tmLv.setAdapter(adapter);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 2:\n\t\t\t\t\tToast.makeText(mContext, \"网络没链接2\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase GlobalConstants.MSG_AVCOMMENT_MAIN_INIT_DATA:\n\t\t\t\t\tList<AvComment> tmpList=(List<AvComment>)msg.obj;\n\t\t\t\t\tfor (int i = 0; i < tmpList.size(); i++) {\n\t\t\t\t\t\tcommentAdapter.getList().add(tmpList.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tif (progressDialog.isShowing())\n\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t\t\tfootView.setVisibility(View.GONE);\n\t\t\t\t\tinitAvInfoComment();\n\t\t\t\t\tloadingDataFlag = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GlobalConstants.MSG_AVCOMMENT_MAIN_INIT_COVER:\n\t\t\t\t\tinitAvInfoComment();\n\t\t\t\t\tbreak;\n\t\t\t\tcase GlobalConstants.MSG_AVCOMMENT_MAIN_UPDATE_LIST:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\r\n\t\t\t// upload ok\r\n\t\t\tcase 0:\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"上传语音成功\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tbreak;\r\n\t\t\t// upload error\r\n\t\t\tcase 1:\t\t\t\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"上传语音失败\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tbreak;\r\n\t\t\t// update ok\r\n\t\t\tcase 2:\r\n\t\t\t\tif (dialog!=null) {\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"发布成功\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tTextSave();\r\n\t\t\t\tSendResultSave(true);\r\n\t\t\t\tif (bm != null) {\r\n\t\t\t\t\tbm.recycle();\r\n\t\t\t\t}\r\n\t\t\t\tSendBroadcastMessage.this.finish();\r\n\t\t\t\tbreak;\r\n\t\t\t// update error\r\n\t\t\tcase 3:\r\n\t\t\t\tif (dialog!=null) {\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t\tTextSave();\r\n\t\t\t\tSendResultSave(false);\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"发布失败\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tif (bm != null) {\r\n\t\t\t\t\tbm.recycle();\r\n\t\t\t\t}\r\n\t\t\t\tSendBroadcastMessage.this.finish();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}", "private void onMessage(JsonRpcMessage msg) {\n List<JsonRpcMessage> extraMessages = super.handleMessage(msg, true);\n notifyMessage(msg);\n for(JsonRpcMessage extraMsg: extraMessages) {\n notifyMessage(extraMsg);\n }\n }", "public boolean handleMessage(Message msg) \r\n\t{\t\r\n\t\tswitch (msg.what)\r\n\t\t{\r\n\t\tcase TCPClient.MSG_COMSTATUSCHANGE:\r\n\t\tcase MSG_UIREFRESHCOM:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tUI_RefreshConnStatus ();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_NEWSTATUSMESSAGE:\r\n\t\tcase MSG_NEWSTATUSMESSAGE:\t\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.e(TAG,\"Status Message ACCE : \" + (String)msg.obj);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTART:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tonRobotConnect (true);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTOP:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tboolean bbNotify;\r\n\t\t\t\t\tsynchronized (this)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbbNotify=_bbCanSend;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tonRobotDisconnect (bbNotify);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_SENT:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tlast_sent_msg = (String)msg.obj;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase MSG_CENTER:\r\n\t\t\t{\r\n\t\t\t\tif (isConnecting())\r\n\t\t\t\t{\r\n\t\t\t\t\tstopConnection(true);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tstartConnection();\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\treturn false;\r\n\t}", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if(msg.what == 0){\n setImageBitmap((Bitmap)msg.obj);\n }\n }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if(msg.what>0){\n /*这里要注意下,msg.what是一个整形型数字,\n * 而setText(字符),所以要再前面加上\"\"*/\n texts.setText(\"\"+msg.what);\n }\n/* else if (msg.what==0)\n {\n Intent intent = new Intent(RecruitActivity.this, GradeActivity.class);\n startActivity(intent);\n }*/\n else if (msg.what==0){\n timer.cancel();\n Bundle bundle = new Bundle();\n ktime+=hint_count*30;\n bundle.putCharSequence(\"time\",ktime+\"\");\n bundle.putCharSequence(\"grade\", grade.getText().toString());\n bundle.putCharSequence(\"player\",tPlayer);\n bundle.putCharSequence(\"level\",tLevel);\n bundle.putCharSequence(\"mode\",\"计时\");\n Intent intent = new Intent(TimingActivity.this, GradeActivity.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }\n }", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\r\n\t\t\tswitch (msg.what) {\r\n\t\t\tcase FINDPERSONINFOERROR:\r\n\t\t\t\tToast.makeText(ShowProfiles.this, \"连接超时\", 0).show();\r\n\t\t\t\tloadprobypage.setVisibility(View.GONE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase FINDPERSONINFOSUCCESS:\r\n\t\t\t\tbulidView(1, pageUtil.getHashMaps());\r\n\t\t\t\tsc.setVisibility(View.VISIBLE);\r\n\t\t\t\tloadll.setVisibility(View.GONE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase FINDPERSONPAGESUCCESS:\r\n\t\t\t\tif (zp1.getHeight() > zp2.getHeight()) {\r\n\t\t\t\t\tbulidView(2, pageUtil.getHashMaps());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbulidView(1, pageUtil.getHashMaps());\r\n\t\t\t\t}\r\n\t\t\t\tloadprobypage.setVisibility(View.GONE);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n public void handleMessage(ACLMessage message) {\n try {\n onMessage(message);\n } catch (Exception e) {\n e.getMessage();\n }\n }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n postInvalidate();\n }", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tint event = msg.arg1;\n\t\t\t\tint result = msg.arg2;\n\t\t\t\tObject data = msg.obj;\n\t\t\t\tif (result == SMSSDK.RESULT_COMPLETE) {\n\t\t\t\t\t\n\t\t\t\t\tif (event == SMSSDK.EVENT_SUBMIT_VERIFICATION_CODE) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"验证成功\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tRelativeUser.handleRegieter(handler1,edittext_phone.getText().toString(),edittext_pas.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (event == SMSSDK.EVENT_GET_VERIFICATION_CODE){\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"验证码已经发送\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tToast.makeText(getBaseContext(), \"请检查网络原因\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//TODO\n\t\t\t\t\tRelativeUser.handleRegieter(handler1,edittext_phone.getText().toString(),edittext_pas.getText().toString());\n\t\t\t\t\t/*Toast.makeText(getBaseContext(), \"请检查网络原因\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t((Throwable) data).printStackTrace();*/\n\t\t\t\t}\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase GlobalConstants.MSG_AVCOMMENT_THREAD_INIT_DATA:\n\t\t\t\t\tinitCommentData();\n\t\t\t\t\t \n\t\t\t\t\tbreak;\n\t\t\t\tcase GlobalConstants.MSG_AVCOMMENT_THREAD_INIT_COVER:\n\t\t\t\t\tinitCommentIcon((List<AvComment>) msg.obj);\n\t\t\t\t\tbreak;\n\t\t\t\tcase GlobalConstants.MSG_AVCOMMENT_THREAD_LIST_UPDATE:\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "@Override\n\tprotected void doReceiveMessage(Message msg) {\n\t\tdeliverMessage(msg);\n\t}", "public void handleMessage(Message message);", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_info.setText(getString(R.string.idcard_xm) + info.getName() + \"\\n\" + getString(R.string.idcard_xb)\n\t\t\t\t\t\t+ info.getSex() + \"\\n\" + getString(R.string.idcard_mz) + info.getNation() + \"\\n\"\n\t\t\t\t\t\t+ getString(R.string.idcard_csrq) + info.getBorn() + \"\\n\" + getString(R.string.idcard_dz)\n\t\t\t\t\t\t+ info.getAddress() + \"\\n\" + getString(R.string.idcard_sfhm) + info.getNo() + \"\\n\"\n\t\t\t\t\t\t+ getString(R.string.idcard_qzjg) + info.getApartment() + \"\\n\" + getString(R.string.idcard_yxqx)\n\t\t\t\t\t\t+ info.getPeriod() + \"\\n\" + getString(R.string.idcard_zwxx) + fringerprintData + \"\\n\" + \"读卡时间:\"\n\t\t\t\t\t\t+ (finishTime - startTime));\n\t\t\t\ttry {\n\t\t\t\t\tBitmap bmp = UsbIdCard.decodeIdCardImage(image);\n\t\t\t\t\timg_head_picture.setImageBitmap(bmp);\n\t\t\t\t} catch (TelpoException 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\tplaySound(1);\n\t\t\t\t// findloop = true;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ttv_info.setText(\"读卡失败!\");\n\t\t\t\t// playSound(5);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\t// 获取提现记录列表成功\n\t\t\tcase NetworkAsyncCommonDefines.GET_TXJL_LIST_S:\n\t\t\t\tBundle data = msg.getData();\n\t\t\t\tif (data != null) {\n\t\t\t\t\tArrayList<JYJL> jyjlList = data\n\t\t\t\t\t\t\t.getParcelableArrayList(\"list\");\n\t\t\t\t\tif (jyjlList != null && jyjlList.size() > 0) {\n\t\t\t\t\t\tmList.addAll(jyjlList);\n\t\t\t\t\t}\n\t\t\t\t\tif (mList == null || mList.size() == 0) {\n\t\t\t\t\t\thint_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\thint_tv.setVisibility(View.GONE);\n\t\t\t\t\t}\n\t\t\t\t\tLogUtil.e(\"mList:\" + mList.size());\n\t\t\t\t\tmTiXianJiLuAdapter.setData(mList);\n\t\t\t\t\tmTiXianJiLuAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\t\t\t\tpbDialog.dismiss();\n\t\t\t\tswiperefreshlayout.setRefreshing(false);\n\t\t\t\tbreak;\n\t\t\t// 获取提现记录列表失败\n\t\t\tcase NetworkAsyncCommonDefines.GET_TXJL_LIST_F:\n\t\t\t\tpbDialog.dismiss();\n\t\t\t\tswiperefreshlayout.setRefreshing(false);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\r\n\t\t\tswitch (msg.what) {\r\n\t\t\tcase MessageID.MESSAGE_CONNECT_START:\r\n\t\t\t\taddProgress();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_CONNECT_ERROR:\r\n\t\t\t\tcloseProgress();\r\n\t\t\t\tCommonUtil.ShowToast(getApplicationContext(), (String)msg.obj);\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_CONNECT_DOWNLOADOVER:\r\n\t\t\t\tif(\"text/json\".equals(msg.getData().getString(\"content_type\"))){\r\n\t\t\t\t\tJson((byte[])msg.obj);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmPageLayout.setIsDownLoadOver(true);\r\n\t\t\t\t\tBundle bundle = msg.getData();\r\n\t\t\t\t\trenderPage(msg,msg.arg1,bundle.getInt(\"mType\"));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_CONNECT_LAYOUTOVER:\r\n\t\t\t\tcloseProgress();\r\n\t\t\t\t//取出一个可用的图片下载\r\n\t\t\t\tDownImageItem downImageItem = DownImageManager.get();\r\n\t\t\t\tif(downImageItem != null){\r\n\t\t\t\t\tLogPrint.Print(\"image downloading\");\r\n\t\t\t\t\t//只有在同一页面中才发起图片下载\r\n\t\t\t\t\tif(parserEngine.getPageObject().getPageId() == downImageItem.getPageId()){\r\n\t\t\t\t\t\tString urlString = downImageItem.getUrl();\r\n\t\t\t\t\t\tLogPrint.Print(\"urlString = \"+urlString);\r\n\t\t\t\t\t\tif(urlString != null){\r\n\t\t\t\t\t\t\tnew ConnectUtil(ThirdCommentPageActivity.this, mHandler,0).connect(urlString, HttpThread.TYPE_IMAGE, downImageItem.getIndex());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//发起下一个询问\r\n\t\t\t\t\tmHandler.sendEmptyMessageDelayed(MessageID.MESSAGE_CONNECT_LAYOUTOVER, 100);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tLogPrint.Print(\"downImageItem = null\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_CLICK_TITLEBAR_LEFTBUTTON:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_CLICK_TITLEBAR_RIGHTBUTTON:\r\n\t\t\t\tisGotoClickMenu = true;\r\n\t\t\t\tgotoMenu();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_CLICK_LISTITEM_COMMENTU:\r\n\t\t\t\tString url = msg.getData().getString(\"url\");\r\n\t\t\t\tboolean isMoreItem = msg.getData().getBoolean(\"isMoreItem\");\r\n//\t\t\t\tint curIndex = msg.getData().getInt(\"curIndex\");\r\n\t\t\t\tint totalpage = msg.getData().getInt(\"totalpage\");\r\n\t\t\t\tint subjectid = msg.getData().getInt(\"subjectid\");\r\n\t\t\t\tint commentid = msg.getData().getInt(\"commentid\");\r\n\t\t\t\tif(isMoreItem){//查看更多\r\n\t\t\t\t\tif(curIndex < totalpage){\r\n\t\t\t\t\t\tif(URLUtil.IsLocalUrl()){\r\n\t\t\t\t\t\t\tif(curIndex == 1){\r\n\t\t\t\t\t\t\t\tnew ConnectUtil(ThirdCommentPageActivity.this, mHandler,0).connect(\"/sdcard/iCuiniao/cache/thirdcomment_1.xml\", HttpThread.TYPE_PAGE, 0);\r\n\t\t\t\t\t\t\t}else if(curIndex == 2){\r\n\t\t\t\t\t\t\t\tnew ConnectUtil(ThirdCommentPageActivity.this, mHandler,0).connect(\"/sdcard/iCuiniao/cache/thirdcomment_2.xml\", HttpThread.TYPE_PAGE, 0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tif(pageid == PageID.PAGEID_COMMENT_USER_FORM){\r\n\t\t\t\t\t\t\t\tnew ConnectUtil(ThirdCommentPageActivity.this, mHandler,0).connect(addUrlParam(URLUtil.URL_FORM_THIRDCOMMENT_MORE_LISTITEM, UserUtil.userid, subjectid,curIndex), HttpThread.TYPE_PAGE, 0);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tnew ConnectUtil(ThirdCommentPageActivity.this, mHandler,0).connect(addUrlParam(URLUtil.URL_THIRDCOMMENT_MORE_LISTITEM, UserUtil.userid, subjectid,curIndex), HttpThread.TYPE_PAGE, 0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{//普通列表项\r\n\t\t\t\t\tisGotoClickMenu = true;\r\n\t\t\t\t\tThirdComment_MenuClick menuClick = new ThirdComment_MenuClick(msg.getData().getInt(\"userid\"),msg.getData().getInt(\"subjectid\"),msg.getData().getInt(\"commentid\"),mHandler);\r\n\t\t\t\t\tIntent intent3 = new Intent();\r\n\t\t\t\t\tintent3.setClass(ThirdCommentPageActivity.this, AbsCuiniaoMenu.class);\r\n\t\t\t\t\tintent3.putExtra(\"title\", PageID.MYPAGE_MENU_TITLE);\r\n\t\t\t\t\tintent3.putExtra(\"items\", PageID.MYPAGE_MENU_ITEM);\r\n\t\t\t\t\tstartActivity(intent3);\r\n\t\t\t\t\tAbsCuiniaoMenu.set(menuClick);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_MENUCLICK_MYPAGE_COMMENTC_USERPAGE:\r\n\t\t\t\tif(msg.getData().getInt(\"userid\") != -1){\r\n\t\t\t\t\tisGotoClickMenu = false;\r\n\t\t\t\t\tIntent intent4 = new Intent();\r\n\t\t\t\t\tintent4.putExtra(\"url\", addUrlParam1(URLUtil.URL_USERPAGE, UserUtil.userid, msg.getData().getInt(\"userid\")));\r\n\t\t\t\t\tintent4.setClass(ThirdCommentPageActivity.this, UserPageActivityA.class);\r\n\t\t\t\t\tstartActivity(intent4);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_MENUCLICK_MYPAGE_COMMENTC_COMMENT:\r\n\t\t\t\tif(UserUtil.userid != -1&&UserUtil.userState == 1){\r\n\t\t\t\t\tbuildCommentDialog(msg.getData().getInt(\"subjectid\"),msg.getData().getInt(\"commentid\"));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tCommonUtil.ShowToast(ThirdCommentPageActivity.this, \"小C的主人才能评论哦,登录或者注册成为小C的主人吧。\");\r\n\t\t\t\t\tIntent intent11 = new Intent();\r\n\t\t\t\t\tintent11.setClass(ThirdCommentPageActivity.this, LoginAndRegeditActivity.class);\r\n\t\t\t\t\tstartActivity(intent11);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_FLUSH_PAGE:\r\n\t\t\t\tIntent intent3 = new Intent();\r\n\t\t\t\tintent3.setClass(ThirdCommentPageActivity.this, ThirdCommentPageActivity.class);\r\n\t\t\t\tintent3.putExtra(\"url\", urlString);\r\n\t\t\t\tstartActivity(intent3);\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_MAINMENU_OPEN:\r\n\t\t\t\tif(thirdcommentpage != null){\r\n\t\t\t\t\tif(thirdcommentpage.getRight() > getMainMenuAnimationPos(50)){\r\n\t\t\t\t\t\tthirdcommentpage.offsetLeftAndRight(animationIndex);\r\n\t\t\t\t\t\tthirdcommentpage.postInvalidate();\r\n\t\t\t\t\t\tmHandler.sendEmptyMessage(MessageID.MESSAGE_MAINMENU_OPEN);\r\n\t\t\t\t\t\tanimationIndex = -(CommonUtil.screen_width-getMainMenuAnimationPos(50))/5;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase MessageID.MESSAGE_MAINMENU_CLOSE:\r\n\t\t\t\tif(thirdcommentpage != null){\r\n\t\t\t\t\tif(thirdcommentpage.getLeft() < 0){\r\n\t\t\t\t\t\tthirdcommentpage.offsetLeftAndRight(animationIndex);\r\n\t\t\t\t\t\tmHandler.sendEmptyMessage(MessageID.MESSAGE_MAINMENU_CLOSE);\r\n\t\t\t\t\t\tthirdcommentpage.postInvalidate();\r\n\t\t\t\t\t\tanimationIndex = (CommonUtil.screen_width-getMainMenuAnimationPos(50))/5;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "private void handleMessage(EcologyMessage msg) {\n // Check the message type and route them accordingly.\n switch ((Integer) msg.fetchArgument()) {\n // A message destined for a room\n case ROOM_MESSAGE_ID:\n forwardRoomMessage(msg);\n break;\n\n // A message destined for ecology data sync\n case SYNC_DATA_MESSAGE_ID:\n getEcologyDataSync().onMessage(msg);\n break;\n }\n }", "@Override\n\tpublic void onMessage( String message ) {\n\t\tlog.info(\"received: \" + message);\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\r\n if(msg.what==1){\r\n Log.i(\"Test\",\"Ok\");\r\n inforList = repairValueUtils.getValue((String[])msg.obj);\r\n //mda=new repairsDataAdapter(getActivity(), valueList);\r\n adapter = new repairAdapter(getActivity(), inforList);\r\n view.setAdapter(adapter);\r\n\r\n }\r\n }", "@Override\n \tpublic void handleMessage(Message msg) {\n \t\tswitch (msg.what) {\n\t\t\tcase MSG_BASE:\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase MSG_ONESECOND:\n\t onTimeChanged();\n\t invalidate();\n\t mHandler.sendEmptyMessageDelayed(MSG_ONESECOND, ONESECOND);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n \t\tsuper.handleMessage(msg);\n \t}", "public void setMsg(String msg) {\n this.msg = msg;\n }", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what){\n case 0:\n //Bitmap b = (Bitmap) msg.obj;\n //image2Photo.setImageBitmap(bitmap);\n for (int i=0;i < nFace;i++){\n if (eyesDistance.get(i) != 0){\n setStickers(i);\n }\n }\n\n System.out.println(\"检测完毕\");\n break;\n case 1:\n //showProcessBar();\n break;\n case 2:\n //progressBar.setVisibility(View.GONE);\n //detectFaceBtn.setClickable(false);\n break;\n case SHOW_RESPONSE:\n String response = (String) msg.obj;\n Log.d(\"reponse\",response);\n // 在这里进行UI操作,将结果显示到界面上\n //text = (TextView)findViewById(R.id.text);\n //text.setText(response);\n if (ferresponse.equals(\"0\")){\n //happiness\n setFerSticker(0);\n }\n else if (ferresponse.equals(\"1\")){\n //calm\n setFerSticker(1);\n }\n else if (ferresponse.equals(\"2\")){\n //angry\n setFerSticker(2);\n }\n break;\n default:\n break;\n }\n }", "@Override\n public void handleMessage(Message msg) {\n Bundle data = msg.getData();\n if (data.containsKey(\"command\")) {\n if (data.getString(\"command\").equalsIgnoreCase(\"get_data\")) {\n mGetDataMessenger = msg.replyTo;\n getData();\n }\n }\n }", "private void handleMessageBluetooth(Message msg) {\n\t\tToaster.doToastShort(context, \"Handle Bluetooth Mesage\");\n\t}", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tif (msg.arg2 != 0) {\r\n\t\t\t\tContentResolver cr = getContentResolver();\r\n\t\t\t\tContentValues cv = new ContentValues();\r\n\t\t\t\tcv.put(NewsTableMetaData.IS_READ, 0);\r\n\t\t\t\tcr.update(Uri.withAppendedPath(NewsTableMetaData.CONTENT_URI,\r\n\t\t\t\t\t\tString.valueOf(msg.arg1)), cv, null, null);\r\n\r\n\t\t\t\tCursor c = cr.query(NewsTableMetaData.CONTENT_URI,\r\n\t\t\t\t\t\tnew String[] { NewsTableMetaData.NAME },\r\n\t\t\t\t\t\tNewsTableMetaData.IS_READ + \" = \" + 0, null, null);\r\n\t\t\t\tint count = c.getColumnCount();\r\n\t\t\t\tif (count == 1) {\r\n\t\t\t\t\tc.moveToFirst();\r\n\t\t\t\t\tshowNotification(buildUpdateCompletedNotification(\r\n\t\t\t\t\t\t\t\"您的报刊 \"\r\n\t\t\t\t\t\t\t\t\t+ c.getString(c\r\n\t\t\t\t\t\t\t\t\t\t\t.getColumnIndex(NewsTableMetaData.NAME))\r\n\t\t\t\t\t\t\t\t\t+ \" 有更新\", \"更新了\" + msg.arg2 + \"条信息源\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tshowNotification(buildUpdateCompletedNotification(\r\n\t\t\t\t\t\t\t\"您的报刊有更新\", \"更新了 \" + count + \" 份报刊\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void setMsg(String msg) { this.msg = msg; }", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tprocessBluetoothDeviceMessage(msg);\n\t\t\t}", "public void setMsg(String msg) {\n\t\tthis.msg = msg;\n\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if(msg.what==1)\n {\n savePhone();\n }\n }", "public void setMessage(String msg) {\r\n\t\tthis.message = msg;\r\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisTaken = true;\n\t\t}", "@Override\n\t\t\tpublic void handleMessage(Message mesg) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if (msg.what == 0) {\n Intent intent = new Intent(HuanYing.this, MyZhuYe.class);\n startActivity(intent);\n finish();\n }\n if (msg.what == 1) {\n int shuzi = (Integer) msg.obj;\n tv.setText(shuzi + \"\");\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tint result = msg.what;\n\t\t\tObject data = msg.obj;\n\t\t\t//注册用户成功\n\t\t\tif (result == Codes.registerSuc) {\n\t\t\t\tToast.makeText(Register.this, \"注册成功:\"+result, Toast.LENGTH_SHORT).show();\n\t\t\t\tIntent intent=new Intent(Register.this,LoginAccount.class);\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\tintent.putExtra(\"username\", edittext_phone.getText().toString());\n\t\t\t\tintent.putExtra(\"password\", edittext_pas.getText().toString());\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t} \t\t\n\t\t\t\n\t\t\tif (result == Codes.registerFail) {\n\t\t\t\tToast.makeText(Register.this, \"注册失败:\"+result, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "public void handleMessage(Message msg) {\n\t\t\tString reason = null;\n\t\t\tString data = null;\n\t\t\tString ret = null;\n\t\t\tJSONObject jsonObj = null;\n\t\t\tswitch (msg.what) {\n\t\t\tcase QUERY_READY:\n\t\t\t\tString retVal = msg.obj.toString();\n\t\t\t\tLog.v(\"0\", retVal);\n\t\t\t\ttry {\n\t\t\t\t\tjsonObj = new JSONObject(retVal);\n\t\t\t\t\tret = jsonObj.getString(\"resultcode\");\n\t\t\t\t\tLog.v(\"1\", ret);\n\t\t\t\t} catch (JSONException 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\tLog.v(\"querydata\", retVal);\n\t\t\t\t// JSONObject jsObj = new JSONObject(retVal);\n\t\t\t\t// String retResult = jsObj.getString(\"status\");\n\t\t\t\tif (\"200\".equalsIgnoreCase(ret)) {\n//\t\t\t\t\tif (Base.car_v.wzQueryDlg.licenceNo.getText()\n//\t\t\t\t\t\t\t.toString().trim().length() > 0) {\n//\t\t\t\t\t}\n\t\t\t\t\tbaseAct.queryLicence = licence_city.getText().toString() + licenceNo.getText().toString();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(jsonObj.has(\"data\")){\n\t\t\t\t\t\t\tdata = jsonObj.getString(\"data\");\n\t\t\t\t\t\t\tBase.car_v.wzListDlg = new TrafficVioListDlg(baseAct,\n\t\t\t\t\t\t\t\t\tBase.mWidth, Base.mHeight,\n\t\t\t\t\t\t\t\t\tR.layout.trafficvio_list, R.style.Theme_dialog,\n\t\t\t\t\t\t\t\t\tdata);\n\n\t\t\t\t\t\t\tBase.car_v.wzListDlg.show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tdata = \"恭喜您!没有查到违章信息。\";\n\t\t\t\t\t\t\tToast.makeText(baseAct, data, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.v(\"2\", data);\n\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tString licence = licenceNo.getText().toString();\n\t\t\t\t\tString classNo = TrafficVioQueryDlg.this.classNo.getText().toString();\n\t\t\t\t\tString engineNo = TrafficVioQueryDlg.this.engineNo.getText().toString();\n\t\t\t\t\tString registNo = TrafficVioQueryDlg.this.registNo.getText().toString();\n\t\t\t\t\tString licence_city = TrafficVioQueryDlg.this.licence_city.getText().toString();\n\n\t\t\t\t\t\n\t\t\t\t\tPreference.getInstance(baseAct.getApplicationContext())\n\t\t\t\t\t\t\t.setLicenceNo(licence);\n\t\t\t\t\tPreference.getInstance(baseAct.getApplicationContext())\n\t\t\t\t\t\t\t.setClassNo(classNo);\n\t\t\t\t\tPreference.getInstance(baseAct.getApplicationContext())\n\t\t\t\t\t\t\t.setEngineNo(engineNo);\n\t\t\t\t\tPreference.getInstance(baseAct.getApplicationContext())\n\t\t\t\t\t\t\t.setRegistNo(registNo);\n\t\t\t\t\tPreference.getInstance(baseAct.getApplicationContext())\n\t\t\t\t\t\t\t.setLicenceCity(licence_city);\n\t\t\t\t\tPreference.getInstance(baseAct.getApplicationContext())\n\t\t\t\t\t\t.setEngineNum(engineNum);\n\t\t\t\t\tPreference.getInstance(baseAct.getApplicationContext())\n\t\t\t\t\t\t.setClassNum(classNum);\n\t\t\t\t\tPreference.getInstance(baseAct.getApplicationContext())\n\t\t\t\t\t\t.setRegistNum(registNum);\t\t\t\t\t\n\t\t\t\t\t// Preference.getInstance(\n\t\t\t\t\t// baseAct.getApplicationContext())\n\t\t\t\t\t// .setClassNo1(cla);\n//\t\t\t\t\tTrafficVioQueryDlg.this.dismiss();\n\t\t\t\t\tprogress.setVisibility(View.GONE);\n//\t\t\t\t\twz_frame.setAlpha(1.0f);\n\n\t\t\t\t\tLog.v(\"bro\", \"广播解除注册---非oncancel\");\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n if(jsonObj==null){\n \tToast.makeText(baseAct, \"结果为null\", 0).show();\n }else{\n \treason = jsonObj.getString(\"reason\");\n \tToast.makeText(baseAct, reason, 0).show();\n \tinputMethodManager.hideSoftInputFromWindow(TrafficVioQueryDlg.this\n \t\t\t\t\t\t.getCurrentFocus().getWindowToken(),\n \t\t\t\t\t\tWindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n }\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tToast.makeText(baseAct, reason, Toast.LENGTH_SHORT).show();\n\t\t\t\t\tprogress.setVisibility(View.GONE);\n\t\t\t\t\twz_frame.setAlpha(1.0f);\n\t\t\t\t}\n\n\t\t\t\t// TrafficVioQueryDlg.this.dismiss();\n\t\t\t\t// baseAct.car_v.wzQueryDlg = null;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void handleMessage(android.os.Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase HandleConfig.GETROOMINFO:// 获取room详情,并且1分钟更新一次\n\t\t\t\t\tdismissProcessDialog();\n\t\t\t\t\tNetEntry entry = decodePointList(msg.getData().getString(\n\t\t\t\t\t\t\t\"data\"));\n\t\t\t\t\tif (NetEntry.CODESUCESS.equals(entry.status)) {\n\t\t\t\t\t\tupdteRoomInfo(msg.getData().getString(\"data\"));\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowToastError(entry.msg);\n\t\t\t\t\t}\n\t\t\t\t\tandroid.os.Message mg = android.os.Message.obtain();\n\t\t\t\t\tmg.what = HandleConfig.REFRESHROOMINFO;\n\t\t\t\t\tmHandler.sendMessageDelayed(mg, 10000);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase HandleConfig.REFRESHROOMINFO:\n\t\t\t\t\tif(isFinishing()==false){\n\t\t\t\t\t\tgetroominfo(roomid);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase HandleConfig.QUERYROOMUSERS:// 更新room user list\n\n\t\t\t\t\tNetEntry entry1 = decodePointList(msg.getData().getString(\n\t\t\t\t\t\t\t\"data\"));\n\n\t\t\t\t\tif (NetEntry.CODESUCESS.equals(entry1.status)) {\n\t\t\t\t\t\tJSONObject jsonobj;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tjsonobj = new JSONObject(msg.getData().getString(\n\t\t\t\t\t\t\t\t\t\"data\"));\n\n\t\t\t\t\t\t\tJSONObject tmp = jsonobj.getJSONObject(\"data\");\n\t\t\t\t\t\t\tJSONArray tmpList = tmp.getJSONArray(\"list\");\n\t\t\t\t\t\t\tperson.clear();\n\t\t\t\t\t\t\tfor (int i = 0; i < tmpList.length(); i++) {\n\t\t\t\t\t\t\t\tJSONObject t = tmpList.getJSONObject(i);\n\t\t\t\t\t\t\t\tString phone = t.getString(\"phone\");\n\t\t\t\t\t\t\t\tString id = t.getString(\"id\");\n\t\t\t\t\t\t\t\tString name = t.getString(\"name\");\n\t\t\t\t\t\t\t\tString headpic = t.getString(\"headpic\");\n\t\t\t\t\t\t\t\tif (phone.equals(owner.phone)) {// 房主\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tMessagePerson p = new MessagePerson();\n\t\t\t\t\t\t\t\tp.id = id;\n\t\t\t\t\t\t\t\tp.name=name;\n\t\t\t\t\t\t\t\tp.pic = headpic;\n\t\t\t\t\t\t\t\tp.phone = phone;\n\t\t\t\t\t\t\t\tperson.add(p);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tbigWindow.UpdateRoomPerson(person);\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowToastError(entry1.msg);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tshowToastError(\"聊天室链接失败\");\n\t\t\t\tcase 4:\n\t\t\t\t\tdismissProcessDialog();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch(msg.what){\n\t\t\tcase 0:\n\t\t\t\t//打开常用面板广播\n\t\t\t\tIntent openIntent = new Intent(\"android.touch.action.TOUCH_PANEL_OPEN\");\n\t\t\t\topenIntent.putExtra(\"PanelNum\", UiManager.PANEL_TYPE_2);\n\t\t\t\tsendBroadcast(openIntent);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\r\n public void handleMessage(Message msg) {\n Log.d(\"Guardado en el servidor\",\"\"+msg.obj.toString());\r\n if(msg.obj.toString().length() > 1){\r\n\r\n Log.d(\"VALOR DEL SERVER\",\"\"+(String)msg.obj);\r\n\r\n }else{\r\n\r\n }\r\n\r\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tString [] str=(String [])msg.obj;\n\t\t\tfor(int i=0;i<6;i++)\n\t\t\t{System.out.println(str[i]);}\n\t\t\t if(mDialog.isShowing()==true){\n\t\t\t\t mDialog.dismiss(); \n\t\t\t }\n\t\t\t if(str[0].toString().equals(\"anyType{}\")==true){\n//\t\t\t \tSystem.out.println(str[0]);\n\t\t\t\t title.setText(str[1]);\n\t\t\t\t time.setText(str[2]);\n\t\t\t\t type.setText(str[3]);\n\t\t\t\t content.setText(str[4]);\n\t\t\t\t name.setText(str[5]);\n//\t\t\t Toast.makeText(getApplicationContext(),\"发布成功\",Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t\t else{\n\t\t\t \tToast.makeText(getApplicationContext(),str[0],Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\n\t\t\tcase ViewUtils.NET_ERROR:\n\t\t\t\tShow.toast(getApplicationContext(), \"网络错误,请检查网络是否畅通!\");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsuper.handleMessage(msg);\n\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch(msg.what){\n\t\t\tcase 0x01:\n\t\t\t\tpagerAdapter = new MyPagerAdpter(picList);\n\t\t\t\tpicPager.setAdapter(pagerAdapter);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "public void messageReceived(Message message) {\n\r\n\t\tLog.info(message.getMsg());\r\n\t}", "public void handleMessageFromClient(Object msg) {\n\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase UPDATAVIEW:\n\t\t\t\tif (sModel!=null) {\n\t\t\t\t\ttv_result_songname.setText(sModel.getSongName());\n\t\t\t\t\ttv_result_artistname.setText(sModel.getArtistName());\n\t\t\t\t\ttv_result_albumName.setText(sModel.getAlbumName());\n\t\t\t\t\ttv_result_songtime.setText((sModel.getTime()/60+\":\"+(sModel.getTime()%60)));\n\t\t\t\t\ttv_result_songsize.setText(Formatter.formatFileSize(Musicdownloadactivity.this, sModel.getSize()));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase STARTDOWNLOAD:\n\t\t\t\tif (sModel!=null) {\n\t\t\t\t\tshownotification();\n\t\t\t\t\tdownload();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase UPDATAPROCESS:\n\t\t\t\t\tnotification.contentView.setTextViewText(R.id.content_view_text1, \"正在下载: \"+sModel.getSongName()+\"_\"+sModel.getArtistName()+\"\"+(complete*100)/contentLength + \"%\");\n\t\t\t\t\tnotification.contentView.setProgressBar(R.id.content_view_progress, contentLength, complete, false);\n\t\t\t\t\t manger.notify(1, notification);\n\t\t\t\t\t handler.removeMessages(UPDATAPROCESS);\n\t\t\t\t\t handler.sendEmptyMessageDelayed(UPDATAPROCESS, 500);\n\t\t\t\t\t break;\n\t\t\t\tcase STOP:\n\t\t\t\t\tmanger.cancel(1); \n\t\t\t\t\thandler.removeMessages(STOP);\n\t\t\t\t\thandler.removeMessages(UPDATAPROCESS);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\r\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\r\n\t\t\t\tswitch (msg.what) {\r\n\t\t\t\tcase 0: {\r\n\t\t\t\t\t// 实现渐变\r\n\t\t\t\t\timageview.setAlpha(alpha);\r\n\t\t\t\t\timageview.invalidate();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 1: {\r\n\t\t\t\t\tPublicMethod.myOutput(\"-----new image\");\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * imageview.setImageResource(R.drawable.cp1); alpha = 255;\r\n\t\t\t\t\t * imageview.setAlpha(alpha); imageview.invalidate();\r\n\t\t\t\t\t */\r\n\t\t\t\t\t// setContentView(new MyAnimateView(HomePage.this));\r\n\t\t\t\t\tsetContentView(iAnimateView);\r\n\t\t\t\t\tiAnimateView.invalidate();\r\n\t\t\t\t\tiShowStatus = 3;\r\n\r\n\t\t\t\t\tcheckWirelessNetwork();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 2: {\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t showalert();\r\n\t\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\t\te.printStackTrace();// 显示提示框(没有网络,用户是否继续 ) 2010/7/2 陈晨\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Intent in = new Intent(HomePage.this,\r\n\t\t\t\t\t// RuyicaiAndroid.class);\r\n\t\t\t\t\t// startActivity(in);\r\n\t\t\t\t\t// HomePage.this.finish();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 3: {\r\n\t\t\t\t\tPublicMethod.myOutput(\"----comeback\");\r\n\t\t\t\t\t// setContentView(iAnimateView);\r\n\t\t\t\t\tiAnimateView.invalidate();\r\n\t\t\t\t\tMessage mg = Message.obtain();\r\n\t\t\t\t\tmg.what = 5;\r\n\t\t\t\t\tmHandler.sendMessage(mg);\r\n\t\t\t\t\t// saveInformation();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 4: {\r\n\t\t\t\t\tIntent in = new Intent(HomePage.this, RuyicaiAndroid.class);\r\n\t\t\t\t\tstartActivity(in);\r\n\t\t\t\t\tHomePage.this.finish();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 5: {\r\n\t\t\t\t\tsaveInformation();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "abstract public Object handleMessage(Object message) throws Exception;", "@Override\n public void handleMessage(Message message) {\n stopProgressDialog();\n swipeRefreshLayout.setRefreshing(false);\n switch (message.what) {\n case Flinnt.SUCCESS:\n try {\n //Helper.showToast(\"Success\", Toast.LENGTH_SHORT);\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"SUCCESS_RESPONSE : \" + message.obj.toString());\n if (message.obj instanceof WishResponse) {\n updateCourseList((WishResponse) message.obj);\n }\n } catch (Exception e) {\n LogWriter.err(e);\n }\n\n break;\n case Flinnt.FAILURE:\n try {\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"FAILURE_RESPONSE : \" + message.obj.toString());\n } catch (Exception e) {\n LogWriter.err(e);\n }\n\n break;\n default:\n super.handleMessage(message);\n }\n }", "public void handleMessage(Message msg) {\n // if the message 'what' matches the constant MESSAGE_SENT, it\n // means the callback\n // to onNdefPushComplete happened which means the NFC was a\n // success\n if (msg.what == MESSAGE_SENT) {\n Toast.makeText(getApplicationContext(), \"Tag written successfully!!\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n\t\tpublic void onDirectMessage(DirectMessage arg0) {\n\t\t\t\n\t\t}", "public void onMessage(Message arg0) {\n\r\n\t}", "@Override\n\t \t\tpublic void handleMessage(Message msg) {\n\t \t\treceive();\n\t \t\t\t// myTextView.setText(String.valueOf(cnt));\n\t \t\t}" ]
[ "0.88758236", "0.83601844", "0.7772958", "0.76628274", "0.7614718", "0.75984544", "0.7594098", "0.75870323", "0.75746274", "0.7476359", "0.7429814", "0.7389917", "0.7379726", "0.73637646", "0.7338346", "0.7338254", "0.7308269", "0.7306681", "0.73055047", "0.7298462", "0.7275582", "0.72648835", "0.7228127", "0.72192246", "0.7218936", "0.72177523", "0.7208375", "0.7200841", "0.71971804", "0.71621454", "0.71534973", "0.71426725", "0.71272826", "0.7122726", "0.7096361", "0.7095134", "0.7073102", "0.70660037", "0.7050737", "0.70391876", "0.70365447", "0.7034967", "0.70278305", "0.7005878", "0.7003109", "0.6997895", "0.6990862", "0.6985236", "0.698043", "0.6966545", "0.6964266", "0.6936533", "0.6921709", "0.6916929", "0.69156903", "0.69068646", "0.69037706", "0.6897061", "0.6877639", "0.6872091", "0.6862993", "0.6858419", "0.6854479", "0.68490076", "0.6848563", "0.6842123", "0.68277466", "0.6824761", "0.6824584", "0.6823025", "0.6806274", "0.6788625", "0.6778708", "0.6775622", "0.67751634", "0.6769076", "0.67675567", "0.6763147", "0.676171", "0.6758115", "0.67323875", "0.6731839", "0.67225015", "0.671774", "0.67091274", "0.66959023", "0.66944885", "0.6669471", "0.6667607", "0.6664765", "0.6657014", "0.66490203", "0.6634869", "0.66319346", "0.66292804", "0.66266847", "0.6622716", "0.6620588", "0.6617349", "0.6616556" ]
0.7203705
27
service method to modify source
public boolean modifySource(RouteDTO route) throws FRSException { return dao.modifySource(route); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSource (String source);", "public void setSource(String source);", "public void updateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to code generation\n\t\tmode = GENERATE;\n\t\t// Traverse the source and calls back when key source elements are\n\t\t// missing\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Add the source files that are missing\n\t\tArrayList<TagNode> tags = tree.getUnvisited();\n\t\tcreateSourceFiles(tags);\n\t}", "public abstract void setContent(Source source) throws SOAPException;", "public void setSource(String source) {\n _source = source;\n }", "public void setSource(String source) {\r\n this.source = source;\r\n }", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }", "public void setContent(Source source) {\n this.content = source;\n }", "public void setSource(String Source) {\r\n this.Source = Source;\r\n }", "private void updateSourceView() {\n StringWriter sw = new StringWriter(200);\n try {\n new BibEntryWriter(new LatexFieldFormatter(Globals.prefs.getLatexFieldFormatterPreferences()),\n false).write(entry, sw, frame.getCurrentBasePanel().getBibDatabaseContext().getMode());\n sourcePreview.setText(sw.getBuffer().toString());\n } catch (IOException ex) {\n LOGGER.error(\"Error in entry\" + \": \" + ex.getMessage(), ex);\n }\n\n fieldList.clearSelection();\n }", "Source updateDatasourceOAI(Source ds) throws RepoxException;", "public void setSource(Object o) {\n\t\tsource = o;\n\t}", "DatasetFileService getSource();", "private CanonizeSource() {}", "Source updateDatasourceZ3950IdFile(Source ds) throws RepoxException;", "public ChangeSupport(Object source) {\n this.source = source;\n }", "public abstract Source getSource();", "public abstract Object getSource();", "private void createSource(String sourceName, String content) {\n\t\t\n\t}", "public void addSourceChanger(Component component, Class sourceClass)\n {\n component.addAttribute(GlobalAttributes.Value, sourceClass.getCanonicalName().replace(\".\", \"/\"));\n component.setID(sourceClass.getSimpleName() + \"_source\");\n getSourceChanges().put(component, sourceClass);\n }", "Source updateDatasourceHttp(Source ds) throws RepoxException;", "public Object getSource() {return source;}", "private void refreshSource() {\n if (source != null && featureCollection != null) {\n source.setGeoJson( featureCollection );\n }\n }", "public abstract String getSource();", "public static void set_SourceContent(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSourceContentCmd, v);\n UmlCom.check();\n \n _src_content = v;\n \n }", "public void setSource(Byte source) {\r\n this.source = source;\r\n }", "@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}", "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "public abstract T getSource();", "public interface Source {\n /** NewTextSource creates a new Source from the input text string. */\n static Source newTextSource(String text) {\n return newStringSource(text, \"<input>\");\n }\n\n /** NewStringSource creates a new Source from the given contents and description. */\n static Source newStringSource(String contents, String description) {\n // Compute line offsets up front as they are referred to frequently.\n IntArrayList offsets = new IntArrayList();\n for (int i = 0; i <= contents.length(); ) {\n if (i > 0) {\n // don't add '0' for the first line, it's implicit\n offsets.add(i);\n }\n int nl = contents.indexOf('\\n', i);\n if (nl == -1) {\n offsets.add(contents.length() + 1);\n break;\n } else {\n i = nl + 1;\n }\n }\n\n return new SourceImpl(contents, description, offsets);\n }\n\n /** NewInfoSource creates a new Source from a SourceInfo. */\n static Source newInfoSource(SourceInfo info) {\n return new SourceImpl(\n \"\", info.getLocation(), info.getLineOffsetsList(), info.getPositionsMap());\n }\n\n /**\n * Content returns the source content represented as a string. Examples contents are the single\n * file contents, textbox field, or url parameter.\n */\n String content();\n\n /**\n * Description gives a brief description of the source. Example descriptions are a file name or ui\n * element.\n */\n String description();\n\n /**\n * LineOffsets gives the character offsets at which lines occur. The zero-th entry should refer to\n * the break between the first and second line, or EOF if there is only one line of source.\n */\n List<Integer> lineOffsets();\n\n /**\n * LocationOffset translates a Location to an offset. Given the line and column of the Location\n * returns the Location's character offset in the Source, and a bool indicating whether the\n * Location was found.\n */\n int locationOffset(Location location);\n\n /**\n * OffsetLocation translates a character offset to a Location, or false if the conversion was not\n * feasible.\n */\n Location offsetLocation(int offset);\n\n /**\n * NewLocation takes an input line and column and produces a Location. The default behavior is to\n * treat the line and column as absolute, but concrete derivations may use this method to convert\n * a relative line and column position into an absolute location.\n */\n Location newLocation(int line, int col);\n\n /** Snippet returns a line of content and whether the line was found. */\n String snippet(int line);\n}", "public void setSourceChanges(Map<Component, Class> sourceChanges)\n {\n this.sourceChanges = sourceChanges;\n }", "SourceControl refresh(Context context);", "void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;", "void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;", "@PUT\n @Path(\"/source/{id}\")\n @Consumes(\"application/json;charset=UTF-8\")\n @Produces(\"application/json;charset=UTF-8\")\n @RolesAllowed(Roles.ADMIN)\n @GZIP\n @NoCache\n public SourceVo updateSource(\n @PathParam(\"id\") Integer id,\n SourceVo source) throws Exception {\n\n if (!Objects.equals(id, source.getId())) {\n throw new WebApplicationException(400);\n }\n\n log.info(\"Updating source \" + source);\n return sourceService.updateSource(new Source(source))\n .toVo(DataFilter.get());\n }", "public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }", "public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }", "@Override\n public String getSource()\n {\n return null;\n }", "public void setCurrentSource(Object source) {\r\n if (source instanceof IModelNode) {\r\n newSource = (IModelNode) source;\r\n newTarget = null;\r\n }\r\n }", "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "public void \n setSourceDescription( SourceDescription[] sourceDesc);", "@Override\n\tpublic UserActionDTO updateSource(UserActionEntity entity, UserActionDTO dto) {\n\t\treturn null;\n\t}", "public void updateNodeDataChanges(Object src) {\n\t}", "@Override\n public void getMosSource(String testTest, ArrayList<String> source) {\n\n }", "Source updateDatasourceFolder(Source ds) throws RepoxException;", "Source updateDatasourceFtp(Source ds) throws RepoxException;", "java.lang.String getSource();", "java.lang.String getSource();", "public interface Source {\r\n\t\t\t\t\t\r\n\t/** A source needs to have funds or credit available so it can have money pulled from it for\r\n\t * whatever purpose the funds are needed. This is the predict loss implementation for use\r\n\t * with the prediction algorithm. It processes the loss for this source by updating its\r\n\t * prediction rows appropriately (i.e. removing or adding to the sources funds or credit). This\r\n\t * method should also be capable of handling an add back to the source.\r\n\t * \r\n\t * @param destinationDescription - a string description of what the funds are being used for. Used for the transaction history\r\n\t * @param lossAmount - the amount of funds needed\r\n\t * @param addBack - true if the destination is a budget item and that budget item has funds to add back to the source\r\n\t * @param addBackAmount - the amount to add back to the source (if applicable)\r\n\t * @param dayIndex - the date as an index or offset from prediction start date\r\n\t * \r\n\t */\r\n\tpublic void predictLossForDayIndex(String destinationDescription, double lossAmount, boolean addBack, double addBackAmount, int dayIndex);\r\n\t\r\n\t/**\r\n\t * A source should be able to tells us a unique description of itself (its name).\r\n\t * @return this source's unique name\r\n\t */\r\n\tpublic String name();\r\n}", "@com.facebook.react.uimanager.annotations.ReactProp(name = \"src\")\n public void setSource(@javax.annotation.Nullable java.lang.String r4) {\n /*\n r3 = this;\n r0 = 0;\n if (r4 == 0) goto L_0x0017;\n L_0x0003:\n r1 = android.net.Uri.parse(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = r1.getScheme();\t Catch:{ Exception -> 0x0025 }\n if (r2 != 0) goto L_0x0023;\n L_0x000d:\n if (r0 != 0) goto L_0x0017;\n L_0x000f:\n r0 = r3.E();\n r0 = m12032a(r0, r4);\n L_0x0017:\n r1 = r3.f11557g;\n if (r0 == r1) goto L_0x001e;\n L_0x001b:\n r3.x();\n L_0x001e:\n r3.f11557g = r0;\n return;\n L_0x0021:\n r1 = move-exception;\n r1 = r0;\n L_0x0023:\n r0 = r1;\n goto L_0x000d;\n L_0x0025:\n r0 = move-exception;\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode.setSource(java.lang.String):void\");\n }", "SourceControl refresh();", "String getSource();", "Source updateDatasourceZ3950Timestamp(Source ds) throws RepoxException;", "public SharedTypeWrapper sourceFile(SourceFile source_file) {\n this.source_file = source_file;\n return this;\n }", "protected Source getSource() {\r\n return source;\r\n }", "public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }", "public void setSource(char[] source) {\n\t\tthis.source = source;\n\t}", "void recomputeCoordinatesToSource(MouseEvent oldEvent, Object newSource) {\n/*\n Point3D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.getX();\n y = newCoordinates.getY();\n z = newCoordinates.getZ();\n*/\n Point2D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.x;\n y = newCoordinates.y;\n\n }", "@Override\n\tpublic void renderSource() {\n\t\t\n\t}", "SourceControl apply();", "public final void setSource(final Integer newSource) {\n this.source = newSource;\n }", "public void resetSource(String sourceId) {\n\t}", "void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;", "void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;", "public String getSource ();", "public void setSource(View source) {\n/* 82 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public interface Source {\n\n /**\n * Set the system identifier for this Source.\n * <p>\n * The system identifier is optional if the source does not get its data\n * from a URL, but it may still be useful to provide one. The application\n * can use a system identifier, for example, to resolve relative URIs and to\n * include in error messages and warnings.\n * </p>\n *\n * @param systemId\n * The system identifier as a URL string.\n */\n public void setSystemId(String systemId);\n\n /**\n * Get the system identifier that was set with setSystemId.\n *\n * @return The system identifier that was set with setSystemId, or null if\n * setSystemId was not called.\n */\n public String getSystemId();\n}", "void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;", "Source getSrc();", "public void xsetSource(edu.umich.icpsr.ddi.FileTxtType.Source source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTxtType.Source target = null;\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().add_attribute_user(SOURCE$30);\n }\n target.set(source);\n }\n }", "@Provides\r\n @Named(\"source\")\r\n public BackendInstanceWrapper provideSourceWrapper() {\r\n return backendInstanceWrapper(sourceDB);\r\n }", "void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;", "public void source(String path) throws Exception;", "public void setText(String source)\n {\n m_srcUtilIter_.setText(source);\n m_source_ = m_srcUtilIter_;\n updateInternalState();\n }", "void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;", "public interface Source {\n /**\n * A listener for changes.\n */\n public interface SourceListener {\n public void added(Source source,\n JavaProject javaProject, String name);\n\n public void removed(Source source,\n JavaProject javaProject, String name);\n\n public void changed(Source source,\n JavaProject javaProject, String name);\n }\n\n public void addListener(SourceListener listener);\n\n public void removeListener(SourceListener listener);\n\n /**\n * Find and return all custom contexts; usually called just before calling\n * addListener(this).\n * \n * @param javaProject the java context to find custom module contexts for\n */\n public Set<String> get(JavaProject javaProject, ProgressMonitor progressMonitor);\n \n public abstract boolean isListeningForChanges();\n \n public abstract void listenForChanges(boolean listenForChanges);\n}", "@Override\n public String getSource() {\n return this.src;\n }", "public void setSource(Rectangle2D source) {\n\t\tif (source.equals(_source)) return;\r\n\t\t\r\n\t\t_source = source;\r\n\t\t\r\n\t\t// Create a new clipping and check whether it is valid:\r\n\t\tClipping clipping = null;\r\n\t\ttry {\r\n\t\t\tclipping = createClipping(_source);\r\n\t\t} catch (NoninvertibleTransformException exception) {\r\n\t\t\t// Clipping is not valid, slide becomes invisible:\r\n\t\t\t_buffer = null;\r\n\t\t\t_clipping = null;\r\n\t\t\tif (_slideCacheEntry != null) _slideCacheEntry.dispose();\r\n\t\t\tif (_precacheCacheEntry != null) _precacheCacheEntry.dispose();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Check whether the clipping changed:\r\n\t\tif (!clipping.equals(_clipping)) {\r\n\t\t\t_clipping = clipping;\r\n\t\t\t\r\n\t\t\t// Clipping changed, cache entries have to be updated:\r\n\t\t\tif (_slideCacheEntry != null) {\r\n\t\t\t\t_slideCacheEntry.update(_clipping, _priority, _slideCacheObserver);\r\n\t\t\t} else {\r\n\t\t\t\t_slideCacheEntry = _slide.cache(_clipping, _priority, _slideCacheObserver);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tif (_precacheCacheEntry != null) {\r\n\t\t\t\t_precacheCacheEntry.update(_clipping, _priority, null);\r\n\t\t\t} else if (_precacheSlide != null) {\r\n\t\t\t\t_precacheCacheEntry = _precacheSlide.cache(_clipping, _precachePriority, null);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Repaint immediately if there is no caching:\r\n\t\t\tif (_slideCacheEntry == null) {\r\n\t\t\t\tmakeDirty(_slide.getSize(), true);\r\n\t\t\t\trepaint();\r\n\t\t\t}\r\n\t\t\t//else makeDirty(_slide.getSize(), true);\r\n\t\t}\r\n\t}", "private void resetSource()\n {\n source.setLocation(sourceX, sourceY);\n source = null;\n sourceX = 0;\n sourceY = 0;\n sourceRow = 0;\n sourceColumn = 0;\n }", "public String getSource();", "public void setSource(String sourceDir)\n {\n this.sourceDir = new File(sourceDir);\n }", "public void setSrc(File source) {\r\n if (!(source.exists())) {\r\n throw new BuildException(\"the presentation \" + source.getName()+ \" doesn't exist\");\r\n }\r\n if (source.isDirectory()) {\r\n throw new BuildException(\"the presentation \" + source.getName() + \" can't be a directory\");\r\n }\r\n this._source = source;\r\n }", "@JsonProperty(\"source\")\n public void setSource(Source source) {\n this.source = source;\n }", "public void setSourceRecord(ActivityRecord sourceRecord) {\n }", "public void setSourceSite(String newsource) {\n sourceSite=newsource;\n }", "public void setSourcePath(String sourcePath) {\n this.sourcePath = sourcePath;\n }", "@SuppressWarnings(\"unused\")\n public CachedSource(Source<V> source) {\n mCache = new Cache<>();\n mSource = source;\n }", "public String get_source() {\n\t\treturn source;\n\t}", "public abstract void update(DataAction data, DataRequest source) throws ConnectorOperationException;", "public void copyData(TrianaType source) { // not needed\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n Vec3d relativepos = Vec3d.substraction(sourcePosition, playerPosition);\r\n\r\n //Calculate and set the new volume\r\n source.setVolume(getVolumeFromDistance(relativepos.length(), source.getCurrentAudio().getBaseVolume()));\r\n }", "MafSource readSource(File sourceFile);", "public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}", "@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}", "WfExecutionObject source (SharkTransaction t) throws BaseException, SourceNotAvailable;", "protected abstract void sourceChanged(Change<? extends F> c);" ]
[ "0.7061964", "0.6935218", "0.68059874", "0.6734902", "0.6716118", "0.6681034", "0.6669937", "0.66327494", "0.6628343", "0.6628343", "0.64707214", "0.6441047", "0.6332212", "0.6321554", "0.62903047", "0.6281786", "0.6274792", "0.6250951", "0.6244153", "0.6227075", "0.618229", "0.6137145", "0.6084604", "0.60813695", "0.60743695", "0.60300344", "0.60097164", "0.5999378", "0.59596336", "0.59533834", "0.5916417", "0.59128964", "0.59060526", "0.59018314", "0.5896325", "0.5887275", "0.5876614", "0.5867368", "0.58654463", "0.5855737", "0.5855737", "0.5820149", "0.5814323", "0.5808443", "0.5790403", "0.57903343", "0.57889646", "0.57849413", "0.57822007", "0.5779028", "0.5775492", "0.5775492", "0.5771022", "0.57676595", "0.5757123", "0.5754851", "0.57499063", "0.5748656", "0.5744479", "0.5737624", "0.57343155", "0.57265663", "0.5726239", "0.5718025", "0.5708232", "0.56978494", "0.569027", "0.5684834", "0.5683723", "0.5680259", "0.56796616", "0.56790614", "0.56715226", "0.5671493", "0.56222683", "0.5618456", "0.5617714", "0.5604941", "0.5598483", "0.5591992", "0.5590955", "0.55897266", "0.5575559", "0.5572369", "0.55720353", "0.5563323", "0.55559474", "0.55353606", "0.55312", "0.55293536", "0.55144316", "0.5507079", "0.5502728", "0.55015546", "0.54957247", "0.5492668", "0.5491738", "0.5490389", "0.54803294", "0.54783714" ]
0.6042598
25
service method to modify destination
public boolean modifyDestination(RouteDTO route) throws FRSException { return dao.modifyDestination(route); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDestination(String destination) {\r\n this.destination = destination;\r\n }", "void setDestination(Locations destination);", "Destination save(Destination destination);", "public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }", "public void destMethod(){\n\t}", "UpdateDestinationResult updateDestination(UpdateDestinationRequest updateDestinationRequest);", "public java.lang.String getDestination(){return this.destination;}", "public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}", "public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }", "String getDest();", "public void updateDestination(){\r\n\t\tdestination.update_pc_arrivalFlows(flows);\r\n\t}", "@Override\n public String getDestination() {\n return this.dest;\n }", "public void setDestination(Coordinate destination) {\n cDestination = destination;\n }", "Destination getDestination();", "@Override\n\tpublic void setDestination(int x, int y) {\n\t\t\n\t}", "public void findDestination() {\n\t\t\n\t}", "@Override\n public void onArriveDestination() {\n\n }", "public interface AdditionalDestination {\n\n public void copy(FileObject fo, String path);\n\n public void delete(FileObject fo, String path);\n\n}", "public String getDestination() {\r\n return this.destination;\r\n }", "public String getDestination() {\r\n return destination;\r\n }", "private void sendUpdate(int dest) {\n Set<AS> prevAdvedTo = this.adjOutRib.get(dest);\n Set<AS> newAdvTo = new HashSet<AS>();\n BGPPath pathOfMerit = this.locRib.get(dest);\n\n /*\n * If we have a current best path to the destination, build a copy of\n * it, apply export policy and advertise the route\n */\n if (pathOfMerit != null) {\n BGPPath pathToAdv = pathOfMerit.deepCopy();\n\n pathToAdv.prependASToPath(this.asn);\n\n /*\n * Advertise to all of our customers\n */\n for (AS tCust : this.customers) {\n tCust.advPath(pathToAdv);\n newAdvTo.add(tCust);\n }\n\n /*\n * Check if it's our locale route (NOTE THIS DOES NOT APPLY TO\n * HOLE PUNCHED ROUTES, so the getDest as opposed to the\n * getDestinationAS _IS_ correct) or if we learned of it from a\n * customer\n */\n if (pathOfMerit.getDest() == this.asn\n || (this.getRel(pathOfMerit.getNextHop()) == 1)) {\n for (AS tPeer : this.peers) {\n tPeer.advPath(pathToAdv);\n newAdvTo.add(tPeer);\n }\n for (AS tProv : this.providers) {\n tProv.advPath(pathToAdv);\n newAdvTo.add(tProv);\n }\n }\n }\n\n /*\n * Handle the case where we had a route at one point, but have since\n * lost any route, so obviously we should send a withdrawl\n */\n if (prevAdvedTo != null) {\n prevAdvedTo.removeAll(newAdvTo);\n for (AS tAS : prevAdvedTo) {\n tAS.withdrawPath(this, dest);\n }\n }\n\n /*\n * Update the adj-out-rib with the correct set of ASes we have\n * adverstised the current best path to\n */\n this.adjOutRib.put(dest, newAdvTo);\n }", "@Override\n\tpublic void onArriveDestination() {\n\n\t}", "public String getDestination() {\n return destination;\n }", "void setDest(String L);", "public void bouger(int origine, int destination) {\n\t\t\n\t}", "public String getDestination() {\n return this.destination;\n }", "public void moveObject(\n String repositoryId,\n String sourceLocation,\n String sourceName,\n String publicType,\n String destinationLocation\n ) throws Exception {\n val treesDao = context.getBean(TreesDao.class, iomConnection);\n val srcTrees = treesDao.getTreesByPath(repositoryId, sourceLocation);\n val dstTrees = treesDao.getTreesByPath(repositoryId, destinationLocation);\n \n if (srcTrees.size() == 0) {\n throw new Exception(\"Source location is not found: \" + sourceLocation);\n }\n if (dstTrees.size() == 0) {\n throw new Exception(\"Destination location is not found: \" + destinationLocation);\n }\n val srcTree = srcTrees.get(0);\n val dstTree = dstTrees.get(0);\n // check if locations match\n if (srcTree.getId().equals(dstTree.getId())) return;\n // check source and destination folder permissions\n val authorizationDao = context.getBean(AuthorizationDao.class, iomConnection);\n if (!authorizationDao.isAuthorized(\"Tree\", srcTree.getId(), AuthorizationDao.PERMISSION_WRITE_MEMBER_METADATA)) {\n throw new Exception(\"Current user is not authorized for changing source folder content\");\n }\n if (!authorizationDao.isAuthorized(\"Tree\", dstTree.getId(), AuthorizationDao.PERMISSION_WRITE_MEMBER_METADATA)) {\n throw new Exception(\"Current user is not authorized for changing destination folder content\");\n }\n\n val srcSearchParams = new SearchParams();\n srcSearchParams.setLocationFolderIds(treesDao.collectTreeIds(srcTrees, false).toArray(new String[0]));\n srcSearchParams.setNameEquals(sourceName);\n srcSearchParams.setPublicTypes(new String[] { publicType });\n\n val searchDao = context.getBean(SearchDao.class, iomConnection);\n val srcObjects = searchDao.getFilteredObjects(repositoryId, srcSearchParams);\n if (srcObjects.size() == 0) {\n throw new Exception(\"Source object with name '\" + sourceName + \"' was not found in location '\" + sourceLocation + \"'\");\n }\n if (srcObjects.size() > 1) {\n throw new Exception(\"More than one object with name '\" + sourceName + \"' was found in location '\" + sourceLocation + \"'\");\n }\n\n String template = \"<MULTIPLE_REQUESTS>%s</MULTIPLE_REQUESTS>\";\n\n String updateTemplate = \"\"\n + \"<UpdateMetadata>\"\n + \" <Metadata>\"\n + \" <Tree Id='%1$s'>\"\n + \" <Members Function='%2$s'>%3$s</Members>\"\n + \" </Tree>\"\n + \" </Metadata>\"\n + \" <NS>SAS</NS>\"\n + \" <Flags>\" + MetadataUtil.OMI_TRUSTED_CLIENT + \"</Flags>\"\n + \" <Options/>\"\n + \"</UpdateMetadata>\"\n ;\n\n String srcObjectXml = srcObjects.get(0).toObjRefXml();\n\n String cutRequest = String.format(updateTemplate, srcTree.getId(), \"Remove\", srcObjectXml);\n String pasteRequest = String.format(updateTemplate, dstTree.getId(), \"Append\", srcObjectXml);\n\n String request = String.format(template, cutRequest + pasteRequest);\n\n IOMI iOMI = iomConnection.getIOMIConnection();\n val outputMeta = new StringHolder();\n int rs = iOMI.DoRequest(request, outputMeta);\n if (rs != 0) {\n throw new Exception(\"DoRequest returned \" + rs + \" instead of 0\");\n }\n }", "public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}", "public GoToAction(PDFDestination dest) {\n super(\"GoTo\");\n \n this.dest = dest;\n }", "public Sommet destination() {\n return destination;\n }", "public void setDestination (LatLng destination) {\n this.destination = destination;\n }", "public void changerDestination(Sommet nouvelleDestination) {\n destination.aretes_entrantes.supprimer(this);\n destination.predecesseurs.supprimer(origine);\n nouvelleDestination.aretes_entrantes.inserer(this);\n nouvelleDestination.predecesseurs.inserer(origine);\n origine.successeurs.supprimer(destination);\n origine.successeurs.inserer(nouvelleDestination);\n destination = nouvelleDestination;\n }", "@Override\n\tpublic String getDest() {\n\t\treturn dest;\n\t}", "@Override\n\tpublic void transferTo(File dest) throws IOException, IllegalStateException {\n\n\t}", "public Destination updateDestination(long id, DestinationDTO destinationDTO) {\n Optional<Destination> destinationOptional = destinationDAO.find(id);\n Destination destination = (Destination) FindSafely.findSafely(destinationOptional, Destination.TAG);\n List<Destination> all = destinationDAO.findAll(destinationDTO.getName());\n // Check if destination name is not duplicate\n if((all.indexOf(destination) < 0 && all.size() > 0) ||\n all.size() > 1) {\n throw new WebApplicationException(Response.status(Response.Status.CONFLICT)\n .entity(new ErrorRepresentation(\"name\", \"Destination name cannot be duplicated.\")).build());\n }\n\n StateService service=new StateService();\n Optional<State> stateOptional=service.getState(destinationDTO.getStateId());\n\n CountryService countryService=new CountryService();\n Optional<Country> countryOptional=countryService.getCountry(destinationDTO.getCountryId());\n\n\n\n if(null != destinationDTO.getName()) {\n destination.setName(destinationDTO.getName());\n }\n\n if(null != destinationDTO.getDescription()) {\n destination.setDescription(destinationDTO.getDescription());\n }\n\n if(null != destinationDTO.getActive()) {\n destination.setActive(destinationDTO.getActive());\n }\n destination.setState(stateOptional.get());\n destination.setCountry(countryOptional.get());\n\n return destinationDAO.saveOrUpdate(destination);\n }", "public void setDest(Point dest){\n System.out.println(\"hit\");\n this.dest = dest;\n }", "public String destination() {\n return this.destination;\n }", "public Location getDestination() {\r\n return destination;\r\n }", "public String getDestination() {\r\n\t\treturn destination;\r\n\t}", "int getDestination();", "String getRouteDest();", "public Teleporter setDestination(Location location)\r\n\t{ this.destination = location; return this; }", "public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}", "public void moveToEvent(ControllerContext cc, Planet dest) {\n\t}", "public Location getDestination(){\n\t\treturn destination;\n\t}", "public boolean modifySource(RouteDTO route) throws FRSException\r\n\t{\r\n\t\t\treturn dao.modifySource(route);\r\n\r\n\t}", "public String getDestination() {\n\t\treturn destination;\n\t}", "Update withDestination(EventChannelDestination destination);", "public Location getDestination()\r\n\t{ return this.destination; }", "public java.lang.String getDestination()\n {\n return this._destination;\n }", "CreateDestinationResult createDestination(CreateDestinationRequest createDestinationRequest);", "public Position destination(Position ep) throws InvalidPositionException;", "public boolean teleport(Entity destination) {\n/* 571 */ return teleport(destination.getLocation());\n/* */ }", "@Override\n\tpublic void modifyDeliveryLocation(long id, String deliveryLocation) {\n\t\t\n\t}", "Route(String source,String destination,String departingDate,String returningDate)\r\n {\r\n this.Source=source;\r\n this.destination=destination;\r\n this.departingDate=departingDate;\r\n this.returningDate=returningDate;\r\n }", "public void makeDestinationRequest() {\n this._hasDestinationRequests = true;\n }", "private void setDestination(int destination) throws InvalidInputException {\r\n\t\tif (destination < 0){\r\n\t\t\tthrow new InvalidInputException(\"Destination must be an actual floor number\");\r\n\t\t}\r\n\t\tdestinationFloor = destination;\r\n\t}", "public Builder setDestination(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destination_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setDstId(String arg0) {\n\n\t}", "public java.lang.String getDestination() {\n return destination;\n }", "@Override\n public void onDestInfo(BNRGDestInfo arg0) {\n Log.d(BNRemoteConstants.MODULE_TAG, \"onDestInfo...... \");\n }", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "EventChannelDestination destination();", "public Object getDestination() { return this.d; }", "@Override\n\tprotected void landAction(){\n\t\tdestIndex++;\n\t\tif(destIndex>=track.size())\n\t\t\tdestIndex=0;\n\t\tdestination=track.get(destIndex);\n\t\t\n\t}", "private Promise<Void> moveResource(final Resource resource, final Path destination) {\n return resource.move(destination)\n .thenPromise((Function<Resource, Promise<Void>>)ignored -> promises.resolve(null))\n .catchErrorPromise(error -> {\n\n //resource may already exists\n if (error.getMessage().contains(\"exists\")) {\n\n //create dialog with overwriting option\n return createFromAsyncRequest((RequestCall<Void>)callback -> {\n\n //handle overwrite operation\n final ConfirmCallback overwrite = () -> {\n\n //copy with overwriting\n resource.move(destination, true).then(ignored -> {\n callback.onSuccess(null);\n }).catchError(error1 -> {\n callback.onFailure(error1.getCause());\n });\n };\n\n //skip this resource\n final ConfirmCallback skip = () -> callback.onSuccess(null);\n\n //change destination name\n final ConfirmCallback rename = () ->\n dialogFactory.createInputDialog(\"Enter new name\", \"Enter new name\",\n value -> {\n final Path newPath = destination.parent().append(value);\n\n moveResource(resource, newPath)\n .then(callback::onSuccess)\n .catchError(error1 -> {\n callback.onFailure(error1.getCause());\n });\n },\n null).show();\n\n dialogFactory.createChoiceDialog(\"Error\",\n error.getMessage(),\n \"Overwrite\",\n \"Skip\",\n \"Change Name\",\n overwrite,\n skip,\n rename).show();\n });\n\n } else {\n //notify user about failed copying\n notificationManager.notify(\"Error moving resource\", error.getMessage(), FAIL, FLOAT_MODE);\n\n return promises.resolve(null);\n }\n\n });\n }", "interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }", "@Override\n\t\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\t\t\n\t\t}", "public Destination() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "String getDestinationName();", "@Override\n public String toString() {\n return source + \" \" + destination;\n }", "public void setDestination(ExportDestination destination) {\n this.destination = destination;\n }", "Source updateDatasourceFolder(Source ds) throws RepoxException;", "public void setDestinationType( final String destinationType )\n {\n m_destinationType = destinationType;\n }", "@PostMapping(path = \"/destination\")\r\n\tpublic ResponseEntity<DestinationBO> addDestination(@RequestBody DestinationBO des) {\r\n\r\n\t\tDestinationBO desBo = this.bl.save(des);\r\n\t\treturn ResponseEntity.status(HttpStatus.OK).body(desBo);\r\n\t}", "@Override\n public final void updateOrigin() {\n }", "Permanent copyPermanent(Permanent copyFromPermanent, UUID copyToPermanentId, Ability source, CopyApplier applier);", "@Override\n public Location getDestination() {\n return _destinationLocation != null ? _destinationLocation : getOrigin();\n }", "void consolidate(String destination);", "public interface MyDestination {\n void write(String str);\n}", "@Override\n public void setDestination(Point3D aPoint) throws InvalidDataException {\n myMovable.setDestination(aPoint);\n }", "public void setDestination(String host, int port) {\n this.host = host;\n this.port = port;\n }", "public int getDestination() {\r\n\t\treturn destination;\r\n\t}", "Source updateDatasourceFtp(Source ds) throws RepoxException;", "public void setDestination(Location location, String name) {\n this.currentDestinationName = name;\n this.currentDestination = location;\n }", "void setOrigination(Locations origination);", "@Override\n\tpublic void updateIntDst(IntDstDto intDst) throws Exception {\n\n\t}", "public void transfer(FilterContext paramFilterContext) {\n }", "private void changeOwnership(Profile profileAddingPhoto, Destination destination) {\n if (destination.getPublic() && !profileAddingPhoto.equals(destination.getOwner())) {\n destinationRepository.transferToAdmin(destination);\n }\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\n\t}", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\n\t}", "public void setDestination(TransactionAccount destination){\n if(destination.getTransactionAccountType().getAccountType() == AccountType.INCOME\n && this.getSource() != null\n && this.getSource().getTransactionAccountType().getAccountType() != AccountType.INITIALIZER){\n throw new BTRestException(MessageCode.INCOME_CANNOT_BE_DESTINATION,\n \"Transaction account with type income cannot be used as a source in destination\",\n null);\n }\n this.destination = destination;\n }", "protected void copyParameters( RestParamsPropertyHolder srcParams, RestParamsPropertyHolder destinationParams )\n\t{\n\t\tfor( int i = 0; i < srcParams.size(); i++ )\n\t\t{\n\t\t\tRestParamProperty prop = srcParams.getPropertyAt( i );\n\n\t\t\tdestinationParams.addParameter( prop );\n\n\t\t}\n\t}", "GetDestinationResult getDestination(GetDestinationRequest getDestinationRequest);", "DestinationNameParameter destinationType(DestinationType destinationType);", "private Destination createDestination(String originCode, TopRoute route) {\n\t\tString countryCode = cityService.getCountry(originCode);\n\t\tFlight flight = flightService.cheapestFlightReader(countryCode, route.getFrom(), route.getTo());\n\t\tDestination destination = new Destination(route.getTo(), flight);\n\t\treturn destination;\n\t}", "public void modifyOntProperty(String sourceInstance, String propertyName, String destInstance)\r\n\t{\r\n\t\tOntResource si = this.obtainOntResource(sourceInstance);\r\n\t\tOntResource di = this.obtainOntResource(destInstance);\r\n\t\tProperty prop = this.obtainOntProperty(propertyName); \r\n\t\tsi.setPropertyValue(prop, di);\r\n\t}", "long getDestinationId();", "public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }", "public void setDest(File destination) {\r\n if (destination.exists() && destination.isDirectory()) {\r\n throw new BuildException(\"if destination PPTX exists, it must be a file\");\r\n }\r\n this._destination = destination;\r\n }" ]
[ "0.66457105", "0.6613919", "0.64356494", "0.6433405", "0.63515913", "0.634955", "0.62989044", "0.62889117", "0.6264173", "0.6241904", "0.623588", "0.62060344", "0.6130493", "0.60882396", "0.6081396", "0.6081022", "0.6053672", "0.603421", "0.595902", "0.5932439", "0.5887551", "0.58818513", "0.5852188", "0.5843227", "0.58212173", "0.57980335", "0.57717556", "0.5771615", "0.57712466", "0.5755716", "0.5755377", "0.57506377", "0.5747848", "0.5723264", "0.57220095", "0.57164025", "0.57033235", "0.56401", "0.56237364", "0.5605566", "0.55798286", "0.5546352", "0.55314785", "0.55297977", "0.5525354", "0.5520301", "0.55194795", "0.55105764", "0.5499461", "0.54816216", "0.5474661", "0.5473535", "0.5455803", "0.54227227", "0.5417928", "0.54164", "0.54017746", "0.5401762", "0.5379467", "0.53773487", "0.5368913", "0.536442", "0.53613275", "0.5356311", "0.5352966", "0.5349045", "0.5337171", "0.53336746", "0.5330962", "0.53204745", "0.53057694", "0.53031534", "0.5296325", "0.52910125", "0.5289605", "0.5272545", "0.52648956", "0.526172", "0.5250883", "0.52468264", "0.5242864", "0.5240663", "0.5229971", "0.5224887", "0.522212", "0.5213933", "0.5213142", "0.52056396", "0.5198474", "0.51929486", "0.51929486", "0.5188439", "0.5173921", "0.51558214", "0.5148232", "0.5140499", "0.5137957", "0.51362616", "0.5115111", "0.5110649" ]
0.60882854
13
TODO Autogenerated method stub
public List<RouteDTO> viewRouteDetails() throws FRSException { return dao.getRouteList(); }
{ "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
public Object[] getMinPrice(RouteDTO dto) throws FRSException { return dao.getMinPrice(dto); }
{ "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
Gets identifier of source
public String getUuid() { return _uuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSourceID();", "public String getSourceIdentifier() {\n return sourceIdentifier;\n }", "long getSourceId();", "public java.lang.Object getSourceID() {\n return sourceID;\n }", "@Override\n\tpublic String getId()\n\t{\n\t\treturn source.getId();\n\t}", "public long getSourceId() {\n return sourceId_;\n }", "public String sourceUniqueId() {\n return this.sourceUniqueId;\n }", "public String getSourceId() {\n return sourceId;\n }", "public long getSourceId() {\n return sourceId_;\n }", "public Entity.ID getSourceID() {\n return sourceID;\n }", "public int getSource() {\n\t\treturn source;\n\t}", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "int getSourceSnId();", "public int getSource(){\r\n\t\treturn this.source;\r\n\t}", "public String getSourceFileName() {\n\t\tStringIdMsType stringIdType =\n\t\t\tpdb.getTypeRecord(getSourceFileNameStringIdRecordNumber(), StringIdMsType.class);\n\t\tif (stringIdType == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn stringIdType.getString();\n\t}", "int getSrcId();", "int getSrcId();", "String getSource();", "java.lang.String getIdentifier();", "public String getSource();", "public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}", "public String getId() {\n\t\t\t\t\treturn ContentTypeIdForXML.ContentTypeID_XML + \".source\"; //$NON-NLS-1$;\n\t\t\t\t}", "public String getSource() {\r\n return source;\r\n }", "@VTID(27)\n java.lang.String getSourceName();", "public java.lang.Integer getSource_code_id() {\n return source_code_id;\n }", "public String getSource() {\n return source;\n }", "public String get_source() {\n\t\treturn source;\n\t}", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "java.lang.String getSource();", "java.lang.String getSource();", "@Override\n\tpublic Object getId() {\n\t\treturn Arrays.asList(name, source);\n\t}", "public String getSource() {\n return this.source;\n }", "public String getSource ();", "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "public abstract String getSource();", "public String getSource() {\r\n return Source;\r\n }", "public long getSource()\r\n { return src; }", "public String getIdentifier();", "public String getIdentifier();", "public String sourceResourceId() {\n return this.sourceResourceId;\n }", "public String sourceResourceId() {\n return this.sourceResourceId;\n }", "public String getSystemId() {\n return this.source.getURI();\n }", "String getNameInSource(Object metadataID) throws Exception;", "public String getSource() {\n\n return source;\n }", "public String getSource() {\n return mSource;\n }", "public java.lang.String getSourceName() {\r\n return localSourceName;\r\n }", "public EndpointID source() {\r\n\t\treturn source_;\r\n\t}", "public int getSrcId() {\n return instance.getSrcId();\n }", "java.lang.String getAssociatedSource();", "public Long getSourceNumber() {\n return this.sourceNumber;\n }", "public String getIdentifierString();", "public Number getSrcId() {\r\n return (Number) getAttributeInternal(SRCID);\r\n }", "public int getSrcId() {\n return instance.getSrcId();\n }", "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "@Override\n public String getName() {\n return source.getName();\n }", "public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}", "I getIdentifier();", "public int getIdentifier();", "public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}", "public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }", "public java.lang.String getSource() {\r\n return localSource;\r\n }", "int getNameSourceStart();", "public int getSrcId() {\n return srcId_;\n }", "long getJobIDSource();", "int getIdentifier();", "public String getSourceName() {\n\t\treturn fileName;\n\t}", "public String getSourceAttributeId() {\n\t\treturn sourceAttribute;\n\t}", "public String getIdentifier() {\r\n\t\treturn this.identifier;\r\n\t}", "public int getSrcId() {\n return srcId_;\n }", "public String getSouce() {\n\t\treturn source;\n\t}", "String artifactSourceId();", "public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }", "@DISPID(-2147417088)\n @PropGet\n int sourceIndex();", "public int getSourceSnId() {\n return sourceSnId_;\n }", "protected String getLocalId(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException {\n Collection<Object> sourceIdValues = getValuesFromAllDependencies(resolutionContext, getPidSourceAttributeId());\n if (sourceIdValues == null || sourceIdValues.isEmpty()) {\n log.error(\"Source attribute {} for connector {} provide no values\", getPidSourceAttributeId(), getId());\n throw new AttributeResolutionException(\"Source attribute \" + getPidSourceAttributeId() + \" for connector \"\n + getId() + \" provided no values\");\n }\n\n if (sourceIdValues.size() > 1) {\n log.warn(\"Source attribute {} for connector {} has more than one value, only the first value is used\",\n getPidSourceAttributeId(), getId());\n }\n\n return sourceIdValues.iterator().next().toString();\n }", "int getSrcId(int index);", "@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();", "public SourceIF source() {\n\t\treturn this.source;\n\t}", "public Object getIdmapSource() {\n\t\treturn idmapSourceComboBox.getSelectedItem();\n\t}", "public String getIdentifier() {\n return identifier;\n }", "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "Variable getSourceVariable();", "public long getJobIDSource() {\n return jobIDSource_;\n }", "java.lang.String getSourceContext();", "public String getPidSourceAttributeId() {\n return pidSourceAttributeId;\n }", "@NonNull String identifier();", "public String getIdentifier()\n {\n return identifier;\n }", "public int getSrcId(int index) {\n return srcId_.getInt(index);\n }", "public String getSrcId()\n\t\t{\n\t\t\tElement srcIdElement = XMLUtils.findChild(mediaElement, SRC_ID_ELEMENT_NAME);\n\t\t\treturn srcIdElement == null ? null : srcIdElement.getTextContent();\n\t\t}", "String getSourceString();", "public String getIdentifier() {\n return identifier;\n }", "public String getIdentifier() {\n return identifier;\n }" ]
[ "0.85130674", "0.83132833", "0.79668206", "0.79639", "0.77785397", "0.77665913", "0.77155566", "0.7676666", "0.7666894", "0.7571216", "0.7397257", "0.7350888", "0.7345683", "0.7328937", "0.73003936", "0.72640616", "0.72640616", "0.71485263", "0.71405184", "0.71307474", "0.712496", "0.7105859", "0.7097672", "0.7071103", "0.7059373", "0.70526296", "0.70110744", "0.69999444", "0.69999444", "0.69999444", "0.69990623", "0.69990623", "0.69990623", "0.69990623", "0.69990623", "0.69990623", "0.69990623", "0.69970596", "0.69970596", "0.69968665", "0.69902223", "0.69895333", "0.6978268", "0.69554305", "0.6953584", "0.6944613", "0.69194406", "0.69194406", "0.69015896", "0.69015896", "0.6877284", "0.6872242", "0.6869656", "0.6867502", "0.6849483", "0.6844415", "0.68296105", "0.68207073", "0.68115735", "0.6803187", "0.67858964", "0.67844105", "0.677446", "0.6767856", "0.67596024", "0.67348003", "0.6730797", "0.6724813", "0.6709646", "0.6701057", "0.6678578", "0.6665435", "0.66652125", "0.66503954", "0.66456413", "0.66426986", "0.6634643", "0.6631982", "0.6627135", "0.66247493", "0.6608429", "0.6595652", "0.6590972", "0.65796995", "0.65676445", "0.6553977", "0.6548784", "0.6542408", "0.65396625", "0.6532016", "0.6524273", "0.65212154", "0.65198326", "0.65160435", "0.6515075", "0.65148", "0.6514652", "0.65144086", "0.65079856", "0.65057474", "0.65057474" ]
0.0
-1
Sets identifier of source
public void setUuid(String _uuid) { this._uuid = _uuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSourceIdentifier(String sourceIdentifier) {\n this.sourceIdentifier = sourceIdentifier;\n }", "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "public void setName(Identifier name) throws SourceException;", "public void setSourceID(java.lang.Object sourceID) {\n this.sourceID = sourceID;\n }", "public void setSourceAttribute(String id) {\n this.sourceAttribute = id;\n }", "public void setSource(String source);", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public void setSource (String source);", "String getSourceID();", "public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public void setIdentifier(FactIdentifier param) {\r\n localIdentifierTracker = true;\r\n\r\n this.localIdentifier = param;\r\n\r\n\r\n }", "public void setIdentifier( String pIdentifier )\n {\n identifier = pIdentifier;\n }", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }", "@Override\n\t\tpublic void setId(final String identifier) {\n\t\t}", "public Builder setSourceId(long value) {\n bitField0_ |= 0x00000001;\n sourceId_ = value;\n onChanged();\n return this;\n }", "private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }", "public native void setIdentifier (String identifier);", "@Override\n\tpublic String getId()\n\t{\n\t\treturn source.getId();\n\t}", "public void setIdentifierKey(java.lang.String param) {\r\n localIdentifierKeyTracker = true;\r\n\r\n this.localIdentifierKey = param;\r\n\r\n\r\n }", "void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;", "public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }", "public void setSource(String source) {\r\n this.source = source;\r\n }", "void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;", "@Override\n\tpublic Object getId() {\n\t\treturn Arrays.asList(name, source);\n\t}", "public void setSource(String source) {\n _source = source;\n }", "public void setIdentifier(IdentifierNode identifier);", "public void resetSource(String sourceId) {\n\t}", "public void setIdentifierValue(java.lang.String param) {\r\n localIdentifierValueTracker = true;\r\n\r\n this.localIdentifierValue = param;\r\n\r\n\r\n }", "long getSourceId();", "public void setIdentifier(java.lang.String identifier)\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(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);\n }\n target.setStringValue(identifier);\n }\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSrcId(Number value) {\r\n setAttributeInternal(SRCID, value);\r\n }", "void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;", "void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;", "void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;", "public String getSourceIdentifier() {\n return sourceIdentifier;\n }", "Source updateDatasourceZ3950IdFile(Source ds) throws RepoxException;", "void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;", "public void setSource(String Source) {\r\n this.Source = Source;\r\n }", "public void setName(Identifier name) throws SourceException {\n getMemberImpl().setName(name);\n updateConstructorsNames(name);\n }", "private void setIdentifier(final String identifier) {\n if (identifier != null) {\n setIdentifiers(Collections.singleton(new DefaultIdentifier(identifier)));\n }\n }", "void setIdentifier(org.hl7.fhir.Identifier identifier);", "void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;", "void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;", "public Builder setIdentifier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identifier_ = value;\n onChanged();\n return this;\n }", "public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }", "public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }", "public final void setSource(final Integer newSource) {\n this.source = newSource;\n }", "public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);\n }\n target.set(identifier);\n }\n }", "public String getSourceId() {\n return sourceId;\n }", "public void setSource(noNamespace.SourceType source)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(SOURCE$0, 0);\r\n if (target == null)\r\n {\r\n target = (noNamespace.SourceType)get_store().add_element_user(SOURCE$0);\r\n }\r\n target.set(source);\r\n }\r\n }", "public String sourceUniqueId() {\n return this.sourceUniqueId;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }", "public Builder setSourceSnId(int value) {\n \n sourceSnId_ = value;\n onChanged();\n return this;\n }", "public abstract void setName( String name ) throws SourceException;", "@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "public final void setIdentifier(ASN1Identifier id)\n {\n content.setIdentifier(id);\n return;\n }", "public java.lang.Object getSourceID() {\n return sourceID;\n }", "public void setSrc(String startId) {\r\n\t\tsrc = startId;\r\n\t}", "void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;", "public interface Source {\n\n /**\n * Set the system identifier for this Source.\n * <p>\n * The system identifier is optional if the source does not get its data\n * from a URL, but it may still be useful to provide one. The application\n * can use a system identifier, for example, to resolve relative URIs and to\n * include in error messages and warnings.\n * </p>\n *\n * @param systemId\n * The system identifier as a URL string.\n */\n public void setSystemId(String systemId);\n\n /**\n * Get the system identifier that was set with setSystemId.\n *\n * @return The system identifier that was set with setSystemId, or null if\n * setSystemId was not called.\n */\n public String getSystemId();\n}", "public void setIdentifier(String identifier) {\n\t\tthis.identifier = identifier;\n\t}", "public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}", "public void setPidSourceAttributeId(String attributeId) {\n pidSourceAttributeId = attributeId;\n }", "public void xsetSource(edu.umich.icpsr.ddi.FileTxtType.Source source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTxtType.Source target = null;\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().add_attribute_user(SOURCE$30);\n }\n target.set(source);\n }\n }", "public Builder identitySource(String identitySource) {\n this.identitySource = identitySource;\n return this;\n }", "void setRenderableSource(Long id, SerializableRenderableImage source,\n\t\t\t int index) throws RemoteException;", "public void setSource(Object o) {\n\t\tsource = o;\n\t}", "public void setId(String s) {\n\t\tid = s;\n\t}", "private void addSrcId(int value) {\n ensureSrcIdIsMutable();\n srcId_.addInt(value);\n }", "Source updateDatasourceZ3950IdSequence(Source ds) throws RepoxException;", "private void setSourceName(String name) {\n srcFileName = name;\n }", "public long getSourceId() {\n return sourceId_;\n }", "public void setID(Object caller, int id)\n\t{\n\t\tif (caller instanceof DriverManager)\n\t\t{\n\t\t\tdriverID = id;\n\t\t}\n\t}", "public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }", "public void setCurrentSource(Object source) {\r\n if (source instanceof IModelNode) {\r\n newSource = (IModelNode) source;\r\n newTarget = null;\r\n }\r\n }", "public Builder setSrcId(\n int index, int value) {\n copyOnWrite();\n instance.setSrcId(index, value);\n return this;\n }", "public void setSourceStart(int x)\n\t{\n\t\tsourceStart = x;\n\t}", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setSrcId(String srcId)\n\t\t{\n\t\t\tElement srcIdElement = XMLUtils.findChild(mediaElement, SRC_ID_ELEMENT_NAME);\n\t\t\tif (srcId == null || srcId.equals(\"\")) {\n\t\t\t\tif (srcIdElement != null)\n\t\t\t\t\tmediaElement.removeChild(srcIdElement);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (srcIdElement == null) {\n\t\t\t\t\tsrcIdElement = document.createElement(SRC_ID_ELEMENT_NAME);\n\t\t\t\t\tmediaElement.appendChild(srcIdElement);\n\t\t\t\t}\n\t\t\t\tsrcIdElement.setTextContent(srcId);\n\t\t\t}\n\t\t}", "void setIdNumber(String idNumber);", "public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 262,\n FQN=\"llvm::Module::setSourceFileName\", NM=\"_ZN4llvm6Module17setSourceFileNameENS_9StringRefE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZN4llvm6Module17setSourceFileNameENS_9StringRefE\")\n //</editor-fold>\n public void setSourceFileName(StringRef Name) {\n SourceFileName.$assignMove(Name.$string());\n }", "int getSrcId();", "int getSrcId();", "public void setID() throws IOException;", "void setId(String id);", "void setId(String id);", "void setId(String id);", "public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}", "public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}" ]
[ "0.7296", "0.7253309", "0.72343427", "0.71023214", "0.6997034", "0.6948663", "0.69453615", "0.69418263", "0.6878834", "0.68749255", "0.6834802", "0.67901766", "0.6751152", "0.67235297", "0.66733634", "0.66559756", "0.66484594", "0.6642241", "0.65811425", "0.6549093", "0.65436965", "0.65270233", "0.6518618", "0.65068126", "0.64994335", "0.6494924", "0.6492028", "0.6484886", "0.64558667", "0.6448197", "0.6442277", "0.6428606", "0.6402294", "0.6399055", "0.6399055", "0.6389907", "0.6379423", "0.6350342", "0.6339521", "0.63203007", "0.6303371", "0.6300227", "0.6294159", "0.6269525", "0.6263243", "0.6241504", "0.624089", "0.6240838", "0.6238498", "0.62266207", "0.62266207", "0.62251174", "0.62175804", "0.62138695", "0.62092924", "0.62035555", "0.6182814", "0.6182814", "0.6182814", "0.6182814", "0.61668015", "0.61603194", "0.61304104", "0.6112875", "0.61051923", "0.6098611", "0.60787547", "0.6071353", "0.6068568", "0.6065829", "0.6063543", "0.60618603", "0.60452515", "0.6027537", "0.6025608", "0.6022273", "0.6017882", "0.59960544", "0.59960145", "0.5992454", "0.59507066", "0.59490246", "0.59408253", "0.59325", "0.59179866", "0.59100866", "0.59071124", "0.59071124", "0.59071124", "0.58965003", "0.58922195", "0.5875729", "0.5867923", "0.5864014", "0.5864014", "0.5845415", "0.5844846", "0.5844846", "0.5844846", "0.58432186", "0.58432186" ]
0.0
-1
Gets description of source
public String getDescription() { return _description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSource();", "String getSource();", "@Override\n public Optional<Text> getShortDescription(CommandSource source) {\n return desc;\n }", "public String getSource ();", "public String getSource() {\n return source;\n }", "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "public String get_source() {\n\t\treturn source;\n\t}", "public String getSource() {\r\n return source;\r\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n\n return source;\n }", "java.lang.String getSource();", "java.lang.String getSource();", "public String toString() {\n return getClass().getName() + \"[source=\" + source + \"]\";\n }", "public String getSource() {\n return this.source;\n }", "public SourceDescription getMainSourceDescription() {\n return mainSourceDescription;\n }", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "public String getSource() {\r\n return Source;\r\n }", "public abstract String getSource();", "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "public String getSource() {\n return mSource;\n }", "java.lang.String getSrc();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}", "String getSourceString();", "@ApiModelProperty(required = true, value = \"The program that generated the test results\")\n public String getSource() {\n return source;\n }", "public String getDescription ();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();" ]
[ "0.7624", "0.7593772", "0.7574744", "0.7540417", "0.7530633", "0.75232476", "0.7473793", "0.7471914", "0.74666846", "0.74666846", "0.74666846", "0.7391494", "0.73904365", "0.73904365", "0.7379147", "0.7377002", "0.7323167", "0.7274413", "0.7274413", "0.7274413", "0.7274413", "0.7274413", "0.7274413", "0.7274413", "0.7274413", "0.7274413", "0.7274059", "0.72602326", "0.7229432", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.71415114", "0.7131198", "0.7089119", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.7079907", "0.70738935", "0.7062039", "0.7021927", "0.6999024", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618", "0.699618" ]
0.0
-1
Sets description of source
public void setDescription(String _description) { this._description = _description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSource (String source);", "public void setSource(String source);", "public void setSourceDescription(DataSourceDescription sourceDescription) {\n\t\tthis.sourceDescription = sourceDescription;\n\t}", "public void setSource(String source) {\r\n this.source = source;\r\n }", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public void setSource(String source) {\n _source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "public void \n setSourceDescription( SourceDescription[] sourceDesc);", "public void setSource(String Source) {\r\n this.Source = Source;\r\n }", "public void setText(String source)\n {\n m_srcUtilIter_.setText(source);\n m_source_ = m_srcUtilIter_;\n updateInternalState();\n }", "public void setContent(Source source) {\n this.content = source;\n }", "public void setSource(Object o) {\n\t\tsource = o;\n\t}", "public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "void setDescription(String description);", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "public void setDescription(java.lang.String param) {\n localDescriptionTracker = true;\n\n this.localDescription = param;\n }", "public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }", "public void setDescription (String description);", "public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }", "public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }", "public void setSourceDescription(SourceDescription[] userdesclist) {\n if (userdesclist != null) {\n SourceDescription currdesc;\n String cname = null;\n for (int i = 0; i < userdesclist.length; i++) {\n currdesc = userdesclist[i];\n if (currdesc != null && currdesc.getType() == 1) {\n cname = userdesclist[i].getDescription();\n break;\n }\n }\n String sourceinfocname = null;\n if (this.sourceInfo != null) {\n sourceinfocname = this.sourceInfo.getCNAME();\n }\n if (!(this.sourceInfo == null || cname == null || cname.equals(sourceinfocname))) {\n this.sourceInfo.removeSSRC(this);\n this.sourceInfo = null;\n }\n if (this.sourceInfo == null) {\n this.sourceInfo = this.cache.sourceInfoCache.get(cname, true);\n this.sourceInfo.addSSRC(this);\n }\n for (SourceDescription currdesc2 : userdesclist) {\n if (currdesc2 != null) {\n switch (currdesc2.getType()) {\n case 2:\n if (this.name != null) {\n this.name.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.name = new SourceDescription(2, currdesc2.getDescription(), 0, false);\n break;\n }\n case 3:\n if (this.email != null) {\n this.email.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.email = new SourceDescription(3, currdesc2.getDescription(), 0, false);\n break;\n }\n case 4:\n if (this.phone != null) {\n this.phone.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.phone = new SourceDescription(4, currdesc2.getDescription(), 0, false);\n break;\n }\n case 5:\n if (this.loc != null) {\n this.loc.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.loc = new SourceDescription(5, currdesc2.getDescription(), 0, false);\n break;\n }\n case 6:\n if (this.tool != null) {\n this.tool.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.tool = new SourceDescription(6, currdesc2.getDescription(), 0, false);\n break;\n }\n case 7:\n if (this.note != null) {\n this.note.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.note = new SourceDescription(7, currdesc2.getDescription(), 0, false);\n break;\n }\n case 8:\n if (this.priv != null) {\n this.priv.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.priv = new SourceDescription(8, currdesc2.getDescription(), 0, false);\n break;\n }\n default:\n break;\n }\n }\n }\n }\n }", "void setDescription(java.lang.String description);", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String description){this.description=description;}", "public void setDescription(String sDescription);", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void updateSourceTarget(String source, String target) {\n\t\titem.setText(2, source);\n\t\titem.setText(3, target);\n\t}", "void setDesc(java.lang.String desc);", "public void setDescription(String desc) {\n sdesc = desc;\n }", "public static void set_SourceContent(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSourceContentCmd, v);\n UmlCom.check();\n \n _src_content = v;\n \n }", "public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }", "public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String newdescription) {\n description=newdescription;\n }", "public void setDescription(String value) {\n this.description = value;\n }", "public Builder setSource(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n source_ = value;\n onChanged();\n return this;\n }", "public void setDescription(String desc);", "public void setDescription(String descr);", "void setDescription(final String description);", "public void setDescription(String description){\n this.description = description;\n }", "public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }", "private void setSourceName(String name) {\n srcFileName = name;\n }", "public void setDescription(String des){\n description = des;\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }", "public void setDescription(String description) {\n\n }", "public abstract void setContentDescription(String description);", "public void setDescription(String description) {\n mDescription = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public abstract void setDescription(String description);", "public abstract void setDescription(String description);", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(String desc) {\n description = desc;\n }", "public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String s) {\n if (s == null && shortDescription == null) {\n return;\n }\n\n if (s == null || !s.equals(shortDescription)) {\n String oldDescrption = shortDescription;\n shortDescription = s;\n listeners.firePropertyChange(PROPERTY_DESCRIPTION, oldDescrption,\n shortDescription);\n }\n }", "public void setDescription(final String description);", "public void setDescription(String description )\n {\n this.description = description;\n }", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "protected void setDescription(String description) {\n this.description = description;\n }", "private void createSource(String sourceName, String content) {\n\t\t\n\t}" ]
[ "0.799497", "0.7948374", "0.75337195", "0.7518103", "0.7497528", "0.74653906", "0.745291", "0.745291", "0.74510705", "0.74374235", "0.7218104", "0.71468925", "0.7030254", "0.67864835", "0.67487633", "0.6699685", "0.66949385", "0.6683019", "0.66693777", "0.66644955", "0.66499525", "0.66487634", "0.66487634", "0.66436046", "0.6640999", "0.6631612", "0.6620121", "0.6619796", "0.6614354", "0.6608815", "0.6608815", "0.6608815", "0.6608815", "0.6608815", "0.6608815", "0.6599169", "0.65884453", "0.65826976", "0.65826976", "0.6575141", "0.6567393", "0.656585", "0.6561469", "0.6554564", "0.6554564", "0.65417314", "0.65417314", "0.65417314", "0.65417314", "0.65417314", "0.65379107", "0.65348274", "0.6530312", "0.6524915", "0.6518851", "0.6509864", "0.65051275", "0.6501028", "0.64989525", "0.64971393", "0.6472387", "0.64675355", "0.64621437", "0.6459684", "0.6453815", "0.6446334", "0.6445546", "0.643731", "0.64337134", "0.64337134", "0.64337134", "0.6430883", "0.6425055", "0.6425055", "0.6425055", "0.6425055", "0.6425055", "0.6423946", "0.642034", "0.642034", "0.64178413", "0.64178413", "0.64178413", "0.64133596", "0.64077544", "0.6401213", "0.6401213", "0.6401213", "0.6401213", "0.6401213", "0.6395681", "0.6395681", "0.6395681", "0.63916415", "0.63893837", "0.6387329", "0.6384606", "0.6382896", "0.63701266", "0.6368207" ]
0.63728184
98
Gets name of source
public String getName() { return _name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getName() {\n return source.getName();\n }", "@VTID(27)\n java.lang.String getSourceName();", "public java.lang.String getSourceName() {\r\n return localSourceName;\r\n }", "public String getSourceName() {\n\t\treturn fileName;\n\t}", "private String getSourceName() {\n return srcFileName;\n }", "int getNameSourceStart();", "String getNameInSource(Object metadataID) throws Exception;", "String getSource();", "public String getSource();", "java.lang.String getSource();", "java.lang.String getSource();", "public String getSource ();", "public NameSource getNameSource() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0a7eceea-d228-42ea-bf8b-7fe5bc03373b\");\n return nameSource;\n }", "private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }", "SMFTypeRef getSrcName();", "public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}", "public String getSource() {\r\n return source;\r\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String get_source() {\n\t\treturn source;\n\t}", "public abstract String getSource();", "public String getSourceFileName() { return sourceFileName; }", "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "public String getSource() {\n return this.source;\n }", "public String getSource() {\n\n return source;\n }", "public java.lang.String getSource() {\r\n return localSource;\r\n }", "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "public String getSource() {\r\n return Source;\r\n }", "public String getSourceFileName() {\n\t\tStringIdMsType stringIdType =\n\t\t\tpdb.getTypeRecord(getSourceFileNameStringIdRecordNumber(), StringIdMsType.class);\n\t\tif (stringIdType == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn stringIdType.getString();\n\t}", "public String getSrcSampleName() {\r\n return srcSampleName;\r\n }", "public String getSourceName(RecognitionException e) {\n final IntStream inputStream = e.getInputStream();\n if (inputStream != null) {\n return inputStream.getSourceName();\n } else {\n return getSourceName();\n }\n }", "java.lang.String getAssociatedSource();", "@Nullable public String getFileName() {\n return getSourceLocation().getFileName();\n }", "public String getSourceImageName() {\n return this.sourceImageName;\n }", "public String getSource() {\n return mSource;\n }", "public String getSQLName(){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\treturn name;\n\t\t}\n\t\treturn source.getSQLName();\n\t}", "String getSourceString();", "public String getSouce() {\n\t\treturn source;\n\t}", "public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }", "@Override\n\tpublic java.lang.String getSrcFileName() {\n\t\treturn _scienceApp.getSrcFileName();\n\t}", "public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}", "public String toString() {\n return getClass().getName() + \"[source=\" + source + \"]\";\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }", "java.lang.String getSourceFile();", "public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }", "@Nullable\n public String getSourceFileName() {\n return sourceFileName;\n }", "java.lang.String getSrc();", "public String getRepost_source_name() {\n return repost_source_name;\n }", "public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public String getSource() {\n return this.src;\n }", "public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}", "@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }", "public String getSourceString() {\n return sourceString;\n }", "int getNameSourceEnd();", "public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }", "public String getSourceString() {\n return null;\n }", "public String getSource() {\n Object ref = source_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "Optional<String> getSource();", "public String getSource() {\n Object ref = source_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n }\n }", "java.lang.String getSourceContext();", "public String getSourceIdentifier() {\n return sourceIdentifier;\n }", "private void setSourceName(String name) {\n srcFileName = name;\n }", "public String getSource() {\n\t\treturn this.uri.toString();\n\t}", "@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}", "public String getName() {\n return (\"(\" + this.source.getName() + \",\" + this.destination.getName() + \")\");\n }", "public java.lang.String getSourceFile() {\n java.lang.Object ref = sourceFile_;\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 sourceFile_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String sourceAttributeName() {\n return this.sourceAttributeName;\n }", "public String getName() {\r\n if (target != null) {\r\n return target.getName();\r\n }\r\n\r\n if (benchmark != null) {\r\n return benchmark.getName();\r\n }\r\n\r\n return \"\";\r\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.846819", "0.82155794", "0.8097352", "0.7981246", "0.79774773", "0.77908003", "0.7713644", "0.7669822", "0.7596711", "0.7557681", "0.7557681", "0.74464405", "0.73966235", "0.73915684", "0.7376952", "0.7362188", "0.73587763", "0.73540914", "0.72973394", "0.72973394", "0.72973394", "0.7291422", "0.72791547", "0.7249392", "0.72462887", "0.7229266", "0.721248", "0.7198587", "0.7184359", "0.7171173", "0.71503896", "0.7079727", "0.7054947", "0.70463014", "0.70420766", "0.70373434", "0.70270365", "0.70139104", "0.70114154", "0.7010613", "0.6998478", "0.6997579", "0.69867474", "0.6951388", "0.6939997", "0.69284225", "0.69233173", "0.69014007", "0.6873604", "0.68696797", "0.68561476", "0.68561476", "0.6843892", "0.6838369", "0.68209434", "0.68018985", "0.6782191", "0.677565", "0.6751336", "0.66935146", "0.6674962", "0.66702294", "0.66433054", "0.66062796", "0.66000336", "0.65928006", "0.65926266", "0.65743285", "0.6562433", "0.65198517", "0.65167725", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456", "0.65096456" ]
0.0
-1
Sets name of source
public void setName(String _name) { this._name = _name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSourceName(String name) {\n srcFileName = name;\n }", "public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }", "public abstract void setName( String name ) throws SourceException;", "public void setSource(String source);", "public void setSource (String source);", "public void setName(Identifier name) throws SourceException;", "public void setNameSource(NameSource nameSource) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"acfe2e92-6b9b-4a4d-962c-3dd62389739d\");\n this.nameSource = nameSource;\n }", "public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}", "public void setSource(String source) {\r\n this.source = source;\r\n }", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public void setSource(String source) {\n _source = source;\n }", "public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "@Override\n public String getName() {\n return source.getName();\n }", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 262,\n FQN=\"llvm::Module::setSourceFileName\", NM=\"_ZN4llvm6Module17setSourceFileNameENS_9StringRefE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZN4llvm6Module17setSourceFileNameENS_9StringRefE\")\n //</editor-fold>\n public void setSourceFileName(StringRef Name) {\n SourceFileName.$assignMove(Name.$string());\n }", "public void setName(Identifier name) throws SourceException {\n getMemberImpl().setName(name);\n updateConstructorsNames(name);\n }", "public void setSource(String Source) {\r\n this.Source = Source;\r\n }", "public void enterSource(String name) {\n\t\ttf_Source.sendKeys(name);\n\t\tclick_Option.click();\n\t}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setSourceImageName(final String sourceImageNameValue) {\n this.sourceImageName = sourceImageNameValue;\n }", "public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }", "public void setName(String inName)\n {\n name = inName;\n }", "void setName(String name_);", "public void setName(String name) {\n\t\tName = name;\n\t}", "public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}", "public final void setName(String name) {_name = name;}", "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 s) {\n this.name = s;\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\tthis.name = name;\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(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\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){\r\n this.name = name;\r\n }", "public void setName(String name) {\n setUserProperty(\"ant.project.name\", name);\n this.name = name;\n }", "public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(), name);\n\t}", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n \t\tthis.name = name;\r\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 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) {\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) {\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) {\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) {\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) {\r\n this.name = name;\r\n }", "public void setName(String name) {\n\t this.name = 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 }", "@Override\r\n public void setName(String name) {\n }", "public void setName(String inName)\n {\n\tname = inName;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "public void setName(String name) \n {\n this.name = name;\n }", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n }", "public void setName(String name) {\n _name = name;\n }", "public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}", "public void setName(String name)\n {\n this.name = name;\n }", "protected void setName(String name) {\r\n this.name = name;\r\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)\r\n {\r\n\tthis.name = name;\r\n }", "public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}", "@Override\n\tpublic void setName(String name) {\n\t\t\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 }" ]
[ "0.85556513", "0.8113247", "0.7703442", "0.76056355", "0.7580835", "0.7564808", "0.72973704", "0.7293404", "0.7166907", "0.71372455", "0.71353364", "0.70970625", "0.70906466", "0.70906466", "0.70831203", "0.70480645", "0.70081383", "0.6952432", "0.6924383", "0.69216233", "0.6691589", "0.6691589", "0.6691589", "0.6664322", "0.6646311", "0.6635453", "0.66350937", "0.6617244", "0.66130686", "0.66075546", "0.6575618", "0.6575618", "0.6575618", "0.65723765", "0.6561171", "0.6561171", "0.6561171", "0.65555024", "0.655456", "0.65476626", "0.65476626", "0.65476626", "0.65475297", "0.6546339", "0.6546339", "0.6546339", "0.6539968", "0.6534004", "0.65319896", "0.65308565", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.6530259", "0.65295446", "0.65237963", "0.65237963", "0.65237963", "0.65227777", "0.6522334", "0.65130895", "0.65130895", "0.65111256", "0.65077466", "0.6505527", "0.65031844", "0.65031844", "0.65031844", "0.65031844", "0.65030307", "0.649894", "0.6497188", "0.6497005", "0.64939195", "0.64939195", "0.64939195", "0.64939195", "0.6491141", "0.6490903", "0.6488757", "0.6484847", "0.6484847", "0.6484847", "0.6484847", "0.6484847", "0.6484847" ]
0.0
-1
Number of networks in source
public int getNumberOfNetworks() { return _numberOfNetworks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumSources();", "private int visitedNetworksCount() {\n final HashSet<String> visitedNetworksSet = new HashSet<>(mVisitedNetworks);\n return visitedNetworksSet.size();\n }", "public int getNetworksCount() {\n return networks_.size();\n }", "public int getNumNetworkCopies(){\n synchronized (networkCopiesLock){\n return this.networkCopies.size();\n }\n }", "public int Sizeofnetwork() {\n\t\treturn Nodeswithconnect.size();\n\t}", "public int getNetworksCount() {\n if (networksBuilder_ == null) {\n return networks_.size();\n } else {\n return networksBuilder_.getCount();\n }\n }", "int getNodesCount();", "int getNodesCount();", "public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}", "public int getSourceCount() {\n return sourceCount;\n }", "public int size() {\n return neurons.size();\n }", "int getPeersCount();", "public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}", "int getNetworkInterfacesCount();", "public int getNetSize() {\n return graph.size();\n }", "int getConnectionsCount();", "int getPeerCount();", "int getPeerURLsCount();", "public int getNumberOfConnectorsNetworkInputs() { return numberOfConnectorsNetworkInputs; }", "public int getNetworkSize()\n\t{\n\t\treturn this.nodeManager.getNodeList().getNodeList().size();\n\t}", "int totalNumberOfNodes();", "public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}", "int getLinksCount();", "public int getTotalConnections()\n {\n // return _connections.size();\n return 0;\n }", "int getTotalCreatedConnections();", "public int getSourceURLCount() {\n int count = 0;\n for (String site : getSourceSites()) {\n count += this.getSourceURLs(site).size();\n }\n return count;\n }", "int getNodeCount();", "int getNodeCount();", "public static int countNodes() {\n\t\treturn count_nodes;\n\t}", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getDataScansCount();", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "Integer getConnectorCount();", "int getSrcIdCount();", "private int getNumPeers() {\n String[] peerIdList = skylinkConnection.getPeerIdList();\n if (peerIdList == null) {\n return 0;\n }\n // The first Peer is the local Peer.\n return peerIdList.length - 1;\n }", "public int getNetworkTransmitCount() {\n return networkTransmitCount;\n }", "public int numConnections(){\n return connections.size();\n }", "public int size() {\r\n\t\tint size = 0;\r\n\t\tfor (Integer key : connectionLists.keySet()) {\r\n\t\t\tsize += connectionLists.get(key).size();\r\n\t\t}\r\n\t\treturn size;\r\n\t}", "int getBlockNumbersCount();", "public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "int getConnectionCount();", "public int getSrcIdCount() {\n return instance.getSrcIdCount();\n }", "int getNetTransferMsgsCount();", "public int totalNumNodes () { throw new RuntimeException(); }", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "int getTotalNumOfNodes() {\n\t\treturn adjList.size();\n\t}", "public int getNumConnects() {\n\t\treturn numConnects;\n\t}", "long countPostings() {\n \tlong result = 0;\n \tfor (Layer layer : layers.values())\n \t\tresult += layer.size();\n \treturn result;\n }", "public int getNumberOfNodesEvaluated();", "protected int numNodes() {\n\t\treturn nodes.size();\n\t}", "public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }", "public int countNeighbours() {\n\t\tint count = 0;\n\t\tif (this.hasNeighbour(0))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(1))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(2))\n\t\t\tcount++;\n\t\treturn count;\n\t}", "public int getNumberOfConnectorsNetworkOutputs() { return numberOfConnectorsNetworkOutputs; }", "int nodeCount();", "int getOutputsCount();", "int getOutputsCount();", "int getOutputsCount();", "int getOutputsCount();", "int getOutputsCount();", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "@Override\n public int nodeCount() {\n return graphNodes.size();\n }", "int getPortPairGroupCount();", "public int getNumNodes() {\n\t\treturn nodes.size();\n\t}", "public int size()\r\n { \r\n return numNodes;\r\n }", "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "int getNrNodes() {\n\t\treturn adjList.size();\n\t}", "public final int size() {\n return nNodes;\n }", "@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "public void setNumberOfNetworks(int _numberOfNetworks) {\n this._numberOfNetworks = _numberOfNetworks;\n }", "public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}", "public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }", "public int nodesCount() {\n return nodes.size();\n }", "public int numEdges();", "int getNumberOfEdges();", "protected int numPeers() {\n\t\treturn peers.size();\n\t}", "int getDetectionRulesCount();", "int getBlockLocationsCount();", "int sizeOfLanesArray();", "int numNodes() {\n\t\treturn num_nodes;\n\t}", "public static int getConnectionCount()\r\n {\r\n return count_; \r\n }", "int getBlockNumsCount();", "int getBlockNumsCount();", "int getMonstersCount();", "int getMonstersCount();", "public int getNetworkSizeEstimate(long timestamp) {\n\t\treturn knownIds.countValuesAfter(timestamp);\n\t}", "int getNumberOfStonesOnBoard();", "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "public int countLink() {\n\t\tint count = 0;\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\n\t\t\t\t\t\"SELECT count(*) from links\");\n\t\t stmt.execute();\n\t\t ResultSet rs = stmt.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tcount = rs.getInt(1);\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn count;\n\t}", "int getRequestsCount();", "int getRequestsCount();", "public int getNumberOfEdges();", "static int displayN(Node node)\r\n {\r\n return node.neighbors.size();\r\n }", "public int getNumConnections(ImmutableNodeInst n) {\n int myNodeId = n.nodeId;\n int i = searchConnectionByPort(myNodeId, 0);\n int j = i;\n for (; j < connections.length; j++) {\n int con = connections[j];\n ImmutableArcInst a = getArcs().get(con >>> 1);\n boolean end = (con & 1) != 0;\n int nodeId = end ? a.headNodeId : a.tailNodeId;\n if (nodeId != myNodeId) break;\n }\n return j - i;\n }", "public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "public int getSrcIdCount() {\n return srcId_.size();\n }", "public int length(){\r\n int counter = 0;\r\n ListNode c = head;\r\n while(c != null){\r\n c = c.getLink();\r\n counter++;\r\n }\r\n return counter;\r\n }" ]
[ "0.7640071", "0.7470338", "0.73766065", "0.7319158", "0.71903723", "0.71479124", "0.69825894", "0.69825894", "0.69516766", "0.6892464", "0.6882587", "0.68570256", "0.6835023", "0.6824526", "0.6779293", "0.6684428", "0.6666448", "0.6659092", "0.6630478", "0.6595512", "0.65576667", "0.653473", "0.6518367", "0.64935297", "0.64921343", "0.64758575", "0.646102", "0.646102", "0.6457533", "0.6448986", "0.6448986", "0.6448986", "0.64438117", "0.6435947", "0.6394929", "0.63707495", "0.63676333", "0.6356394", "0.6352882", "0.6351988", "0.63436544", "0.63286257", "0.6321461", "0.6301249", "0.6295691", "0.6269147", "0.6266986", "0.6257382", "0.6233696", "0.62330544", "0.6224318", "0.62120533", "0.62057495", "0.62037456", "0.6189672", "0.617558", "0.61746866", "0.61746866", "0.61746866", "0.61746866", "0.61746866", "0.6169803", "0.6153341", "0.61512184", "0.6126045", "0.6088055", "0.6085305", "0.60844237", "0.60758704", "0.6070861", "0.607076", "0.60698503", "0.60683477", "0.6067014", "0.6061863", "0.605927", "0.60547465", "0.6040384", "0.6039707", "0.6036019", "0.600477", "0.59974194", "0.5992239", "0.59917295", "0.59917295", "0.5989281", "0.5989281", "0.5986948", "0.598647", "0.59837055", "0.5975337", "0.59716374", "0.59716374", "0.59689796", "0.5966077", "0.59652156", "0.59603137", "0.595506", "0.59548104", "0.59536546" ]
0.71401787
6
Sets number of networks in source
public void setNumberOfNetworks(int _numberOfNetworks) { this._numberOfNetworks = _numberOfNetworks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}", "public void setSourceCount(int sourceCount) {\n this.sourceCount = sourceCount;\n }", "public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}", "void setPoolNumber(int poolNumber);", "public void writeNumberOfInNeurals() {\r\n \r\n inputLayer.setNumberOfNeurals(numberOfInputNeurals);\r\n }", "public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }", "public void setNetworth(int value);", "protected abstract void rebuildNetwork(int numNodes);", "public abstract NetworkBuilder withLayers(int[] layers);", "public int getNumberOfNetworks() {\n return _numberOfNetworks;\n }", "public void setNumberOfVisitedNodes(int numberOfVisitedNodes) {\n NumberOfVisitedNodes = numberOfVisitedNodes;\n }", "public NumberOfNodesBasedConfig(int numberOfNodes) {\n this.numberOfNodes = numberOfNodes;\n }", "public int getNetworksCount() {\n return networks_.size();\n }", "public Builder setNetworks(int index, Network value) {\n if (networksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNetworksIsMutable();\n networks_.set(index, value);\n onChanged();\n } else {\n networksBuilder_.setMessage(index, value);\n }\n return this;\n }", "private void setSockets()\n {\n String s = (String) JOptionPane.showInputDialog(null,\n \"Select Number of Sockets:\", \"Sockets\",\n JOptionPane.PLAIN_MESSAGE, null, socketSelect, \"1\");\n\n if ((s != null) && (s.length() > 0))\n {\n totalNumThreads = Integer.parseInt(s);\n }\n else\n {\n totalNumThreads = 1;\n }\n\n recoveryQueue.setMaxSize(totalNumThreads * 10);\n }", "public static void setNumberOfInputs(int _n)\r\n {\r\n numberOfInputs = _n;\r\n }", "void setCopies(short copies);", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setSocialNetwork(int value) {\n this.socialNetwork = value;\n }", "public void setNumNodes(int numNodes) {\n if (numNodes < 4) {\n throw new IllegalArgumentException(\"Number of nodes must be >= 4.\");\n }\n\n this.numNodes = numNodes;\n this.maxEdges = numNodes - 1;\n this.numIterations = 6 * numNodes * numNodes;\n this.parentMatrix = null;\n this.childMatrix = null;\n }", "private void setNumAssociatedStations(int numStations) {\n if (mNumAssociatedStations == numStations) {\n return;\n }\n mNumAssociatedStations = numStations;\n Log.d(TAG, \"Number of associated stations changed: \" + mNumAssociatedStations);\n\n if (mCallback != null) {\n mCallback.onNumClientsChanged(mNumAssociatedStations);\n } else {\n Log.e(TAG, \"SoftApCallback is null. Dropping NumClientsChanged event.\");\n }\n mWifiMetrics.addSoftApNumAssociatedStationsChangedEvent(mNumAssociatedStations,\n mMode);\n\n if (mNumAssociatedStations == 0) {\n scheduleTimeoutMessage();\n } else {\n cancelTimeoutMessage();\n }\n }", "void refreshNodeHostCount(int nodeHostCount);", "public void setNoOfImages(int noOfImages) {\n this.noOfImages = noOfImages;\n }", "public void setNumStreams (int streamNum)\r\n {\r\n this.numStreams = streamNum;\r\n }", "public int getNetworksCount() {\n if (networksBuilder_ == null) {\n return networks_.size();\n } else {\n return networksBuilder_.getCount();\n }\n }", "public void setMinimumPlayers(int nPlayers)\r\n {\n \r\n }", "public int getNumNetworkCopies(){\n synchronized (networkCopiesLock){\n return this.networkCopies.size();\n }\n }", "public void setNumberShips(int numberShips);", "public void setNports(int n) {\n\t\tnports = n;\n\t}", "public void setNumberOfInputs(int numberOfInputs)\n {\n this.numberOfInputs = numberOfInputs;\n }", "public void incrementNumConnects() {\n this.numConnects.incrementAndGet();\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void InitializeMaxNumInstances(int num) {\n }", "@Override\n public void setNrPlayers(int value) {\n this.nrPlayers = value;\n }", "public void setNX(int nx){\n newX=nx;\n }", "public void setCount() {\n\t\tLinkedListIterator iter = new LinkedListIterator(this.head);\n\t\tint currentSize = 1;\n\t\twhile (iter.hasNext()) {\n\t\t\titer.next();\n\t\t\tcurrentSize++;\n\t\t}\n\t\tthis.size = currentSize;\n\t}", "public static void setNumThreads(int newNumThreads) throws Exception \n { \n /** In case of incorrect input */\n if(newNumThreads < 0)\n throw new Exception(\"attepmt to create negative count of threads\");\n numThreads = newNumThreads; \n }", "void setNoOfBuckets(int noOfBuckets);", "public void setSlotCount(int n) {\n mController.setSlotCount(n);\n }", "public void setNumPoints(int np);", "private void addCopiesToPool(Establishment[] establishments, int numPlayers){\n for(Establishment c : establishments){\n c.setNumCopies(numPlayers);\n }\n }", "public Builder addNetworks(int index, Network value) {\n if (networksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNetworksIsMutable();\n networks_.add(index, value);\n onChanged();\n } else {\n networksBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Network (int N, int type) {\n this.N=N;\n nodes=new Node[N];\n functions=new String[N];\n }", "public int getNumberOfConnectorsNetworkInputs() { return numberOfConnectorsNetworkInputs; }", "void setChainInfo(String chainId, String chainName, int groupCount);", "public void setNickels(int n)\n {\n\tthis.nickels = n;\n\tchangeChecker();\n }", "protected void setNeuralNetwork(NeuralNetwork nnet) {\n\t\tthis.nnet = nnet;\n\t}", "@Override\n\tpublic void setNodes(int nodes) {\n\t\tmodel.setNodes(nodes);\n\t}", "public void SetNPoints(int n_points);", "public void setMaxConns(int value) {\n this.maxConns = value;\n }", "int getNumSources();", "private void trainNetwork(long iterations) {\n\t\ttrainer.startTraining(network, iterations);\r\n\r\n\t}", "public void changeInPortCount(int newPortCount) {\n\n\t\tList<String> portTerminals = new ArrayList<>();\n\t\tportTerminals.addAll(ports.keySet());\n\t\tfor (String key : portTerminals) {\n\t\t\tif (key.contains(\"in\")) {\n\t\t\t\tports.get(key).setNumberOfPortsOfThisType(newPortCount);\n\t\t\t}\n\t\t}\n\t\tsetInPortCount(newPortCount);\n\t}", "void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}", "public void setNum_solver_iterations(short num_solver_iterations) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 18, num_solver_iterations);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 10, num_solver_iterations);\n\t\t}\n\t}", "public synchronized void setNumberOfServers(int num) {\n\t\tif(num != this.numServers) {\n\t\t\tthis.updating = true;\n\t\t\tthis.prevNumServers = this.numServers;\n\t\t\tthis.numServers = num;\n\t\t\tthis.rehashUsers();\n\t\t\tthis.updating = false;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public void setNrVertices(int nrVertices){\n this.nrVertices = nrVertices;\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "public abstract void setVarCount(int varCount);", "private void setNumberOfShips(int numberOfShips) {\r\n\t\tthis.numberOfShips = numberOfShips;\r\n\t}", "void setNumberOfResults(int numberOfResults);", "public void writeNumberOfOutNeurals() {\r\n \r\n outputLayer.setNumberOfNeurals(numberOfOutputNeurals);\r\n }", "private int visitedNetworksCount() {\n final HashSet<String> visitedNetworksSet = new HashSet<>(mVisitedNetworks);\n return visitedNetworksSet.size();\n }", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public void setMaxConnections(int maxConnections)\n {\n _maxConnections = maxConnections;\n }", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public void setCount(int count)\n {\n this.count = count;\n }", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }", "public Network() {\n\t\tnodes.put(\"192.168.0.0\", new NetNode(\"192.168.0.0\"));\n\t\tnodes.put(\"192.168.0.1\", new NetNode(\"192.168.0.1\"));\n\t\tnodes.put(\"192.168.0.2\", new NetNode(\"192.168.0.2\"));\n\t\tnodes.put(\"192.168.0.3\", new NetNode(\"192.168.0.3\"));\n\t\tnodes.put(\"192.168.0.4\", new NetNode(\"192.168.0.4\"));\n\t\t//manually entering ports\n\t\t//0 to 1 and 2\n\t\tnodes.get(\"192.168.0.0\").addPort(nodes.get(\"192.168.0.1\"));\n\t\tnodes.get(\"192.168.0.0\").addPort(nodes.get(\"192.168.0.2\"));\n\t\t//1 to 0 and 3\n\t\tnodes.get(\"192.168.0.1\").addPort(nodes.get(\"192.168.0.0\"));\n\t\tnodes.get(\"192.168.0.1\").addPort(nodes.get(\"192.168.0.3\"));\n\t\t//2 to 0 and 3 and 4\n\t\tnodes.get(\"192.168.0.2\").addPort(nodes.get(\"192.168.0.0\"));\n\t\tnodes.get(\"192.168.0.2\").addPort(nodes.get(\"192.168.0.3\"));\n\t\tnodes.get(\"192.168.0.2\").addPort(nodes.get(\"192.168.0.4\"));\n\t\t//3 to 1 and 2 and 4\n\t\tnodes.get(\"192.168.0.3\").addPort(nodes.get(\"192.168.0.1\"));\n\t\tnodes.get(\"192.168.0.3\").addPort(nodes.get(\"192.168.0.2\"));\n\t\tnodes.get(\"192.168.0.3\").addPort(nodes.get(\"192.168.0.4\"));\n\t\t//4 to 2 and 3\n\t\tnodes.get(\"192.168.0.4\").addPort(nodes.get(\"192.168.0.2\"));\n\t\tnodes.get(\"192.168.0.4\").addPort(nodes.get(\"192.168.0.3\"));\n\t}", "protected void setNumVars(int numVars)\n {\n \tthis.numVars = numVars;\n }", "public void setPrefetchCardCount(int n) {\n mController.setPrefetchCardCount(n);\n }", "private void updateNumberOfConnections(int delta)\n\t{\n\t\tint count = numberOfConnections.addAndGet(delta);\t\t\n\t\tLOG.debug(\"Active connections count = {}\", count);\n\t}", "public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}", "public void setReuse(int times)\n {\n this.reuseGrid = times;\n }", "private void setNN(int NN) {\n\t\tCMN.NN = NN;\n\t}", "public void connectNodes(){\n for(int i = 0; i < inputSize; i++){\n network.get(0).add(new InputNode());\n }\n \n for(int i = 1; i < layers; i++){\n \n for(int j = 0; j < layerSize; j++){\n \n network.get(i).add(new Node(network.get(i-1)));\n }\n \n }\n \n }", "boolean setReplicaCount(Type type, int number);", "private void setConnectionNO(SewerageConnectionRequest request) {\n\t\tList<String> connectionNumbers = getIdList(request.getRequestInfo(),\n\t\t\t\trequest.getSewerageConnection().getTenantId(), config.getSewerageIdGenName(),\n\t\t\t\tconfig.getSewerageIdGenFormat(), 1);\n\n\t\tif (CollectionUtils.isEmpty(connectionNumbers) || connectionNumbers.size() != 1) {\n\t\t\tMap<String, String> errorMap = new HashMap<>();\n\t\t\terrorMap.put(\"IDGEN_ERROR\",\n\t\t\t\t\t\"The Id of Sewerage Connection returned by idgen is not equal to number of Sewerage Connection\");\n\t\t\tthrow new CustomException(errorMap);\n\t\t}\n\n\t\trequest.getSewerageConnection().setConnectionNo(connectionNumbers.listIterator().next());\n\t}", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "Neuron setSynapses(List<Neuron> synapses);", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "void setReplicaCount(String clusterName, ClusterSpec clusterSpec, int replicaLimit);", "public void set_count(int c);", "public Builder setN(int value) {\n \n n_ = value;\n onChanged();\n return this;\n }", "public void setSampleSize(int n){\n\t\tsetParameters(populationSize, type1Size, n);\n\t}", "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "private void setListOfEdges(int numberOfVertex) {\n this.edges = new LinkedList[numberOfVertex];\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setMinConnections(int minConnections) {\n this.minConnections = minConnections;\n saveProperties();\n }", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "public void setNumObjects(int x)\n\t{\n\t\tthis.numObjects = x;\n\t}", "private void setSpritesCount(int count) {\n this.count = count;\n }", "private void setPortCount(PortAlignmentEnum pAlign, int portCount, boolean changePortCount) {\n\t\tif(pAlign.equals(PortAlignmentEnum.LEFT)){\n\t\t\tleftPortCount = leftPortCount + portCount;\n\t\t\tproperties.put(\"inPortCount\", String.valueOf(portCount));\n\t\t\tchangeInPortsCntDynamically=changePortCount;\n\t\t} else if (pAlign.equals(PortAlignmentEnum.RIGHT)) {\n\t\t\trightPortCount = rightPortCount + portCount;\n\t\t\tproperties.put(\"outPortCount\", String.valueOf(portCount));\n\t\t\tchangeOutPortsCntDynamically=changePortCount;\n\t\t} else if (pAlign.equals(PortAlignmentEnum.BOTTOM)) {\n\t\t\tbottomPortCount = bottomPortCount + portCount;\n\t\t\tproperties.put(\"unusedPortCount\", String.valueOf(portCount));\n\t\t\tchangeUnusedPortsCntDynamically=changePortCount;\n\t\t\t\n\t\t}\n\t}" ]
[ "0.6643821", "0.6441853", "0.63815343", "0.59575504", "0.59310806", "0.5866793", "0.5840113", "0.58392996", "0.5813464", "0.5806505", "0.5806313", "0.57404125", "0.57374054", "0.573374", "0.5723413", "0.56877023", "0.5679834", "0.5618022", "0.5590891", "0.5585244", "0.55682665", "0.5565075", "0.55610156", "0.55578125", "0.5530692", "0.55031496", "0.5482224", "0.5482086", "0.54765", "0.5466241", "0.54658425", "0.5465199", "0.5465199", "0.5465199", "0.5459291", "0.5458389", "0.5450612", "0.54407746", "0.54193324", "0.5419165", "0.54070526", "0.5401391", "0.5385482", "0.5377635", "0.5369001", "0.5366008", "0.5359196", "0.5357133", "0.53554976", "0.53464127", "0.5343469", "0.5330257", "0.5328483", "0.5313873", "0.53014493", "0.5300715", "0.5296973", "0.5295641", "0.5294261", "0.52717966", "0.5268024", "0.52663004", "0.52657026", "0.5260492", "0.5249312", "0.52459085", "0.52453333", "0.5240024", "0.52312005", "0.5224592", "0.5223707", "0.5222253", "0.52215624", "0.5219519", "0.52187246", "0.5214523", "0.5212303", "0.52119726", "0.52002364", "0.5194204", "0.5192837", "0.51862365", "0.51821005", "0.51701605", "0.51696604", "0.5165882", "0.51633734", "0.5161314", "0.5158563", "0.51557046", "0.5151267", "0.5151267", "0.5151267", "0.5151267", "0.5151267", "0.5148211", "0.5139754", "0.5133511", "0.5122012", "0.512155" ]
0.67607117
0
Gets status of source
public String getStatus() { return _status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSrcStatus() {\r\n return (String) getAttributeInternal(SRCSTATUS);\r\n }", "String status();", "String status();", "public Status getStatus();", "public Status getStatus() {\r\n\t return status;\r\n\t }", "public Status getStatus() {\r\n return status;\r\n }", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "public synchronized String getStatus(){\n\t\treturn status;\n\t}", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public String getStatus() { return status; }", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public int status() {\n return status;\n }", "public Status getStatus()\n\t{\n\t\treturn status;\n\t}", "public Status getStatus() {\n return status;\n }", "public Status getStatus() {\n return status;\n }", "public Status getStatus() {\n return status;\n }", "public Status getStatus()\n {\n return status;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus();", "public int getStatus();", "public int getStatus();", "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "public String getStatus () {\r\n return status;\r\n }", "String getDataStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public int getStatus()\n {\n return status;\n }", "@Override\n public Status getStatus() {\n return status;\n }", "public State getsourcestate(){\n\t\treturn this.sourcestate;\n\t}", "public com.google.protobuf.ByteString getStatus() {\n return instance.getStatus();\n }", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "public synchronized ScriptStatus getStatus() {\n return this.status;\n }", "public java.lang.String getStatus () {\r\n\t\treturn status;\r\n\t}", "public Status getStatus() {\n\t\treturn status;\n\t}", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public com.google.protobuf.ByteString getStatus() {\n return status_;\n }", "public Status getStatus(){\n return status;\n }", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public Status status() {\n return status;\n }", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public Status status() {\n return _status;\n }", "public java.lang.String getStatus() {\r\n return status;\r\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "@Override\n\tpublic int getStatus();", "@Override\n\tpublic int getStatus();" ]
[ "0.7456488", "0.6710715", "0.6710715", "0.67036295", "0.66976684", "0.66387624", "0.66313106", "0.66313106", "0.66313106", "0.66313106", "0.66313106", "0.66313106", "0.66313106", "0.66313106", "0.66313106", "0.66313106", "0.66313106", "0.66304", "0.661634", "0.661634", "0.66078687", "0.6589982", "0.65771353", "0.65771353", "0.65771353", "0.65771353", "0.65771353", "0.65771353", "0.65771353", "0.65771353", "0.65771353", "0.656796", "0.65655327", "0.654783", "0.65448165", "0.65448165", "0.65448165", "0.65438634", "0.65413433", "0.65413433", "0.65413433", "0.65413433", "0.65413433", "0.65413433", "0.65413433", "0.65413433", "0.65413433", "0.65412086", "0.65412086", "0.65412086", "0.6535253", "0.6526613", "0.6525128", "0.6513758", "0.6513758", "0.6513758", "0.6513758", "0.6513758", "0.65109956", "0.65109956", "0.65109956", "0.65109956", "0.65109956", "0.6508803", "0.64948565", "0.6494289", "0.6493818", "0.6487417", "0.6482957", "0.6482957", "0.6482957", "0.6482957", "0.6472508", "0.6463168", "0.6463066", "0.64615506", "0.64581424", "0.64581424", "0.645488", "0.64450157", "0.64449596", "0.64449596", "0.6441468", "0.6434705", "0.6434705", "0.6434705", "0.6434705", "0.6434705", "0.6429217", "0.6429217", "0.6429217", "0.6429217", "0.6429217", "0.6428035", "0.6419166", "0.64161354", "0.6414084", "0.6414084", "0.6414084", "0.64053804", "0.64053804" ]
0.0
-1
Sets status of source
public void setStatus(String _status) { this._status = _status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSrcStatus(String value) {\r\n setAttributeInternal(SRCSTATUS, value);\r\n }", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "void setStatus(STATUS status);", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) { this.status = status; }", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatus(String stat)\n {\n status = stat;\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "void setStatus(int status);", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}", "public void setStatus(final String status) {\n this.status = status;\n }", "public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}" ]
[ "0.74721974", "0.69880164", "0.69550323", "0.6927915", "0.68650025", "0.6852722", "0.6852722", "0.6852722", "0.6852722", "0.6758149", "0.6756602", "0.6738938", "0.6738938", "0.6734434", "0.67063916", "0.6700925", "0.66998565", "0.66857547", "0.6685563", "0.6685563", "0.6677765", "0.66741645", "0.667124", "0.6647159", "0.6647159", "0.66346365", "0.66346365", "0.66346365", "0.66346365", "0.66346365", "0.66345614", "0.66345614", "0.66345614", "0.66345614", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.6620499", "0.66204816", "0.66204816", "0.66095734", "0.6609039", "0.6609039", "0.66085273", "0.66071075", "0.66054785", "0.66054785", "0.65970004", "0.6592952", "0.65859514", "0.65801877", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6560649", "0.6557189", "0.6551282", "0.6546459", "0.6546459", "0.6544138", "0.6540469", "0.6540469", "0.65383196", "0.65383196", "0.65383196", "0.65383196", "0.65383196", "0.65383196", "0.65383196", "0.6538114", "0.6526673", "0.6524129", "0.6517892" ]
0.65501195
84
Gets REST endpoint URL
public String getEndPoint() { return _endPoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract RestURL getURL();", "public String endpointUrl() {\n return this.endpointUrl;\n }", "private String getRestUrl() {\n return restUrl;\n }", "public URL getEndPoint();", "private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}", "String getServiceUrl();", "String endpoint();", "public String getRestUrl() {\n return this.restUrl;\n }", "java.lang.String getApiUrl();", "public String getRestUrl(VariableSpace space) {\n StringBuilder url = new StringBuilder();\n\n if (useSSL) {\n url.append(\"https://\");\n } else {\n url.append(\"http://\");\n }\n\n url.append(space.environmentSubstitute(tenant)).append('.');\n url.append(space.environmentSubstitute(namespace)).append('.');\n url.append(space.environmentSubstitute(server));\n\n String realPort = space.environmentSubstitute(port);\n if (StringUtils.isNotEmpty(realPort)) {\n url.append(':').append(realPort);\n }\n\n url.append(\"/rest\");\n\n return url.toString();\n }", "public String endpointUri() {\n return this.endpointUri;\n }", "public String getApiUrl();", "public String endpoint() {\n return this.endpoint;\n }", "public String getServiceUrl() {\n return \"http://\" + this.serviceHost + \":\" + this.servicePort;\n }", "public URL getUrl() {\n try {\n StringBuilder completeUrlBuilder = new StringBuilder();\n completeUrlBuilder.append(getBaseEndpointPath());\n completeUrlBuilder.append(path);\n if (requestType == HttpRequest.NetworkOperationType.GET && parameters != null) {\n boolean first = true;\n for (String key : parameters.keySet()) {\n if (first) {\n first = false;\n completeUrlBuilder.append(\"?\");\n } else {\n completeUrlBuilder.append(\"&\");\n }\n completeUrlBuilder.append(key).append(\"=\").append(parameters.get(key));\n }\n }\n return new URL(completeUrlBuilder.toString());\n } catch (MalformedURLException exception) {\n LocalizableLog.error(exception);\n return null;\n }\n }", "String serviceEndpoint();", "String getRequestURL();", "public String getEndpoint() {\n return this.endpoint;\n }", "public String getEndpoint() {\n return this.endpoint;\n }", "@Deprecated // Use TrcApplicationContext\n URI getApiEndpoint();", "public String url() {\n return server.baseUri().toString();\n }", "public static String setURL(String endpoint) {\n String url = hostName + endpoint;\n\n log.info(\"Enpoint: \" + endpoint);\n\n return url;\n\n }", "UMOEndpointURI getEndpointURI();", "public URL getServiceUrl() {\n return url;\n }", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "@Api(1.2)\n @NonNull\n public String url() {\n return mRequest.buildOkRequest().url().toString();\n }", "java.lang.String getUri();", "java.lang.String getUri();", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "protected abstract String getBaseEndpointPath();", "protected abstract String getBaseEndpoint();", "public final HttpEndpoint getEndpoint( ) {\r\n\t\treturn this.endpoint;\t\t\r\n\t}", "public java.lang.String getApiEndpoint() {\n java.lang.Object ref = apiEndpoint_;\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 apiEndpoint_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getUri();", "String getStaticWebEndpoint();", "public String getURL()\n {\n return getURL(\"http\");\n }", "public String getDocumentEndpoint();", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "protected String getServiceEndpoint(String serviceName) {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n return url + serviceName;\n }", "String getServerUrl();", "String getUri( );", "public String getEndpoint() {\n\t\treturn null;\n\t}", "@java.lang.Override\n public java.lang.String getApiEndpoint() {\n java.lang.Object ref = apiEndpoint_;\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 apiEndpoint_ = s;\n return s;\n }\n }", "String getRequestedUrl();", "public String getServerUri(String namespace);", "public String getBaseUrl() {\n StringBuffer buf = new StringBuffer();\n buf.append(getScheme());\n buf.append(\"://\");\n buf.append(getServerName());\n if ((isSecure() && getServerPort() != 443) ||\n getServerPort() != 80) {\n buf.append(\":\");\n buf.append(getServerPort());\n }\n return buf.toString();\n }", "Uri getUrl();", "@ApiModelProperty(value = \"The TEC REST API link to fetch this event\")\n public String getRestUrl() {\n return restUrl;\n }", "public String getUri();", "public String getServerUrl() {\n return props.getProperty(\"url\");\n }", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}", "public String getSearchEndpoint();", "public String getHandleServiceBaseUrl();", "public static String getResourceEndpointURL(String resource) throws NotFoundException {\n\n return resourceURLBuilder.build(resource);\n }", "public final String getEndpointOverrideUrl() {\n return properties.get(ENDPOINT_OVERRIDE_URL_PROPERTY);\n }", "@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}", "String getQueryRequestUrl();", "public String getRequestUri()\n {\n return requestUri;\n }", "public static String getURL() {\n\t return getURL(BackOfficeGlobals.ENV.NIS_USE_HTTPS, BackOfficeGlobals.ENV.NIS_HOST, BackOfficeGlobals.ENV.NIS_PORT);\n\t}", "public String getServiceUrl() {\n return serviceUrl;\n }", "String getBaseUri();", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "public String getRequestUrl(){\n return this.requestUrl;\n }", "String getSpecUrl();", "String webSocketUri();", "public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}", "private String getServiceEndpointAddress() {\n try {\n Config config = Config.getInstance();\n return config.getHost();\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Service url is wrong.\");\n }\n }", "String url();", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }", "@Override\n public String getUrl() {\n StringBuilder sb = new StringBuilder(baseUrl);\n if (mUrlParams.size() > 0) {\n sb.append(\"?\");\n for (String key : mUrlParams.keySet()) {\n sb.append(key);\n sb.append(\"=\");\n sb.append(mUrlParams.get(key));\n sb.append(\"&\");\n }\n }\n String result = sb.substring(0, sb.length() - 1);\n return result;\n }", "public String getURL();", "public String getSubscribeEndpoint() {\n \t\treturn this.subscriptionsTarget.getUri().toString();\n \t}", "@Override\n public String toString() {\n return endpoint;\n }", "public String getBaseUrl()\n {\n return baseUrl;\n }", "public static String getBaseUrl() {\r\n if (baseUrl == null) {\r\n baseUrl = Constants.HTTP_PROTOCOL + \"://\" + getBaseHost() + \":\" + getBasePort();\r\n }\r\n return baseUrl;\r\n }", "public String getURL(){\r\n\t\tString url = \"rmi://\";\r\n\t\turl += this.getAddress()+\":\"+this.getPort()+\"/\";\r\n\t\treturn url;\r\n\t}", "public java.lang.String getApiUrl() {\n java.lang.Object ref = apiUrl_;\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 apiUrl_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static String getApiUrl() {\n return API_URL;\n }", "public java.lang.String getReqUri() {\n return req_uri;\n }", "public java.lang.String getApiUrl() {\n java.lang.Object ref = apiUrl_;\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 apiUrl_ = s;\n }\n return s;\n }\n }", "public java.lang.String getReqUri() {\n return req_uri;\n }", "public String getSparqlEndPoint() {\n\t\treturn this.sparqlEndPointURL;\n\t}", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://developer.zohoapis.eu\";\n\t\t}", "private String getUrlPlanet() {\n return this.url + this.resource;\n }", "public String getBaseUrl() {\r\n return baseUrl;\r\n }", "URI getUri();", "FullUriTemplateString baseUri();", "public String swaggerUri() {\n return this.swaggerUri;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getServerURI() {\n return settings.getString(\"server_url\", DEFAULT_SERVER_URL);\n }", "public URI getRequestURI();", "private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}", "public String getBaseUrl() {\n return (String) get(\"base_url\");\n }", "public String getEasyCoopURI() {\r\n String uri = \"\";\r\n\r\n try {\r\n javax.naming.Context ctx = new javax.naming.InitialContext();\r\n uri = (String) ctx.lookup(\"java:comp/env/easycoopbaseurl\");\r\n //BASE_URI = uri; \r\n } catch (NamingException nx) {\r\n System.out.println(\"Error number exception\" + nx.getMessage().toString());\r\n }\r\n\r\n return uri;\r\n }", "@Override\r\n public String getURL() {\n return url;\r\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }" ]
[ "0.7652569", "0.7532069", "0.7526778", "0.75224686", "0.7508008", "0.7476351", "0.74414104", "0.73491716", "0.73282564", "0.7317233", "0.72914255", "0.70616543", "0.70312804", "0.7029573", "0.7027187", "0.7010589", "0.69503754", "0.69313306", "0.69313306", "0.69291943", "0.69199365", "0.6862325", "0.6816644", "0.6768426", "0.6764355", "0.6706484", "0.6705117", "0.6705117", "0.66920674", "0.6675567", "0.66744256", "0.66557854", "0.6650115", "0.6647549", "0.66307557", "0.6625201", "0.6600765", "0.66001064", "0.65988743", "0.6594037", "0.65868264", "0.6566865", "0.65477735", "0.6542319", "0.6524462", "0.6515483", "0.649502", "0.648975", "0.64815384", "0.6474384", "0.6467317", "0.6447702", "0.6446221", "0.64383006", "0.64217675", "0.64092135", "0.6399038", "0.639283", "0.63902944", "0.63891894", "0.63739157", "0.6372616", "0.63639385", "0.63604623", "0.6351272", "0.6350949", "0.63496584", "0.6348203", "0.63439083", "0.6343812", "0.6338679", "0.6338227", "0.63124466", "0.6299818", "0.62955", "0.6279168", "0.62783813", "0.62770796", "0.6276609", "0.62571615", "0.6255658", "0.6248545", "0.6236258", "0.6234868", "0.6234107", "0.62314975", "0.6230992", "0.62036306", "0.61965954", "0.6195399", "0.61944664", "0.61944664", "0.61892426", "0.6187918", "0.61876273", "0.6174579", "0.61691165", "0.61618567", "0.6157793", "0.6157793" ]
0.62136567
87
Sets REST endpoint URL
public void setEndPoint(String _endPoint) { this._endPoint = _endPoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String setURL(String endpoint) {\n String url = hostName + endpoint;\n\n log.info(\"Enpoint: \" + endpoint);\n\n return url;\n\n }", "public void setRestUrl(String url) {\n this.restUrl = url;\n }", "void setEndpoint(String endpoint);", "private String getRestUrl() {\n return restUrl;\n }", "void setDefaultEndpointUri(String endpointUri);", "public abstract RestURL getURL();", "public String getRestUrl() {\n return this.restUrl;\n }", "private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}", "public String endpointUrl() {\n return this.endpointUrl;\n }", "public String getRestUrl(VariableSpace space) {\n StringBuilder url = new StringBuilder();\n\n if (useSSL) {\n url.append(\"https://\");\n } else {\n url.append(\"http://\");\n }\n\n url.append(space.environmentSubstitute(tenant)).append('.');\n url.append(space.environmentSubstitute(namespace)).append('.');\n url.append(space.environmentSubstitute(server));\n\n String realPort = space.environmentSubstitute(port);\n if (StringUtils.isNotEmpty(realPort)) {\n url.append(':').append(realPort);\n }\n\n url.append(\"/rest\");\n\n return url.toString();\n }", "public void setEndpointUrl(final String endpointUrl) {\n\t\tthis.endpointUrl = endpointUrl;\n\t}", "public Builder url(URI endpoint) {\n return server(endpoint);\n }", "public final GetHTTP setUrl(final String url) {\n properties.put(URL_PROPERTY, url);\n return this;\n }", "IParser setServerBaseUrl(String theUrl);", "void setBaseUri(String baseUri);", "public void setEndpoint(com.quikj.server.app.EndPointInterface endpoint) {\n\t\tthis.endpoint = endpoint;\n\t}", "@ApiModelProperty(value = \"The TEC REST API link to fetch this event\")\n public String getRestUrl() {\n return restUrl;\n }", "public String endpointUri() {\n return this.endpointUri;\n }", "public HttpEndpoint( String theEndpoint ) {\n\t\tthis( theEndpoint, true );\n\t}", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "public void setURL(String url);", "public void setEndpoint(org.hl7.fhir.Uri endpoint)\n {\n generatedSetterHelperImpl(endpoint, ENDPOINT$8, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public io.confluent.developer.InterceptTest.Builder setReqUri(java.lang.String value) {\n validate(fields()[4], value);\n this.req_uri = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "public void setURL() {\n\t\tURL = Constant.HOST_KALTURA+\"/api_v3/?service=\"+Constant.SERVICE_KALTURA_LOGIN+\"&action=\"\n\t\t\t\t\t\t+Constant.ACTION_KALTURA_LOGIN+\"&loginId=\"+Constant.USER_KALTURA+\"&password=\"+Constant.PASSWORD_KALTURA+\"&format=\"+Constant.FORMAT_KALTURA;\n\t}", "public RestAPI setBaseURL(String url) throws APIException {\n\t\tthis.url = url;\n\t\tcheckBaseURL();\n\n\t\treturn this;\n\t}", "public void setUrl(String url) {\n if(url != null && !url.endsWith(\"/\")){\n url += \"/\";\n }\n this.url = url;\n }", "String getServiceUrl();", "public URL getEndPoint();", "public void setHTTP_URL(String url) {\r\n\t\ttry {\r\n\t\t\tURL u = new URL(url);\r\n\t\t\tu.toURI();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tthis.settings.setProperty(\"HTTP_URL\", url);\r\n\t\tthis.saveChanges();\r\n\t}", "java.lang.String getApiUrl();", "public void setUrl(Uri url) {\n this.urlString = url.toString();\n }", "public Builder setApiEndpoint(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n apiEndpoint_ = value;\n bitField0_ |= 0x00080000;\n onChanged();\n return this;\n }", "public void setUrl(String url);", "public void setUrl(String url);", "public String getServiceUrl() {\n return \"http://\" + this.serviceHost + \":\" + this.servicePort;\n }", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t\tthis.handleConfig(\"url\", url);\n\t}", "public RgwAdminBuilder endpoint(String endpoint) {\n this.endpoint = endpoint;\n return this;\n }", "public void setUrl(String url, OgemaHttpRequest req) {\n\t\tgetData(req).setUrl(url);\n\t}", "public Builder setEndpoint(String endpoint) {\n this.endpoint = Preconditions.checkNotNull(endpoint, \"Endpoint is null.\");\n return this;\n }", "public final String getEndpointOverrideUrl() {\n return properties.get(ENDPOINT_OVERRIDE_URL_PROPERTY);\n }", "public void setServer(URL url) {\n\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The URI for this resource, relative to /apiserver.\")\n\n public String getUri() {\n return uri;\n }", "@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}", "public void setBaseUrl(final String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public String endpoint() {\n return this.endpoint;\n }", "public String getEndpoint() {\n return this.endpoint;\n }", "public String getEndpoint() {\n return this.endpoint;\n }", "public void setRequestURI(URI requestURI);", "void setUrl(String url) {\n this.url = Uri.parse(url);\n }", "public void setURL(String _url) { url = _url; }", "public String getApiUrl();", "public void setUrl(URL url)\n {\n this.url = url;\n }", "SearchServiceRestClientImpl setEndpoint(String endpoint) {\n this.endpoint = endpoint;\n return this;\n }", "public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}", "@Before\n public void setBaseUri () {\n RestAssured.port = 8080;\n RestAssured.baseURI = \"http://localhost\";\n RestAssured.basePath = \"/v1\";\n }", "void configureEndpoint(Endpoint endpoint);", "@Value(\"#{props.endpoint}\")\n\tpublic void setEndPoint(String val) {\t\t\n\t this.val = val;\n\t}", "@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public void setURL(@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n String inURL);", "public void setReqUri(java.lang.String value) {\n this.req_uri = value;\n }", "public void setEndPoint(EndPoint endPoint) {\r\n\t\tthis.endPoint = endPoint;\r\n\t}", "public void setBaseUrl(String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public void setResourceUrl(String url) {\n this.resourceUrl = url;\n }", "public void setURL(String inputSchema, String outputSchema) {\n String port = getPortValueForJS();\n browser.setUrl(\"http://localhost:\" + port + \"/dataMapper?port=\" + port + \"&inputtype=\" + inputSchema\n + \"&outputtype=\" + outputSchema + NO_CACHE);\n }", "public void setServerUrl(String newUrl) {\n if(newUrl == null){\n return;\n }\n props.setProperty(\"url\", newUrl);\n saveProps();\n }", "@Override\r\n public String getURL() {\n return url;\r\n }", "void setQueryRequestUrl(String queryRequestUrl);", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "public void setEndpoints(String... endpoints) {\n this.endpoints = endpoints;\n }", "public Builder setApiUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n apiUrl_ = value;\n onChanged();\n return this;\n }", "String endpoint();", "public String getBaseUrl() {\r\n return baseUrl;\r\n }", "UMOEndpointURI getEndpointURI();", "public void setStepikApiUrl(String apiURL){\n this.STEPIK_API_URL = apiURL;\n setupAPI();\n }", "void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;", "@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }", "void setDefaultEndpoint(Endpoint defaultEndpoint);", "@Deprecated // Use TrcApplicationContext\n URI getApiEndpoint();", "public URL getServiceUrl() {\n return url;\n }", "public String getBaseUrl()\n {\n return baseUrl;\n }", "public void setBaseURL(String val) {\n\n\t\tbaseURL = val;\n\n\t}", "@Override\n public void setUrl(String url) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Directory manager \" + directoryManager);\n }\n try {\n super.setUrl(directoryManager.replacePath(url));\n } catch (Exception e) {\n LOGGER.error(\"Exception thrown when setting URL \", e);\n throw new IllegalStateException(e);\n }\n }", "@Override\r\n\tpublic void setAPIBaseUrl(String apiBaseUrl) {\n\t\tthis.apiBaseUrl = apiBaseUrl;\r\n\t}", "private String getRootUrl(String path){\n return \"http://localhost:\" + port + \"/api/v1\" + path;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public SeriesInstance setUrl( String theUri) {\n\t\tmyUrl = new UriDt(theUri); \n\t\treturn this; \n\t}", "@JsonProperty(\"url\")\n public void setUrl(String url) {\n this.url = url;\n }", "@JsonProperty(\"url\")\n public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\r\n hc.setUrl(url);\r\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public String getServiceUrl() {\n return serviceUrl;\n }", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "String serviceEndpoint();", "public void changeUrl() {\n url();\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "private void setURL(String url) {\n try {\n URL setURL = new URL(url);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }" ]
[ "0.74346524", "0.73023766", "0.7195438", "0.70170563", "0.6840534", "0.6820351", "0.67928725", "0.67676973", "0.6490758", "0.64224696", "0.63611645", "0.6292661", "0.6287851", "0.62457234", "0.6232375", "0.62084806", "0.6204174", "0.61669964", "0.6156548", "0.61546284", "0.615135", "0.61486757", "0.61306465", "0.6107596", "0.6082057", "0.6069969", "0.60562074", "0.6054699", "0.60384953", "0.6037225", "0.5994782", "0.59799916", "0.59708744", "0.59708744", "0.596842", "0.5957049", "0.5949278", "0.5942439", "0.5937142", "0.5924209", "0.5904303", "0.59034675", "0.5891634", "0.5887155", "0.5885851", "0.5880732", "0.58778775", "0.58778775", "0.5868593", "0.5858462", "0.58559996", "0.5849273", "0.5839436", "0.5838802", "0.5838059", "0.5794523", "0.57906675", "0.5783449", "0.57735634", "0.57727593", "0.5768712", "0.57634866", "0.5743515", "0.57412976", "0.57231104", "0.57145387", "0.5714107", "0.5706937", "0.5690285", "0.56854886", "0.5673889", "0.5670773", "0.56674075", "0.5661193", "0.56567806", "0.5655294", "0.5643804", "0.5628158", "0.56196743", "0.5617136", "0.5611309", "0.5609375", "0.56025535", "0.5602497", "0.5594234", "0.5594234", "0.5564334", "0.55548006", "0.55548006", "0.55535376", "0.55316293", "0.5526116", "0.55060893", "0.5505813", "0.54955924", "0.5486577", "0.5486577", "0.5486367", "0.5478913", "0.547692" ]
0.58864903
44
Gets version of source
public String getVersion() { return _version; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "private String getRevision() {\r\n Properties p = new Properties();\r\n try{\r\n String toolsdir = System.getProperty(Main.TOOLSDIR);\r\n File sourceProp;\r\n if (toolsdir == null || toolsdir.length() == 0) {\r\n sourceProp = new File(SdkConstants.FN_SOURCE_PROP);\r\n } else {\r\n sourceProp = new File(toolsdir, SdkConstants.FN_SOURCE_PROP);\r\n }\r\n FileInputStream fis = null;\r\n try {\r\n fis = new FileInputStream(sourceProp);\r\n p.load(fis);\r\n } finally {\r\n if (fis != null) {\r\n try {\r\n fis.close();\r\n } catch (IOException ignore) {\r\n }\r\n }\r\n }\r\n\r\n String revision = p.getProperty(PkgProps.PKG_REVISION);\r\n if (revision != null) {\r\n return revision;\r\n }\r\n } catch (FileNotFoundException e) {\r\n // couldn't find the file? don't ping.\r\n } catch (IOException e) {\r\n // couldn't find the file? don't ping.\r\n }\r\n\r\n return \"?\";\r\n }", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "public static String getVersion() {\n\t\t String data = \"\";\n\t\ttry {\n\t\t File myObj = new File(rootdir+\"/version.txt\");\n\t Scanner myReader = new Scanner(myObj);\n\t while (myReader.hasNextLine()) {\n\t data = myReader.nextLine();\n\t break;\n\t }\n\t myReader.close();\n\t return data;\n\t } catch (FileNotFoundException e) {\n\t \tSystem.out.println(\"An error occurred.\");\n\t \te.printStackTrace();\n\t }\n\t\treturn null;\n\t}", "String version();", "public Version getVersion();", "public long getVersion(){\n return localVersion;\n }", "public static String getVersion() {\n\n try {\n //Open file\n ClassLoader classLoader = new ResourceLoader().getClass().getClassLoader();\n File file = new File(classLoader.getResource(RELEASE_NOTES).getFile());\n //Read File Content\n String content = new String(Files.readAllBytes(file.toPath()));\n content = content.split(\"VERSION \")[1]; //version number comes after VERSION\n content = content.split(\"\\n\")[0]; //and before the next new line\n return content;\n } catch (IOException ex) {\n Logger.getLogger(ResourceLoader.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n\n }", "long getVersion();", "long getVersion();", "long getVersion();", "long getVersion();", "@Override\n public SourceVersion getSupportedSourceVersion() {\n\tSourceVersion cversion = super.getSupportedSourceVersion();\n\tSourceVersion version = SourceVersion.latest();\n\treturn (cversion.ordinal() > version.ordinal())? cversion: version;\n }", "public static final String getVersion() { return version; }", "public static final String getVersion() { return version; }", "public abstract String getVersion();", "public abstract String getVersion();", "public abstract String getVersion();", "int getCurrentVersion();", "public static String getVersion() {\n\t\treturn version;\r\n\t}", "String buildVersion();", "String offerVersion();", "public static String getVersion() {\n\t\treturn version;\n\t}", "public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}", "public String getVersion(){\r\n return version;\r\n }", "public static String getVersion() {\n return version;\n }", "public static String getVersion() {\n return version;\n }", "public String getVersion () {\r\n return version;\r\n }", "@CheckForNull\n String getVersion();", "public java.lang.String getVersion() {\r\n return version;\r\n }", "long version();", "public String getVersion()\n {\n return version;\n }", "Long getVersion();", "public java.lang.String getVersion() {\n return version_;\n }", "public static String getVersion() {\n\t\treturn \"1.0.3\";\n\t}", "public String getVersion () {\n return this.version;\n }", "public String getVersionNumber ();", "public String getBuildVersion() {\n try {\n Properties versionFileProperties = new Properties();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(\"version.properties\");\n if (inputStream != null) {\n versionFileProperties.load(inputStream);\n return versionFileProperties.getProperty(\"version\", \"\") + \" \" + versionFileProperties.getProperty(\"timestamp\", \"\");\n }\n } catch (IOException e) {\n Logger.getLogger(OnStartup.class.getName()).log(Level.SEVERE, null, e);\n }\n return \"\";\n }", "long getVersionNumber();", "public String getVersion()\n {\n return version;\n }", "public String getVersion()\n {\n return version;\n }", "public static String getVersion() {\n\t\treturn \"0.9.4-SNAPSHOT\";\n\t}", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion()\n {\n return ver;\n }", "public final String getVersion() {\n return version;\n }", "public String getVersion() {\n return this.version;\n }", "public static String getVersion()\n {\n return \"\";\n }", "public static String getVersion()\n {\n return \"\";\n }", "public String getVersion() {\r\n return version;\r\n }", "public String getVersion()\n {\n //\n // Send EFFECT_CMD_GET_PARAM\n //\n int verLen = 32;\n byte[] version = new byte[verLen];\n getParameter(EFFECT_PARAM_VERSION, version);\n String strFull = new String(version);\n // find the '\\0' in c/c++ format\n int endPos = strFull.indexOf(0);\n String strVer = new String(version, 0, endPos);\n return strVer;\n }", "public CachetVersion getVersion() {\n JsonNode rootNode = get(\"version\");\n CachetVersion version = CachetVersion.parseRootNode(rootNode);\n\nSystem.out.println(\"SSDEDBUG: version = \" + version.getVersion() + \" (latest=\" + version.isLatest() + \")\");\n return version;\n }", "public String get_source() {\n\t\treturn source;\n\t}", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public abstract int getVersion();", "public String getVersion() {\n return version;\n }", "public String getVersionDate();", "public String getVersion() {\n return \"1.0.4-SNAPSHOT\";\n }", "public static String getVersion()\n {\n return \"$Id$\";\n }", "public static Version getVersion() {\r\n\t\tif (VERSION == null) {\r\n\t\t\tfinal Properties props = new Properties();\r\n\t\t\tint[] vs = { 0, 0, 0 };\r\n\t\t\tboolean stable = false;\r\n\t\t\ttry {\r\n\t\t\t\tprops.load(GoogleCalXPlugin.class.getResourceAsStream(\"/META-INF/maven/de.engehausen/googlecalx/pom.properties\"));\r\n\t\t\t\tfinal String pomVersion = props.getProperty(\"version\");\r\n\t\t\t\tstable = !pomVersion.contains(\"SNAPSHOT\");\r\n\t\t\t\tfinal StringTokenizer tok = new StringTokenizer(pomVersion, \".\");\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile (i < 3 && tok.hasMoreTokens()) {\r\n\t\t\t\t\tfinal String str = tok.nextToken();\r\n\t\t\t\t\tfinal int cut = str.indexOf('-');\r\n\t\t\t\t\tif (cut > 0) {\r\n\t\t\t\t\t\tvs[i++] = Integer.parseInt(str.substring(0, cut));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvs[i++] = Integer.parseInt(str);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstable = false;\r\n\t\t\t}\r\n\t\t\tVERSION = new Version(vs[0], vs[1], vs[2], stable);\r\n\t\t}\r\n\t\treturn VERSION;\r\n\t}", "Integer getVersion();", "public com.google.protobuf.ByteString getVersion() {\n return version_;\n }", "public String getProductVersion();", "public String getVersionNum();", "public String version() {\n return this.version;\n }" ]
[ "0.7123584", "0.7123584", "0.7123584", "0.7123584", "0.7123584", "0.7123584", "0.7123584", "0.7123584", "0.7123584", "0.7123584", "0.7123584", "0.7109928", "0.7109928", "0.7109928", "0.7109928", "0.7109928", "0.7109928", "0.7109928", "0.7109928", "0.70598656", "0.6941513", "0.6941513", "0.6941513", "0.6941513", "0.6925531", "0.6925531", "0.6925531", "0.6925531", "0.6895656", "0.6823953", "0.6821544", "0.6738948", "0.6700284", "0.6666037", "0.6666037", "0.6666037", "0.6666037", "0.6664639", "0.6660427", "0.6660427", "0.66577125", "0.66577125", "0.66577125", "0.6643906", "0.6636738", "0.6633251", "0.66153544", "0.66132814", "0.65637183", "0.6547609", "0.65365666", "0.65365666", "0.6501281", "0.64783555", "0.64236295", "0.6413623", "0.6399657", "0.6393138", "0.6387241", "0.6386626", "0.63762915", "0.6366922", "0.6366768", "0.6339092", "0.6335754", "0.6335754", "0.63327175", "0.6331994", "0.6331994", "0.6331624", "0.63147306", "0.6312679", "0.63113904", "0.63113904", "0.63103753", "0.628482", "0.6282616", "0.62777126", "0.6277477", "0.6277477", "0.6277477", "0.6277477", "0.6277477", "0.6277477", "0.6277477", "0.6277477", "0.6277477", "0.6277477", "0.6277477", "0.6276229", "0.6261666", "0.62570655", "0.6251114", "0.62466824", "0.624636", "0.62400424", "0.62250334", "0.6224959", "0.6224118", "0.62231195" ]
0.62602055
91
Sets version of source
public void setVersion(String _version) { this._version = _version; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSource (String source);", "public void setSource(String source);", "public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public void setSource(String source) {\n _source = source;\n }", "public void setSource(String source) {\r\n this.source = source;\r\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(String source) {\n this.source = source;\n }", "public void setSource(AppSyncSource source) {\n appSyncSource = source;\n }", "public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }", "public void setSource(Object o) {\n\t\tsource = o;\n\t}", "@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}", "@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);", "public void setSource(Byte source) {\r\n this.source = source;\r\n }", "void setVersion(String version);", "void setVersion(String version);", "public void setSource(String Source) {\r\n this.Source = Source;\r\n }", "public static void set_SourceContent(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSourceContentCmd, v);\n UmlCom.check();\n \n _src_content = v;\n \n }", "void setVersion(long version);", "public static void setVideoSource(String source){\r\n\r\n editor.putString(\"VideoMode\", source);\r\n editor.commit();\r\n }", "public void setCurrentSource(Object source) {\r\n if (source instanceof IModelNode) {\r\n newSource = (IModelNode) source;\r\n newTarget = null;\r\n }\r\n }", "public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }", "public void setSrc(File source) {\r\n if (!(source.exists())) {\r\n throw new BuildException(\"the presentation \" + source.getName()+ \" doesn't exist\");\r\n }\r\n if (source.isDirectory()) {\r\n throw new BuildException(\"the presentation \" + source.getName() + \" can't be a directory\");\r\n }\r\n this._source = source;\r\n }", "public void setSourceSite(String newsource) {\n sourceSite=newsource;\n }", "public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }", "public static void set_SourceExtension(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSourceExtensionCmd, v);\n UmlCom.check();\n \n _ext = v;\n \n }", "public void setSource(noNamespace.SourceType source)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(SOURCE$0, 0);\r\n if (target == null)\r\n {\r\n target = (noNamespace.SourceType)get_store().add_element_user(SOURCE$0);\r\n }\r\n target.set(source);\r\n }\r\n }", "public final void setSource(final Integer newSource) {\n this.source = newSource;\n }", "public void setContent(Source source) {\n this.content = source;\n }", "public final void testSetSource() {\n Notification n = new Notification(\"type\", \"src\", 1);\n assertEquals(\"src\", n.getSource());\n n.setSource(\"new src\");\n assertEquals(\"new src\", n.getSource());\n }", "public void iSetSourcetoTv() {\n\t\tif (null!=iGetCurrentSouce() && null!=mTVInputManager.getTypeFromInputSource(iGetCurrentSouce()) && !TVInputManager.INPUT_TYPE_TV.equals(\n\t\t\t\tmTVInputManager.getTypeFromInputSource(iGetCurrentSouce()))) {\n\t\t\tmTVInputManager.changeInputSource(iFindTvSource());\n\t\t}\n\t}", "public void setVersion(String version);", "public void setSource(Mat source) {\n this.source = source;\n }", "@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}", "private void setSourceName(String name) {\n srcFileName = name;\n }", "public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }", "public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }", "public ChangeSupport(Object source) {\n this.source = source;\n }", "public void setSourceFile(File file){\n System.out.println(\"Set source file=\" + file.toString());\n this.file = file;\n }", "public Builder setSource(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n source_ = value;\n onChanged();\n return this;\n }", "@JsonProperty(\"source\")\n public void setSource(Source source) {\n this.source = source;\n }", "public void setSourcePath(String sourcePath) {\n this.sourcePath = sourcePath;\n }", "public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }", "public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }", "public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }", "public void setSource(String sourceDir)\n {\n this.sourceDir = new File(sourceDir);\n }", "public void xsetSource(edu.umich.icpsr.ddi.FileTxtType.Source source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTxtType.Source target = null;\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().add_attribute_user(SOURCE$30);\n }\n target.set(source);\n }\n }", "public void setSourceDB(String sourceDB) {\n this.sourceDB = sourceDB;\n }", "public void version_SET(char src)\n { set_bytes((char)(src) & -1L, 1, data, 2); }", "private void updateSourceView() {\n StringWriter sw = new StringWriter(200);\n try {\n new BibEntryWriter(new LatexFieldFormatter(Globals.prefs.getLatexFieldFormatterPreferences()),\n false).write(entry, sw, frame.getCurrentBasePanel().getBibDatabaseContext().getMode());\n sourcePreview.setText(sw.getBuffer().toString());\n } catch (IOException ex) {\n LOGGER.error(\"Error in entry\" + \": \" + ex.getMessage(), ex);\n }\n\n fieldList.clearSelection();\n }", "public Builder setSourceFile(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n sourceFile_ = value;\n onChanged();\n return this;\n }", "public void set_source(short value) {\n setUIntElement(offsetBits_source(), 8, value);\n }", "public void updateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to code generation\n\t\tmode = GENERATE;\n\t\t// Traverse the source and calls back when key source elements are\n\t\t// missing\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Add the source files that are missing\n\t\tArrayList<TagNode> tags = tree.getUnvisited();\n\t\tcreateSourceFiles(tags);\n\t}", "@com.facebook.react.uimanager.annotations.ReactProp(name = \"src\")\n public void setSource(@javax.annotation.Nullable java.lang.String r4) {\n /*\n r3 = this;\n r0 = 0;\n if (r4 == 0) goto L_0x0017;\n L_0x0003:\n r1 = android.net.Uri.parse(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = r1.getScheme();\t Catch:{ Exception -> 0x0025 }\n if (r2 != 0) goto L_0x0023;\n L_0x000d:\n if (r0 != 0) goto L_0x0017;\n L_0x000f:\n r0 = r3.E();\n r0 = m12032a(r0, r4);\n L_0x0017:\n r1 = r3.f11557g;\n if (r0 == r1) goto L_0x001e;\n L_0x001b:\n r3.x();\n L_0x001e:\n r3.f11557g = r0;\n return;\n L_0x0021:\n r1 = move-exception;\n r1 = r0;\n L_0x0023:\n r0 = r1;\n goto L_0x000d;\n L_0x0025:\n r0 = move-exception;\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode.setSource(java.lang.String):void\");\n }", "public Builder setSrc(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n src_ = value;\n onChanged();\n return this;\n }", "public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }", "public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }", "void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;", "public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }", "@SuppressWarnings(\"unused\")\n public CachedSource(Source<V> source) {\n mCache = new Cache<>();\n mSource = source;\n }", "public static void setLocalVersion() {\n Properties prop = new Properties();\n try {\n prop.setProperty(\"updateID\", \"\"+UPDATE_ID); //make sure this matches the server's updateID\n prop.setProperty(\"name\", \"\"+VERSION_NAME);\n prop.store(\n new FileOutputStream(System.getProperty(\"user.home\") + \"/sheepfarmsimulator/client.properties\"), null);\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "static public void setDataSource(DataSource source) {\n ds = source;\n }", "public void setText(String source)\n {\n m_srcUtilIter_.setText(source);\n m_source_ = m_srcUtilIter_;\n updateInternalState();\n }", "public void setSource(String path){\n videoTimeline.setTrim(path);\n getVideoInfo(path);\n }", "public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}", "@Override\n public SourceVersion getSupportedSourceVersion() {\n\tSourceVersion cversion = super.getSupportedSourceVersion();\n\tSourceVersion version = SourceVersion.latest();\n\treturn (cversion.ordinal() > version.ordinal())? cversion: version;\n }", "public void setVersion(String version) {\n\t\t\r\n\t}", "void setSourceRepoUrl(String sourceRepoUrl);", "public void setSource(char[] source) {\n\t\tthis.source = source;\n\t}", "public void initialize(String source);", "public void setSource(URL url) throws IOException {\n\t\tFile f = new File(url.getFile());\n\t\tif (f.isAbsolute()) {\n\t\t\tsourceFile = url;\n\t\t\timg = ImageIO.read(f);\n\t\t\tthis.isRelativePath = false;\n\t\t} else {\n\t\t\tsourceFile = new URL(SymbologyFactory.SymbolLibraryPath\n\t\t\t\t\t+ File.separator + f.getPath());\n\t\t\timg = ImageIO.read(f);\n\t\t\tthis.isRelativePath = true;\n\t\t}\n\t}", "public void setSourceLayer(String sourceLayer) {\n nativeSetSourceLayer(sourceLayer);\n }", "public void setMesh_source(short mesh_source) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 12, mesh_source);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 12, mesh_source);\n\t\t}\n\t}", "public void setVersion(String version){\r\n this.version = version;\r\n }", "public void setSource (AbstractRelationalDataView v) { \n\t\t\n\t\tdv = v; \n\t\t\n\t\t// obtain number of records in training set\n\t\tmembers = dv.GetCount();\n\t}", "@SuppressWarnings(\"unused\")\n private void setVersion(Long version) {\n this.version = version;\n }", "@Override\n\tpublic void setVersion(java.lang.String version) {\n\t\t_scienceApp.setVersion(version);\n\t}", "public void setSource(float xx, float yy);", "public void setSource(String str) {\n\t\tMatcher m = Constants.REGEXP_FIND_SOURCE.matcher(str);\n\t\tif (m.find()) {\n\t\t\tsource = m.group(1);\n\t\t} else {\n\t\t\tsource = Utils.getString(R.string.tweet_source_web);\n\t\t}\n\t}", "public void setVersion(String version)\n {\n this.ver = version;\n }", "void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;", "public Builder setSourceContext(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sourceContext_ = value;\n onChanged();\n return this;\n }", "public void setSourceId(String source) {\n this.sourceId = sourceId;\n }", "private void setVersion(long value) {\n bitField0_ |= 0x00000002;\n version_ = value;\n }", "public void setCurrentVersion(String currentVersion) {\n this.currentVersion = currentVersion;\n }", "void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;", "public final void setVersion(java.lang.String version)\r\n\t{\r\n\t\tsetVersion(getContext(), version);\r\n\t}", "public ClassNode source(String source) {\n $.sourceFile = source;\n return this;\n }", "public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}", "public final void setSourceFile(final String file) {\n this.sourceFile = file;\n }", "public void setVersion(String version)\n {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "public void updateSourceTarget(String source, String target) {\n\t\titem.setText(2, source);\n\t\titem.setText(3, target);\n\t}", "private void setVersionNumber(int version) {\n versionNumber = version;\n }", "public void setVersion( String version )\n {\n this.version = version.toLowerCase( Locale.ENGLISH );\n }", "public abstract void setContent(Source source) throws SOAPException;", "public void setVersion(int value) {\n this.version = value;\n }", "public void setVersion(int version) {\n this.version = version;\n }", "public void setVersion(int version) {\n this.version = version;\n }", "public void setVersion(final Long version);" ]
[ "0.7054935", "0.70530933", "0.7051885", "0.6944604", "0.6746074", "0.6706698", "0.6637077", "0.6637077", "0.65978754", "0.65412503", "0.65006536", "0.6459991", "0.64467376", "0.64153206", "0.64033943", "0.64033943", "0.6372433", "0.6343444", "0.6328215", "0.6325636", "0.6300596", "0.62982845", "0.6285363", "0.62518317", "0.6186561", "0.6157735", "0.61349565", "0.61308867", "0.60423297", "0.60107887", "0.60040677", "0.60033655", "0.5999349", "0.5991633", "0.5989514", "0.59636277", "0.59636277", "0.59466314", "0.5943395", "0.59170437", "0.5910915", "0.59010816", "0.58992374", "0.58992374", "0.589242", "0.58920765", "0.5880595", "0.5875753", "0.58516586", "0.58345425", "0.58221304", "0.5784427", "0.5784421", "0.5774529", "0.5754809", "0.5741502", "0.5741444", "0.57126206", "0.5697058", "0.568989", "0.56738913", "0.56658584", "0.56590354", "0.5633417", "0.56285197", "0.5623721", "0.56138366", "0.5611699", "0.5609454", "0.55986446", "0.559509", "0.5588842", "0.5583566", "0.55799556", "0.5568477", "0.555733", "0.55540454", "0.5548206", "0.55394644", "0.5538806", "0.5536194", "0.5533004", "0.5529344", "0.5519782", "0.55160505", "0.55111057", "0.5509591", "0.55074304", "0.5500183", "0.5498032", "0.54890174", "0.54876775", "0.54876775", "0.54734004", "0.5469939", "0.54691815", "0.54661554", "0.5462892", "0.5458068", "0.5458068", "0.5456686" ]
0.0
-1
Gets list of databases within source
public List<DatabaseResult> getDatabases() { return _databases; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String [] listDatabases();", "public List<String> getDatabaseList() throws SQLException {\n List<String> databaseList = new ArrayList<>();\n ResultSet databases = databaseStatement.executeQuery(\"SELECT datname FROM pg_database;\");\n while (databases.next()) {\n databaseList.add(databases.getString(\"datname\"));\n }\n return databaseList;\n }", "List fetchBySourceDatabase(String sourceDatabaseName) throws AdaptorException ;", "@RequestMapping(value = \"/databases/{srcEnv:.+}\", method = {RequestMethod.GET})\n @ResponseBody\n public RestWrapperOptions getDBList(@PathVariable(\"srcEnv\") String sourceEnv) {\n\n RestWrapperOptions restWrapperOptions = null;\n LOGGER.info(sourceEnv + \"srcEnv\");\n try {\n Class.forName(driverName);\n connection = DriverManager.getConnection(\"jdbc:hive2://\" + sourceEnv + \"/default\", \"\", \"\");\n ResultSet rs = connection.createStatement().executeQuery(\"SHOW DATABASES\");\n\n List<String> databases = new ArrayList<String>();\n while (rs.next()) {\n String dbName = rs.getString(1);\n databases.add(dbName.toUpperCase());\n }\n List<RestWrapperOptions.Option> options = new ArrayList<RestWrapperOptions.Option>();\n for (String database : databases) {\n RestWrapperOptions.Option option = new RestWrapperOptions.Option(database, database);\n options.add(option);\n }\n restWrapperOptions = new RestWrapperOptions(options, RestWrapperOptions.OK);\n } catch (Exception e) {\n LOGGER.error(\"error occured:\" + e);\n restWrapperOptions = new RestWrapperOptions(e.getMessage(), RestWrapper.ERROR);\n }\n return restWrapperOptions;\n }", "java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database> \n getDatabasesList();", "List<String> listDatabases() throws CatalogException;", "public String[] getDatabaseNames() {\n return context.databaseList();\n }", "public List<String> getDatabaseNames() {\r\n try {\r\n // get the database\r\n List<String> dbNames = mongo.getDatabaseNames();\r\n logger.logp(Level.INFO, TAG, \"getCollectionNames\", \" databases:\" + dbNames);\r\n return dbNames;\r\n } catch (Exception e) {\r\n logger.logp(Level.SEVERE, TAG, \"getCollectionNames\", e.getMessage());\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public List<String> getDbNames() {\n return new ArrayList<String>(dbs.keySet());\n }", "@java.lang.Override\n public java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database> getDatabasesList() {\n return databases_;\n }", "public List<String> searchDBName() {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"find all db name\");\n return queryList(\"show databases\");\n }", "List fetchBySourceDatabase(String sourceDatabaseName, String sourceID) throws AdaptorException ;", "public static List<JdbcOption> getDatabaseList(String baseDir) throws Exception {\n\t\tProjectConfig projectConfig = getProjectConfig(getCommonConfigFile(baseDir));\n\t\treturn getDatabaseListFromFile(projectConfig.getDatabasesPath() + Constants.FILE_SEPERATOR + Constants.DB_SETTINGS_XML_FILE);\n\t}", "public java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database> getDatabasesList() {\n if (databasesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(databases_);\n } else {\n return databasesBuilder_.getMessageList();\n }\n }", "public static String[] getAllDatabasesNames()\n {\n return SDMHelpers.extractAllHashMapEntryNames(DATABASES);\n }", "yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database getDatabases(int index);", "public ArrayList getDatabases() throws CatalogException {\r\n\t\tArrayList<String> al=null;\r\n\t\ttry{\r\n\t\t\tResultSet rs= cm.getObject(Constants.IRI_DATABASECATALOG);\r\n\t\t\tString databaseName;\r\n\t\t\tal=new ArrayList<String>();\r\n\t\t\t\t\r\n\t\t\tfor(int i=0; i < rs.getFetchSize() ;i++){\r\n\t\t\t\tdatabaseName = rs.getString(\"IRI\");\r\n\t\t\t\tal.add(databaseName);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException sqle){\r\n\t\t\tthrow new CatalogException (\"Error during access to the Catalog Database\"+ sqle.getMessage());\r\n\t\t}\r\n\t\tcatch (CatalogException ce){\r\n\t\t\tthrow new CatalogException (\"Error during access to the Catalog Database\"+ ce.getMessage());\r\n\t\t}\r\n\t\treturn al;\r\n\t}", "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database getDatabases(int index) {\n return databases_.get(index);\n }", "java.util.List<? extends yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseOrBuilder> \n getDatabasesOrBuilderList();", "public List<String> getAllDatabase() throws Exception {\n\t\treturn null;\n\t}", "public List<Database> getImplementedDatabases() {\r\n return implementedDatabases;\r\n }", "public Set<String> getDatabaseVendors() {\n Set<String> databaseNames = new HashSet<String>();\n for (DbScriptDirectory directory : getDatabaseVendorsDir(CREATE_PATH).getSubdirectories()) {\n databaseNames.add(directory.getName());\n }\n return databaseNames;\n }", "@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testListDatabases_4()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static List<JdbcOption> getDatabaseList(ProjectConfig projectConfig) throws Exception {\n\t\treturn getDatabaseListFromFile(projectConfig.getDatabasesPath() + Constants.FILE_SEPERATOR + Constants.DB_SETTINGS_XML_FILE);\n\t}", "public yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database getDatabases(int index) {\n if (databasesBuilder_ == null) {\n return databases_.get(index);\n } else {\n return databasesBuilder_.getMessage(index);\n }\n }", "@Nonnull\r\n List<DataSource> getDataSources();", "@Test\n\tpublic void testListDatabases_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@java.lang.Override\n public java.util.List<? extends yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseOrBuilder> \n getDatabasesOrBuilderList() {\n return databases_;\n }", "public java.util.List<? extends yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseOrBuilder> \n getDatabasesOrBuilderList() {\n if (databasesBuilder_ != null) {\n return databasesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(databases_);\n }\n }", "public java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database.Builder> \n getDatabasesBuilderList() {\n return getDatabasesFieldBuilder().getBuilderList();\n }", "@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testListDatabases_3()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public List<DeveloperDatabase> getDatabaseList(DeveloperObjectFactory developerObjectFactory) {\n List<DeveloperDatabase> databases = new ArrayList<DeveloperDatabase>();\n databases.add(developerObjectFactory.getNewDeveloperDatabase(ChatNetworkServiceDataBaseConstants.DATA_BASE_NAME, ChatNetworkServiceDataBaseConstants.DATA_BASE_NAME));\n return databases;\n }", "@Override\n\tpublic List<String> getAllAGBSources() {\n\t\t\n\t\treturn allAGBSources;\n\t}", "public synchronized Collection<Database> getDatabaseList() throws DictConnectionException {\n\n if (!databaseMap.isEmpty()) return databaseMap.values();\n\n // DONE Add your code here\n String userInput;\n String fromServer;\n\n try {\n userInput = \"Show DB\";\n // out.println(\"Client: \" + userInput);\n output.println(userInput);\n\n String check = input.readLine();\n //out.println(\"Server: \" + check);\n\n if (check.contains(\"554\")) { // 554: no database present\n return databaseMap.values() ;\n }\n if ( check.contains(\"110\")) { // 110: n databases present\n\n while ((fromServer = input.readLine()) != null) {\n\n if (fromServer.contains(\"250 ok\")) {\n // out.println(\"Server: Successfully shown DB\");\n break;\n }\n if (fromServer.contains(\" \")) { // lines that contain spaces (\" \") represent databases\n String[] temp = DictStringParser.splitAtoms(fromServer);\n Database db = new Database(temp[0], temp[1]);\n databaseMap.put(db.getName(), db);\n }\n }\n }else {\n throw new DictConnectionException() ; // all other status codes throw exceptions\n }\n }catch (IOException e){\n throw new DictConnectionException(e) ;\n }\n return databaseMap.values();\n }", "@Test(expected = org.apache.axis.NoEndPointException.class)\n\tpublic void testListDatabases_5()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub((URL) null, new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@java.lang.Override\n public int getDatabasesCount() {\n return databases_.size();\n }", "public ArrayList getDataSources() {\n return dataSources;\n }", "@Deprecated\n public synchronized Map<String, String> listDatabases() throws IOException {\n checkConnected();\n return remote.getDatabases(user, password);\n }", "@Test(expected = java.rmi.RemoteException.class)\n\tpublic void testListDatabases_2()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public ArrayList<String> getDbSlaves() throws JsonSyntaxException, JsonIOException, IOException {\n ArrayList<String> dbslaves = new ArrayList<>();\n if (dbhosts != null) {\n for (String h : dbhosts) {\n dbslaves.add(h);\n }\n return dbslaves;\n }\n if (slavesFile != null) {\n File f = new File(slavesFile);\n FileInputStream input = new FileInputStream(f);\n Gson gson = new Gson();\n Hosts hosts = gson.fromJson(new InputStreamReader(input), Hosts.class);\n dbhosts = hosts.getHosts();\n if (hosts != null) {\n for (String host : hosts.getHosts()) {\n dbslaves.add(host);\n }\n }\n }\n return dbslaves;\n }", "DataSources retrieveDataSources() throws RepoxException;", "@SneakyThrows\n protected void addSourceResource() {\n if (databaseType instanceof MySQLDatabaseType) {\n try (Connection connection = DriverManager.getConnection(getComposedContainer().getProxyJdbcUrl(\"\"), \"root\", \"root\")) {\n connection.createStatement().execute(\"USE sharding_db\");\n addSourceResource0(connection);\n }\n } else {\n Properties queryProps = ScalingCaseHelper.getPostgreSQLQueryProperties();\n try (Connection connection = DriverManager.getConnection(JDBC_URL_APPENDER.appendQueryProperties(getComposedContainer().getProxyJdbcUrl(\"sharding_db\"), queryProps), \"root\", \"root\")) {\n addSourceResource0(connection);\n }\n }\n List<Map<String, Object>> resources = queryForListWithLog(\"SHOW DATABASE RESOURCES FROM sharding_db\");\n assertThat(resources.size(), is(2));\n }", "public DataSourceListType invokeQueryDatasources() throws TsResponseException {\n checkSignedIn();\n final String url = getUriBuilder().path(QUERY_DATA_SOURCES).build(m_siteId).toString();\n final TsResponse response = get(url);\n return response.getDatasources();\n }", "public ArrayList<DataSource> getDatasources() {\n return datasources;\n }", "public static List<JdbcOption> getDatabaseListFromFile(String configFile) throws Exception {\n\t\tList<JdbcOption> result = new ArrayList<JdbcOption>();\n\n\t\tDocument document;\n\t\tFile file = new File(configFile);\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tfactory.setNamespaceAware(true);\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tdocument = builder.parse(file);\n\n\t\tElement root = document.getDocumentElement();\n\n\t\tNodeList nodeList = root.getElementsByTagName(Constants.XML_TAG_DATASOURCE);\n\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\tJdbcOption jdbc = new JdbcOption();\n\n\t\t\tNode node = nodeList.item(i);\n\t\t\tNamedNodeMap attrs = node.getAttributes();\n\n\t\t\tString name = getText(attrs, Constants.XML_TAG_NAME);\n\t\t\tString type = getText(attrs, Constants.XML_TAG_TYPE);\n\t\t\tString driverJar = getText(attrs, Constants.XML_TAG_DRIVER_PATH);\n\t\t\tString driverClassName = getText(attrs, Constants.XML_TAG_DRIVER_CLASS_NAME);\n\t\t\tString url = getText(attrs, Constants.XML_TAG_URL);\n\t\t\tString username = getText(attrs, Constants.XML_TAG_USERNAME);\n\t\t\tString password = EncryptUtil.decrypt(getText(attrs, Constants.XML_TAG_PASSWORD));\n\t\t\tString schema = getText(attrs, Constants.XML_TAG_SCHEMA);\n\t\t\tString dialect = getText(attrs, Constants.XML_TAG_DIALECT);\n\t\t\tString driverGroupId = getText(attrs, Constants.XML_TAG_DRIVER_GROUPID);\n\t\t\tString driverArtifactId = getText(attrs, Constants.XML_TAG_DRIVER_ARTIFACTID);\n\t\t\tString driverVersion = getText(attrs, Constants.XML_TAG_DRIVER_VERSION);\n\t\t\tString useDbSpecific = getText(attrs, Constants.XML_TAG_USE_DB_SPECIFIC);\n\t\t\tString runExplainPlan = getText(attrs, Constants.XML_TAG_RUN_EXPLAIN_PLAN);\n\t\t\tString isDefault = getText(attrs, Constants.XML_TAG_DEFAULT);\n\n\t\t\tjdbc.setDbName(name);\n\t\t\tjdbc.setDbType(type);\n\t\t\tjdbc.setDriverJar(driverJar);\n\t\t\tjdbc.setDriverClassName(driverClassName);\n\t\t\tjdbc.setUrl(url);\n\t\t\tjdbc.setUserName(username);\n\t\t\tjdbc.setPassword(password);\n\t\t\tjdbc.setSchema(schema);\n\t\t\tjdbc.setDialect(dialect);\n\t\t\tjdbc.setMvnGroupId(driverGroupId);\n\t\t\tjdbc.setMvnArtifactId(driverArtifactId);\n\t\t\tjdbc.setMvnVersion(driverVersion);\n\t\t\tjdbc.setUseDbSpecific(Boolean.valueOf(useDbSpecific));\n\t\t\tjdbc.setRunExplainPaln(Boolean.valueOf(runExplainPlan));\n\t\t\tjdbc.setDefault(Boolean.valueOf(isDefault));\n\n\t\t\tresult.add(jdbc);\n\t\t}\n\t\treturn result;\n\t}", "int getDatabasesCount();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "public List getRequestedDataSources() {\r\n\t\treturn requestedDataSources;\r\n\t}", "@Override\n public String getDatabaseName() {\n return mappings.getDatabaseName();\n }", "public HashSet<Integer> getAllSourceDatasets() {\n HashSet<Integer> allDatasets = null;\n Session session = getSession();\n try {\n SQLQuery allDatasetsQuery\n = session.createSQLQuery(ALL_SRC_DATASETS_QUERY\n + sourceDB + \".\" + DATASET_TABLE_NAME);\n allDatasets = new HashSet<Integer>(allDatasetsQuery.list());\n } finally {\n releaseSession(session);\n }\n return allDatasets;\n }", "public String[] getAllSources() {\n return this.sourceList.toArray(new String[0]);\n }", "public java.util.List<DataLakeSource> getDataLakeSources() {\n return dataLakeSources;\n }", "@Override\r\n\tpublic List<AgentDBInfoVO> selectDBInfoList(){\n\t\treturn sqlSession.getMapper(CollectMapper.class).selectDBInfoList();\r\n\t}", "public static Map<Integer, DataSource> getAvailableDataSources() {\n\t\tLoadRessources lr;\n\t\ttry {\n\t\t\tlr = new LoadRessources();\n\t\t} catch (JDOMException e1) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"The configuration file dataSource.xml is corrupted. Please check that this file is a valid XML file!\");\n\t\t\treturn null;\n\t\t} catch (IOException e1) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"Unable to open the configuration file dataSources.xml\");\n\t\t\treturn null;\n\t\t}\n\t\tMap<Integer, DataSource> dataSources = lr.extractData();\n\t\treturn dataSources;\n\t}", "yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseOrBuilder getDatabasesOrBuilder(\n int index);", "public String getDatabase();", "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseOrBuilder getDatabasesOrBuilder(\n int index) {\n return databases_.get(index);\n }", "public String getDatabase() {\r\n \t\treturn properties.getProperty(KEY_DATABASE);\r\n \t}", "public static List<String> getDatasourceNames(GrailsDomainClass domainClass, AbstractGrailsDomainBinder binder) {\n Mapping mapping = isMappedWithHibernate(domainClass) ? binder.evaluateMapping(domainClass, null, false) : null;\n if (mapping == null) {\n mapping = new Mapping();\n }\n return mapping.getDatasources();\n }", "String getDataSource();", "public Collection<String> loadAllDataSourcesNodes() {\n return repository.getChildrenKeys(node.getDataSourcesNodeFullRootPath());\n }", "public DBObject[] getDbObjects() {\n return dbObjects;\n }", "@Bean\n\tpublic DataSource getDataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL)\n\t\t\t\t.addScript(\"crate-db.sql\")\n\t\t\t\t.addScript(\"insert-db.sql\")\n\t\t\t\t.build();\n\t\treturn db;\n\t}", "public Collection<DatabaseMapping> getDatabaseMappings() throws InvalidFormatException;", "String getDatabase();", "public DataSourcesImpl dataSources() {\n return this.dataSources;\n }", "Database getDataBase() {\n return database;\n }", "public List getSourceConnections() {\n return new ArrayList(sourceConnections);\n }", "public int getDatabasesCount() {\n if (databasesBuilder_ == null) {\n return databases_.size();\n } else {\n return databasesBuilder_.getCount();\n }\n }", "private List<String> generateDropStatementsForDomainIndexes() throws SQLException {\n List<String> dropStatements = new ArrayList<String>();\n\n List<String> objectNames = jdbcTemplate.queryForStringList(\n \"SELECT INDEX_NAME FROM ALL_INDEXES WHERE OWNER = ? AND INDEX_TYPE LIKE '%DOMAIN%'\", name);\n\n for (String objectName : objectNames) {\n dropStatements.add(generateDefaultDropStatement(\"INDEX\", objectName, \"FORCE\"));\n }\n return dropStatements;\n }", "List<storage_server_connections> getAllForStoragePool(Guid pool);", "public String getDbName();", "public PagedCallSettings<ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>\n listDatabasesSettings() {\n return listDatabasesSettings;\n }", "Iterable<CurrentVersionCacheDao> getCurrentVersionCacheConnections();", "public abstract String getDatabaseName();", "public List<String> getBaseDNs()\n {\n return baseDNs;\n }", "public List<OrdenDB> getOrdenDBList() {\n if (ordenDBList == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n OrdenDBDao targetDao = daoSession.getOrdenDBDao();\n List<OrdenDB> ordenDBListNew = targetDao._queryLugarDB_OrdenDBList(id);\n synchronized (this) {\n if(ordenDBList == null) {\n ordenDBList = ordenDBListNew;\n }\n }\n }\n return ordenDBList;\n }", "List<GlobalSchema> schemas();", "public String[] getDatabaseCleanScripts() throws AdaFrameworkException {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> scriptsList = new ArrayList<String>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString[] existingTables = getTables();\r\n\t\t\tif (existingTables != null && existingTables.length > 0) {\r\n\t\t\t\tif (processedTables != null && processedTables.size() > 0) {\r\n\t\t\t\t\tfor(String databaseTable : existingTables) {\r\n\t\t\t\t\t\tboolean tableFound = false;\r\n\t\t\t\t\t\tfor (String modelTable : processedTables) {\r\n\t\t\t\t\t\t\tif (databaseTable.trim().toLowerCase().equals(modelTable.trim().toLowerCase())) {\r\n\t\t\t\t\t\t\t\ttableFound = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (!tableFound) {\r\n\t\t\t\t\t\t\tif (!databaseTable.contains(DataUtils.DATABASE_LINKED_TABLE_NAME_PREFIX)) {\r\n\t\t\t\t\t\t\t\tscriptsList.add(String.format(DataUtils.DATABASE_DROP_TABLE_PATTERN, databaseTable));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (scriptsList.size() > 0) {\r\n\t\t\t\treturnedValue = scriptsList.toArray(new String[scriptsList.size()]);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tExceptionsHelper.manageException(e);\r\n\t\t} finally {\r\n\t\t\tscriptsList.clear();\r\n\t\t\tscriptsList = null;\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}", "public String databaseName();", "@Override\r\n\tpublic String getDataBaseName(String[] sql) {\n\t\treturn UsedDataBase.getUsedDataBase();\r\n\t}", "public static String getShowDatabaseStatement() {\n return SHOW_DATABASES;\n }", "@Override\n public Set<Datasource> getDatasources() throws ConfigurationException {\n Context context = getContext();\n Set<Datasource> result = new HashSet<>();\n int length = context.getResource().length;\n if (tomcatVersion.isAtLeast(TomcatVersion.TOMCAT_55)) {\n // Tomcat 5.5.x or Tomcat 6.0.x\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n String username = context.getResourceUsername(i);\n String url = context.getResourceUrl(i);\n String password = context.getResourcePassword(i);\n String driverClassName = context.getResourceDriverClassName(i);\n if (name != null && username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n if (tomeeVersion != null) {\n TomeeResources actualResources = getResources(false);\n if (actualResources != null) {\n result.addAll(getTomeeDatasources(actualResources));\n }\n }\n } else {\n // Tomcat 5.0.x\n ResourceParams[] resourceParams = context.getResourceParams();\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n // find the resource params for the selected resource\n for (int j = 0; j < resourceParams.length; j++) {\n if (name.equals(resourceParams[j].getName())) {\n Parameter[] params = resourceParams[j].getParameter();\n HashMap paramNameValueMap = new HashMap(params.length);\n for (Parameter parameter : params) {\n paramNameValueMap.put(parameter.getName(), parameter.getValue());\n }\n String username = (String) paramNameValueMap.get(\"username\"); // NOI18N\n String url = (String) paramNameValueMap.get(\"url\"); // NOI18N\n String password = (String) paramNameValueMap.get(\"password\"); // NOI18N\n String driverClassName = (String) paramNameValueMap.get(\"driverClassName\"); // NOI18N\n if (username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n }\n }\n }\n return result;\n }", "static DataSource[] _getDataSources () throws Exception {\n SearchOptions opts = new SearchOptions (null, 1, 0, 1000); \n TextIndexer.SearchResult results = _textIndexer.search(opts, null);\n Set<String> labels = new TreeSet<String>();\n for (TextIndexer.Facet f : results.getFacets()) {\n if (f.getName().equals(SOURCE)) {\n for (TextIndexer.FV fv : f.getValues())\n labels.add(fv.getLabel());\n }\n }\n\n Class[] entities = new Class[]{\n Disease.class, Target.class, Ligand.class\n };\n\n List<DataSource> sources = new ArrayList<DataSource>();\n for (String la : labels ) {\n DataSource ds = new DataSource (la);\n for (Class cls : entities) {\n opts = new SearchOptions (cls, 1, 0, 100);\n results = _textIndexer.search(opts, null);\n for (TextIndexer.Facet f : results.getFacets()) {\n if (f.getName().equals(SOURCE)) {\n for (TextIndexer.FV fv : f.getValues())\n if (la.equals(fv.getLabel())) {\n if (cls == Target.class)\n ds.targets = fv.getCount();\n else if (cls == Disease.class)\n ds.diseases = fv.getCount();\n else\n ds.ligands = fv.getCount();\n }\n }\n }\n }\n Logger.debug(\"DataSource: \"+la);\n Logger.debug(\" + targets: \"+ds.targets);\n Logger.debug(\" + ligands: \"+ds.ligands);\n Logger.debug(\" + diseases: \"+ds.diseases);\n \n sources.add(ds);\n }\n\n return sources.toArray(new DataSource[0]);\n }", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionList();", "public String getSrcDatabaseType() {\n return this.SrcDatabaseType;\n }", "@Override\n\tpublic List getSysListBySQL() {\n\t\treturn jsysListKeyDao.getSysListBySQL();\n\t}", "private <T extends RealmModel> List<MasterDatabaseObject> queryDatabaseMasterAll() {\n\n Realm realm = DatabaseUtilities.buildRealm(this.realmConfiguration);\n RealmQuery query = RealmQuery.createQuery(realm, MasterDatabaseObject.class);\n\n //Start transaction\n RealmResults<T> results = query.findAll();\n if (results.size() <= 0) {\n return new ArrayList<>();\n }\n try {\n List<MasterDatabaseObject> masterDatabaseObjectList = new ArrayList<MasterDatabaseObject>();\n for (T t : results) {\n if (t != null) {\n MasterDatabaseObject mdo = (MasterDatabaseObject) t;\n if (!StringUtilities.isNullOrEmpty(mdo.getId()) &&\n !StringUtilities.isNullOrEmpty(mdo.getJsonString())) {\n masterDatabaseObjectList.add(mdo);\n }\n }\n }\n\n return masterDatabaseObjectList;\n } catch (Exception e) {\n return new ArrayList<>();\n }\n }", "public yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database.Builder getDatabasesBuilder(\n int index) {\n return getDatabasesFieldBuilder().getBuilder(index);\n }", "private String[] getTables() {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> tablesList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (getDatabse() != null && getDatabse().isOpen()) {\r\n\t\t\tCursor cursor = getDatabse().rawQuery(\"SELECT DISTINCT tbl_name FROM sqlite_master\", null);\r\n\t\t\tif (cursor != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcursor.moveToLast();\r\n\t\t\t\t\tcursor.moveToFirst();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (cursor.getCount() > 0) {\r\n\t\t\t\t\t\tdo{\r\n\t\t\t\t\t\t\tString tableName = cursor.getString(0);\r\n\t\t\t\t\t\t\tif (tableName != null && tableName.trim() != \"\") {\r\n\t\t\t\t\t\t\t\tif (!tableName.trim().toLowerCase().equals(\"android_metadata\") &&\r\n\t\t\t\t\t\t\t\t\t!tableName.trim().toLowerCase().equals(\"sqlite_sequence\")) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\ttablesList.add(tableName);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} while(cursor.moveToNext());\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tcursor.close();\r\n\t\t\t\t\tcursor = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (tablesList.size() > 0) {\r\n\t\t\treturnedValue = tablesList.toArray(new String[tablesList.size()]);\r\n\t\t}\r\n\t\ttablesList.clear();\r\n\t\ttablesList = null;\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}", "public RDFCompositeDataSource getDatabase() //readonly\n\t{\n\t\tif(rdfCompositeDataSource == null) {\n\t\t\tString attr = StringUtils.trimToNull(getAttribute(\"datasources\"));\n\t\t\tif(attr != null) {\n\t\t\t\tRDFService rdfService = null; //TODO get the RDFService\n\t\t\t\trdfCompositeDataSource = new RDFCompositeDataSourceImpl(rdfService); //TODO should we ask the RDFService for this?\n\t\t\t\tfor(String uri : attr.split(\"\\\\s+\")) {\n\t\t\t\t\trdfCompositeDataSource.addDataSource(rdfService.getDataSource(uri));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn rdfCompositeDataSource;\n\t}", "List<storage_server_connections> getAllForLun(String lunId);", "java.util.List<yandex.cloud.api.ydb.v1.BackupOuterClass.Backup> \n getBackupsList();", "public void setSourceDB(String sourceDB) {\n this.sourceDB = sourceDB;\n }", "List<String> listViews(String databaseName) throws DatabaseNotExistException, CatalogException;", "List<String> listTables(String databaseName) throws DatabaseNotExistException, CatalogException;", "public List<DatabaseAccountConnectionString> connectionStrings() {\n return this.connectionStrings;\n }" ]
[ "0.75503284", "0.74345946", "0.7311359", "0.73079354", "0.7157809", "0.70919806", "0.70790166", "0.7044851", "0.6917864", "0.6916447", "0.69156766", "0.69144404", "0.68533903", "0.6767205", "0.6644311", "0.6623666", "0.6591578", "0.6428096", "0.6378722", "0.6367867", "0.6312975", "0.6239708", "0.6234925", "0.62157106", "0.61940587", "0.6155809", "0.610932", "0.6076278", "0.6044607", "0.60317874", "0.6013532", "0.59885424", "0.59443736", "0.59107894", "0.59034103", "0.5893123", "0.5873092", "0.58401525", "0.57984084", "0.57834256", "0.57802594", "0.57778513", "0.57422847", "0.5703093", "0.5646939", "0.5639436", "0.55613685", "0.55613685", "0.55613685", "0.55613685", "0.5559541", "0.55371696", "0.55329996", "0.55272454", "0.5526041", "0.5514769", "0.55056906", "0.55021393", "0.54696554", "0.54672503", "0.5449674", "0.5445371", "0.5442802", "0.5410533", "0.5410253", "0.5375205", "0.536748", "0.5362862", "0.53434676", "0.53374517", "0.53209764", "0.53084695", "0.53013545", "0.5300197", "0.52979946", "0.52928764", "0.5283449", "0.5280662", "0.52740365", "0.5273602", "0.5273419", "0.52604955", "0.52501553", "0.5249398", "0.5247607", "0.52319574", "0.52310354", "0.5211187", "0.5203544", "0.51883376", "0.5184862", "0.5182348", "0.5171138", "0.51615953", "0.51606834", "0.51539457", "0.51512176", "0.51276416", "0.5120787", "0.51157576" ]
0.6973462
8
Sets list of database within source
public void setDatabases(List<DatabaseResult> _databases) { this._databases = _databases; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List fetchBySourceDatabase(String sourceDatabaseName) throws AdaptorException ;", "public abstract String [] listDatabases();", "public void setSourceDB(String sourceDB) {\n this.sourceDB = sourceDB;\n }", "public static List<JdbcOption> getDatabaseList(String baseDir) throws Exception {\n\t\tProjectConfig projectConfig = getProjectConfig(getCommonConfigFile(baseDir));\n\t\treturn getDatabaseListFromFile(projectConfig.getDatabasesPath() + Constants.FILE_SEPERATOR + Constants.DB_SETTINGS_XML_FILE);\n\t}", "public void setDatabases( DatabaseContext databases ) {\r\n\t\tthis.databases = databases;\r\n\t}", "List fetchBySourceDatabase(String sourceDatabaseName, String sourceID) throws AdaptorException ;", "public void setDataSources(ArrayList dataSources) {\n this.dataSources = dataSources;\n }", "@SneakyThrows\n protected void addSourceResource() {\n if (databaseType instanceof MySQLDatabaseType) {\n try (Connection connection = DriverManager.getConnection(getComposedContainer().getProxyJdbcUrl(\"\"), \"root\", \"root\")) {\n connection.createStatement().execute(\"USE sharding_db\");\n addSourceResource0(connection);\n }\n } else {\n Properties queryProps = ScalingCaseHelper.getPostgreSQLQueryProperties();\n try (Connection connection = DriverManager.getConnection(JDBC_URL_APPENDER.appendQueryProperties(getComposedContainer().getProxyJdbcUrl(\"sharding_db\"), queryProps), \"root\", \"root\")) {\n addSourceResource0(connection);\n }\n }\n List<Map<String, Object>> resources = queryForListWithLog(\"SHOW DATABASE RESOURCES FROM sharding_db\");\n assertThat(resources.size(), is(2));\n }", "public void setDatabase(Connection _db);", "public static List<JdbcOption> getDatabaseListFromFile(String configFile) throws Exception {\n\t\tList<JdbcOption> result = new ArrayList<JdbcOption>();\n\n\t\tDocument document;\n\t\tFile file = new File(configFile);\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tfactory.setNamespaceAware(true);\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tdocument = builder.parse(file);\n\n\t\tElement root = document.getDocumentElement();\n\n\t\tNodeList nodeList = root.getElementsByTagName(Constants.XML_TAG_DATASOURCE);\n\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\tJdbcOption jdbc = new JdbcOption();\n\n\t\t\tNode node = nodeList.item(i);\n\t\t\tNamedNodeMap attrs = node.getAttributes();\n\n\t\t\tString name = getText(attrs, Constants.XML_TAG_NAME);\n\t\t\tString type = getText(attrs, Constants.XML_TAG_TYPE);\n\t\t\tString driverJar = getText(attrs, Constants.XML_TAG_DRIVER_PATH);\n\t\t\tString driverClassName = getText(attrs, Constants.XML_TAG_DRIVER_CLASS_NAME);\n\t\t\tString url = getText(attrs, Constants.XML_TAG_URL);\n\t\t\tString username = getText(attrs, Constants.XML_TAG_USERNAME);\n\t\t\tString password = EncryptUtil.decrypt(getText(attrs, Constants.XML_TAG_PASSWORD));\n\t\t\tString schema = getText(attrs, Constants.XML_TAG_SCHEMA);\n\t\t\tString dialect = getText(attrs, Constants.XML_TAG_DIALECT);\n\t\t\tString driverGroupId = getText(attrs, Constants.XML_TAG_DRIVER_GROUPID);\n\t\t\tString driverArtifactId = getText(attrs, Constants.XML_TAG_DRIVER_ARTIFACTID);\n\t\t\tString driverVersion = getText(attrs, Constants.XML_TAG_DRIVER_VERSION);\n\t\t\tString useDbSpecific = getText(attrs, Constants.XML_TAG_USE_DB_SPECIFIC);\n\t\t\tString runExplainPlan = getText(attrs, Constants.XML_TAG_RUN_EXPLAIN_PLAN);\n\t\t\tString isDefault = getText(attrs, Constants.XML_TAG_DEFAULT);\n\n\t\t\tjdbc.setDbName(name);\n\t\t\tjdbc.setDbType(type);\n\t\t\tjdbc.setDriverJar(driverJar);\n\t\t\tjdbc.setDriverClassName(driverClassName);\n\t\t\tjdbc.setUrl(url);\n\t\t\tjdbc.setUserName(username);\n\t\t\tjdbc.setPassword(password);\n\t\t\tjdbc.setSchema(schema);\n\t\t\tjdbc.setDialect(dialect);\n\t\t\tjdbc.setMvnGroupId(driverGroupId);\n\t\t\tjdbc.setMvnArtifactId(driverArtifactId);\n\t\t\tjdbc.setMvnVersion(driverVersion);\n\t\t\tjdbc.setUseDbSpecific(Boolean.valueOf(useDbSpecific));\n\t\t\tjdbc.setRunExplainPaln(Boolean.valueOf(runExplainPlan));\n\t\t\tjdbc.setDefault(Boolean.valueOf(isDefault));\n\n\t\t\tresult.add(jdbc);\n\t\t}\n\t\treturn result;\n\t}", "public static boolean saveDatabaseList(String baseDir, List<JdbcOption> list) throws Exception {\n\t\tboolean result = true;\n\n\t\tString configFile = getCommonConfigFile(baseDir);\n\n\t\tDocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder parser;\n\n\t\ttry {\n\t\t\tparser = fact.newDocumentBuilder();\n\t\t\tDocument doc = parser.newDocument();\n\n\t\t\tElement rootElement = doc.createElement(Constants.XML_CONFIG_ROOT_PATH);\n\t\t\tdoc.appendChild(rootElement);\n\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tJdbcOption jdbcOption = list.get(i);\n\n\t\t\t\tElement dbElement = createNode(doc, rootElement, Constants.XML_TAG_DATABASES, EMPTY_STRING);\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_TYPE, jdbcOption.getDbType());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_NAME, jdbcOption.getDbName());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_DRIVER_PATH, jdbcOption.getDriverJar());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_DRIVER_CLASS_NAME, jdbcOption.getDriverClassName());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_URL, jdbcOption.getUrl());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_USERNAME, jdbcOption.getUserName());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_PASSWORD, EncryptUtil.encrypt(jdbcOption.getPassword()));\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_SCHEMA, jdbcOption.getSchema());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_DIALECT, jdbcOption.getDialect());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_DRIVER_GROUPID, jdbcOption.getMvnGroupId());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_DRIVER_ARTIFACTID, jdbcOption.getMvnArtifactId());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_DRIVER_VERSION, jdbcOption.getMvnVersion());\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_USE_DB_SPECIFIC, String.valueOf(jdbcOption.isUseDbSpecific()));\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_RUN_EXPLAIN_PLAN, String.valueOf(jdbcOption.isRunExplainPaln()));\n\t\t\t\tdbElement.setAttribute(Constants.XML_TAG_DEFAULT, String.valueOf(jdbcOption.getDefault()));\n\t\t\t}\n\n\t\t\tFile file = new File(configFile);\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t}\n\t\t\tsave(doc, file);\n\n\t\t} catch (Exception e) {\n\t\t\tresult = false;\n\t\t}\n\n\t\treturn result;\n\t}", "public void setDB(ArrayList<User> db){\n\t\tthis.db = db;\n\t}", "java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database> \n getDatabasesList();", "public void setDatabase(String db) {\n\t\tthis.database = db;\n\t}", "@RequestMapping(value = \"/databases/{srcEnv:.+}\", method = {RequestMethod.GET})\n @ResponseBody\n public RestWrapperOptions getDBList(@PathVariable(\"srcEnv\") String sourceEnv) {\n\n RestWrapperOptions restWrapperOptions = null;\n LOGGER.info(sourceEnv + \"srcEnv\");\n try {\n Class.forName(driverName);\n connection = DriverManager.getConnection(\"jdbc:hive2://\" + sourceEnv + \"/default\", \"\", \"\");\n ResultSet rs = connection.createStatement().executeQuery(\"SHOW DATABASES\");\n\n List<String> databases = new ArrayList<String>();\n while (rs.next()) {\n String dbName = rs.getString(1);\n databases.add(dbName.toUpperCase());\n }\n List<RestWrapperOptions.Option> options = new ArrayList<RestWrapperOptions.Option>();\n for (String database : databases) {\n RestWrapperOptions.Option option = new RestWrapperOptions.Option(database, database);\n options.add(option);\n }\n restWrapperOptions = new RestWrapperOptions(options, RestWrapperOptions.OK);\n } catch (Exception e) {\n LOGGER.error(\"error occured:\" + e);\n restWrapperOptions = new RestWrapperOptions(e.getMessage(), RestWrapper.ERROR);\n }\n return restWrapperOptions;\n }", "private void populateDatabaseComboBox(TreeSet<String> dbNames) {\n databaseNamesBindingList.add(DATABASE_NAME_NOT_PRESENT);\n\n databaseNames.addAll(dbNames);\n }", "public static List<JdbcOption> getDatabaseList(ProjectConfig projectConfig) throws Exception {\n\t\treturn getDatabaseListFromFile(projectConfig.getDatabasesPath() + Constants.FILE_SEPERATOR + Constants.DB_SETTINGS_XML_FILE);\n\t}", "@java.lang.Override\n public java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database> getDatabasesList() {\n return databases_;\n }", "Map<String,DataSource> load(Set<String> existsDataSourceNames) throws Exception;", "private void setupDBs()\n {\n\t mSetupDBTask = new SetupDBTask(this);\n\t\tmSetupDBTask.execute((Void[])null);\n }", "public List<String> getDatabaseList() throws SQLException {\n List<String> databaseList = new ArrayList<>();\n ResultSet databases = databaseStatement.executeQuery(\"SELECT datname FROM pg_database;\");\n while (databases.next()) {\n databaseList.add(databases.getString(\"datname\"));\n }\n return databaseList;\n }", "public void setDatabase(DatabaseManager db) {\n\t\tthis.db = db;\n\t}", "List<String> listDatabases() throws CatalogException;", "public SetupDatabase(String dataset, Collection<Subject> values) {\n this.dataset = dataset;\n this.splist = values;\n connect();\n }", "public void setDataSets(List<DataSet> dataSets)\n {\n this.dataSets = dataSets;\n }", "public abstract java.util.Vector setDB2ListItems();", "@Bean\n\tpublic DataSource getDataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL)\n\t\t\t\t.addScript(\"crate-db.sql\")\n\t\t\t\t.addScript(\"insert-db.sql\")\n\t\t\t\t.build();\n\t\treturn db;\n\t}", "public void setSrcDatabaseType(String SrcDatabaseType) {\n this.SrcDatabaseType = SrcDatabaseType;\n }", "public void setDb(Map<Language, Map<Integer, LanguageEntry>> db) {\r\n\t\t\tthis.db = db;\r\n\t\t}", "@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testListDatabases_4()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public List<Database> getImplementedDatabases() {\r\n return implementedDatabases;\r\n }", "public void setDatasource(DataSource source) {\n datasource = source;\n }", "public String[] getDatabaseNames() {\n return context.databaseList();\n }", "public void setDb(DataBroker db) {\n\t\tthis.db = db;\n\t}", "public Database(Set<Variable> variables) {\n\t\tthis.variables = variables;\n\t\tthis.listInstance = new LinkedList<Map<Variable, Object>>();\n\t}", "public void setCardDataSources(Vector<DataSource> sources) {\n cardDataSources = sources;\n }", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "@Test\n\tpublic void testListDatabases_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testListDatabases_3()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database getDatabases(int index);", "public List<DatabaseResult> getDatabases() {\n return _databases;\n }", "public List<String> getAllDatabase() throws Exception {\n\t\treturn null;\n\t}", "void changeDatabase(String databaseName);", "@Nonnull\r\n List<DataSource> getDataSources();", "public List<String> getDbNames() {\n return new ArrayList<String>(dbs.keySet());\n }", "private void loadDatabaseSettings() {\r\n\r\n\t\tint dbID = BundleHelper.getIdScenarioResultForSetup();\r\n\t\tthis.getJTextFieldDatabaseID().setText(dbID + \"\");\r\n\t}", "public void setDbTable(String v) {this.dbTable = v;}", "private static void buildList() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (connection == null || connection.isClosed()) \r\n\t\t\t\tconnection = DataSourceManager.getConnection();\r\n\t\t\t\r\n\t\t\tstatement = connection.prepareStatement(LOAD_ALL);\r\n\t \tresultset = statement.executeQuery();\r\n\t \t\r\n\t \tgroups = getCollectionFromResultSet(resultset);\r\n\t \tresultset.close();\r\n\t statement.close();\r\n\t\t\t\r\n\t\t} catch (ClassNotFoundException | SQLException e) {\r\n\t\t\tlog.fatal(e.toString());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "public java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database> getDatabasesList() {\n if (databasesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(databases_);\n } else {\n return databasesBuilder_.getMessageList();\n }\n }", "public synchronized void resetOrdenDBList() {\n ordenDBList = null;\n }", "void db_all(Context context);", "public void replaceAllDataSources(Collection<DataSource> newsources) {\n datasources.clear();\n datasources.addAll(newsources);\n }", "public void setDatabase(Database db){\r\n\t\tm_Database = db;\r\n\t\tm_Categorizer = new Categorizer(m_Database);\r\n\t\tm_StatisticsWindow.setCategorizer(m_Categorizer);\r\n\t}", "public List<String> getDatabaseNames() {\r\n try {\r\n // get the database\r\n List<String> dbNames = mongo.getDatabaseNames();\r\n logger.logp(Level.INFO, TAG, \"getCollectionNames\", \" databases:\" + dbNames);\r\n return dbNames;\r\n } catch (Exception e) {\r\n logger.logp(Level.SEVERE, TAG, \"getCollectionNames\", e.getMessage());\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public void addPreferredDataSources(Collection<DataSource> sources) {\n if (containsDataSource(sources)) { // there are duplicates so trim the collection\n removeIdenticalDataSources(sources);\n } \n datasources.addAll(0,sources);\n }", "public void setDbName(String sDbName);", "@Test(expected = org.apache.axis.NoEndPointException.class)\n\tpublic void testListDatabases_5()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub((URL) null, new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tDatabase[] result = fixture.listDatabases(aArguments);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Override\n public List<School> importAllData(final String databaseName) {\n Connection connection = getConnection(databaseName);\n return querySchools(connection);\n }", "public HashSet<Integer> getAllSourceDatasets() {\n HashSet<Integer> allDatasets = null;\n Session session = getSession();\n try {\n SQLQuery allDatasetsQuery\n = session.createSQLQuery(ALL_SRC_DATASETS_QUERY\n + sourceDB + \".\" + DATASET_TABLE_NAME);\n allDatasets = new HashSet<Integer>(allDatasetsQuery.list());\n } finally {\n releaseSession(session);\n }\n return allDatasets;\n }", "public void setDB(String db) {\n\t\tthis.db = db;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_DB,null,db);\r\n\t}", "public RDFCompositeDataSource getDatabase() //readonly\n\t{\n\t\tif(rdfCompositeDataSource == null) {\n\t\t\tString attr = StringUtils.trimToNull(getAttribute(\"datasources\"));\n\t\t\tif(attr != null) {\n\t\t\t\tRDFService rdfService = null; //TODO get the RDFService\n\t\t\t\trdfCompositeDataSource = new RDFCompositeDataSourceImpl(rdfService); //TODO should we ask the RDFService for this?\n\t\t\t\tfor(String uri : attr.split(\"\\\\s+\")) {\n\t\t\t\t\trdfCompositeDataSource.addDataSource(rdfService.getDataSource(uri));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn rdfCompositeDataSource;\n\t}", "public Builder setDatabases(\n int index, yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database value) {\n if (databasesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDatabasesIsMutable();\n databases_.set(index, value);\n onChanged();\n } else {\n databasesBuilder_.setMessage(index, value);\n }\n return this;\n }", "private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}", "private void setDataBase(Settings set) {\n URL_BASE_POSTGRES = set.getValue(\"jdbc.urlBasePostgres\");\n URL_BASE_VACANCY = set.getValue(\"jdbc.urlBaseVacancy\");\n USER_NAME = set.getValue(\"jdbc.userName\");\n PASSWORD = set.getValue(\"jdbc.password\");\n }", "public void setDatabaseName(String paramDb){\n\tstrDbName = paramDb;\n }", "public void initAfterUnpersistence() {\n //From a legacy bundle\n if (sources == null) {\n sources = Misc.newList(getName());\n }\n super.initAfterUnpersistence();\n openData();\n }", "DataSources retrieveDataSources() throws RepoxException;", "public static void configure(String database, DataSource dataSource, boolean isOverride) {\n if (!isOverride && isConfigured(database)) {\n throw new IllegalStateException(\"Named database '\" + database + \"' already configured!\");\n }\n instance.dataSources.put(database, dataSource);\n }", "public void setDb(String db) {\n this.db = db == null ? null : db.trim();\n }", "public void setDb(String db) {\n this.db = db == null ? null : db.trim();\n }", "@Override\r\n\tpublic List<AgentDBInfoVO> selectDBInfoList(){\n\t\treturn sqlSession.getMapper(CollectMapper.class).selectDBInfoList();\r\n\t}", "public ArrayList getDataSources() {\n return dataSources;\n }", "public void setDatasource(String val)\r\n\t{\r\n\t\t_dataSource = val;\r\n\t}", "static public void setDataSource(DataSource source) {\n ds = source;\n }", "public void setSourceTable(String sourceTable);", "public void setDataSourceTypes (List<DataSourceType> dataSourceTypes) {\n this.dataSourceTypes = dataSourceTypes;\n }", "public void setSources (LSPSource[] sources) {\r\n this.sources = sources;\r\n }", "@ProgrammaticProperty\n public void setSeparateTestSetDataSource(String spec) {\n m_separateTestSetDataSource = spec;\n }", "private void init() {\n\t\t/* Add the DNS of your database instances here */\n\t\tdatabaseInstances[0] = \"ec2-52-0-167-69.compute-1.amazonaws.com\";\n\t\tdatabaseInstances[1] = \"ec2-52-0-247-64.compute-1.amazonaws.com\";\n\t}", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "@Bean(name = \"dataSource\")\n\tpublic DataSource dataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL).addScript(\"db/create-db.sql\").addScript(\"db/insert-data.sql\").build();\n\t\treturn db;\n\t}", "private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}", "public List<String> searchDBName() {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"find all db name\");\n return queryList(\"show databases\");\n }", "public List<DeveloperDatabase> getDatabaseList(DeveloperObjectFactory developerObjectFactory) {\n List<DeveloperDatabase> databases = new ArrayList<DeveloperDatabase>();\n databases.add(developerObjectFactory.getNewDeveloperDatabase(ChatNetworkServiceDataBaseConstants.DATA_BASE_NAME, ChatNetworkServiceDataBaseConstants.DATA_BASE_NAME));\n return databases;\n }", "public void setPoolDataSource(ConnectionPoolDataSource poolDataSource)\n throws SQLException\n {\n DriverConfig driver;\n \n if (_driverList.size() > 0)\n driver = _driverList.get(0);\n else\n driver = createDriver();\n \n driver.setPoolDataSource(poolDataSource);\n }", "@Override\n\tpublic void setDataSource(DataSource dataSource) {\n\t}", "@Override\n public Set<Datasource> getDatasources() throws ConfigurationException {\n Context context = getContext();\n Set<Datasource> result = new HashSet<>();\n int length = context.getResource().length;\n if (tomcatVersion.isAtLeast(TomcatVersion.TOMCAT_55)) {\n // Tomcat 5.5.x or Tomcat 6.0.x\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n String username = context.getResourceUsername(i);\n String url = context.getResourceUrl(i);\n String password = context.getResourcePassword(i);\n String driverClassName = context.getResourceDriverClassName(i);\n if (name != null && username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n if (tomeeVersion != null) {\n TomeeResources actualResources = getResources(false);\n if (actualResources != null) {\n result.addAll(getTomeeDatasources(actualResources));\n }\n }\n } else {\n // Tomcat 5.0.x\n ResourceParams[] resourceParams = context.getResourceParams();\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n // find the resource params for the selected resource\n for (int j = 0; j < resourceParams.length; j++) {\n if (name.equals(resourceParams[j].getName())) {\n Parameter[] params = resourceParams[j].getParameter();\n HashMap paramNameValueMap = new HashMap(params.length);\n for (Parameter parameter : params) {\n paramNameValueMap.put(parameter.getName(), parameter.getValue());\n }\n String username = (String) paramNameValueMap.get(\"username\"); // NOI18N\n String url = (String) paramNameValueMap.get(\"url\"); // NOI18N\n String password = (String) paramNameValueMap.get(\"password\"); // NOI18N\n String driverClassName = (String) paramNameValueMap.get(\"driverClassName\"); // NOI18N\n if (username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n }\n }\n }\n return result;\n }", "public void setcomponenten(ArrayList<Componenten> a){\r\n this.database= a;\r\n }", "@java.lang.Override\n public java.util.List<? extends yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseOrBuilder> \n getDatabasesOrBuilderList() {\n return databases_;\n }", "private void setServerList() {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n\n int selectedServerIdx = Integer.parseInt(mSharedPreference.getString(ExoConstants.EXO_PRF_DOMAIN_INDEX, \"-1\"));\n mSetting.setDomainIndex(String.valueOf(selectedServerIdx));\n mSetting.setCurrentServer((selectedServerIdx == -1) ? null : _serverList.get(selectedServerIdx));\n }", "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database getDatabases(int index) {\n return databases_.get(index);\n }", "@Override\n\tpublic List<DatabaseObject> selectAll(DatabaseHandler db) {\n\t\treturn db.getAllWorks();\n\t}", "public DatabaseOptions database(String database) {\n this.database = database;\n return this;\n }", "public Set<String> getDatabaseVendors() {\n Set<String> databaseNames = new HashSet<String>();\n for (DbScriptDirectory directory : getDatabaseVendorsDir(CREATE_PATH).getSubdirectories()) {\n databaseNames.add(directory.getName());\n }\n return databaseNames;\n }", "java.util.List<? extends yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseOrBuilder> \n getDatabasesOrBuilderList();" ]
[ "0.65335596", "0.65118074", "0.64332294", "0.63497436", "0.63192177", "0.6300608", "0.6176504", "0.61384815", "0.60604775", "0.59653044", "0.5868384", "0.5852377", "0.5851094", "0.58121324", "0.5803249", "0.5736285", "0.5733204", "0.56995475", "0.56805193", "0.5653366", "0.5648747", "0.5519625", "0.551888", "0.55001396", "0.5477153", "0.5476443", "0.5456936", "0.54558635", "0.54554033", "0.54468554", "0.54403156", "0.54091656", "0.5403399", "0.54027826", "0.53787714", "0.5377584", "0.5375127", "0.53622156", "0.535145", "0.5331199", "0.5329958", "0.5328722", "0.5324781", "0.5310385", "0.5299453", "0.52942836", "0.5289655", "0.5285248", "0.5272225", "0.52488184", "0.5232067", "0.5231644", "0.5228682", "0.52269334", "0.5224777", "0.5216789", "0.52148104", "0.5206642", "0.5187721", "0.51806664", "0.51797336", "0.5172976", "0.5170867", "0.51689893", "0.5168661", "0.51612806", "0.5156347", "0.5153621", "0.5152559", "0.5152559", "0.5135221", "0.5129715", "0.5127608", "0.5124051", "0.5119483", "0.5113888", "0.5091185", "0.5090477", "0.5079823", "0.50750387", "0.50750387", "0.50750387", "0.50750387", "0.50750387", "0.50750387", "0.5070836", "0.5069052", "0.50592947", "0.5059206", "0.505158", "0.5045479", "0.50453806", "0.50450045", "0.50445944", "0.5043865", "0.50415844", "0.5040642", "0.5037467", "0.5033228", "0.50299966" ]
0.61398846
7
Instancia um novo EnumTipoPessoa.
private EnumTipoPessoa(Integer codigo, String descricao) { this.codigo = codigo; this.descricao = descricao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Enum getType();", "EEnum createEEnum();", "EnumTypeDefinition createEnumTypeDefinition();", "private TipoDocumentoEnum(String descripcion,String codigo) {\r\n\t\tthis.descripcion=descripcion;\r\n\t\tthis.codigo=codigo;\r\n\t}", "public abstract Enum<?> getType();", "public static TipoProductoEnum obtenerTipo( final String nombre ) {\r\n TipoProductoEnum tipo = null;\r\n for( int i = 0; i < TipoProductoEnum.values().length; i++ ) {\r\n tipo = TipoProductoEnum.values()[ i ];\r\n if( tipo.name().equals( nombre ) ) {\r\n break;\r\n }\r\n }\r\n return tipo;\r\n }", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "public TypeEnum getType() {\n return type;\n }", "public void setTipo(int value) {\n this.tipo = value;\n }", "CommandEnum() {}", "private EnumEstadoLeyMercado(String codigoValor, Integer codigoTipo) {\n\t\tthis.codigoValor = codigoValor;\n\t\tthis.codigoTipo = codigoTipo;\n\t}", "public Enum getType() {\n return type;\n }", "@Override\r\n\tpublic void setTipo(Tipo t) {\n\t\t\r\n\t}", "public void setTipo(String t) {\n\t\tthis.tipo = t;\n\t}", "public String createEnum(String type) {\n String strEnum = \"\";\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n strEnum = EnumFactory.enumStrings[i];\n break;\n }\n }\n if (type == PAGE && countKeys[i] == 1)\n return EnumFactory.PAGE_MAIN;\n return String.format(\"%s%d\", strEnum,countKeys[i]);\n }", "Object getTipo();", "@javax.annotation.Nullable\n public TypeEnum getType() {\n return type;\n }", "public Tarta(int tipo) {\r\n\t\tthis.setTipo(tipo);\r\n\t}", "public void setTipo(Tipo tipo) {\r\n\t\tthis.tipo = tipo;\r\n\t}", "public void setTipoEco(String tipoEco) {\n this.tipoEco = tipoEco;\n }", "public void setTipo(int tipo) {\r\n this.tipo = tipo;\r\n }", "EnumListValue createEnumListValue();", "EnumConstant createEnumConstant();", "public static EnumCaracteristicaDinamica getEnumByValueCode(final String codigoValor, final Integer codigoTipo){\n\t\tif(StringUtils.isNotEmpty(codigoValor) && codigoTipo != null){\n\t\t\tfor(EnumCaracteristicaDinamica enumCaracteristicaDinamica: EnumCaracteristicaDinamica.values()){\n\t\t\t\tif(StringUtils.equals(codigoValor, enumCaracteristicaDinamica.getKeyId()) && (codigoTipo != null && codigoTipo.compareTo(enumCaracteristicaDinamica.getCodigoTipo()) == 0)){\n\t\t\t\t\treturn enumCaracteristicaDinamica;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\t\t\n\t\treturn null;\n\t}", "EnumTypeRule createEnumTypeRule();", "private TipoFonteRendaEnum(Short codigo, String descricao) {\n\t\tthis.codigo = codigo;\n\t\tthis.descricao = descricao;\n\t}", "public ServicesFormatEnum(){\n super();\n }", "EEnumLiteral createEEnumLiteral();", "EnumRef createEnumRef();", "public void setTipo(String tipo) {\r\n this.tipo = tipo;\r\n }", "@Test\n public void testCreationOfAccountWithEnum() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum();\n Assert.assertEquals(accountWithEnum.getAccountType(), AccountType.CHECKING);\n }", "@Transient\r\n\tpublic Tipo getTipo() {\r\n\t\tif(tipo==null)\r\n\t\t\treturn new Tipo();\r\n\t\treturn tipo;\r\n\t}", "public String getTipo() {\n\t\treturn this.tipo;\n\t}", "public int getTipo() {\r\n\t\treturn tipo;\r\n\t}", "public String getTipo() {\n\t\treturn tipo;\n\t}", "public String getTipo() {\n\t\treturn tipo;\n\t}", "public String getTipo() {\n\t\treturn tipo;\n\t}", "public String getTipo() {\n\t\treturn tipo;\n\t}", "@Override\r\n\tpublic Tipo getTipo() {\n\t\treturn null;\r\n\t}", "public void setTipo(String tipo) {\n\t\tthis.tipo = tipo;\n\t}", "private Acao.Tipo getTipo(String tipo) {\n if (tipo.contentEquals(DISPARO.getName())) {\n return DISPARO;\n }\n\n if (tipo.contentEquals(DESCONEXAO.getName())) {\n return DESCONEXAO;\n }\n\n return null;\n }", "private void setTipo(int tipo) {\r\n\t\tthis.tipo = tipo;\r\n\t}", "public String getTipo() {\r\n return tipo;\r\n }", "public String getTipo() {\r\n return tipo;\r\n }", "public Object getTipo() {\n\t\treturn null;\n\t}", "EnumValueDefinition createEnumValueDefinition();", "public void setTipo(java.lang.String tipo) {\n this.tipo = tipo;\n }", "public void setTipo(java.lang.String tipo) {\n this.tipo = tipo;\n }", "public Registry registerEnum(EnumIO<?> eio, int id);", "private EnumOrdenacaoSituacao(Integer codigo, String descricao, String descricaoRelatorio) {\n\t\tthis.codigo = codigo;\n\t\tthis.descricao = descricao;\n\t\tthis.descricaoRelatorio = descricaoRelatorio;\n\t}", "public TipoPedina getTipo() {\n return tipo;\n }", "public EnumByteConverter(final Class<E> theEnumType) {\r\n super(theEnumType);\r\n constants = init();\r\n }", "EnumLiteralExp createEnumLiteralExp();", "SiacDSistemaEsternoEnum(String codice, SistemaEsterno sistemaEsterno){\n\t\tthis.codice = codice;\n\t\tthis.sistemaEsterno = sistemaEsterno;\n\t}", "public void setTypeOperation(EnumTypeOperation TypeOperation) {\r\n this.TypeOperation = TypeOperation;\r\n }", "public String getTipo(){\n\t\treturn this.tipo;\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getTipoBytes() {\n java.lang.Object ref = tipo_;\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 tipo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public TipoVehiculo getTipoVehiculo() {\r\n\t\treturn TipoVehiculo.valueOf(cb_TipoVehiculo.getSelectedItem().toString());\r\n\t}", "public int getTipo() {\r\n return tipo;\r\n }", "public static <T extends Enum<T>> CommandElement enumValue(String key, Class<T> type) {\n return new EnumValueElement<>(key, type);\n }", "public void setTipoEvento(String tipoEvento) {\n this.tipoEvento = tipoEvento;\n }", "public TIPO tipoDeU(int op, TIPO tipo){\r\n\t\tif(tipo == TIPO.err|| (tipo == TIPO.real && op == opNot))\r\n\t\t\treturn TIPO.err;\r\n\t\telse if( op == opCastInt) return TIPO.ent;\r\n\t\telse if( op == opCastReal) return TIPO.real;\r\n\t\telse return tipo;\r\n\t}", "public int getTipo() {\n return tipo;\n }", "private EndpointStatusType(String type)\n\t\t{\n\t\t\tthis.type = type;\n\t\t}", "public com.google.protobuf.ByteString\n getTipoBytes() {\n java.lang.Object ref = tipo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n tipo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "Enumeration createEnumeration();", "EnumOperationType getOperationType();", "public void setTipo(String tipo);", "@Override\n\tpublic void setTipo() {\n\t\ttipo = TipoPessoa.SUSPEITO;\n\t}", "@Override\r\n\tpublic String getTipo() {\n\t\treturn this.tipo;\r\n\t}", "public EnumValueConverter() {\n }", "public void setTipoPago(int tipoPago) {\n this.tipoPago = tipoPago;\n }", "@java.lang.Override\n public java.lang.String getTipo() {\n java.lang.Object ref = tipo_;\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 tipo_ = s;\n return s;\n }\n }", "public void setTipoInmueble(Valor tipoInmueble) {\n this.tipoInmueble = tipoInmueble;\n }", "public Enum() \n { \n set(\"\");\n }", "public final Builder type(Enum... flags) {\n return type(EnumValue.create(flags));\n }", "public java.lang.String getTipo() {\n java.lang.Object ref = tipo_;\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 tipo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "PowerupController createPowerupController(PowerupEnum type);", "public it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType.Enum getSoggettoEmittente()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SOGGETTOEMITTENTE$10, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return (it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.SoggettoEmittenteType.Enum)target.getEnumValue();\r\n }\r\n }", "public Veiculo(int numPassageiros, String modeloVeiculo, String tipo){\n this.numPassageiros = numPassageiros;\n this.tipo = tipo;\n this.modeloVeiculo = modeloVeiculo;\n }", "public FiltroCreditoTipo() {\r\n\t}", "public CustomMof14EnumLiteral createCustomMof14EnumLiteral();", "public String getTipo() {\n\t\treturn \"Berlina\";\r\n\t}", "public static Obj enumType(String type) {\n\t\tif ((type != null) && !type.isEmpty() && (StrObj.containsKey(type)))\n\t\t\treturn StrObj.get(type);\n\t\telse\n\t\t\treturn Obj.UNKOBJ;\n\t}", "public CompraResponse tipoOrigemTransacao(String tipoOrigemTransacao) {\n this.tipoOrigemTransacao = tipoOrigemTransacao;\n return this;\n }", "CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }", "public static EnumDomain createEnumDomain() {\n\t\treturn new EnumDomain(new String[]{\"1\", \"2\", \"3\"});\n\t}", "public java.lang.String getTipo() {\n return tipo;\n }", "public java.lang.String getTipo() {\n return tipo;\n }", "public IotaEnum getIotaEnum() {\n return _iotaEnum ;\n }", "private void setTipo() {\n if (getNumElementos() <= 0) {\n restartCelda();\n } else if (getNumElementos() > 1) { // Queda más de un elemento\n this.setTipoCelda(Juego.TVARIOS);\n } else { // Si queda solo un tipo de elemento, miramos si es un CR, edificio o un personaje\n if (this.contRecurso != null) {\n this.setTipoCelda(this.contRecurso.getTipo());\n } else if (this.edificio != null) {\n this.setTipoCelda(this.edificio.getTipo());\n } else if (!this.getPersonajes().isEmpty()) {\n this.setTipoCelda(this.getPersonajes().get(0).getTipo());\n }\n }\n }", "@Override\n\tpublic TipoCarne getTipo() {\n\t\treturn hamburguer.getTipo();\n\t}", "public Builder clearTipo() {\n \n tipo_ = getDefaultInstance().getTipo();\n onChanged();\n return this;\n }", "@Test\n\tpublic void testNewEnumFromAction() throws Exception {\n\t\t// This test works differently that the others in that it uses the same path as the\n\t\t// GUI action to start the editing process.\n\t\t//\n\t\tDataTypeManager dtm = program.getListing().getDataTypeManager();\n\t\tfinal Category c = dtm.getCategory(new CategoryPath(CategoryPath.ROOT, \"Category1\"));\n\t\tfinal DataTypeEditorManager editorManager = plugin.getEditorManager();\n\n\t\trunSwing(() -> editorManager.createNewEnum(c));\n\t\twaitForSwing();\n\n\t\tfinal EnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\taddEntry(table, model, \"Purple\", 7);\n\t\tsetEditorEnumName(panel, \"Test.\" + testName.getMethodName());\n\n\t\tapply();\n\t}", "public String getTipo();", "public String getTipo();", "public String getTipo(){\r\n return tipo;\r\n }", "public AppEnum getEnumAppParameter(HttpServletRequest request,\r\n\t\t\t\t\t\t\t\t\tString parameterName, \r\n\t\t\t\t\t\t\t\t\tClass<? extends AppEnum> enumType, \r\n\t\t\t\t\t\t\t\t\tAppEnum defaultValue) throws ServletException {\r\n\r\n\t\tString value = getStringParameter(request, parameterName, null);\r\n\t\tif (value == null) {\r\n\t\t\treturn defaultValue;\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tAppEnum ret=AppEnum.value(enumType, value);\r\n\t\t\t\t\r\n\t\t\t\tif (ret==null){\r\n\t\t\t\t\treturn defaultValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tif (log.isDebugEnabled()){\r\n\t\t\t\t\tlog.debug(\"The parameter:'\" + parameterName\r\n\t\t\t\t\t\t\t + \"' with value :'\" + value\r\n\t\t\t\t\t\t\t + \"' can not be transformed into one enumerado \", e);\r\n\t\t\t\t}\r\n\t\t\t\treturn defaultValue;\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.6504439", "0.6342011", "0.63301045", "0.6284837", "0.60383266", "0.6026015", "0.596157", "0.596157", "0.596157", "0.5861713", "0.584854", "0.58382964", "0.5784531", "0.5770248", "0.5730984", "0.5707898", "0.5695246", "0.56944543", "0.5691053", "0.5677838", "0.56713825", "0.5666884", "0.56567097", "0.5640105", "0.56398696", "0.5633279", "0.5625237", "0.5624482", "0.5617885", "0.56155103", "0.5585125", "0.5573133", "0.55592793", "0.55383736", "0.5522133", "0.5501656", "0.5490807", "0.5490807", "0.5490807", "0.5490807", "0.5488844", "0.54869616", "0.54831886", "0.54633945", "0.5459713", "0.5459713", "0.5441232", "0.54325336", "0.54190713", "0.54190713", "0.54063046", "0.5398314", "0.539644", "0.5389211", "0.53680927", "0.53474766", "0.53470874", "0.53417647", "0.53414595", "0.53344136", "0.53312343", "0.5319059", "0.52999526", "0.5299638", "0.52895355", "0.52883625", "0.5277477", "0.52727103", "0.52670074", "0.5257318", "0.5253827", "0.5224803", "0.5223704", "0.5218573", "0.52036417", "0.52029186", "0.51706874", "0.5158409", "0.5157049", "0.51569754", "0.51558924", "0.51491994", "0.514886", "0.5141766", "0.5126036", "0.51254475", "0.51114404", "0.5110918", "0.51053524", "0.51036465", "0.51036465", "0.51016676", "0.50997734", "0.509802", "0.50923103", "0.50828826", "0.50828797", "0.50828797", "0.5075768", "0.50753355" ]
0.67455274
0
Recupera o valor de codigo.
public Integer getCodigo() { return codigo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCodigoValor() {\n\t\treturn codigoValor;\n\t}", "public String getCodigo() {\n return codigo;\n }", "public String getCodigo() {\n return codigo;\n }", "public String getCodigo() {\n\t\treturn codigo;\n\t}", "@java.lang.Override\n public java.lang.String getCodigo() {\n java.lang.Object ref = codigo_;\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 codigo_ = s;\n return s;\n }\n }", "public java.lang.String getCodigo() {\n return codigo;\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public Integer getCodigo() {\n return codigo;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\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 codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Long getCodigo() {\n return codigo;\n }", "public String getCodice() {\n\t\treturn codice;\n\t}", "public java.lang.String getCodigo() {\n java.lang.Object ref = codigo_;\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 codigo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.Integer getCodigo() {\r\n return codigo;\r\n }", "public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\r\n return Codigo;\r\n }", "public int getCodigo() {\n\t\treturn codigo;\n\t}", "public String getCodigo() {\n\t\treturn this.codigo;\n\t}", "public abstract java.lang.String getCod_tecnico();", "@Override\r\n\tpublic Serializable getValue() {\n\t\treturn this.code;\r\n}", "String getCodiceFiscale();", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "public Integer getCodigo() { return this.codigo; }", "public Short getCodigo() {\n\t\treturn codigo;\n\t}", "public String getCode() {\n return (String) get(\"code\");\n }", "public String getCode()\n {\n return fCode;\n }", "@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }", "public java.lang.String getCodigo_pcom();", "public abstract java.lang.String getCod_dpto();", "public String getCode() {\n return _code;\n }", "public Long getCode() {\n return code;\n }", "public Long getCode() {\n return code;\n }", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public void setCodigo( String codigo ) {\n this.codigo = codigo;\n }", "@JsonFormat(shape = JsonFormat.Shape.STRING)\n public Integer getCode() {\n return code;\n }", "public String getCode() {\n return this.code;\n }", "public void setCodigo(String codigo) {\n this.codigo = codigo;\n }", "int getCodeValue();", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public int getCode()\n {\n return myCode;\n }", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "public void setComuneResidenzaCod(int value) {\r\n this.comuneResidenzaCod = value;\r\n }", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public String getCode(){\n\t\treturn code;\n\t}", "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode()\n {\n return code;\n }", "public int getCode() {\r\n return code;\r\n }", "public int getCode() {\r\n return code;\r\n }", "public String getCoderegion() {\n return (String) getAttributeInternal(CODEREGION);\n }", "public Integer getCodeid() {\n return codeid;\n }", "public int getCode() {\n return code;\n }", "public int getCode() {\n return code;\n }", "public int getCode() {\n return code;\n }", "public int getCode() {\n return code;\n }", "public int getCode() {\n return code;\n }", "public int getCode()\n {\n return code;\n }", "public int getCodigoSelecionado() {\n return codigoSelecionado;\n }", "@AutoEscape\n\tpublic String getCodProvincia();", "public int getCode () {\n return code;\n }", "com.google.protobuf.Int32Value getCode();", "public long getCode() {\n return code;\n }", "public String getCode()\n {\n return code;\n}", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "Integer getCode();", "public int value() {\n return code;\n }", "Code getCode();" ]
[ "0.7722133", "0.77025694", "0.77025694", "0.7691142", "0.76638913", "0.76139325", "0.7603618", "0.75965047", "0.7519445", "0.74873674", "0.74770033", "0.7454447", "0.7441128", "0.740498", "0.7399801", "0.7399801", "0.7399801", "0.7399801", "0.73845583", "0.7369942", "0.7329797", "0.71784437", "0.711852", "0.7053729", "0.70358056", "0.7021086", "0.697074", "0.6969787", "0.6941118", "0.6886257", "0.687883", "0.6873597", "0.6873154", "0.68657863", "0.68657863", "0.6840611", "0.6840611", "0.6809936", "0.6802383", "0.6797495", "0.6792658", "0.678215", "0.67707926", "0.67707926", "0.67707926", "0.67707926", "0.67707926", "0.67707926", "0.67707926", "0.67664313", "0.67664313", "0.67664313", "0.67664313", "0.67578757", "0.67509913", "0.6750034", "0.67392725", "0.6734902", "0.67217964", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.67207867", "0.6717401", "0.6711343", "0.6711343", "0.66679674", "0.6653847", "0.6652472", "0.6652472", "0.6652472", "0.6652472", "0.6652472", "0.6648257", "0.6640873", "0.6638105", "0.66363174", "0.6623685", "0.6619441", "0.6616847", "0.6616735", "0.6614189", "0.66033673", "0.6602636" ]
0.76107526
6
Recupera o valor de descricao.
public String getDescricao() { return descricao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescricao() {\n\t\treturn this.descricao;\n\t}", "public java.lang.String getDescricao() {\r\n return descricao;\r\n }", "public String getDescricao() {\n return descricao;\n }", "public String getDescricao() {\n return descricao;\n }", "public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}", "public String getDescricao();", "java.lang.String getDesc();", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "public String getDesc() {\n\t return desc;\n\t }", "public String getDescricao() {\n\t\treturn null;\n\t}", "public java.lang.String getDesc() {\r\n return desc;\r\n }", "String getDesc();", "public String getDesc()\r\n {\r\n return description;\r\n }", "public String getDescripcion() {\r\n return Descripcion;\r\n }", "public String getDescripcion() {\n return this.descripcion.get();\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String getDescripcion() { return (this.descripcion == null) ? \"\" : this.descripcion; }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public String getDescripcion() \n\t{\n\t\treturn descripcion;\n\t}", "public java.lang.String getDesc() {\n\t\treturn desc;\n\t}", "public String getDescripcion()\r\n/* 163: */ {\r\n/* 164:299 */ return this.descripcion;\r\n/* 165: */ }", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "@Override\n\tpublic String getDescripcion() {\n\t\treturn descripcion;\n\t}", "public String getDescription() {\n return (desc);\n }", "@Override\r\n public String getDescripcion() {\r\n return this.descripcion;\r\n }", "public String getDescrizione() {\r\n\t\treturn descrizione;\r\n\t}", "public String getDescription()\r\n {\r\n\treturn desc;\r\n }", "public String getDescripcion() {\r\n return descripcion;\r\n }", "public String getDescripcion() {\r\n return descripcion;\r\n }", "public String getDescripcion() {\r\n\t\treturn descripcion;\r\n\t}", "String getDescripcion();", "String getDescripcion();", "public String getDescription() {\n if ((desc == null) && (forVar != null)) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.LONG_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(\"description\");\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CDM.TITLE);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CF.STANDARD_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n }\n return (desc == null) ? null : desc.trim();\n }", "public java.lang.String getDesc()\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(DESC$10);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getDescripcion() {\n return descripcion;\n }", "public java.lang.String getDescripcion() {\n return descripcion;\n }", "public String getDescripcion() {\n\t\treturn descripcion;\n\t}", "public String getDescripcion() {\n\t\treturn descripcion;\n\t}", "public String getDescrizione() {\n\t\treturn descrizione;\n\t}", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public String getDescripcion() {\n return descripcion;\n }", "public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }", "public String getDescripcion() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDescripcion() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDescripcion() - end\");\n\t\t}\n\t\treturn descripcion;\n\t}", "public String getDescription() {\n return sdesc;\n }", "public java.lang.String getDescrizione() {\r\n return descrizione;\r\n }", "public String getDescription() {\n return desc;\n }", "@Override\n\tpublic String getDescripcion() {\n\t\treturn model.getDescripcion();\n\t}", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "public String getDescription() {\n return desc;\n }", "public String getDescription() throws Exception{\n\treturn strDesc;\n }", "public String getDescripcion()\n {\n return descripcion;\n }", "public Optional<String> desc() {\n\t\t\treturn Optional.ofNullable(_description);\n\t\t}", "public String getDescripcion() { return this.descripcion; }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "public void setDescricao(java.lang.String descricao) {\r\n this.descricao = descricao;\r\n }", "public String getDescInfo() {\n return descInfo;\n }", "@Override\n\tpublic String getdescription() {\n\t\treturn this.description.getDesc();\n\t}", "public java.lang.String getDescription()\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(DESCRIPTION$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getDescription()\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(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getDescription(){\n\t\treturn \"\" ; //trim(thisInstance.getDescription());\n\t}", "public String getRecapitoDesc() {\n\t\treturn this.recapitoDesc;\n\t}", "public String getDescription() {\r\n\t\treturn McsElement.getElementByXpath(driver, DESCRIPTION_TXTAREA)\r\n\t\t\t\t.getAttribute(\"value\");\r\n\t}", "protected String getDescription()\n {\n return description;\n }", "public String getDescripcion(){\n return descripcion;\n }", "public String getDescriptionText() {\n return m_DescriptionText;\n }", "public java.lang.Object getDescription() {\n return description;\n }", "protected String getDescription() {\n return description;\n }", "public StringDt getDescription() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public StringDt getDescription() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public com.commercetools.api.models.common.LocalizedString getDescription() {\n return this.description;\n }", "public CharSequence getDescription() {\n return description;\n }", "@Override\r\n public String toString() {\n return this.descripcion;\r\n }", "public java.lang.String getDescription() {\n java.lang.Object ref = description_;\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 description_ = s;\n }\n return s;\n }\n }", "public String getDescr() {\r\n return descr;\r\n }", "public String obtenerDescripcionAtaque(){\n\treturn descripcionAtaque;\n }", "public String getDescription()\n {\n return this.mDescription;\n }", "public String obtenirDesription() {\n String description = new String(\"\");\n switch (typePlancher) {\n case CERAMIQUE:\n description = CERAMIQUE_DESC;\n break;\n case TUILESDEVINYLE:\n description = TUILESDEVINYLE_DESC;\n break;\n case LINOLEUM:\n description = LINOLEUM_DESC;\n break;\n case BOISFRANC:\n description = BOISFRANC_DESC;\n break;\n case FLOTTANT:\n description = FLOTTANT_DESC;\n }\n return description;\n }", "public CharSequence getDescription() {\n return description;\n }", "public java.lang.String getDescription()\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(DESCRIPTION$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }" ]
[ "0.7925677", "0.79157704", "0.78929895", "0.78929895", "0.7891746", "0.78558075", "0.78304183", "0.7775091", "0.7775091", "0.7775091", "0.7775091", "0.7775091", "0.77734774", "0.77734774", "0.7755042", "0.77193683", "0.76609474", "0.76434976", "0.75878245", "0.7583227", "0.7558223", "0.75381047", "0.75142145", "0.7493699", "0.74777603", "0.7476106", "0.7454154", "0.7444979", "0.7444979", "0.7444979", "0.7444979", "0.7438269", "0.7429196", "0.74081534", "0.7403221", "0.73996603", "0.7393255", "0.7393255", "0.7392629", "0.738342", "0.738342", "0.73605317", "0.73563755", "0.73551255", "0.7351298", "0.7333871", "0.7333871", "0.7330666", "0.7321832", "0.7320492", "0.73101413", "0.73035175", "0.7290758", "0.7290255", "0.72894776", "0.7276089", "0.72750396", "0.72750396", "0.72750396", "0.72750396", "0.72750396", "0.72750396", "0.72750396", "0.72750396", "0.72750396", "0.72679585", "0.72363836", "0.72328824", "0.72129333", "0.72125053", "0.72091615", "0.7202741", "0.7184552", "0.71811044", "0.7180385", "0.716799", "0.71492183", "0.7148412", "0.7135483", "0.71345776", "0.7114669", "0.7110378", "0.71095496", "0.7105422", "0.7103881", "0.7103881", "0.7100958", "0.7099258", "0.7080266", "0.7075801", "0.7075622", "0.7071289", "0.7066962", "0.7066473", "0.7062476", "0.7057455", "0.70479316", "0.7042394", "0.701617" ]
0.79998696
1
Only draw for each bus once:
protected void paintBus(Graphics g, BusUI bus, Set<BusUI> hashSet) { if(hashSet.contains(bus)) return; hashSet.add(bus); // Draw labels: int x = bus.getX()+bus.getWidth()+1; int y = bus.getY()+bus.getHeight(); StringBuffer label = new StringBuffer(bus.bus.getName()); Collection<Unit> children = bus.bus.getChildren(); if(!children.isEmpty()) { label.append("<"); for (Unit child : children) { if( child instanceof ControllableDemand || (child instanceof DistributedSource && !(child instanceof ControllableDemand.CDSource)) || (child instanceof Load && !(child instanceof ControllableDemand.CDLoad)) ) { label.append(child.getName()); label.append(','); } else if(child instanceof Transformer) { label.append("XFMR[m="); label.append(((Transformer)child).getT()); label.append("],"); } } // label.deleteCharAt(label.length()-1); // remove last comma label.append(">"); } g.drawString(label.toString(), x, y); if(results != null && bus.bus.getSlackVoltage().abs() > 0) g.drawString(results.getBusPower(bus.bus.getName())+"W", x, y+14); else g.drawString(ComplexFormat.getInstance("j", Locale.getDefault()).format(bus.bus.netPower())+"W", x, y+14); if(results != null) { Complex v = results.getBusVoltage(bus.bus.getName()); g.drawString(ComplexFormat.getInstance("j", Locale.getDefault()).format(v)+"V", x, y+28); } // Draw lines: Point loc1 = bus.getLocation(); loc1.x += bus.getWidth()/2; for (BusUI b : bus.children) { Point loc2 = b.getLocation(); loc2.x += b.getWidth()/2; g.drawLine(loc1.x, loc1.y, loc2.x, loc2.y); paintBus(g, b, hashSet); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawFlights(){\n if(counter%180 == 0){ //To not execute the SQL request every frame.\n internCounter = 0;\n origins.clear();\n destinations.clear();\n internCounter = 0 ;\n ArrayList<String> answer = GameScreen.database.readDatas(\"SELECT Origin, Destination FROM Flights\");\n for(String s : answer){\n internCounter++;\n String[] parts = s.split(\" \");\n String xyOrigin, xyDestination;\n try{\n xyOrigin = GameScreen.database.readDatas(\"SELECT SystemX, SystemY FROM Systems WHERE SystemName = '\"+parts[0]+\"' ;\").get(0);\n } catch (IndexOutOfBoundsException e){\n String systemId = GameScreen.database.getOneData(\"SELECT SystemId FROM Planet WHERE PlanetName = '\"+parts[0]+\"' ;\");\n xyOrigin = GameScreen.database.readDatas(\"SELECT SystemX, SystemY FROM Systems WHERE id = '\"+systemId+\"' ;\").get(0);\n }\n origins.add(new Vector2(Float.parseFloat(xyOrigin.split(\" \")[0]), Float.parseFloat(xyOrigin.split(\" \")[1])));\n\n try{\n xyDestination = GameScreen.database.readDatas(\"SELECT SystemX, SystemY FROM Systems WHERE SystemName = '\"+parts[1]+\"' ;\").get(0);\n }catch (IndexOutOfBoundsException e){\n String systemId = GameScreen.database.getOneData(\"SELECT SystemId FROM Planet WHERE PlanetName = '\"+parts[1]+\"' ;\");\n xyDestination = GameScreen.database.readDatas(\"SELECT SystemX, SystemY FROM Systems WHERE id = '\"+systemId+\"' ;\").get(0);\n }\n destinations.add(new Vector2(Float.parseFloat(xyDestination.split(\" \")[0]), Float.parseFloat(xyDestination.split(\" \")[1])));\n }\n }\n renderer.begin();\n renderer.set(ShapeRenderer.ShapeType.Filled);\n renderer.setColor(Color.WHITE);\n renderer.circle(600, 380, 4);\n for(int i = 0; i<internCounter; i++){\n renderer.line(origins.get(i), destinations.get(i));\n renderer.setColor(Color.RED);\n renderer.circle(origins.get(i).x, origins.get(i).y, 3);\n renderer.setColor(Color.GREEN);\n renderer.circle(destinations.get(i).x, destinations.get(i).y, 3);\n }\n renderer.end();\n }", "private void drawComponents () {\n // Xoa het nhung gi duoc ve truoc do\n mMap.clear();\n // Ve danh sach vi tri cac thanh vien\n drawMembersLocation();\n // Ve danh sach cac marker\n drawMarkers();\n // Ve danh sach cac tuyen duong\n drawRoutes();\n }", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "void withDraw() {\n if (this.pointer != 0) {\n this.pointer--;\n }\n }", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\tb1.paint(canvas);\n\t\tb2.paint(canvas);\n\t\tb3.paint(canvas);\n\t\tb4.paint(canvas);\n\t}", "private synchronized void paint() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferStrategy bs;\n\t\tbs = this.getBufferStrategy();\n\t\t\n\t\tGraphics2D g = (Graphics2D) bs.getDrawGraphics();\n\t\tg.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, this.getWidth(), this.getHeight());\n\t\t\n\t\tif(this.reiniciar == true){\n\t\t\tString ca = \"\" + cuentaAtras;\n\t\t\tg.setColor(Color.WHITE); \n\t\t\tg.setFont(new Font (\"Consolas\", Font.BOLD, 80));\n\t g.drawString(\"Puntuación: \" + puntuacion, 100, 200);\n\t \n\t g.setColor(Color.WHITE); \n\t\t\tg.setFont(new Font (\"Consolas\", Font.BOLD, 300));\n\t g.drawString(ca, 400, 500);\n\t \n\t g.setColor(Color.WHITE); \n\t\t\tg.setFont(new Font (\"Consolas\", Font.BOLD, 40));\n\t\t\tg.drawString(\"Pulsa enter para volver a jugar\", 150, 600);\n\t\t}\n\t\t\n\t\telse if(this.reiniciar == false){\n\t\t\tfor(int i=0;i<numDisparos;i++){ \n\t\t\t\t disparos[i].paint(g);\n\t\t\t}\n\t\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\t\t asteroides[i].paint(g);\n\t\t\t}\n\t\t\t\n\t\t\tif(this.isNaveCreada()==true && nave!=null){\n\t\t\t\tnave.paint(g);\n\t\t\t}\n\t\t\t\n\t\t\tif(enemigo.isVivo()==true){\n\t\t\t\tenemigo.paint(g);\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<numDisparosE;i++){ \n\t\t\t\t\t disparosE[i].paint(g);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tg.setColor(Color.WHITE); \n\t\t\tg.drawString(\"Puntuacion \" + puntuacion,20,20); \n\t\t\t\n\t\t\tg.setColor(Color.WHITE); \n\t\t\tg.drawString(\"Vida \" + this.getVidas(),20,40);\n\t\t}\n\t\t\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw1() {\n\n\t}", "public void draw() {\n \n // TODO\n }", "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "public void draw()\r\n\t\t{\r\n\t\tfor(PanelStationMeteo graph: graphList)\r\n\t\t\t{\r\n\t\t\tgraph.repaint();\r\n\t\t\t}\r\n\t\t}", "@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void draw()\r\n {\r\n drawn = true;\r\n }", "@Override\r\n public void draw() {\n }", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void draw() {\n\t}", "void reDraw();", "@Override\n public void draw()\n {\n }", "@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.BLACK);\n for(int j = 0 ; j < 3 ; j++) {\n \tg.drawRect(0,50*j, 120, 50);\n }\n \n if(super.selected) {\n\t\t\tg.fillRect(super.north_port.x, super.north_port.y, super.connection_port_width ,super.connection_port_width);\n\t g.fillRect(super.east_port.x-super.connection_port_width, super.east_port.y, super.connection_port_width,super.connection_port_width);\n\t g.fillRect(super.south_port.x, super.south_port.y-super.connection_port_width ,super.connection_port_width,super.connection_port_width);\n\t g.fillRect(super.west_port.x, super.west_port.y, super.connection_port_width,super.connection_port_width);\n\t\t}\n \t\n \n }", "@Override\r\n\tprotected void onDraw(LRenderSystem rs) {\n\r\n\t}", "private void draw() {\n gsm.draw(g);\n }", "@Override\n\tpublic void draw(Canvas canvas) {\n\t\t\n\t\tif(!all) {\n\t\t\tsprite3.draw(canvas);\n\t\t}\n\t\telse {\n\t\tif (count%4 == 0) {\n\t\t\tsprite1.draw(canvas);\n\t\t}\n\t\telse {\n\t\t\tsprite2.draw(canvas);\n\t\t}\n\t\t++count;\n\t\t\n\t\tif (count==60) {\n\t\t\tcount=0;\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public void draw() {\n }", "public void draw() {\n\t\t/* Clear Screen */\n\t\tGdx.graphics.getGL20().glClearColor(1,1,1,0);\n\t\tGdx.graphics.getGL20().glClear( GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT );\n\n\t\t/* Iterate through draw list */\n\t\tIterator<ArrayList<Drawable>> iter = this.drawlist.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tArrayList<Drawable> layer = iter.next();\n\t\t\t/* Sort the layer. */\n\t\t\tCollections.sort(layer, new DrawableComparator());\n\t\t\t/* Iterate through the layer. */\n\t\t\tIterator<Drawable> jter = layer.iterator();\n\t\t\twhile(jter.hasNext()) {\n\t\t\t\tDrawable drawable = jter.next();\n\t\t\t\tif (drawable.isDead()) {\n\t\t\t\t\tjter.remove(); //Remove if dead.\n\t\t\t\t}//fi\n\t\t\t\telse {\n\t\t\t\t\tdrawable.draw(this, this.scalar); //Draw the drawable.\n\t\t\t\t}//else\n\t\t\t}//elihw\n\t\t}//elihw\n\t}", "private void draw() {\n\t\tCanvas c = null;\n\t\ttry {\n\t\t\t// NOTE: in the LunarLander they don't have any synchronization here,\n\t\t\t// so I guess this is OK. It will return null if the holder is not ready\n\t\t\tc = mHolder.lockCanvas();\n\t\t\t\n\t\t\t// TODO this needs to synchronize on something\n\t\t\tif (c != null) {\n\t\t\t\tdoDraw(c);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tmHolder.unlockCanvasAndPost(c);\n\t\t\t}\n\t\t}\n\t}", "private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }", "@Override\r\n\tprotected void onDraw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "public void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n int i = 0;\n while (i < this.f92253a) {\n double random = Math.random();\n int i2 = this.f92258f;\n float f = (float) (((double) i2) * random);\n int i3 = this.f92257e;\n i++;\n canvas.drawRect(((float) (i3 * i)) + this.f92259g, f, (float) (i3 * i), (float) i2, this.f92254b);\n }\n postInvalidateDelayed((long) this.f92260h);\n }", "protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }", "public void dispatchDraw(Canvas canvas) {\n int[] iArr = new int[2];\n int[] iArr2 = new int[2];\n this.f2856b.getLocationOnScreen(iArr);\n this.f2857c.getLocationOnScreen(iArr2);\n canvas.translate((float) (iArr2[0] - iArr[0]), (float) (iArr2[1] - iArr[1]));\n canvas.clipRect(new Rect(0, 0, this.f2857c.getWidth(), this.f2857c.getHeight()));\n super.dispatchDraw(canvas);\n ArrayList<Drawable> arrayList = this.f2858d;\n int size = arrayList == null ? 0 : arrayList.size();\n for (int i2 = 0; i2 < size; i2++) {\n ((Drawable) this.f2858d.get(i2)).draw(canvas);\n }\n }", "public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }", "private void draw() {\n\n // Current generation (y-position on canvas)\n int generation = 0;\n\n // Looping while still on canvas\n while (generation < canvasHeight / CELL_SIZE) {\n\n // Next generation\n cells = generate(cells);\n\n // Drawing\n for (int i = 0; i < cells.length; i++) {\n gc.setFill(colors[cells[i]]);\n gc.fillRect(i * CELL_SIZE, generation * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n }\n\n // Next line..\n generation++;\n }\n }", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "public void draw(){\n\t\t int startRX = 100;\r\n\t\t int startRY = 100;\r\n\t\t int widthR = 300;\r\n\t\t int hightR = 300;\r\n\t\t \r\n\t\t \r\n\t\t // start points on Rectangle, from the startRX and startRY\r\n\t\t int x1 = 0;\r\n\t\t int y1 = 100;\r\n\t\t int x2 = 200;\r\n\t\t int y2 = hightR;\r\n\t\t \r\n //direction L - false or R - true\r\n\t\t \r\n\t\t boolean direction = true;\r\n\t\t \t\r\n\t\t\r\n\t\t //size of shape\r\n\t\t int dotD = 15;\r\n\t\t //distance between shapes\r\n\t int distance = 30;\r\n\t\t \r\n\t rect(startRX, startRY, widthR, hightR);\r\n\t \r\n\t drawStripesInRectangle ( startRX, startRY, widthR, hightR,\r\n\t \t\t x1, y1, x2, y2, dotD, distance, direction) ;\r\n\t\t \r\n\t\t super.draw();\r\n\t\t}", "public void onDraw(Displayer displayer) {\n // Do nothing\n }", "@Override\n public void run() {\n drawBack(holder);\n drawClock();\n// drawCircle();\n }", "@Override\n\tprotected synchronized void onDraw(Canvas canvas){\n//\t\tdata.add(49);\n//\t\tdata.add(40);\n//\t\tdata.add(36);\n//\t\tdata.add(20);\n//\t\tdata.add(10);\n//\t\tdata.add(50);\n//\t\tdata.add(40);\n//\t\tdata.add(38);\n//\t\tdata.add(20);\n//\t\tdata.add(10);\n\n\t\tmAnalysts.pre();\n\t\twidth = this.getWidth();\n\t\theight = this.getHeight();\n\t\tline0_x1 = (float)width*0.1f;\n\t\tline0_x2 = (float)width;\n\t\tline0_y = (float)height*0.9f;\n\t\tline50_x1 = line0_x1;\n\t\tline50_x2 = line0_x2;\n\t\tline50_y = (float)height*0.1f;\n\t\tline37_x1 = line0_x1;\n\t\tline37_x2 = line0_x2;\n\t\tline37_y = (float)height*0.8f*(50-37)/50.0f+line50_y;\n\t\tif(layoutLand){//show all item\n\t\t\tint num = data.size();\n\t\t\tif(0==num){\n\t\t\t\tpadding = 0;\n\t\t\t\tsub_width = 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(num<10)\n\t\t\t\t\tnum = 10;\n\t\t\t\tpadding = (float)width*0.9f*0.1f/(num+1);\n\t\t\t\tsub_width = (float)width*0.9f*0.9f/num;\n\t\t\t}\n\t\t}\n\t\telse{//only show 10 item\n\t\t\tpadding = (float)width*0.9f*0.1f/11;\n\t\t\tsub_width = (float)width*0.9f*0.9f/10;\n\t\t}\n\t\tdrawBackground(canvas, width, height);\n\t\tdrawValues(canvas);\n\t\tmAnalysts.post();\n\t}", "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "private void render()\n {\n //Applicazione di un buffer \"davanti\" alla tela grafica. Prima di disegnare \n //sulla tela grafica il programma disegnerà i nostri oggetti grafici sul buffer \n //che, in seguito, andrà a disegnare i nostri oggetti grafici sulla tela\n bufferStrategico = display.getTelaGrafica().getBufferStrategy();\n \n //Se il buffer è vuoto (== null) vengono creati 3 buffer \"strategici\"\n if(bufferStrategico == null)\n {\n display.getTelaGrafica().createBufferStrategy(3);\n return;\n }\n \n //Viene definito l'oggetto \"disegnatore\" di tipo Graphic che disegnerà i\n //nostri oggetti grafici sui nostri buffer. Può disegnare qualsiasi forma\n //geometrica\n disegnatore = bufferStrategico.getDrawGraphics();\n \n //La riga seguente pulisce lo schermo\n disegnatore.clearRect(0, 0, larghezza, altezza);\n \n //Comando per cambiare colore dell'oggetto \"disegnatore\". Qualsiasi cosa\n //disengata dal disegnatore dopo questo comando avrà questo colore.\n \n /*disegnatore.setColor(Color.orange);*/\n \n //Viene disegnato un rettangolo ripieno. Le prime due cifre indicano la posizione \n //da cui il nostro disegnatore dovrà iniziare a disegnare il rettangolo\n //mentre le altre due cifre indicano le dimensioni del rettangolo\n \n /*disegnatore.fillRect(10, 50, 50, 70);*/\n \n //Viene disegnato un rettangolo vuoto. I parametri hanno gli stessi valori\n //del comando \"fillRect()\"\n \n /*disegnatore.setColor(Color.blue);\n disegnatore.drawRect(0,0,10,10);*/\n \n //I comandi seguenti disegnano un cerchio seguendo la stessa logica dei\n //rettangoli, di colore verde\n \n /*disegnatore.setColor(Color.green);\n disegnatore.fillOval(50, 10, 50, 50);*/\n \n /*Utilizziamo il disegnatore per caricare un'immagine. Il primo parametro\n del comando è l'immagine stessa, il secondo e il terzo parametro sono \n le coordinate dell'immagine (x,y) mentre l'ultimo parametro è l'osservatore\n dell'immagine (utilizzo ignoto, verrà impostato a \"null\" in quanto non\n viene usato)*/\n //disegnatore.drawImage(testImmagine,10,10,null);\n \n /*Comando che disegna uno dei nostri sprite attraverso la classe \"FoglioSprite\".*/\n //disegnatore.drawImage(foglio.taglio(32, 0, 32, 32), 10, 10,null);\n \n /*Viene disegnato un albero dalla classe \"Risorse\" attraverso il disegnatore.*/\n //disegnatore.drawImage(Risorse.omino, x, y,null);\n \n /*Se lo stato di gioco esiste eseguiamo la sua renderizzazione.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().renderizzazione(disegnatore);\n }\n \n //Viene mostrato il rettangolo\n bufferStrategico.show();\n disegnatore.dispose();\n }", "public void overDraw() {\r\n\t\t\r\n\t\tisDrawCalled = false;\r\n\t\t\r\n\t\tLog.d(\"core\", \"Scheduler: All step done in \" + \r\n\t\t\t\t(System.currentTimeMillis() - logTimerMark) + \" ms;\");\r\n\t\t\r\n\t\tint delay = 3;\r\n\t\tstartWork(delay);\r\n\t}", "public void draw() {\n \n }", "public void withdraw() {\n\t\t\t\n\t\t}", "public MemoryGameDrawing() {\n super();\n cards = new Card[5][2];\n flipped = new ArrayList<Card>();\n count = 0;\n delay = 1000;\n spacing = 0;\n int[] id = {0, 0, 1, 1, 2, 2, 3, 3, 4, 4};\n String[] names = {\"Burger\", \"Soda\", \"Fries\", \"IceCream\", \"Salad\"};\n for(int i = 0; i < id.length; i++) {\n int rand = (int)(Math.random()*id.length);\n int temp = id[rand];\n id[rand] = id[i];\n id[i] = temp;\n }\n for(int i = 0; i < 2; i++) {\n for(int j = 0; j < 5; j++) {\n cards[j][i] = new Card(names[id[i*5+j]], i*5+j, 60+j*140, 100+i*180, 120, 160);\n cards[j][i].activate();\n }\n }\n infoCard.activate();\n }", "void DrawEpizode(Canvas c){\n PointSize = c.getWidth()/Logic.getInstance().GameDeskSize;\n c.drawColor(Color.BLACK);\n floor_bitmap = Bitmap.createScaledBitmap(floor_bitmap, (int)PointSize,(int)PointSize,false);\n wall_bitmap = Bitmap.createScaledBitmap(wall_bitmap, (int)PointSize,(int)PointSize,false);\n point_bitmap = Bitmap.createScaledBitmap(point_bitmap, (int)PointSize,(int)PointSize,false);\n\n\n for (int i = 0; i < Logic.getInstance().GameDeskSize; i++){\n for(int j = 0; j < Logic.getInstance().GameDeskSize; j++){\n int State =Logic.getInstance().gamefield[i][j].getState();\n\n if(State>=40){\n State = Logic.getInstance().Gosts.Gosts.get(State-40).my_point_state;\n }\n\n switch (State) {\n case 0:\n //c.drawRect(i*PointSize, j*PointSize,i+1*PointSize, j+1*PointSize ,new Paint());\n c.drawBitmap(floor_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n break;\n case 1:\n c.drawBitmap(floor_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n c.drawBitmap(point_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n break;\n case 2:\n c.drawBitmap(floor_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n case 3:\n c.drawBitmap(floor_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n c.drawBitmap(wall_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n break;\n default: break;\n\n }\n }\n }\n }", "private void drawSquares() {\n for (Square square : gui.game) {\n new SquareRenderer(gui, g2, square);\n }\n }", "public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }", "private void drawCuadrado(Graphics g)\r\n {\r\n for(int i=0; i< c.size(); i++)\r\n {\r\n Cuadrado tmp = c.get(i);\r\n g.drawRect( tmp.getX(), tmp.getY() , tmp.getW(), tmp.getH() ); \r\n }\r\n }", "public abstract void drawFill();", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "public void draw() {\n }", "@Override\r\n protected void dispatchDraw(Canvas canvas) {\r\n super.dispatchDraw(canvas);\r\n if (mCellBitmapDrawables.size() > 0) {\r\n for (BitmapDrawable bitmapDrawable : mCellBitmapDrawables) {\r\n bitmapDrawable.draw(canvas);\r\n }\r\n }\r\n }", "public void drawSelector(int x) {\n int currentTime = millis() / 100;\n noStroke();\n if (currentTime % 13 == 0) {\n fill(200, 200, 100, 30);\n }\n else if (currentTime % 13 == 1) {\n fill(200, 200, 100, 40);\n }\n else if (currentTime % 13 == 2) {\n fill(200, 200, 100, 50);\n }\n else if (currentTime % 13 == 3) {\n fill(200, 200, 100, 60);\n }\n else if (currentTime % 13 == 4) {\n fill(200, 200, 100, 70);\n }\n else if (currentTime % 13 == 5) {\n fill(200, 200, 100, 80);\n }\n else if (currentTime % 13 == 6) {\n fill(200, 200, 100, 90);\n }\n else if (currentTime % 13 == 7) {\n fill(200, 200, 100, 100);\n }\n else if (currentTime % 13 == 8) {\n fill(200, 200, 100, 110);\n }\n else if (currentTime % 13 == 9) {\n fill(200, 200, 100, 120);\n }\n else if (currentTime % 13 == 10) {\n fill(200, 200, 100, 130);\n }\n else if (currentTime % 13 == 11) {\n fill(200, 200, 100, 140);\n }\n else if (currentTime % 13 == 12) {\n fill(200, 200, 100, 150);\n }\n else {\n fill(255, 200, 100);\n }\n switch(x){\n case 1:\n beginShape();\n vertex(80, 330);\n vertex(50, 360);\n vertex(80, 350);\n vertex(110, 360);\n endShape();\n break;\n case 2:\n beginShape();\n vertex(370, 330);\n vertex(340, 360);\n vertex(370, 350);\n vertex(400, 360);\n endShape();\n break;\n case 3:\n beginShape();\n vertex(80, 600);\n vertex(50, 630);\n vertex(80, 620);\n vertex(110, 630);\n endShape();\n break;\n case 4:\n beginShape();\n vertex(370, 600);\n vertex(340, 630);\n vertex(370, 620);\n vertex(400, 630);\n endShape();\n break;\n }\n\n}", "protected abstract void draw();", "public void draw()\n\t{\n\t\tdrawWalls();\n\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.draw();\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.draw();\n\t\t}\n\n\t\tdp.repaintAndSleep(rate);\n\t}", "public void currentPlayerDrawCard() {\n Player currentPlayer = turnManager.currentPlayer();\n UnoCard newCard = getNextCard();\n currentPlayer.obtainCard(newCard);\n\n for (GameListener gameListener : gameListeners) {\n gameListener.cardDrawn();\n }\n\t}", "public void newDrawing()\n {\n //clear the current canvas\n canvas.drawColor(0, PorterDuff.Mode.CLEAR);\n //reprint the screen\n invalidate();\n }", "@Override\n public void unDraw() {\n index--;\n }", "public void withdraw() {\n\t\t}", "@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}", "@Override\n\t\tprotected void dispatchDraw(Canvas canvas) {\n\t\t\ttry {\n\t\t\t\tsuper.dispatchDraw(canvas);\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n if (noxItemCatalog == null) {\n wasInvalidatedBefore = false;\n return;\n }\n updateShapeOffset();\n for (int i = 0; i < noxItemCatalog.size(); i++) {\n if (shape.isItemInsideView(i)) {\n loadNoxItem(i);\n float left = shape.getXForItemAtPosition(i);\n float top = shape.getYForItemAtPosition(i);\n drawNoxItem(canvas, i, left, top);\n }\n }\n canvas.restore();\n wasInvalidatedBefore = false;\n }", "public void draw(){\n }", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "private void drawDealer() {\n boolean result = mBlackJack.drawCardDealer();\n updateCardList(mBlackJack.getDealerHands(), mDealerAdapter);\n mDealerScore.setText(String.valueOf(mBlackJack.getDealerScore()));\n\n Logger.d(TAG, \"drawDealer result : \" + result);\n int what = result ? RESULT : DRAW_DEALER;\n sendEmptyMessageDelayed(what, DELAYED_TIME);\n }", "@Override\n\tpublic void doDraw(Canvas canvas) {\n\t\tcanvas.save();\n\t\tcanvas.translate(0,mScreenSize[1]/2.0F - mScreenSize[1]/6.0F);\n\t\tcanvas.scale(1.0F/3.0F, 1.0F/3.0F);\n\t\tfor(int i = 0; i < Math.min(mPatternSets.size(), 3); i++) {\n\t\t\tPatternSet.Pattern pattern = mPatternSets.get(i).get(0);\n\t\t\tcanvas.save();\n\t\t\tfor(int y = 0; y < pattern.height(); y++) {\n\t\t\t\tcanvas.save();\n\t\t\t\tfor(int x = 0; x < pattern.width(); x++) {\n\t\t\t\t\tif(pattern.get(x,y) > 0) {\n\t\t\t\t\t\t//Log.d(TAG, \"Ping!\");\n\t\t\t\t\t\tmBlockPaint.setColor(mBlockColors[pattern.get(x,y)]);\n\t\t\t\t\t\tcanvas.drawRect(1, 1, mBlockSize[0]-1, mBlockSize[1]-1, mBlockPaint);\n\t\t\t\t\t}\n\t\t\t\t\tcanvas.translate(mBlockSize[0], 0);\n\t\t\t\t}\n\t\t\t\tcanvas.restore();\n\t\t\t\tcanvas.translate(0, mBlockSize[1]);\n\t\t\t}\n\t\t\tcanvas.restore();\n\t\t\tcanvas.translate(mScreenSize[0], 0);\n\t\t}\n\t\tcanvas.restore();\n\t}", "public void draw(SpriteBatch batch) {\n\t\t// Draw the item slots.\n\t\tfor(ItemSlot slot : itemSlots) {\n\t\t\tslot.draw(batch, slotStartPositionX, slotStartPositionY, slot == this.getSelectedSlot());\n\t\t}\n\t}", "public void makeGraphic() {\n\t\tStdDraw.clear();\n\n\t\tfor (int i = 0; i < p.showArray.size(); i++) {\n\t\t\tStdDraw.setPenColor(0, 255, 255);\n\n\t\t\tStdDraw.circle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\t\t\tStdDraw.setPenColor(StdDraw.GRAY);\n\n\t\t\tStdDraw.filledCircle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\n\t\t}\n\t\tStdDraw.show();\n\t}", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "@Override\n\tpublic void withdraw() {\n\t\t\n\t}", "public void drawOnMapFragment(){\n if(!ifFieldTooBig()){\n isFreeDraw = true;\n mFreeDrawView.setVisibility(View.INVISIBLE);\n mFreeDrawView.cleanCanvas();\n drawPolygonWithMarker(mMapInterface.getPathFrame(), Color.WHITE);\n\n dronePath.findDronePath(mMapInterface.getPathFrame(), RESOLUTION);\n dronePath.drawRout(getDronePath(), googleMap, Color.GREEN);\n isPathReady=true;\n mMapInterface.setFullDronePath(getDronePath());\n Toast.makeText(getContext(), getString(R.string.edit_explain), Toast.LENGTH_LONG).show();\n }\n else{\n deletePath();\n }\n }", "private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}", "public void drawSegment(Graphics g, int a, int b)\n { \n //Draws the outline of the snake based on the selected color\n \n if(lastpowerUp.equals(\"BLACK\") && powerupTimer > 0)\n {\n Color transGray = new Color(55,55,55);\n g.setColor(transGray);\n //g.setColor(Color.BLACK);\n }\n else if(!lastpowerUp.equals(\"RAINBOW\"))\n {\n if(difficult.equals(\"GHOST\"))\n g.setColor(new Color(55,55,55));\n else if(color.equals(\"WHITE\"))\n g.setColor(Color.WHITE); \n else if(color.equals(\"GREEN\"))\n g.setColor(Color.GREEN); //Green outline\n else if(color.equals(\"BLUE\"))\n g.setColor(Color.BLUE); \n else if(color.equals(\"CYAN\"))\n g.setColor(Color.CYAN); \n else if(color.equals(\"GRAY\"))\n g.setColor(Color.GRAY);\n else if(color.equals(\"YELLOW\"))\n g.setColor(Color.YELLOW); \n else if(color.equals(\"MAGENTA\"))\n g.setColor(Color.MAGENTA); \n else if(color.equals(\"ORANGE\"))\n g.setColor(Color.ORANGE); \n else if(color.equals(\"PINK\"))\n g.setColor(Color.PINK); \n else if(color.equals(\"RED\"))\n g.setColor(Color.RED); \n }\n else if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n {\n int x = (int)(Math.random()*250);\n int y = (int)(Math.random()*250);\n int z = (int)(Math.random()*250);\n \n Color randomColor = new Color(x,y,z);\n g.setColor(randomColor);\n }\n \n g.drawLine(a,b,a,b+15);\n g.drawLine(a,b,a+15,b);\n g.drawLine(a+15,b,a+15,b+15);\n g.drawLine(a,b+15,a+15,b+15); \n }", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics;\n\n for (int i = 0; i < myDrawingArray.size(); i++) {\n final Drawing drawing = myDrawingArray.get(i);\n g2d.setPaint(drawing.getColor());\n g2d.setStroke(new BasicStroke(drawing.getWidth()));\n g2d.draw(drawing.getShape());\n }\n \n if (myCurrentShape != null) {\n g2d.setPaint(myCurrentShape.getColor());\n g2d.setStroke(new BasicStroke(myCurrentShape.getWidth()));\n g2d.draw(myCurrentShape.getShape());\n }\n \n if (myGrid) { //Paints the grid if myGrid is true.\n g2d.setStroke(new BasicStroke(1));\n g2d.setPaint(Color.GRAY);\n for (int row = 0; row < getHeight() / GRID_SPACING; row++) {\n final Line2D line = new Line2D.Float(0, GRID_SPACING + (row * GRID_SPACING),\n getWidth(), GRID_SPACING + (row * GRID_SPACING));\n g2d.draw(line);\n }\n for (int col = 0; col < getWidth() / GRID_SPACING; col++) {\n final Line2D line = new Line2D.Float(GRID_SPACING \n + (col * GRID_SPACING), 0,\n GRID_SPACING\n + (col * GRID_SPACING), getHeight());\n g2d.draw(line);\n }\n \n }\n }", "@Override\n public void paint(Graphics g) {\n g2 = (Graphics2D) g;\n drawBackground();\n drawSquares();\n drawLines();\n gui.hint = new TreeSet<>();\n }", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "void update() {\n rectToBeDrawn = new Rect((frameNumber * frameSize.x)-1, 0,(frameNumber * frameSize.x + frameSize.x) - 1, frameSize.x);\n\n //now the next frame\n frameNumber++;\n\n //don't try and draw frames that don't exist\n if(frameNumber == numFrames){\n frameNumber = 0;//back to the first frame\n }\n }", "@Override\r\n\tpublic void draw(Canvas canvas)\r\n\t{\n\t\tsuper.draw(canvas);\r\n\t\tcanvas.drawBitmap(Backgroud,null,new Rect(0, 0, Backgroud.getWidth(), Backgroud.getHeight()),null);\r\n\t\tlabyrinthe.DessinInterface(canvas);\r\n\t\tdepartBalle.draw(canvas);\r\n\r\n\t}", "public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }", "public void draw() {\n if (isEmpty()) return;\n draw1(root, 0, 1, 0, 1);\n }", "void drawBuilding() {\r\n\t\tgc.setFill(Color.BEIGE);\r\n\t\tgc.fillRect(0, 0, theBuilding.getXSize(), theBuilding.getYSize()); // clear the canvas\r\n\t\ttheBuilding.showBuilding(this); // draw all items\r\n\r\n\t\tString s = theBuilding.toString();\r\n\t\trtPane.getChildren().clear(); // clear rtpane\r\n\t\tLabel l = new Label(s); // turn string to label\r\n\t\trtPane.getChildren().add(l); // add label\r\n\r\n\t}", "@Override\r\n protected void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n for (IVehicle vehicle : carView.carController.getVehicles()){\r\n g.drawImage(carView.assets.get(vehicle), vehicle.getPosition().x, vehicle.getPosition().y, null);\r\n }\r\n }", "@Override\n protected void onDraw(Canvas canvas) {\n canvas.drawColor(Color.WHITE);\n\n if (noOfColumns == 0 || noOfRows == 0) {\n return;\n }\n\n int width = getWidth();\n int height = getWidth();\n\n for (int i = 0; i < noOfColumns; i++) {\n for (int j = 0; j < noOfRows; j++) {\n if (cards[i][j].getCardState() == CardState.FACE_UP) {\n canvas.drawRect(i * cardWidth, j * cardHeight,\n (i + 1) * cardWidth, (j + 1) * cardHeight,\n cards[i][j].getColor());\n }\n else if (cards[i][j].getCardState() == CardState.MATCHED) {\n canvas.drawRect(i * cardWidth, j * cardHeight,\n (i + 1) * cardWidth, (j + 1) * cardHeight,\n freezeCardPaint);\n }\n }\n }\n\n for (int i = 1; i < noOfColumns; i++) {\n canvas.drawLine(i * cardWidth, 0, i * cardWidth, height, linePaint);\n }\n\n for (int i = 1; i <= noOfRows; i++) {\n canvas.drawLine(0, i * cardHeight, width, i * cardHeight, linePaint);\n }\n }", "public void draw() {\n\t\tfor (Link link : links)\n\t\t\tlink.draw();\n\t}", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "@Override\n protected void onDraw(Canvas canvas) {\n\n // Draw the board\n backgCalculating.draw(canvas, displayArea, centralBall);\n\n // Delay\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {}\n\n invalidate(); // Force a re-draw\n }", "public void draw(Graphics dbGraphics)\n {\n //Update the asteroids\n for (int i = 0; i < numAsteroids; i++)\n {\n asteroids[i].draw(dbGraphics);\n }\n }", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n hip.preDraw(purplePaint);\n body.preDraw(redPaint);\n neck.preDraw(purplePaint);\n head.preDraw(bluePaint);\n leftArm1.preDraw(bluePaint);\n leftArm2.preDraw(greenPaint);\n leftArm3.preDraw(cyanPaint);\n rightArm1.preDraw(bluePaint);\n rightArm2.preDraw(greenPaint);\n rightArm3.preDraw(cyanPaint);\n leftLeg1.preDraw(bluePaint);\n leftLeg2.preDraw(greenPaint);\n leftLeg3.preDraw(redPaint);\n rightLeg1.preDraw(bluePaint);\n rightLeg2.preDraw(greenPaint);\n rightLeg3.preDraw(redPaint);\n\n Cube[] renderCubes = {\n hip,\n body,\n neck,\n head,\n leftArm1, leftArm2, leftArm3,\n rightArm1, rightArm2, rightArm3,\n leftLeg1, leftLeg2, leftLeg3,\n rightLeg1, rightLeg2, rightLeg3,\n };\n sort(renderCubes, new Comparator<Cube>() {\n @Override\n public int compare(Cube o1, Cube o2) {\n return new Double(o2.getMaxZ()).compareTo(o1.getMaxZ());\n }\n });\n for (Cube c: renderCubes) {\n c.draw(canvas);\n }\n }", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }", "private void drawWalls(){\n for(int i = 0 ; i < wallsArrayList.size(); i++){\n wallsArrayList.get(i).drawImage(buffer);\n }\n\n }" ]
[ "0.6198949", "0.61688286", "0.6155376", "0.6155376", "0.6119492", "0.6094614", "0.60788006", "0.60680676", "0.6059616", "0.6039053", "0.6039053", "0.6038455", "0.60269815", "0.602197", "0.6019453", "0.6018125", "0.5994395", "0.59890753", "0.59890753", "0.59801215", "0.5974919", "0.5974878", "0.5969047", "0.59649134", "0.5953806", "0.595129", "0.5930932", "0.5930631", "0.5928627", "0.59258634", "0.59148014", "0.59098285", "0.5898202", "0.5885011", "0.58732045", "0.58732045", "0.58732045", "0.5872186", "0.5870066", "0.58698565", "0.58693135", "0.58633363", "0.58603364", "0.5835584", "0.58307016", "0.5827512", "0.581153", "0.5810864", "0.58011997", "0.57812244", "0.57770544", "0.57717764", "0.5769909", "0.5763654", "0.5761415", "0.57544947", "0.57533664", "0.5751816", "0.5749918", "0.5748649", "0.5748033", "0.5739268", "0.57326025", "0.5731991", "0.57297134", "0.5712984", "0.5711207", "0.57103086", "0.57091534", "0.5703601", "0.5703575", "0.5700334", "0.56953317", "0.5691426", "0.56890595", "0.56864524", "0.567549", "0.5669424", "0.56681067", "0.5658394", "0.5657399", "0.5656702", "0.56558365", "0.5654032", "0.56522745", "0.56511384", "0.5647232", "0.5646328", "0.56432325", "0.56425625", "0.5639085", "0.56377536", "0.5629508", "0.56259465", "0.5622714", "0.5619247", "0.5616365", "0.5613068", "0.56117684", "0.5608327" ]
0.59714884
22
if(asuka == null) asuka = asukanormal;
public void move(){ switch(state){ case ATField.SPRITE_STAND: spriteX = 0; coords = standbySprite.get(spriteX); spriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom); actualImg = new Rect(x, y, x + width, y + height); break; case ATField.SPRITE_WALK: if(spriteX >walkSprite.size() - 1){ spriteX = 0; } coords = walkSprite.get(spriteX); spriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom); actualImg = new Rect(x, y, x + width, y + height); spriteX++; break; case ATField.SPRITE_RUN: if(spriteX >runSprite.size() - 1){ spriteX = 0; setState(STAND); } coords = runSprite.get(spriteX); spriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom); actualImg = new Rect(x, y, x + width, y + height); spriteX++; break; case ATField.SPRITE_JUMP: if(spriteX >5){ setState(STAND); } coords = jumpSprite.get(0); spriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom); actualImg = new Rect(x, y, x + width, y + height); spriteX++; break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "private void nullstillFordeling(){\n int i = indeks;\n politi = -1;\n mafiaer = -1;\n venner = -1;\n mafia.nullstillSpesialister();\n spillere.tømTommeRoller();\n for (indeks = 0; roller[indeks] == null; indeks++) ;\n fordeling = null;\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }", "public void resetTesauroBusqueda()\r\n {\r\n this.tesauroBusqueda = null;\r\n }", "public void resetBusquedaSimpleAvanzada()\r\n {\r\n this.busquedaSimpleAvanzada = null;\r\n }", "public void resetBusquedaSimpleAvanzada()\r\n {\r\n this.busquedaSimpleAvanzada = null;\r\n }", "public void limpiar()\n {\n nombre = null;\n descripcion = null;\n estado = null;\n primerNivel = true;\n }", "public void resetRutaTesauro()\r\n {\r\n this.rutaTesauro = null;\r\n }", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "public void testObtenerPalabrasClave() {\n \tString prueba = null; \n \t\tassertNull(prueba);\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void setRua(String rua) {this.rua = rua;}", "@Override\n public void setNull() {\n\n }", "@Override\n\tpublic void naoAtirou() {\n\t\tatirou=false;\n\n\t}", "public void azzera() { setEnergia(0.0); }", "public void vaciar()\n {\n this.raiz = null;\n }", "@Test\n public void sucheKategorienNull() throws Exception {\n System.out.println(\"suche Kategorien Null\");\n SaalKey saal = null;\n List<Kategorie> expResult = null;\n List<Kategorie> result = SaalHelper.sucheKategorien(saal);\n assertEquals(expResult, result);\n \n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public void setAlamat(String alamat) {\r\n this.alamat = alamat;\r\n }", "public void cambiaUfos() {\n cambiaUfos = true;\n }", "public T caseNormaliceData(NormaliceData object)\n {\n return null;\n }", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "@Override\n\tpublic void atirou() {\n\n\t\t\tatirou=true;\n\t\t\t\n\t\t\n\t}", "public void asetaTeksti(){\n }", "public boolean estavacia(){\n return inicio==null;\n }", "public String getPoruka() {\r\n\treturn poruka;\r\n\t}", "private void cazaFantasma(Vertice<T> v){\n\tif(v.padre == null){\n\t if(v == this.raiz){\n\t\tthis.raiz = null;\n\t\treturn;\n\t }\n\t return;\n\t}else{\n\t Vertice<T> padre = v.padre;\n\t if(v == padre.izquierdo){\n\t\tif(v.hayIzquierdo()){\n\t\t padre.izquierdo = v.izquierdo;\n\t\t v.izquierdo.padre = padre;\n\t\t}else if(v.hayDerecho()){\n\t\t padre.izquierdo = v.derecho;\n\t\t v.derecho.padre = padre;\n\t\t}else{\n\t\t padre.izquierdo = null;\n\t\t}\t\t\n\t }else{\n\t\tif(v.hayIzquierdo()){\n\t\t padre.derecho = v.izquierdo;\n\t\t v.izquierdo.padre = padre;\n\t\t}else if(v.hayDerecho()){\n\t\t padre.derecho = v.derecho;\n\t\t v.derecho.padre = padre;\n\t\t}else{\n\t\t padre.derecho = null;\n\t\t}\n\t }\n\t}\n }", "private void resetLexeme(){\n\t\tcola = \"\";\n\t}", "public void setContrasena(String contrasena) {this.contrasena = contrasena;}", "public void setdat()\n {\n }", "private final void m29255a(zzazo zzazo) {\n if (zzazo != null) {\n this.zzdps = zzazo;\n return;\n }\n throw new NullPointerException();\n }", "@Override\n public String obtenerAyuda() {\n\treturn null;\n }", "@Override\n public void inicializarPantalla() {\n if (audioInputStream == null){\n reproducirAudio();\n }\n }", "public void tukarData() {\n this.temp = this.data1;\n this.data1 = this.data2;\n this.data2 = this.temp;\n }", "private void volverValoresADefault( )\n {\n if( sensorManag != null )\n sensorManag.unregisterListener(sensorListener);\n gameOn=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n pantallaEstabaTapada=false;\n ((TextView)findViewById(R.id.txtPredSeg)).setText(\"\");\n segundosTranscurridos=0;\n }", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "public void setPoruka(String poruka) {\r\n\tif (poruka==null || poruka.length()>140)\r\n\tthrow new RuntimeException(\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\t\r\n\tthis.poruka = poruka;\r\n\t}", "public void setUlaz(boolean value) {\n this.ulaz = value;\n }", "public void setPoruka(String poruka) {\r\n\tif (poruka==null || this.poruka.length()>140)\r\n\t\tthrow new RuntimeException(\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\tthis.poruka = poruka;\r\n\t}", "public ejercicio1() {\n this.cadena = \"\";\n this.buscar = \"\";\n }", "public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}", "@Test\n public void testSetLugarNac() {\n System.out.println(\"setLugarNac\");\n String lugarNac = \"\";\n Paciente instance = new Paciente();\n instance.setLugarNac(lugarNac);\n \n }", "public void setPoruka(String poruka) {\r\n\t\t// 1.greska this.poruka.length()\r\n\tif (poruka==null || poruka.length()>140)\r\n\tthrow new RuntimeException(\r\n\t\"Poruka mora biti uneta i mora imati najvise 140 znakova\");\r\n\tthis.poruka = poruka;\r\n\t}", "public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}", "public void resetTitulo()\r\n {\r\n this.titulo = null;\r\n }", "public void resetTitulo()\r\n {\r\n this.titulo = null;\r\n }", "public void undoJsonShenanigans() {\n if (name == null) {\n name = \"\";\n }\n if (tournamentID == null) {\n tournamentID = \"\";\n }\n if (finalRank == null) {\n finalRank = \"\";\n }\n if (challongeUserName == null) {\n challongeUserName = \"\";\n }\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "public void resetEsHoja()\r\n {\r\n this.esHoja = false;\r\n }", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "private void defaultPerAllegatoAtto() {\n\t\tif(allegatoAtto.getFlagRitenute() == null) {\n\t\t\tallegatoAtto.setFlagRitenute(Boolean.FALSE);\n\t\t}\n\t\t//SIAC-6426\n\t\tif(allegatoAtto.getVersioneInvioFirma() == null){\n\t\t\tallegatoAtto.setVersioneInvioFirma(0);\n\t\t}\n\t}", "private void preencherCampos(){\n if (!TextUtils.isEmpty(usuario.getPhotoUrl())){\n Picasso.with(EditarUsuarioPerfilActivity.this).load(usuario.getPhotoUrl()).transform(new CircleTransform()).into(imgPerfilUser);\n }else{\n Picasso.with(EditarUsuarioPerfilActivity.this).load(R.drawable.ic_empresa_new).transform(new CircleTransform()).into(imgPerfilUser);\n }\n\n\n editNome.setText(usuario.getNome());\n editEmail.setText(usuario.getEmail());\n editrelefoneCel.setText(usuario.getTelefoneCel());\n editTelefoneResidencial.setText(usuario.getTelefoneResidencial());\n textUserEditHabilidades.setText(textUserEditHabilidades.getText().toString());\n editCEP.setText(usuario.getCEP());\n editPais.setText(usuario.getPais());\n editEstado.setText(usuario.getEstado());\n editCidade.setText(usuario.getCidade());\n editBairro.setText(usuario.getBairro());\n editRua.setText(usuario.getRua());\n editNumero.setText(usuario.getNumero());\n editComplemento.setText(usuario.getComplemento());\n }", "void setNama(String nama){\n this.nama = nama;\n }", "public void setLuogo (String luogo) {\r\n\t\tthis.luogo=luogo;\r\n\t}", "Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }", "public void inicializarDatos(aplicacion.Usuario u){\n //Pestaña Informacion\n this.usuario=fa.obtenerUsuarioVivo(u.getIdUsuario());\n ModeloTablaBuenasAcciones mba;\n mba = (ModeloTablaBuenasAcciones) tablaBA.getModel();\n mba.setFilas(usuario.getBuenasAcciones());\n ModeloTablaPecados mp;\n mp = (ModeloTablaPecados) tablaPecados.getModel();\n mp.setFilas(usuario.getPecados());\n textoNombre.setText(usuario.getNombre());\n textoUsuario.setText(usuario.getNombreUsuario());\n textoContrasena.setText(usuario.getClave());\n textoLocalidad.setText(usuario.getLocalidad());\n textoFechaNacimiento.setText(String.valueOf(usuario.getFechaNacimiento()));\n //PestañaVenganzas\n ModeloTablaUsuarios mu;\n mu = (ModeloTablaUsuarios) tablaUsuarios.getModel();\n mu.setFilas(fa.consultarUsuariosMenos(usuario.getIdUsuario(), textoNombreBusqueda.getText()));\n ModeloTablaVenganzas mv;\n mv = (ModeloTablaVenganzas) tablaVenganzas.getModel();\n mv.setFilas(fa.listaVenganzas());\n }", "public void setTitulo(String titulo)\r\n {\r\n if(titulo!= null)\r\n { this.titulo=titulo; }\r\n }", "@Override\n protected void elaboraMappaBiografie() {\n if (mappaCognomi == null) {\n mappaCognomi = Cognome.findMappaTaglioListe();\n }// end of if cycle\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void setarText() {\n txdata2 = (TextView) findViewById(R.id.txdata2);\n txdata1 = (TextView) findViewById(R.id.txdata3);\n txCpf = (TextView) findViewById(R.id.cpf1);\n txRenda = (TextView) findViewById(R.id.renda1);\n txCpf.setText(cpf3);\n txRenda.setText(renda.toString());\n txdata1.setText(data);\n txdata2.setText(data2);\n\n\n }", "private void kosong(){\n txt_id_rute.setText(null);\n txt_nama_koridor.setText(null);\n txt_tujuan.setText(null);\n }", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "private void actualizarUsuario() {\n\n\n if (!altura_et.getText().toString().isEmpty() && !peso_et.getText().toString().isEmpty() &&\n !email_et.getText().toString().isEmpty() && !nombreUO_et.getText().toString().isEmpty()) {\n\n user.setAltura(Integer.parseInt(altura_et.getText().toString()));\n user.setPeso(Integer.parseInt(peso_et.getText().toString()));\n user.setCorreo(email_et.getText().toString());\n user.setUserID(nombreUO_et.getText().toString());\n\n\n }else\n Toast.makeText(this,\"Comprueba los datos\", Toast.LENGTH_LONG).show();\n\n }", "public void resetKassa() {\n aantalklanten = 0;\n aantalartikelen = 0;\n geld = 0;\n }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "Karyawan(String n)\n {\n this.nama = n;\n }", "public BinaarinenPuusolmu(int avain) {\n this.avain = avain;\n vasen = null;\n oikea = null;\n vanhempi = null;\n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}", "public void setU(String f){\n u = f;\n}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISHORARIO_IDISHORARIO=\"\";\n\t\tISAULA_IDISAULA=\"\";\n\t\tISCURSO_IDISCURSO=\"\";\n\t\t\n\t}", "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "public static String getWord(){\n\n if(word==null){\n System.out.println(\"First time call. Word object is null.\" +\n \"Assigning value to it now\");\n word = \"something\";\n }else{\n System.out.println(\"Word already has a value\");\n }\nreturn word;\n }", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "private static void changePatient(){\r\n // opretter ny instans af tempPatinet som overskriver den gamle\r\n Patient p = new Patient(); // det her kan udskiftes med en nulstil funktion for at forsikre at der altid kun er en patient.\r\n Patient.setCprNumber((Long) null);\r\n }", "protected void setManusia(T Manusia){\r\n this.Manusia = Manusia;\r\n }", "public Tiedonkasittelija(HashMap<String, String> kysymyksetJaVastaukset, String kysymyslause) {\n this.kysymyksetJaVastaukset = kysymyksetJaVastaukset;\n this.kysymyslause = kysymyslause;\n this.vastausvaihtoehtoArpoja = new VastausvaihtoehtoArpoja();\n }", "void rezervasyonYap(String name, String surname, String islem);", "public BigInteger atas(){\n if(atas!=null)\n \n return atas.data;\n \n else {\n return null; \n }\n }", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }", "public void resetIdiomaBusqueda()\r\n {\r\n this.idiomaBusqueda = null;\r\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "public String getPoruka() {\r\n\treturn \"poruka\";\r\n\t}", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "@Override\n public void spustiAkciu(StavBounce bounce, Lopta lopta) {\n lopta.prepichlaSiSa();\n }", "public void setEnemyPkmnNull()\r\n {\r\n enemyPokemon = null;\r\n }", "public String getPoruka() {\r\n\t\t//2.greska \"poruka\"\r\n\treturn poruka;\r\n\t}", "public void resetNuevoNombre()\r\n {\r\n this.nuevoNombre = null;\r\n }", "public Cesta() {\n\t\tthis.cima = null;\n\t}", "public void tutki(Suunta suunta);", "public void leerBaseDatos(){\n if(connected == true){\n final FirebaseDatabase database = FirebaseDatabase.getInstance();\n\n DatabaseReference ref = database.getReference().child(\"kitDeSensores\").child(id);\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n kitSensoresDatos post = dataSnapshot.getValue(kitSensoresDatos.class);\n if(post ==null){\n fuego.setText(\"El sensor no tiene datos para mostrar\");\n temperatura.setText(\"El sensor no tiene datos para mostrar\");\n humedad.setText(\"El sensor no tiene datos para mostrar\");\n humo.setText(\"El sensor no tiene datos para mostrar\");\n Log.d(\"Humedad obtenidad\", String.valueOf(humo));\n }else{\n String fuegoExiste;\n if(String.valueOf(post.getFuego()).equals(\"0\")){\n fuegoExiste = \"No\";\n }else{\n fuegoExiste = \"Si\";\n }\n fuego.setText(fuegoExiste);\n temperatura.setText(String.valueOf(post.getTemperatura()) + \" °C\");\n humo.setText(String.valueOf(post.getGas()) + \" ppm\");\n humedad.setText(String.valueOf(post.getHumedad()) + \" %\");\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }else{\n fuego.setText(\"No tienes conexion a internet\");\n temperatura.setText(\"No tienes conexion a internet\");\n humedad.setText(\"No tienes conexion a internet\");\n humo.setText(\"No tienes conexion a internet\"); }\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setBeizhu(String beizhu) {\n this.beizhu = beizhu == null ? null : beizhu.trim();\n }", "public boolean isUlaz() {\n return ulaz;\n }" ]
[ "0.57525766", "0.5734739", "0.56947047", "0.5661052", "0.55444056", "0.55096215", "0.54079324", "0.54079324", "0.5404541", "0.5394418", "0.5357274", "0.53518206", "0.5323078", "0.5315075", "0.5310714", "0.5300831", "0.52982986", "0.52791417", "0.52764", "0.52706623", "0.52563006", "0.5254301", "0.52534264", "0.52439576", "0.52429324", "0.5239856", "0.52380747", "0.5237496", "0.52348846", "0.52219415", "0.5220083", "0.5217999", "0.52106166", "0.52078223", "0.5188186", "0.5182113", "0.5181699", "0.51765716", "0.5161775", "0.515901", "0.5150956", "0.51451397", "0.5140031", "0.5138288", "0.5129237", "0.51190686", "0.51182747", "0.5115217", "0.5115217", "0.5107036", "0.5102567", "0.509069", "0.50905997", "0.5087219", "0.50840133", "0.50839406", "0.50819606", "0.50804317", "0.50668436", "0.5066783", "0.50550205", "0.5049199", "0.50489527", "0.5045863", "0.50351447", "0.50263256", "0.5019561", "0.5010823", "0.5010361", "0.5007485", "0.49960893", "0.4990237", "0.49872574", "0.4982747", "0.49798706", "0.49796855", "0.49760705", "0.497251", "0.4968205", "0.49608633", "0.49558786", "0.4950965", "0.49504593", "0.49494937", "0.49483892", "0.49427587", "0.49410766", "0.49373466", "0.4933523", "0.49304634", "0.4926197", "0.49173963", "0.49117345", "0.49113432", "0.49102908", "0.49079305", "0.49078068", "0.4891526", "0.4886758", "0.48860112", "0.48811397" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel4 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); btnTerminar = new javax.swing.JButton(); txtApertura = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Calcular cambio"); setIconImage(new javax.swing.ImageIcon(getClass().getResource("/iconos/home/lanzador.png")).getImage()); setModalExclusionType(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE); setUndecorated(true); setResizable(false); setType(java.awt.Window.Type.UTILITY); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel4.setBackground(new java.awt.Color(0, 0, 0)); jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBackground(new java.awt.Color(102, 0, 0)); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/home/lanzador.png"))); // NOI18N jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 120, 50)); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel5.setForeground(new java.awt.Color(240, 240, 240)); jLabel5.setText("Apertura/Cierre"); jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 20, 140, -1)); jPanel4.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 520, 60)); jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel1.setText("Ingrese el valor con que inicia el día:"); jPanel3.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 20, 230, 40)); jPanel4.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 520, 80)); jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); btnTerminar.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N btnTerminar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/botones/terminar.png"))); // NOI18N btnTerminar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnTerminarActionPerformed(evt); } }); btnTerminar.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { btnTerminarKeyPressed(evt); } }); jPanel2.add(btnTerminar, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 210, 100, 30)); txtApertura.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N txtApertura.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { txtAperturaKeyTyped(evt); } }); jPanel2.add(txtApertura, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 90, 240, 30)); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel3.setText("Apertura $"); jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 90, 70, 30)); jPanel4.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 180, 520, 260)); getContentPane().add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 540, 450)); pack(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
Get the enable or disable RTCP.
public Boolean isRtcPEnable() { return rtcPEnable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMqttEnabledStateValue();", "boolean getEnabled();", "boolean getEnabled();", "boolean getEnabled();", "@JsonGetter(\"webRtcEnabled\")\r\n public boolean getWebRtcEnabled ( ) { \r\n return this.webRtcEnabled;\r\n }", "public Boolean getEnable() {\n return enable;\n }", "public Boolean getEnable() {\n return this.enable;\n }", "public Boolean getEnable() {\n return enable;\n }", "public String getEnable() {\r\n return enable;\r\n }", "public Boolean getEnable() {\n\t\treturn enable;\n\t}", "public boolean getEnabled() {\r\n \t\tif (status == AlternativeStatus.ADOPTED) {\r\n \t\t\treturn true;\r\n \t\t} else {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}", "com.google.cloud.iot.v1.MqttState getMqttEnabledState();", "java.lang.String getEnabled();", "public String getIsEnable() {\n return isEnable;\n }", "public void setRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t}", "public Boolean getIsEnable() {\n\t\treturn isEnable;\n\t}", "public Boolean enable() {\n return this.enable;\n }", "public Boolean isEnable() {\n return this.enable;\n }", "public Boolean getbEnable() {\n return bEnable;\n }", "public Boolean enableTcpReset() {\n return this.enableTcpReset;\n }", "public jpuppeteer.util.XFuture<?> enable() {\n return connection.send(\"Security.enable\", null);\n }", "@Override\n\tpublic boolean getEnabled();", "public boolean getEnabled () {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\treturn (OS.PtWidgetFlags (topHandle) & OS.Pt_BLOCKED) == 0;\r\n}", "String getSwstatus();", "public boolean isEnable() {\n return enable;\n }", "public String getType() {\n return Phone.FEATURE_ENABLE_RCSE;\n }", "public boolean isEnable() {\n return _enabled;\n }", "boolean isChannelPresenceTaskEnabled();", "@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(42)\r\n\tboolean enabled();", "public Boolean getEnabled() {\r\n return enabled;\r\n }", "public Boolean getEnabled() {\n return this.enabled;\n }", "public Boolean getEnabled() {\n return this.enabled;\n }", "boolean getTouchCapturePref();", "public Boolean getEnabled() {\n return enabled;\n }", "public boolean getPowerState() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getBoolean(TOGGLE_KEY, true);\n\t}", "public boolean getEnabled() {\n return enabled;\n }", "public Boolean isEnable() {\n\t\treturn enable;\n\t}", "public java.lang.Boolean getEnabled() {\n return enabled;\n }", "public boolean isEnabled() { return _enabled; }", "public boolean getEnabled(){\r\n\t\treturn enabled;\r\n\t}", "boolean getEnablePrivateEndpoint();", "public boolean adaptiveRateControlEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "public String isEnabled() {\n return this.isEnabled;\n }", "public boolean isEnabled()\n {\n return mSettings.getBoolean(ENABLED, true);\n }", "boolean getOptOutOnlineStatus();", "@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }", "@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();", "boolean getPausePreviewPref();", "public RealTime withRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t\treturn this;\n\t}", "@Override\n protected boolean syncUIControlState() {\n boolean disableControls = super.syncUIControlState();\n\n if (disableControls) {\n mBtnSwitchCamera.setEnabled(false);\n mBtnTorch.setEnabled(false);\n } else {\n boolean isDisplayingVideo = (this.hasDevicePermissionToAccess(Manifest.permission.CAMERA) && getBroadcastConfig().isVideoEnabled() && mWZCameraView.getCameras().length > 0);\n boolean isStreaming = getBroadcast().getStatus().isRunning();\n\n if (isDisplayingVideo) {\n WZCamera activeCamera = mWZCameraView.getCamera();\n\n boolean hasTorch = (activeCamera != null && activeCamera.hasCapability(WZCamera.TORCH));\n mBtnTorch.setEnabled(hasTorch);\n if (hasTorch) {\n mBtnTorch.setState(activeCamera.isTorchOn());\n }\n\n mBtnSwitchCamera.setEnabled(mWZCameraView.getCameras().length > 0);\n } else {\n mBtnSwitchCamera.setEnabled(false);\n mBtnTorch.setEnabled(false);\n }\n\n if (isStreaming && !mTimerView.isRunning()) {\n mTimerView.startTimer();\n } else if (getBroadcast().getStatus().isIdle() && mTimerView.isRunning()) {\n mTimerView.stopTimer();\n } else if (!isStreaming) {\n mTimerView.setVisibility(View.GONE);\n }\n }\n\n return disableControls;\n }", "public synchronized boolean getEnabled() {\r\n return this.soundOn;\r\n }", "String getDisableRedelivery();", "boolean isIsRemote();", "public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}", "boolean getServOpsRes();", "public String getEnabled() {\r\n\t\treturn enabled;\r\n\t}", "public boolean isEnabled() {\n return myEnabled;\n }", "public boolean getVIP();", "public boolean isEnabled() { return this.myEnabled; }", "public boolean isSwitchedOn(){\r\n return _switchedOn;\r\n }", "public static boolean isEnabled()\n\t{\n\t\treturn App.getSPAPI().getBool(SPKey.ENABLED);\n\t}", "public String getPollMode() {\n return getXproperty(BwXproperty.pollMode);\n }", "public boolean micEnabled();", "public Boolean getRemoteAccessAllowed() {\n return this.remoteAccessAllowed;\n }", "public Boolean isDhcpEnabled() {\n return dhcpEnabled;\n }", "public void toggleEnable();", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Enable/Disable secure remote access [true/false]\")\n\n public String getSecureAccessEnable() {\n return secureAccessEnable;\n }", "interface RemoteControl {\n void on();\n\n void off();\n}", "public boolean tunnelAvailable();", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "public java.lang.String getEnabled() {\n java.lang.Object ref = enabled_;\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 enabled_ = s;\n }\n return s;\n }\n }", "public String getNetworkName() {\n return Phone.FEATURE_ENABLE_RCSE;\n }", "public Boolean isEnabled() {\n return this.enabled;\n }", "public Boolean isEnabled() {\n return this.enabled;\n }", "public Boolean isEnabled() {\n return this.enabled;\n }", "final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }", "public Boolean isEnabled() {\r\r\n\t\treturn _isEnabled;\r\r\n\t}", "public boolean getAllowStop();", "boolean get();", "boolean getCanIpForward();", "public Boolean isEnabled() {\n return this.isEnabled;\n }", "boolean hasEnabled();", "public boolean isEnabled() {\n return m_Enabled;\n }", "public boolean getPressRV()\n\t{\n\t\treturn pressRV;\n\t}", "final public int getEnabled() {\n return enabledType;\n }", "public boolean videoEnabled();", "private boolean isEnabled() {\n return isEnabled;\n }", "@Override\n\tpublic boolean isEnabled() {\n\t\treturn status;\n\t}" ]
[ "0.5810881", "0.5727363", "0.5727363", "0.5727363", "0.5673606", "0.5655893", "0.5655487", "0.563537", "0.56305635", "0.5578789", "0.5578547", "0.55756503", "0.5571844", "0.5488815", "0.542313", "0.5331298", "0.53266925", "0.5312384", "0.52991396", "0.5277847", "0.5249599", "0.5233213", "0.5213278", "0.51832", "0.51826674", "0.5177309", "0.51466405", "0.51338434", "0.5126404", "0.5115254", "0.5092222", "0.5092222", "0.50815636", "0.5069844", "0.50656104", "0.5062119", "0.5061258", "0.5059502", "0.5045755", "0.50010717", "0.49972665", "0.4993262", "0.49855897", "0.49855897", "0.49855897", "0.49855897", "0.49855897", "0.49855897", "0.49855897", "0.49855897", "0.4983906", "0.49801612", "0.4974523", "0.4965723", "0.4961654", "0.49566442", "0.4955765", "0.49288768", "0.49235594", "0.4922358", "0.49159694", "0.49157715", "0.4902233", "0.4902229", "0.4901129", "0.48906294", "0.48869267", "0.48838568", "0.488368", "0.48816139", "0.48718876", "0.48662853", "0.48564318", "0.4855021", "0.48476657", "0.48326978", "0.48314115", "0.48289087", "0.48289087", "0.48289087", "0.48289087", "0.48289087", "0.48289016", "0.4810241", "0.48016942", "0.48016942", "0.48016942", "0.47954205", "0.47952655", "0.47940466", "0.47790277", "0.47769582", "0.4774787", "0.477416", "0.47729385", "0.47675568", "0.4767213", "0.4760827", "0.47559693", "0.47558933" ]
0.63339525
0
Set the enable or disable RTCP.
public void setRtcPEnable(Boolean rtcPEnable) { this.rtcPEnable = rtcPEnable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableVideoCapture(boolean enable);", "@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }", "public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}", "public boolean setEnabled(boolean enable);", "public void enableVideoMulticast(boolean yesno);", "public void enableVideoPreview(boolean val);", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(false);\r\n }", "public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}", "public Boolean isRtcPEnable() {\n\t\treturn rtcPEnable;\n\t}", "public void enableAdaptiveRateControl(boolean enabled);", "void setSlaveMode();", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void enableVideoDisplay(boolean enable);", "public void enableConferenceServer(boolean enable);", "public void testModeEnable(boolean enable) {\n if(enable)\n sapServer.setTestMode(SapMessage.TEST_MODE_ENABLE);\n else\n sapServer.setTestMode(SapMessage.TEST_MODE_DISABLE);\n }", "public void enableVideoAdaptiveJittcomp(boolean enable);", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void setPty(boolean enable){ \n pty=enable; \n }", "private void setTaskEnabled(boolean enabled)\n {\n final String funcName = \"setTaskEnabled\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"enabled=%s\", Boolean.toString(enabled));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (enabled)\n {\n TrcTaskMgr.getInstance().registerTask(instanceName, this, TrcTaskMgr.TaskType.STOP_TASK);\n TrcTaskMgr.getInstance().registerTask(instanceName, this, TrcTaskMgr.TaskType.POSTCONTINUOUS_TASK);\n }\n else\n {\n TrcTaskMgr.getInstance().unregisterTask(this, TrcTaskMgr.TaskType.STOP_TASK);\n TrcTaskMgr.getInstance().unregisterTask(this, TrcTaskMgr.TaskType.POSTCONTINUOUS_TASK);\n }\n }", "public void enableEchoCancellation(boolean val);", "public void setEnable (boolean state) {\n impl.setEnable (state);\n }", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "public void enableSdp200Ack(boolean enable);", "@SuppressWarnings(\"unused\")\n private void setTrafficEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n map.setTrafficEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }", "public void enableMic(boolean enable);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "public void toggleEnable();", "public void setEnable(boolean enable) {\n this.enable = enable;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(false);\r\n }", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "public abstract void enableSubscribes(boolean paramBoolean);", "public void set_videotoggle_on_off(View view)\n\t{\n\t\tif(VideoModule.isVideoThreadStarted())\n\t\t{\n\t\t\tVideoModule.stopVideoServer();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVideoModule.startVideoServer();\n\t\t}\n\t\tvideo_toggle_OnOff.setChecked(VideoModule.isVideoThreadStarted());\n\t}", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "public void enable();", "public void enable() {\r\n m_enabled = true;\r\n }", "public void enableDnsSrv(boolean enable);", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "public void setEnabled(boolean value) {\n m_Enabled = value;\n }", "public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}", "public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}", "public void setEnabled(boolean value) {\n this.enabled = value;\n }", "public void setMediaNetworkReachable(boolean value);", "public abstract void setEnabled(Context context, boolean enabled);", "protected boolean disableEnableSvcs() throws Throwable {\n int i = ((int)(Math.random() * nodes));\n portString = \"\" + (i + NODE_PORT_OFFSET);\n \n return (verifySvcs(\"online\") &&\n changeSvcs(\"disable\") &&\n verifySvcs(\"disabled\") &&\n changeSvcs(\"enable\") &&\n verifySvcs(\"online\"));\n }", "@Override\r\n public void setEnabled(final boolean b) {\r\n _enabled = b;\r\n }", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(true);\r\n }", "final public void setEnabled(boolean value) {\n enabledType = value ? ENABLED_ANY : ENABLED_NONE;\n }", "public void enableSwiping(boolean enabled){\n this.enabled=enabled;\n }", "public final void setDisabled(boolean value)\n {\n myDisabledProperty.set(value);\n }", "@Override\n public void setEnabled(boolean val) {\n super.setEnabled(val);\n mEnabled = val;\n }", "@Override\n protected void onEnable() {\n super.onEnable();\n setCameraControlMode(cameraMode);\n }", "public RealTime withRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t\treturn this;\n\t}", "void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void setEventAcquisitionEnabled(boolean enable) throws HardwareInterfaceException {\n if ( input != null ){\n input.setPaused(enable);\n }\n if ( isOpen() ){\n String s = enable ? \"t+\\r\\n\" : \"t-\\r\\n\";\n byte[] b = s.getBytes();\n try{\n DatagramPacket d = new DatagramPacket(b,b.length,client);\n if (socket != null){\n socket.send(d);\n }\n } catch ( Exception e ){\n log.warning(e.toString());\n }\n }\n eventAcquisitionEnabled = enable;\n }", "public void setExecEnable(Boolean value) {\n this.execEnable = value;\n }", "public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}", "public void enable() {\n operating = true;\n }", "public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "public void onNotEnabled() {\n Timber.d(\"onNotEnabled\");\n // keep the callback in case they turn it on manually\n setTorPref(Status.DISABLED);\n createClearnetClient();\n status = Status.NOT_ENABLED;\n if (onStatusChangedListener != null) {\n new Thread(() -> onStatusChangedListener.notEnabled()).start();\n }\n }", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "public void setPing(boolean ping)\n {\n _isPing = ping;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }", "public void setVideoOutEnabled(boolean enabled)\n {\n final String funcName = \"setVideoOutEnabled\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"enabled=%s\", Boolean.toString(enabled));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n videoOutEnabled = enabled;\n }", "public void setManualMode(boolean b){\n\n this.inManualMode = b;\n }", "public void setVIP(boolean VIP);", "void set(boolean on);", "public void enableTorchMode(boolean enable) {\n if (this.mCameraSettings.getCurrentFlashMode() != null) {\n FlashMode flashMode;\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n Stringifier stringifier = this.mCameraCapabilities.getStringifier();\n if (enable) {\n flashMode = stringifier.flashModeFromString(settingsManager.getString(this.mAppController.getCameraScope(), Keys.KEY_VIDEOCAMERA_FLASH_MODE));\n } else {\n flashMode = FlashMode.OFF;\n }\n if (this.mCameraCapabilities.supports(flashMode)) {\n this.mCameraSettings.setFlashMode(flashMode);\n }\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n }\n this.mUI.updateOnScreenIndicators(this.mCameraSettings);\n }\n }", "public void setAutoConnect(boolean v) {\n agentConfig.setAutoConnect(v);\n }", "@ReactMethod\n public void setEnabled(Boolean enabled) {\n wifi.setWifiEnabled(enabled);\n }", "public void setAutoSynchronizationEnabled(boolean b);", "void setNetStatus(boolean status){\r\n\t\t\t\tready=status;\r\n\t\t\t}", "public void setNetworkReachable(boolean value);", "public void enable() {\n\t\tm_enabled = true;\n\t\tm_controller.reset();\n\t}", "public void enableIpv6(boolean val);", "public void setbEnable(Boolean bEnable) {\n this.bEnable = bEnable;\n }", "public void setRingDuringIncomingEarlyMedia(boolean enable);", "public void enableEchoLimiter(boolean val);", "@ReactMethod\n public void setUseConnectionService(final boolean use) {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n useConnectionService_ = use;\n setAudioDeviceHandler();\n }\n });\n }", "public void setEnabled(final boolean enabled);", "public void setDataSwitchEnable(boolean bEnable){\n mDataSwitch = bEnable;\n }", "void setAsyncMode(boolean async) {\n locallyFifo = async;\n }", "protected void setOffLineMode () {\n if (theDowntimeMgr != null)\n theDowntimeMgr.setOnLine(false);\n }", "@Override\n protected void enableReinitControl(boolean isEnable)\n {\n // Nothing to do.\n }", "public void setupInitEnable(){\n fwdButton.setEnabled(false);\n revButton.setEnabled(false);\n leftButton.setEnabled(false);\n rightButton.setEnabled(false);\n this.powerIcon.setEnabled(false);\n lServoWarn.setEnabled(false);\n rServoWarn.setEnabled(false); \n slideAuto.setEnabled(true); \n }", "void enable();", "@Override\n protected boolean syncUIControlState() {\n boolean disableControls = super.syncUIControlState();\n\n if (disableControls) {\n mBtnSwitchCamera.setEnabled(false);\n mBtnTorch.setEnabled(false);\n } else {\n boolean isDisplayingVideo = (this.hasDevicePermissionToAccess(Manifest.permission.CAMERA) && getBroadcastConfig().isVideoEnabled() && mWZCameraView.getCameras().length > 0);\n boolean isStreaming = getBroadcast().getStatus().isRunning();\n\n if (isDisplayingVideo) {\n WZCamera activeCamera = mWZCameraView.getCamera();\n\n boolean hasTorch = (activeCamera != null && activeCamera.hasCapability(WZCamera.TORCH));\n mBtnTorch.setEnabled(hasTorch);\n if (hasTorch) {\n mBtnTorch.setState(activeCamera.isTorchOn());\n }\n\n mBtnSwitchCamera.setEnabled(mWZCameraView.getCameras().length > 0);\n } else {\n mBtnSwitchCamera.setEnabled(false);\n mBtnTorch.setEnabled(false);\n }\n\n if (isStreaming && !mTimerView.isRunning()) {\n mTimerView.startTimer();\n } else if (getBroadcast().getStatus().isIdle() && mTimerView.isRunning()) {\n mTimerView.stopTimer();\n } else if (!isStreaming) {\n mTimerView.setVisibility(View.GONE);\n }\n }\n\n return disableControls;\n }", "public void enableVideoSourceReuse(boolean enable);", "interface RemoteControl {\n void on();\n\n void off();\n}", "public void setOnline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = true;\n this.statusLed.setStatus(\"ok\");\n this.updateOscilloscopeData();\n }\n }", "public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }", "private void enableControls(boolean b) {\n\n\t}", "public void enablePropertyMute()\n {\n iPropertyMute = new PropertyBool(new ParameterBool(\"Mute\"));\n addProperty(iPropertyMute);\n }", "boolean setOffline(boolean b);" ]
[ "0.58781266", "0.583993", "0.5781427", "0.57756674", "0.5683621", "0.5627597", "0.56027055", "0.5600037", "0.55445534", "0.5516365", "0.55039537", "0.5499092", "0.54817444", "0.54812443", "0.5452707", "0.5447017", "0.5441114", "0.5436548", "0.5436036", "0.5415648", "0.5401378", "0.5398786", "0.5389431", "0.5385829", "0.5376664", "0.5372095", "0.53694487", "0.5359362", "0.5359362", "0.5359362", "0.5359362", "0.5334195", "0.5333742", "0.5314308", "0.5314146", "0.53132683", "0.5305638", "0.5293836", "0.5293836", "0.5290531", "0.52861375", "0.52773184", "0.5256483", "0.52386165", "0.5230969", "0.5220755", "0.52189595", "0.5203316", "0.51791054", "0.51648927", "0.5161279", "0.51518244", "0.51326114", "0.51317865", "0.5121509", "0.5108514", "0.509735", "0.5086977", "0.5080553", "0.50703", "0.50664705", "0.5066055", "0.50615543", "0.5060154", "0.5057082", "0.5052962", "0.50480145", "0.5043423", "0.5043392", "0.50386006", "0.5036271", "0.5009992", "0.5000985", "0.49993718", "0.49953207", "0.49941364", "0.49932966", "0.49885252", "0.49856117", "0.49752942", "0.49552098", "0.4951925", "0.49518105", "0.49480873", "0.49466997", "0.4943816", "0.49363297", "0.4935545", "0.4932245", "0.4931289", "0.4930649", "0.4929063", "0.4925543", "0.490558", "0.49037808", "0.49030513", "0.48898265", "0.48838654", "0.48838225", "0.48809335" ]
0.6360613
0
Set the enable or disable RTCP.
public RealTime withRtcPEnable(Boolean rtcPEnable) { this.rtcPEnable = rtcPEnable; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t}", "public void enableVideoCapture(boolean enable);", "@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }", "public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}", "public boolean setEnabled(boolean enable);", "public void enableVideoMulticast(boolean yesno);", "public void enableVideoPreview(boolean val);", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(false);\r\n }", "public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}", "public Boolean isRtcPEnable() {\n\t\treturn rtcPEnable;\n\t}", "public void enableAdaptiveRateControl(boolean enabled);", "void setSlaveMode();", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void enableVideoDisplay(boolean enable);", "public void enableConferenceServer(boolean enable);", "public void testModeEnable(boolean enable) {\n if(enable)\n sapServer.setTestMode(SapMessage.TEST_MODE_ENABLE);\n else\n sapServer.setTestMode(SapMessage.TEST_MODE_DISABLE);\n }", "public void enableVideoAdaptiveJittcomp(boolean enable);", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void setPty(boolean enable){ \n pty=enable; \n }", "private void setTaskEnabled(boolean enabled)\n {\n final String funcName = \"setTaskEnabled\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"enabled=%s\", Boolean.toString(enabled));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (enabled)\n {\n TrcTaskMgr.getInstance().registerTask(instanceName, this, TrcTaskMgr.TaskType.STOP_TASK);\n TrcTaskMgr.getInstance().registerTask(instanceName, this, TrcTaskMgr.TaskType.POSTCONTINUOUS_TASK);\n }\n else\n {\n TrcTaskMgr.getInstance().unregisterTask(this, TrcTaskMgr.TaskType.STOP_TASK);\n TrcTaskMgr.getInstance().unregisterTask(this, TrcTaskMgr.TaskType.POSTCONTINUOUS_TASK);\n }\n }", "public void enableEchoCancellation(boolean val);", "public void setEnable (boolean state) {\n impl.setEnable (state);\n }", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "public void enableSdp200Ack(boolean enable);", "@SuppressWarnings(\"unused\")\n private void setTrafficEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n map.setTrafficEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }", "public void enableMic(boolean enable);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "public void toggleEnable();", "public void setEnable(boolean enable) {\n this.enable = enable;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(false);\r\n }", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "public abstract void enableSubscribes(boolean paramBoolean);", "public void set_videotoggle_on_off(View view)\n\t{\n\t\tif(VideoModule.isVideoThreadStarted())\n\t\t{\n\t\t\tVideoModule.stopVideoServer();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVideoModule.startVideoServer();\n\t\t}\n\t\tvideo_toggle_OnOff.setChecked(VideoModule.isVideoThreadStarted());\n\t}", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "public void enable();", "public void enable() {\r\n m_enabled = true;\r\n }", "public void enableDnsSrv(boolean enable);", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "public void setEnabled(boolean value) {\n m_Enabled = value;\n }", "public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}", "public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}", "public void setEnabled(boolean value) {\n this.enabled = value;\n }", "public void setMediaNetworkReachable(boolean value);", "public abstract void setEnabled(Context context, boolean enabled);", "protected boolean disableEnableSvcs() throws Throwable {\n int i = ((int)(Math.random() * nodes));\n portString = \"\" + (i + NODE_PORT_OFFSET);\n \n return (verifySvcs(\"online\") &&\n changeSvcs(\"disable\") &&\n verifySvcs(\"disabled\") &&\n changeSvcs(\"enable\") &&\n verifySvcs(\"online\"));\n }", "@Override\r\n public void setEnabled(final boolean b) {\r\n _enabled = b;\r\n }", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(true);\r\n }", "final public void setEnabled(boolean value) {\n enabledType = value ? ENABLED_ANY : ENABLED_NONE;\n }", "public void enableSwiping(boolean enabled){\n this.enabled=enabled;\n }", "public final void setDisabled(boolean value)\n {\n myDisabledProperty.set(value);\n }", "@Override\n public void setEnabled(boolean val) {\n super.setEnabled(val);\n mEnabled = val;\n }", "@Override\n protected void onEnable() {\n super.onEnable();\n setCameraControlMode(cameraMode);\n }", "void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void setEventAcquisitionEnabled(boolean enable) throws HardwareInterfaceException {\n if ( input != null ){\n input.setPaused(enable);\n }\n if ( isOpen() ){\n String s = enable ? \"t+\\r\\n\" : \"t-\\r\\n\";\n byte[] b = s.getBytes();\n try{\n DatagramPacket d = new DatagramPacket(b,b.length,client);\n if (socket != null){\n socket.send(d);\n }\n } catch ( Exception e ){\n log.warning(e.toString());\n }\n }\n eventAcquisitionEnabled = enable;\n }", "public void setExecEnable(Boolean value) {\n this.execEnable = value;\n }", "public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}", "public void enable() {\n operating = true;\n }", "public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "public void onNotEnabled() {\n Timber.d(\"onNotEnabled\");\n // keep the callback in case they turn it on manually\n setTorPref(Status.DISABLED);\n createClearnetClient();\n status = Status.NOT_ENABLED;\n if (onStatusChangedListener != null) {\n new Thread(() -> onStatusChangedListener.notEnabled()).start();\n }\n }", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "public void setPing(boolean ping)\n {\n _isPing = ping;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }", "public void setVideoOutEnabled(boolean enabled)\n {\n final String funcName = \"setVideoOutEnabled\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"enabled=%s\", Boolean.toString(enabled));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n videoOutEnabled = enabled;\n }", "public void setManualMode(boolean b){\n\n this.inManualMode = b;\n }", "public void setVIP(boolean VIP);", "void set(boolean on);", "public void enableTorchMode(boolean enable) {\n if (this.mCameraSettings.getCurrentFlashMode() != null) {\n FlashMode flashMode;\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n Stringifier stringifier = this.mCameraCapabilities.getStringifier();\n if (enable) {\n flashMode = stringifier.flashModeFromString(settingsManager.getString(this.mAppController.getCameraScope(), Keys.KEY_VIDEOCAMERA_FLASH_MODE));\n } else {\n flashMode = FlashMode.OFF;\n }\n if (this.mCameraCapabilities.supports(flashMode)) {\n this.mCameraSettings.setFlashMode(flashMode);\n }\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n }\n this.mUI.updateOnScreenIndicators(this.mCameraSettings);\n }\n }", "public void setAutoConnect(boolean v) {\n agentConfig.setAutoConnect(v);\n }", "@ReactMethod\n public void setEnabled(Boolean enabled) {\n wifi.setWifiEnabled(enabled);\n }", "public void setAutoSynchronizationEnabled(boolean b);", "void setNetStatus(boolean status){\r\n\t\t\t\tready=status;\r\n\t\t\t}", "public void setNetworkReachable(boolean value);", "public void enable() {\n\t\tm_enabled = true;\n\t\tm_controller.reset();\n\t}", "public void enableIpv6(boolean val);", "public void setbEnable(Boolean bEnable) {\n this.bEnable = bEnable;\n }", "public void setRingDuringIncomingEarlyMedia(boolean enable);", "public void enableEchoLimiter(boolean val);", "@ReactMethod\n public void setUseConnectionService(final boolean use) {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n useConnectionService_ = use;\n setAudioDeviceHandler();\n }\n });\n }", "public void setEnabled(final boolean enabled);", "public void setDataSwitchEnable(boolean bEnable){\n mDataSwitch = bEnable;\n }", "void setAsyncMode(boolean async) {\n locallyFifo = async;\n }", "protected void setOffLineMode () {\n if (theDowntimeMgr != null)\n theDowntimeMgr.setOnLine(false);\n }", "@Override\n protected void enableReinitControl(boolean isEnable)\n {\n // Nothing to do.\n }", "public void setupInitEnable(){\n fwdButton.setEnabled(false);\n revButton.setEnabled(false);\n leftButton.setEnabled(false);\n rightButton.setEnabled(false);\n this.powerIcon.setEnabled(false);\n lServoWarn.setEnabled(false);\n rServoWarn.setEnabled(false); \n slideAuto.setEnabled(true); \n }", "void enable();", "@Override\n protected boolean syncUIControlState() {\n boolean disableControls = super.syncUIControlState();\n\n if (disableControls) {\n mBtnSwitchCamera.setEnabled(false);\n mBtnTorch.setEnabled(false);\n } else {\n boolean isDisplayingVideo = (this.hasDevicePermissionToAccess(Manifest.permission.CAMERA) && getBroadcastConfig().isVideoEnabled() && mWZCameraView.getCameras().length > 0);\n boolean isStreaming = getBroadcast().getStatus().isRunning();\n\n if (isDisplayingVideo) {\n WZCamera activeCamera = mWZCameraView.getCamera();\n\n boolean hasTorch = (activeCamera != null && activeCamera.hasCapability(WZCamera.TORCH));\n mBtnTorch.setEnabled(hasTorch);\n if (hasTorch) {\n mBtnTorch.setState(activeCamera.isTorchOn());\n }\n\n mBtnSwitchCamera.setEnabled(mWZCameraView.getCameras().length > 0);\n } else {\n mBtnSwitchCamera.setEnabled(false);\n mBtnTorch.setEnabled(false);\n }\n\n if (isStreaming && !mTimerView.isRunning()) {\n mTimerView.startTimer();\n } else if (getBroadcast().getStatus().isIdle() && mTimerView.isRunning()) {\n mTimerView.stopTimer();\n } else if (!isStreaming) {\n mTimerView.setVisibility(View.GONE);\n }\n }\n\n return disableControls;\n }", "public void enableVideoSourceReuse(boolean enable);", "interface RemoteControl {\n void on();\n\n void off();\n}", "public void setOnline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = true;\n this.statusLed.setStatus(\"ok\");\n this.updateOscilloscopeData();\n }\n }", "public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }", "private void enableControls(boolean b) {\n\n\t}", "public void enablePropertyMute()\n {\n iPropertyMute = new PropertyBool(new ParameterBool(\"Mute\"));\n addProperty(iPropertyMute);\n }", "boolean setOffline(boolean b);" ]
[ "0.6360613", "0.58781266", "0.583993", "0.5781427", "0.57756674", "0.5683621", "0.5627597", "0.56027055", "0.5600037", "0.55445534", "0.5516365", "0.55039537", "0.5499092", "0.54817444", "0.54812443", "0.5452707", "0.5447017", "0.5441114", "0.5436548", "0.5436036", "0.5415648", "0.5401378", "0.5398786", "0.5389431", "0.5385829", "0.5376664", "0.5372095", "0.53694487", "0.5359362", "0.5359362", "0.5359362", "0.5359362", "0.5334195", "0.5333742", "0.5314308", "0.5314146", "0.53132683", "0.5305638", "0.5293836", "0.5293836", "0.5290531", "0.52861375", "0.52773184", "0.5256483", "0.52386165", "0.5230969", "0.5220755", "0.52189595", "0.5203316", "0.51791054", "0.51648927", "0.5161279", "0.51518244", "0.51326114", "0.51317865", "0.5121509", "0.5108514", "0.509735", "0.5080553", "0.50703", "0.50664705", "0.5066055", "0.50615543", "0.5060154", "0.5057082", "0.5052962", "0.50480145", "0.5043423", "0.5043392", "0.50386006", "0.5036271", "0.5009992", "0.5000985", "0.49993718", "0.49953207", "0.49941364", "0.49932966", "0.49885252", "0.49856117", "0.49752942", "0.49552098", "0.4951925", "0.49518105", "0.49480873", "0.49466997", "0.4943816", "0.49363297", "0.4935545", "0.4932245", "0.4931289", "0.4930649", "0.4929063", "0.4925543", "0.490558", "0.49037808", "0.49030513", "0.48898265", "0.48838654", "0.48838225", "0.48809335" ]
0.5086977
58
Get the number of sent RTP packets.
public Long getSentPackets() { return sentPackets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "public int getGamesSentCount() {\n\t\treturn mGamesSentCount;\n\t}", "public synchronized int getNumSent(){\n return numSent;\n }", "public int getMessagesSent() {\n return this.messagesSent;\n }", "int getNetTransferMsgsCount();", "public native long getRetransmittedPacketCount()\n throws IOException, IllegalArgumentException;", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "int getPayloadCount();", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public int getGamesReceivedCount() {\n\t\treturn mGamesReceivedCount;\n\t}", "public int getNetTransferMsgsCount() {\n return netTransferMsgs_.size();\n }", "@Override\n public abstract long getSentBytesCount();", "public static int size_p_sendts() {\n return (32 / 8);\n }", "public int getNumberSent()\r\n {\r\n return this.numberSent;\r\n }", "public int getNetworkTransmitCount() {\n return networkTransmitCount;\n }", "long getReceivedEventsCount();", "public static int countSentBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "public static int countSentMessages() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentMessages(messageClassType);\n\n\treturn sum;\n }", "public int getRequestsCount() {\n return instance.getRequestsCount();\n }", "private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }", "public int getDataMessagesSent() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}", "public int numOutgoing() {\r\n int result = outgoing.size();\r\n return result;\r\n }", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "public static int getOnGoingSends() {\n return onGoingSends.get() + sendQueue.size();\n }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}", "public Long getRcvPackets() {\n\t\treturn rcvPackets;\n\t}", "public int our_packetsLost(){ //For a group call, should take an input ID, should be UPDATED\n return this.our_packs_lost;\n }", "int getMsgCount();", "int getMsgCount();", "public Long getBytesSent() {\n\t\treturn bytesSent;\n\t}", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public static int countReceivedBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "int getDeliveredCount();", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "public static int getPendingRequests() {\n\t\treturn writeQueue.size() + requestsBeingSending.intValue();\n\t}", "@Override\n public abstract long getReceivedBytesCount();", "public int getCount() {\n\t\treturn channelCountMapper.getCount();\n\t}", "public long get_p_sendts() {\n return (long)getUIntBEElement(offsetBits_p_sendts(), 32);\n }", "public NM getNumberOfTPSPP() { \r\n\t\tNM retVal = this.getTypedField(34, 0);\r\n\t\treturn retVal;\r\n }", "public int getDeliveredCount() {\n return delivered_.size();\n }", "public Long getLostPackets() {\n return lostPackets;\n }", "int getResponsesCount();", "int getRequestsCount();", "int getRequestsCount();", "public int getStatsCount() {\n return instance.getStatsCount();\n }", "public int getTotalPayload() {\n return totalPayload;\n }", "int getPeerCount();", "@Override\n public int getCount() {\n return mPacketList.size();\n }", "public int getNumPlayers() {\n\n\t\treturn this.playerCount;\n\t}", "long getRequestsCount();", "public int getDeliveredCount() {\n if (deliveredBuilder_ == null) {\n return delivered_.size();\n } else {\n return deliveredBuilder_.getCount();\n }\n }", "public int getPayloadCount() {\n return payload_.size();\n }", "public native long getSentByteCount()\n throws IOException, IllegalArgumentException;", "public int getSubscriptionCount()\n {\n int count;\n\n synchronized (lock)\n {\n count = (subscriptions != null) ? subscriptions.size() : 0;\n }\n\n return count;\n }", "public int getPacketLength() {\n return TfsConstant.INT_SIZE * 3 + failServer.size() * TfsConstant.LONG_SIZE;\n }", "public int getTotalNumSyncPoints() {\n return (Integer) getProperty(\"numTotalSyncPoints\");\n }", "public static int countReceivedMessages() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countReceivedMessages(messageClassType);\n\n\treturn sum;\n }", "public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}", "public int getCountAtSessionStart() {\r\n return countAtSessionStart;\r\n }", "public int receiveNumCards() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Number of cards not received\");\n e.printStackTrace();\n }\n return 0;\n }", "public int lastSentMsgSeqNum()\n {\n return lastSentMsgSeqNum;\n }", "public int getPlayerCount() {\n \n \treturn playerCount;\n \t\n }", "public static int offset_p_sendts() {\n return (40 / 8);\n }", "public int numNPs(Sentence sent) {\n int nps = 0;\n for (Chunk chunk : selectCovered(Chunk.class, sent)) {\n if (chunk.getChunkValue().equals(\"NP\"))\n ++nps;\n }\n return nps;\n }", "public int latencyMsgsPerSec()\n\t{\n\t\treturn _latencyMsgsPerSec;\n\t}", "public int getStatsCount() {\n return stats_.size();\n }", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public Integer getNumPktsDropped() {\n return numPktsDropped;\n }", "public Long getSendSuccessResponseTimes()\r\n {\r\n return sendSuccessResponseTimes;\r\n }", "public int getNumPlayed()\n\t{\n\t\treturn numPlayed;\n\t}", "public int getNrSubscribers()\r\n {\r\n return subscriberInfos.size();\r\n }", "public int getSMSCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getSMSCount() SMSCount: \" + _smsCount);\r\n\t\treturn _smsCount;\r\n\t}", "public int getNumAttacked() {\n return this.numAttacked;\n }", "public int getStreamCount() {\n return streamCount;\n }", "public Long getRows_sent() {\n return rows_sent;\n }", "public int getWebCount() {\n\t\treturn channelCountMapper.getWebCount();\n\t}", "public int getJwtsCount() {\n if (jwtsBuilder_ == null) {\n return jwts_.size();\n } else {\n return jwtsBuilder_.getCount();\n }\n }", "public Integer getScannedCount() {\n return this.scannedCount;\n }", "public int getCallsNb();", "public int totalMsgsPerSec()\n\t{\n\t\treturn _totalMsgsPerSec;\n\t}", "public int getRequestsCount() {\n return requests_.size();\n }", "public int getPlayerCount() {\n\t\treturn playerCount;\n\t}", "public int getBytes(){\r\n\t\tint bytes = 0;\r\n\t\tbytes = packet.getLength();\r\n\t\treturn bytes;\r\n\t}", "public int getRequestsCount() {\n return requests_.size();\n }", "public int getNumberOfRegisteredMessages() {\n return registeredMessages.size();\n }", "public int getDataMessagesReceived() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMessages().size() - c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}", "public static int getNumPlayers(){\n\t\treturn numPlayers;\n\t}", "public int getRequestsCount() {\n if (requestsBuilder_ == null) {\n return requests_.size();\n } else {\n return requestsBuilder_.getCount();\n }\n }", "public int getNewMessageCount() {\n return messages.size() + droppedMessages.size();\n }" ]
[ "0.79766935", "0.78980815", "0.744632", "0.7070562", "0.694665", "0.68979794", "0.6882354", "0.68156385", "0.6801996", "0.666538", "0.66435033", "0.6625709", "0.65524197", "0.6546668", "0.6518487", "0.6502589", "0.6488006", "0.6469683", "0.63708264", "0.63575107", "0.63230956", "0.6311287", "0.626339", "0.6188296", "0.6187034", "0.61727256", "0.6171869", "0.61684835", "0.6148043", "0.613767", "0.613767", "0.613767", "0.61102635", "0.6109044", "0.6104097", "0.60991824", "0.60991824", "0.6095448", "0.6092164", "0.6092164", "0.6090939", "0.606274", "0.60293084", "0.60272646", "0.6010207", "0.6009102", "0.5992009", "0.59907883", "0.59869105", "0.59754574", "0.5970595", "0.5966812", "0.5966812", "0.5956486", "0.59082794", "0.58987975", "0.58984405", "0.5885858", "0.5882708", "0.586633", "0.58615506", "0.5859271", "0.5858059", "0.58548015", "0.58528274", "0.5844011", "0.5842675", "0.58312523", "0.58209825", "0.581701", "0.58164966", "0.5811225", "0.5806735", "0.58020204", "0.5797451", "0.57938546", "0.57938546", "0.57938546", "0.57887214", "0.57848793", "0.5781067", "0.57791036", "0.57720226", "0.5760623", "0.5758169", "0.5750129", "0.5748894", "0.5734911", "0.57327783", "0.5729356", "0.5724763", "0.5723742", "0.571738", "0.571219", "0.5703927", "0.57031494", "0.56976795", "0.56917435", "0.5689123", "0.5688911" ]
0.6962833
4
Set the number of sent RTP packets.
public void setSentPackets(Long sentPackets) { this.sentPackets = sentPackets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final Builder packets(int packets) {\n this.packets = packets;\n return this;\n }", "@Override\n public void setNrPlayers(int value) {\n this.nrPlayers = value;\n }", "public synchronized void incrementNumSent(){\n numSent++;\n }", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setNumStreams (int streamNum)\r\n {\r\n this.numStreams = streamNum;\r\n }", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}", "public void incrementPacketNumber()\n {\n nextPacketNumber++;\n }", "public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }", "public void incMessagesSent() {\n this.messagesSent++;\n }", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public synchronized int getNumSent(){\n return numSent;\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setNumberOfDeliveredFiles(int value) {\n this.numberOfDeliveredFiles = value;\n }", "public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public void sendNumOpponents(int numPlayers) {\n try {\n dOut.writeInt(numPlayers);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send number of players\");\n e.printStackTrace();\n }\n }", "public static void setCount(int aCount) {\n count = aCount;\n }", "public int getGamesSentCount() {\n\t\treturn mGamesSentCount;\n\t}", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public static void setPlayerCount(int playerCount) {\n PLAYER_COUNT = playerCount;\n }", "public void sendNumCards(int numCards) {\n try {\n dOut.writeInt(numCards);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send number of cards\");\n e.printStackTrace();\n }\n }", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }", "public void setCount(int count)\n {\n this.count = count;\n }", "public void setNumPlayed(int numPlayed)\n\t{\n\t\tthis.numPlayed = numPlayed;\n\t}", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "private void setCommentsCount(int value) {\n \n commentsCount_ = value;\n }", "private void setLikesCount(int value) {\n \n likesCount_ = value;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public int incrementPlayersNumber(){//setter/incrementer di numberofplayers chiamato da ServerRoom: qua ho cambiato! è qui che si setta il client id, e il primo della stanza ha id=1 scritta come era prima!\r\n\t\tint idToSend=numberOfPlayers;\r\n\t\tnumberOfPlayers++;\r\n\t\treturn idToSend;\r\n\t}", "public void setSlotCount(int n) {\n mController.setSlotCount(n);\n }", "public void setCount(final int count)\n {\n this.count = count;\n }", "public int getNumberSent()\r\n {\r\n return this.numberSent;\r\n }", "public void setNports(int n) {\n\t\tnports = n;\n\t}", "public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }", "public void setNumPktsDropped(Integer numPktsDropped) {\n this.numPktsDropped = numPktsDropped;\n }", "public void incrementNumBindRequests() {\n this.numBindRequests.incrementAndGet();\n }", "public void incrementNumUnbindRequests() {\n this.numUnbindRequests.incrementAndGet();\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "public void setCount(int count){\n\t\tthis.count = count;\n\t}", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setBytesSent(Long bytesSent) {\n\t\tthis.bytesSent = bytesSent;\n\t}", "public void setNumCompetitions(Integer numCompetitions) {\r\n this.numCompetitions = numCompetitions;\r\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public void setCount(final int count) {\n this.count = count;\n }", "public void setNumberOfRestraunts(int _numberOfRestraunts){\n \n numberOfRestraunts = _numberOfRestraunts;\n }", "public void set_count(int c);", "public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public void setCount(final int c) {\n\t\tcount = c;\n\t}", "protected void setNumVars(int numVars)\n {\n \tthis.numVars = numVars;\n }", "public void setNumPoints(int np);", "public void setNumEvents(int numEvents) {\n this.numEvents = numEvents;\n }", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "public final void setNbThread(final int nbThread) {\n this.nbThread = nbThread;\n }", "public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }", "public void setNumberShips(int numberShips);", "public void setMinimumPlayers(int nPlayers)\r\n {\n \r\n }", "void resetReceivedEventsCount();", "public synchronized void setNumberOfServers(int num) {\n\t\tif(num != this.numServers) {\n\t\t\tthis.updating = true;\n\t\t\tthis.prevNumServers = this.numServers;\n\t\t\tthis.numServers = num;\n\t\t\tthis.rehashUsers();\n\t\t\tthis.updating = false;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public void incrementSent() {\n\t\tmessagesSent.incrementAndGet();\n\t}", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public void setCount(final int count) {\n\t\t_count = count;\n\t}", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "public void setStreamCount(int streamCount) {\n this.streamCount = streamCount;\n }", "public void setCount(int count) {\n\t\tthis.count = count;\n\t}", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public void setCount(int pcount) {\r\n if(gzipOp != null) {\r\n throw new IllegalStateException(\"Cannot set count with compression on\");\r\n }\r\n int diff = pcount - bop.getCount();\r\n bop.setCount(pcount);\r\n bytesWrittenSinceSessionStart += diff;\r\n bytesWrittenAtLastAbandonCheck += diff;\r\n }", "public void setNumOfActionTaken(int numOfActionTaken) {\n this.numOfActionTaken = numOfActionTaken;\n }", "public Long getSentPackets() {\n\t\treturn sentPackets;\n\t}", "public void setCount(Integer count) {\n\t\tthis.count = count;\n\t}", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public Builder setCount(int value) {\n \n count_ = value;\n onChanged();\n return this;\n }", "public int getNetworkTransmitCount() {\n return networkTransmitCount;\n }", "public static void setNumberOfInputs(int _n)\r\n {\r\n numberOfInputs = _n;\r\n }", "public void setUpdateOften(int i){\n countNum = i;\n }", "public void setNumDeparting() {\n if (isStopped() && !embarkingPassengersSet){\n \tRandom rand = new Random();\n \tint n = rand.nextInt(this.numPassengers+1);\n \tif (this.numPassengers - n <= 0) {\n \t\tthis.numPassengers = 0;\n n = this.numPassengers;\n \t} else {\n this.numPassengers = this.numPassengers - n;\n }\n trkMdl.passengersUnboarded(trainID, n);\n }\n \t//return 0;\n }", "public void setNumberOfSims(int numberOfSims) {\n\t\tthis.numberOfSims = numberOfSims;\n\t}" ]
[ "0.6717366", "0.6585423", "0.62990034", "0.61477625", "0.60780644", "0.60380936", "0.60050875", "0.60050875", "0.60050875", "0.5986865", "0.5978415", "0.59649986", "0.59440154", "0.58440596", "0.5787898", "0.5766091", "0.57525694", "0.5751251", "0.57457757", "0.57320046", "0.57253206", "0.57131755", "0.57119983", "0.5679304", "0.56675464", "0.56626034", "0.56470174", "0.56437683", "0.5631616", "0.5625455", "0.55678916", "0.5561291", "0.55573505", "0.55573505", "0.5541559", "0.5534487", "0.5532821", "0.5532821", "0.5532821", "0.5532821", "0.5532821", "0.55258733", "0.5523273", "0.55204254", "0.5514947", "0.5489707", "0.54888475", "0.5483237", "0.54800653", "0.54682463", "0.5457979", "0.5454084", "0.5445857", "0.5445336", "0.5445336", "0.5445336", "0.5445336", "0.5445336", "0.5445336", "0.5427523", "0.5427085", "0.54257786", "0.54257786", "0.5402893", "0.5402663", "0.5397472", "0.5396445", "0.538957", "0.5385734", "0.5377754", "0.5376867", "0.5373298", "0.5372654", "0.53698474", "0.5361966", "0.5351042", "0.53506947", "0.5330367", "0.53284335", "0.53192914", "0.53001136", "0.5299712", "0.52959687", "0.52915907", "0.5288591", "0.5288163", "0.5280144", "0.52594805", "0.52538794", "0.52505076", "0.52457476", "0.52427405", "0.524172", "0.52413577", "0.5235952", "0.5231865", "0.5231773", "0.52258843", "0.5209578", "0.52067864" ]
0.6039375
5
Set the number of sent RTP packets.
public RealTime withSentPackets(Long sentPackets) { this.sentPackets = sentPackets; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final Builder packets(int packets) {\n this.packets = packets;\n return this;\n }", "@Override\n public void setNrPlayers(int value) {\n this.nrPlayers = value;\n }", "public synchronized void incrementNumSent(){\n numSent++;\n }", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "public void setSentPackets(Long sentPackets) {\n\t\tthis.sentPackets = sentPackets;\n\t}", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setNumStreams (int streamNum)\r\n {\r\n this.numStreams = streamNum;\r\n }", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}", "public void incrementPacketNumber()\n {\n nextPacketNumber++;\n }", "public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }", "public void incMessagesSent() {\n this.messagesSent++;\n }", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public synchronized int getNumSent(){\n return numSent;\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setNumberOfDeliveredFiles(int value) {\n this.numberOfDeliveredFiles = value;\n }", "public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public void sendNumOpponents(int numPlayers) {\n try {\n dOut.writeInt(numPlayers);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send number of players\");\n e.printStackTrace();\n }\n }", "public static void setCount(int aCount) {\n count = aCount;\n }", "public int getGamesSentCount() {\n\t\treturn mGamesSentCount;\n\t}", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public static void setPlayerCount(int playerCount) {\n PLAYER_COUNT = playerCount;\n }", "public void sendNumCards(int numCards) {\n try {\n dOut.writeInt(numCards);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send number of cards\");\n e.printStackTrace();\n }\n }", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }", "public void setCount(int count)\n {\n this.count = count;\n }", "public void setNumPlayed(int numPlayed)\n\t{\n\t\tthis.numPlayed = numPlayed;\n\t}", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "private void setCommentsCount(int value) {\n \n commentsCount_ = value;\n }", "private void setLikesCount(int value) {\n \n likesCount_ = value;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public int incrementPlayersNumber(){//setter/incrementer di numberofplayers chiamato da ServerRoom: qua ho cambiato! è qui che si setta il client id, e il primo della stanza ha id=1 scritta come era prima!\r\n\t\tint idToSend=numberOfPlayers;\r\n\t\tnumberOfPlayers++;\r\n\t\treturn idToSend;\r\n\t}", "public void setSlotCount(int n) {\n mController.setSlotCount(n);\n }", "public void setCount(final int count)\n {\n this.count = count;\n }", "public int getNumberSent()\r\n {\r\n return this.numberSent;\r\n }", "public void setNports(int n) {\n\t\tnports = n;\n\t}", "public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }", "public void setNumPktsDropped(Integer numPktsDropped) {\n this.numPktsDropped = numPktsDropped;\n }", "public void incrementNumBindRequests() {\n this.numBindRequests.incrementAndGet();\n }", "public void incrementNumUnbindRequests() {\n this.numUnbindRequests.incrementAndGet();\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "public void setCount(int count){\n\t\tthis.count = count;\n\t}", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setBytesSent(Long bytesSent) {\n\t\tthis.bytesSent = bytesSent;\n\t}", "public void setNumCompetitions(Integer numCompetitions) {\r\n this.numCompetitions = numCompetitions;\r\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public void setCount(final int count) {\n this.count = count;\n }", "public void setNumberOfRestraunts(int _numberOfRestraunts){\n \n numberOfRestraunts = _numberOfRestraunts;\n }", "public void set_count(int c);", "public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public void setCount(final int c) {\n\t\tcount = c;\n\t}", "protected void setNumVars(int numVars)\n {\n \tthis.numVars = numVars;\n }", "public void setNumPoints(int np);", "public void setNumEvents(int numEvents) {\n this.numEvents = numEvents;\n }", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "public final void setNbThread(final int nbThread) {\n this.nbThread = nbThread;\n }", "public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }", "public void setNumberShips(int numberShips);", "public void setMinimumPlayers(int nPlayers)\r\n {\n \r\n }", "void resetReceivedEventsCount();", "public synchronized void setNumberOfServers(int num) {\n\t\tif(num != this.numServers) {\n\t\t\tthis.updating = true;\n\t\t\tthis.prevNumServers = this.numServers;\n\t\t\tthis.numServers = num;\n\t\t\tthis.rehashUsers();\n\t\t\tthis.updating = false;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public void incrementSent() {\n\t\tmessagesSent.incrementAndGet();\n\t}", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public void setCount(final int count) {\n\t\t_count = count;\n\t}", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "public void setStreamCount(int streamCount) {\n this.streamCount = streamCount;\n }", "public void setCount(int count) {\n\t\tthis.count = count;\n\t}", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public void setCount(int pcount) {\r\n if(gzipOp != null) {\r\n throw new IllegalStateException(\"Cannot set count with compression on\");\r\n }\r\n int diff = pcount - bop.getCount();\r\n bop.setCount(pcount);\r\n bytesWrittenSinceSessionStart += diff;\r\n bytesWrittenAtLastAbandonCheck += diff;\r\n }", "public void setNumOfActionTaken(int numOfActionTaken) {\n this.numOfActionTaken = numOfActionTaken;\n }", "public Long getSentPackets() {\n\t\treturn sentPackets;\n\t}", "public void setCount(Integer count) {\n\t\tthis.count = count;\n\t}", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public Builder setCount(int value) {\n \n count_ = value;\n onChanged();\n return this;\n }", "public int getNetworkTransmitCount() {\n return networkTransmitCount;\n }", "public static void setNumberOfInputs(int _n)\r\n {\r\n numberOfInputs = _n;\r\n }", "public void setUpdateOften(int i){\n countNum = i;\n }", "public void setNumDeparting() {\n if (isStopped() && !embarkingPassengersSet){\n \tRandom rand = new Random();\n \tint n = rand.nextInt(this.numPassengers+1);\n \tif (this.numPassengers - n <= 0) {\n \t\tthis.numPassengers = 0;\n n = this.numPassengers;\n \t} else {\n this.numPassengers = this.numPassengers - n;\n }\n trkMdl.passengersUnboarded(trainID, n);\n }\n \t//return 0;\n }", "public void setNumberOfSims(int numberOfSims) {\n\t\tthis.numberOfSims = numberOfSims;\n\t}" ]
[ "0.6717366", "0.6585423", "0.62990034", "0.61477625", "0.60780644", "0.6039375", "0.60380936", "0.60050875", "0.60050875", "0.60050875", "0.5986865", "0.5978415", "0.59649986", "0.59440154", "0.58440596", "0.5787898", "0.5766091", "0.57525694", "0.5751251", "0.57457757", "0.57320046", "0.57253206", "0.57131755", "0.57119983", "0.5679304", "0.56675464", "0.56626034", "0.56470174", "0.56437683", "0.5631616", "0.5625455", "0.55678916", "0.5561291", "0.55573505", "0.55573505", "0.5541559", "0.5534487", "0.5532821", "0.5532821", "0.5532821", "0.5532821", "0.5532821", "0.55258733", "0.5523273", "0.55204254", "0.5514947", "0.5489707", "0.54888475", "0.5483237", "0.54800653", "0.54682463", "0.5457979", "0.5454084", "0.5445857", "0.5445336", "0.5445336", "0.5445336", "0.5445336", "0.5445336", "0.5445336", "0.5427523", "0.5427085", "0.54257786", "0.54257786", "0.5402893", "0.5402663", "0.5397472", "0.5396445", "0.538957", "0.5385734", "0.5377754", "0.5376867", "0.5373298", "0.5372654", "0.53698474", "0.5361966", "0.5351042", "0.53506947", "0.5330367", "0.53284335", "0.53192914", "0.53001136", "0.5299712", "0.52959687", "0.52915907", "0.5288591", "0.5288163", "0.5280144", "0.52594805", "0.52538794", "0.52505076", "0.52457476", "0.52427405", "0.524172", "0.52413577", "0.5235952", "0.5231865", "0.5231773", "0.52258843", "0.5209578", "0.52067864" ]
0.0
-1
Get the number of received RTP packets.
public Long getRcvPackets() { return rcvPackets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "int getPayloadCount();", "public native long getRetransmittedPacketCount()\n throws IOException, IllegalArgumentException;", "long getReceivedEventsCount();", "int getNetTransferMsgsCount();", "public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;", "public int receiveNumCards() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Number of cards not received\");\n e.printStackTrace();\n }\n return 0;\n }", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public int getGamesReceivedCount() {\n\t\treturn mGamesReceivedCount;\n\t}", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "@Override\n public abstract long getReceivedBytesCount();", "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "public long getMessageReceivedCount() {\n return messageMetrics.received.get();\n }", "public int getNetTransferMsgsCount() {\n return netTransferMsgs_.size();\n }", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "int getMsgCount();", "int getMsgCount();", "public Long getLostPackets() {\n return lostPackets;\n }", "public int getTotalPayload() {\n return totalPayload;\n }", "private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }", "public native long getNoRoomDiscardedPacketCount()\n throws IOException, IllegalArgumentException;", "public int getDataMessagesReceived() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMessages().size() - c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}", "public int receiveHandCount() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Hand count not received\");\n e.printStackTrace();\n }\n return 0;\n }", "public int our_packetsLost(){ //For a group call, should take an input ID, should be UPDATED\n return this.our_packs_lost;\n }", "public static int countReceivedBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "public static int countReceivedMessages() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countReceivedMessages(messageClassType);\n\n\treturn sum;\n }", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "@Generated\n @Selector(\"countOfResponseBodyBytesReceived\")\n public native long countOfResponseBodyBytesReceived();", "public int getPayloadCount() {\n return payload_.size();\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public native long getDuplicatedDiscardedPacketCount()\n throws IOException, IllegalArgumentException;", "public int getPortCount() throws SdpParseException {\n\t\treturn getNports();\n\t}", "protected int receivePacket()\n\t\t\tthrows IOException, SocketTimeoutException\n\t{\n\t\t\n\t\tbyte buf[] = new byte[ILPacket.MAX_PACKET_SIZE];\n\t\tDatagramPacket packet = new DatagramPacket(buf, buf.length);\n\t\t\n\t\tthis.inSocket.receive(packet);\n\t\t\n\t\tthis.address = (InetSocketAddress) packet.getSocketAddress();\n\t\t\n\t\tthis.buffer = ByteBuffer.wrap(packet.getData());\n\t\t\t\t\n\t\treturn packet.getLength();\n\t}", "int getTotalLength() {\n int totalLength = convertMultipleBytesToPositiveInt(mPacket[IP_TOTAL_LENGTH_HIGH_BYTE_INDEX],\n mPacket[IP_TOTAL_LENGTH_LOW_BYTE_INDEX]);\n return totalLength;\n }", "public int getCount() {\n\t\treturn channelCountMapper.getCount();\n\t}", "int ReceiveAvailablePacket();", "@Override\n public int getCount() {\n return mPacketList.size();\n }", "public final int Available() {\n\t\treturn m_rxlen;\n\t}", "int getDeliveredCount();", "public int getSubscriptionCount()\n {\n int count;\n\n synchronized (lock)\n {\n count = (subscriptions != null) ? subscriptions.size() : 0;\n }\n\n return count;\n }", "public int getPacketLength() {\n return TfsConstant.INT_SIZE * 3 + failServer.size() * TfsConstant.LONG_SIZE;\n }", "int getPeerCount();", "int getNumberFrames();", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public int getBytes(){\r\n\t\tint bytes = 0;\r\n\t\tbytes = packet.getLength();\r\n\t\treturn bytes;\r\n\t}", "public int receivePacket(){\r\n\t\ttry{\t\t\r\n\t\t\tpacket = new DatagramPacket(buffer, bufLen);\r\n\t\t\tsock.setSoTimeout(0);//timeout infinito\r\n\t\t\tsock.receive(packet);\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tLogger.write(\"Errore ricezione pacchetto: \"+ex.getMessage());\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "protected int getPayloadLength() {\n if (data == null) {\n return 0;\n } else {\n return data.length;\n }\n }", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations received\")\n\tpublic long getRequestsReceived() {\n\t\treturn getMetricValue(\"RequestsReceived\");\n\t}", "public AsyncResult<Integer> requestNumberOfMessages() {\r\n ServiceDiscoveryManager serviceDiscoveryManager = xmppSession.getManager(ServiceDiscoveryManager.class);\r\n return serviceDiscoveryManager.discoverInformation(null, OfflineMessage.NAMESPACE).thenApply(infoDiscovery -> {\r\n if (!infoDiscovery.getExtensions().isEmpty()) {\r\n DataForm dataForm = infoDiscovery.getExtensions().get(0);\r\n if (dataForm != null) {\r\n for (DataForm.Field field : dataForm.getFields()) {\r\n if (\"number_of_messages\".equals(field.getVar())) {\r\n String numberOfMessages = field.getValues().get(0);\r\n return Integer.valueOf(numberOfMessages);\r\n }\r\n }\r\n }\r\n }\r\n return 0;\r\n });\r\n }", "public int getUnreadMessagesCount() {\n if (pendingIncomingMessages != null){\n\n /*\n * Return the size of the cache\n */\n return pendingIncomingMessages.size();\n\n }\n\n /*\n * Empty cache return 0\n */\n return 0;\n }", "public int numOutgoing() {\r\n int result = outgoing.size();\r\n return result;\r\n }", "public int getNumberOfRegisteredMessages() {\n return registeredMessages.size();\n }", "public NM getNumberOfTPSPP() { \r\n\t\tNM retVal = this.getTypedField(34, 0);\r\n\t\treturn retVal;\r\n }", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public Long getBytesReceived() {\n\t\treturn bytesReceived;\n\t}", "public long getLength() {\n try {\n Long temp = (Long)replyHeaders.getHeader(HeaderSet.LENGTH);\n\n if (temp == null) {\n return -1;\n } else {\n return temp.longValue();\n }\n } catch (IOException e) {\n return -1;\n }\n }", "public int getDeliveredCount() {\n return delivered_.size();\n }", "public Integer getMessageCount() {\r\n return messageCount;\r\n }", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public int getMessagesCount() {\n return messages_.size();\n }", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}", "public int getNrSubscribers()\r\n {\r\n return subscriberInfos.size();\r\n }", "public int lastReceivedMsgSeqNum()\n {\n return lastReceivedMsgSeqNum;\n }", "int getSubscriptionCount();", "int getFramesCount();", "public Integer getNumPktsDropped() {\n return numPktsDropped;\n }", "public int getMsgCount() {\n return msg_.size();\n }", "public int getMsgCount() {\n return msg_.size();\n }", "int getPeersCount();", "int getResponsesCount();", "public int getCallsNb();", "public int getNewMessageCount() {\n return messages.size() + droppedMessages.size();\n }", "@java.lang.Override\n public com.google.protobuf.UInt64Value getFramesCount() {\n return framesCount_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : framesCount_;\n }", "public int getMessagesCount() {\n return messages_.size();\n }", "public int getUnreadMessCount() {\n return protocol.getUnreadMessCount();\n }", "int getChannelsCount();", "public static int countUnseenMessagesFromAppliance() {\r\n\t\t// System.out.println(\"CustomerBAL.countUnseenMessagesFromAppliance()\");\r\n\t\tint count = 0;\r\n\r\n\t\ttry (Connection connection = Connect.getConnection();) {\r\n\t\t\tif (connection != null) {\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{CALL count_unseen_status_messages_from_appliance()}\");\r\n\t\t\t\tResultSet resultSet = prepareCall.executeQuery();\r\n\t\t\t\t// End Stored Procedure\r\n\t\t\t\twhile (resultSet.next()) {\r\n\t\t\t\t\tcount = resultSet.getInt(1);\r\n\t\t\t\t}\r\n\t\t\t\t// rs.close();\r\n\t\t\t\t// con.close();\r\n\t\t\t\tconnection.close();\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn count;\r\n\r\n\t}", "public Long getReceiveSuccessResponseTimes()\r\n {\r\n return receiveSuccessResponseTimes;\r\n }", "public int getUnreadChatMessageCount();", "long getListenerCount();", "public com.google.protobuf.UInt64Value getFramesCount() {\n if (framesCountBuilder_ == null) {\n return framesCount_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : framesCount_;\n } else {\n return framesCountBuilder_.getMessage();\n }\n }", "public int getActualPacketLength(byte packet[], int packetLen)\n {\n if (PACKET_LEN_END_OF_STREAM) {\n return ServerSocketThread.PACKET_LEN_END_OF_STREAM;\n } else {\n return ServerSocketThread.PACKET_LEN_LINE_TERMINATOR;\n }\n }", "public int getAvailableCount();", "public int getCount(){\r\n\t\tif(_serverinfo != null){\r\n\t\t\treturn _serverinfo.length / 6;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public int getFrameCount() {\n return frameCount;\n }", "int ReceivePacket();", "public String getNotificationCount() {\n\t\treturn element(\"li_notificationCount\").getText();\n\t}", "int getMailCount() {\n\t\treturn mail_count[mailbox_number];\n\t}", "private int getMessageCount() {\r\n return mMessages.length;\r\n }" ]
[ "0.78860915", "0.6842933", "0.6824554", "0.6799508", "0.6773047", "0.6735974", "0.65523124", "0.6488097", "0.64731175", "0.6338727", "0.63381565", "0.63302773", "0.63195294", "0.6305822", "0.62554693", "0.62548697", "0.6249449", "0.6249449", "0.6249449", "0.6192859", "0.6151718", "0.6151718", "0.61330944", "0.6113582", "0.61098313", "0.6079757", "0.6056334", "0.6046401", "0.6016433", "0.6009006", "0.5988527", "0.59813184", "0.5961687", "0.594785", "0.5940431", "0.5940431", "0.5915026", "0.5914755", "0.59093404", "0.5907881", "0.5897825", "0.58703655", "0.5857539", "0.58470297", "0.5842552", "0.5839076", "0.5835755", "0.58321935", "0.5796776", "0.5756665", "0.5743109", "0.5740852", "0.5716941", "0.5711673", "0.57069373", "0.5704842", "0.57009846", "0.5693344", "0.56918335", "0.5678085", "0.566188", "0.56555504", "0.5647504", "0.56465113", "0.56413877", "0.56403625", "0.56403625", "0.56403625", "0.56403625", "0.56403625", "0.5640136", "0.56090647", "0.5604466", "0.55904657", "0.55903274", "0.55883795", "0.558551", "0.55832946", "0.55832946", "0.5579274", "0.5575324", "0.55750424", "0.5573615", "0.5572607", "0.55682194", "0.5561286", "0.55500436", "0.55493414", "0.55454755", "0.55353224", "0.55233127", "0.5520686", "0.5519903", "0.5513198", "0.5505077", "0.5502133", "0.5497734", "0.5495601", "0.54827744", "0.5476766" ]
0.670832
6
Set the number of received RTP packets.
public void setRcvPackets(Long rcvPackets) { this.rcvPackets = rcvPackets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final Builder packets(int packets) {\n this.packets = packets;\n return this;\n }", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "@Override\n public void setNrPlayers(int value) {\n this.nrPlayers = value;\n }", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setNumberOfDeliveredFiles(int value) {\n this.numberOfDeliveredFiles = value;\n }", "public void setNumStreams (int streamNum)\r\n {\r\n this.numStreams = streamNum;\r\n }", "public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "public void incrementPacketNumber()\n {\n nextPacketNumber++;\n }", "public void setNumberOfRestraunts(int _numberOfRestraunts){\n \n numberOfRestraunts = _numberOfRestraunts;\n }", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "void resetReceivedEventsCount();", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }", "public void incrementNumUnbindRequests() {\n this.numUnbindRequests.incrementAndGet();\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setNports(int n) {\n\t\tnports = n;\n\t}", "public void setRecordCount(Integer value) {\n this.recordCount = value;\n }", "public static void setCount(int aCount) {\n count = aCount;\n }", "public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public void setNbrCapture(int nbrCapture){\n this.nbrCapture = nbrCapture;\n }", "public void setNumPktsDropped(Integer numPktsDropped) {\n this.numPktsDropped = numPktsDropped;\n }", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public void setCount(int count)\n {\n this.count = count;\n }", "public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public void setNumEvents(int numEvents) {\n this.numEvents = numEvents;\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "int getPayloadCount();", "private void setLocalPlaylistCount(int val) {\n\t\tref.edit().putInt(COL_LOCAL_PLAYLIST_COUNTER, val).commit();\n\t}", "public void setCount(final int count)\n {\n this.count = count;\n }", "public Long getRcvPackets() {\n\t\treturn rcvPackets;\n\t}", "public void setSlotCount(int n) {\n mController.setSlotCount(n);\n }", "private void setCommentsCount(int value) {\n \n commentsCount_ = value;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public abstract void setVarCount(int varCount);", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "protected void setNumVars(int numVars)\n {\n \tthis.numVars = numVars;\n }", "public void set_count(int c);", "public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}", "public void setCount(int count){\n\t\tthis.count = count;\n\t}", "public void setReceiveNum(Long receiveNum) {\r\n this.receiveNum = receiveNum;\r\n }", "public void setNumberOfAvailableFiles(int value) {\n this.numberOfAvailableFiles = value;\n }", "private void setSubscriberPort(int value) {\n\t\tthis.subscriberPort = value;\n\t}", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public static void setPlayerCount(int playerCount) {\n PLAYER_COUNT = playerCount;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }", "public void setCount(final int count) {\n this.count = count;\n }", "public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }", "private void setLikesCount(int value) {\n \n likesCount_ = value;\n }", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "int getNetTransferMsgsCount();", "public final void setNbThread(final int nbThread) {\n this.nbThread = nbThread;\n }", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public void setCount(final int c) {\n\t\tcount = c;\n\t}", "public int getGamesReceivedCount() {\n\t\treturn mGamesReceivedCount;\n\t}", "public void setBytesReceived(final long newValue)\n {\n m_BytesReceived = newValue;\n }", "@Override\n public int getCount() {\n return mPacketList.size();\n }", "public void setNumPoints(int np);", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "public int receiveNumCards() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Number of cards not received\");\n e.printStackTrace();\n }\n return 0;\n }", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "void setNumberOfResults(int numberOfResults);", "public void setOutboundNumberOfLengthBytes(int length, SECSItemNumLengthBytes desiredNumberOfLengthBytes)\n {\n if (length < 0 || length > 0x00FFFFFF)\n {\n throw new IllegalArgumentException(\n \"The value for the length argument must be between 0 and 16777215 inclusive.\");\n }\n\n outboundNumberOfLengthBytes = calculateMinimumNumberOfLengthBytes(length);\n if (outboundNumberOfLengthBytes.valueOf() < desiredNumberOfLengthBytes.valueOf())\n {\n outboundNumberOfLengthBytes = desiredNumberOfLengthBytes;\n }\n }", "public void setRemainingData(int value) {\n this.remainingData = value;\n }", "public static void setNumberOfInputs(int _n)\r\n {\r\n numberOfInputs = _n;\r\n }", "@Override\n public void setLoopCount(final int loop) {\n if (isPlayerOnPage(playerId)) {\n loopManager.setLoopCount(loop);\n } else {\n addToPlayerReadyCommandQueue(\"loopcount\", new Command() {\n\n @Override\n public void execute() {\n loopManager.setLoopCount(loop);\n }\n });\n }\n }", "public void setCount(final int count) {\n\t\t_count = count;\n\t}", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public void setPrevCount(double n)\n {\n\n this.prevCount = n;\n }", "public void setChannelCount(int value) {\n this.channelCount = value;\n }", "public void setFrameLimit(int value) {\n\t\tframeLimit = value;\n\t}", "public void setNumDeparting() {\n if (isStopped() && !embarkingPassengersSet){\n \tRandom rand = new Random();\n \tint n = rand.nextInt(this.numPassengers+1);\n \tif (this.numPassengers - n <= 0) {\n \t\tthis.numPassengers = 0;\n n = this.numPassengers;\n \t} else {\n this.numPassengers = this.numPassengers - n;\n }\n trkMdl.passengersUnboarded(trainID, n);\n }\n \t//return 0;\n }", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public synchronized void setNumberOfServers(int num) {\n\t\tif(num != this.numServers) {\n\t\t\tthis.updating = true;\n\t\t\tthis.prevNumServers = this.numServers;\n\t\t\tthis.numServers = num;\n\t\t\tthis.rehashUsers();\n\t\t\tthis.updating = false;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public void setCount(Integer count) {\n\t\tthis.count = count;\n\t}", "public void setCount(int count) {\n\t\tthis.count = count;\n\t}", "public void setParticipantCount (byte p) {\n\t\tParticipants = p;\n\t}" ]
[ "0.6554938", "0.6017737", "0.5990342", "0.5969604", "0.59456605", "0.5941184", "0.5803817", "0.5803817", "0.5803817", "0.5731506", "0.5712969", "0.5707339", "0.56630903", "0.56630903", "0.56526875", "0.5645859", "0.55934954", "0.55717796", "0.5563918", "0.5547686", "0.55464953", "0.55207384", "0.550759", "0.5489027", "0.54854923", "0.5421355", "0.54079294", "0.5397373", "0.5391777", "0.5380147", "0.53780854", "0.5375181", "0.5367812", "0.5350272", "0.5333699", "0.5320027", "0.5300708", "0.5297937", "0.52769965", "0.52745867", "0.5272072", "0.5263684", "0.52607286", "0.5250507", "0.52475977", "0.52475977", "0.52475977", "0.52475977", "0.52475977", "0.52374506", "0.5231174", "0.5207272", "0.5207272", "0.5207272", "0.5207272", "0.5207272", "0.5207272", "0.5201603", "0.51970077", "0.5194442", "0.5188696", "0.5177676", "0.5175629", "0.5172354", "0.51691073", "0.51607156", "0.5152966", "0.5152966", "0.51484835", "0.5140732", "0.51392406", "0.5134526", "0.51322967", "0.51318496", "0.5124652", "0.5118337", "0.5118299", "0.51133025", "0.5104723", "0.51018935", "0.5098799", "0.50950646", "0.50930786", "0.5088054", "0.50852305", "0.50752455", "0.50706226", "0.5066047", "0.50536335", "0.50508577", "0.5045858", "0.5039302", "0.5036276", "0.5024292", "0.50191617", "0.50191444", "0.5014823", "0.50135607", "0.50077546", "0.50077003" ]
0.57571566
9
Set the number of received RTP packets.
public RealTime withRcvPackets(Long rcvPackets) { this.rcvPackets = rcvPackets; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final Builder packets(int packets) {\n this.packets = packets;\n return this;\n }", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "@Override\n public void setNrPlayers(int value) {\n this.nrPlayers = value;\n }", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setRcvPackets(Long rcvPackets) {\n\t\tthis.rcvPackets = rcvPackets;\n\t}", "public void setNumberOfDeliveredFiles(int value) {\n this.numberOfDeliveredFiles = value;\n }", "public void setNumStreams (int streamNum)\r\n {\r\n this.numStreams = streamNum;\r\n }", "public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "public void incrementPacketNumber()\n {\n nextPacketNumber++;\n }", "public void setNumberOfRestraunts(int _numberOfRestraunts){\n \n numberOfRestraunts = _numberOfRestraunts;\n }", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "void resetReceivedEventsCount();", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }", "public void incrementNumUnbindRequests() {\n this.numUnbindRequests.incrementAndGet();\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setNports(int n) {\n\t\tnports = n;\n\t}", "public void setRecordCount(Integer value) {\n this.recordCount = value;\n }", "public static void setCount(int aCount) {\n count = aCount;\n }", "public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public void setNbrCapture(int nbrCapture){\n this.nbrCapture = nbrCapture;\n }", "public void setNumPktsDropped(Integer numPktsDropped) {\n this.numPktsDropped = numPktsDropped;\n }", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public void setCount(int count)\n {\n this.count = count;\n }", "public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public void setNumEvents(int numEvents) {\n this.numEvents = numEvents;\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "int getPayloadCount();", "private void setLocalPlaylistCount(int val) {\n\t\tref.edit().putInt(COL_LOCAL_PLAYLIST_COUNTER, val).commit();\n\t}", "public void setCount(final int count)\n {\n this.count = count;\n }", "public Long getRcvPackets() {\n\t\treturn rcvPackets;\n\t}", "public void setSlotCount(int n) {\n mController.setSlotCount(n);\n }", "private void setCommentsCount(int value) {\n \n commentsCount_ = value;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public abstract void setVarCount(int varCount);", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "protected void setNumVars(int numVars)\n {\n \tthis.numVars = numVars;\n }", "public void set_count(int c);", "public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}", "public void setCount(int count){\n\t\tthis.count = count;\n\t}", "public void setReceiveNum(Long receiveNum) {\r\n this.receiveNum = receiveNum;\r\n }", "public void setNumberOfAvailableFiles(int value) {\n this.numberOfAvailableFiles = value;\n }", "private void setSubscriberPort(int value) {\n\t\tthis.subscriberPort = value;\n\t}", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public static void setPlayerCount(int playerCount) {\n PLAYER_COUNT = playerCount;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }", "public void setCount(final int count) {\n this.count = count;\n }", "public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }", "private void setLikesCount(int value) {\n \n likesCount_ = value;\n }", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "int getNetTransferMsgsCount();", "public final void setNbThread(final int nbThread) {\n this.nbThread = nbThread;\n }", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public void setCount(final int c) {\n\t\tcount = c;\n\t}", "public int getGamesReceivedCount() {\n\t\treturn mGamesReceivedCount;\n\t}", "public void setBytesReceived(final long newValue)\n {\n m_BytesReceived = newValue;\n }", "@Override\n public int getCount() {\n return mPacketList.size();\n }", "public void setNumPoints(int np);", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "public int receiveNumCards() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Number of cards not received\");\n e.printStackTrace();\n }\n return 0;\n }", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "void setNumberOfResults(int numberOfResults);", "public void setOutboundNumberOfLengthBytes(int length, SECSItemNumLengthBytes desiredNumberOfLengthBytes)\n {\n if (length < 0 || length > 0x00FFFFFF)\n {\n throw new IllegalArgumentException(\n \"The value for the length argument must be between 0 and 16777215 inclusive.\");\n }\n\n outboundNumberOfLengthBytes = calculateMinimumNumberOfLengthBytes(length);\n if (outboundNumberOfLengthBytes.valueOf() < desiredNumberOfLengthBytes.valueOf())\n {\n outboundNumberOfLengthBytes = desiredNumberOfLengthBytes;\n }\n }", "public void setRemainingData(int value) {\n this.remainingData = value;\n }", "public static void setNumberOfInputs(int _n)\r\n {\r\n numberOfInputs = _n;\r\n }", "@Override\n public void setLoopCount(final int loop) {\n if (isPlayerOnPage(playerId)) {\n loopManager.setLoopCount(loop);\n } else {\n addToPlayerReadyCommandQueue(\"loopcount\", new Command() {\n\n @Override\n public void execute() {\n loopManager.setLoopCount(loop);\n }\n });\n }\n }", "public void setCount(final int count) {\n\t\t_count = count;\n\t}", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public void setPrevCount(double n)\n {\n\n this.prevCount = n;\n }", "public void setChannelCount(int value) {\n this.channelCount = value;\n }", "public void setFrameLimit(int value) {\n\t\tframeLimit = value;\n\t}", "public void setNumDeparting() {\n if (isStopped() && !embarkingPassengersSet){\n \tRandom rand = new Random();\n \tint n = rand.nextInt(this.numPassengers+1);\n \tif (this.numPassengers - n <= 0) {\n \t\tthis.numPassengers = 0;\n n = this.numPassengers;\n \t} else {\n this.numPassengers = this.numPassengers - n;\n }\n trkMdl.passengersUnboarded(trainID, n);\n }\n \t//return 0;\n }", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public synchronized void setNumberOfServers(int num) {\n\t\tif(num != this.numServers) {\n\t\t\tthis.updating = true;\n\t\t\tthis.prevNumServers = this.numServers;\n\t\t\tthis.numServers = num;\n\t\t\tthis.rehashUsers();\n\t\t\tthis.updating = false;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public void setCount(Integer count) {\n\t\tthis.count = count;\n\t}", "public void setCount(int count) {\n\t\tthis.count = count;\n\t}", "public void setParticipantCount (byte p) {\n\t\tParticipants = p;\n\t}" ]
[ "0.6554938", "0.6017737", "0.5990342", "0.5969604", "0.59456605", "0.5941184", "0.5803817", "0.5803817", "0.5803817", "0.57571566", "0.5731506", "0.5712969", "0.5707339", "0.56630903", "0.56630903", "0.56526875", "0.5645859", "0.55934954", "0.55717796", "0.5563918", "0.5547686", "0.55464953", "0.55207384", "0.550759", "0.5489027", "0.54854923", "0.5421355", "0.54079294", "0.5397373", "0.5391777", "0.5380147", "0.53780854", "0.5375181", "0.5367812", "0.5350272", "0.5333699", "0.5320027", "0.5300708", "0.5297937", "0.52769965", "0.52745867", "0.5272072", "0.5263684", "0.52607286", "0.5250507", "0.52475977", "0.52475977", "0.52475977", "0.52475977", "0.52475977", "0.52374506", "0.5231174", "0.5207272", "0.5207272", "0.5207272", "0.5207272", "0.5207272", "0.5207272", "0.5201603", "0.51970077", "0.5194442", "0.5188696", "0.5177676", "0.5175629", "0.5172354", "0.51691073", "0.51607156", "0.5152966", "0.5152966", "0.51484835", "0.5140732", "0.51392406", "0.5134526", "0.51322967", "0.51318496", "0.5124652", "0.5118337", "0.5118299", "0.51133025", "0.5104723", "0.51018935", "0.5098799", "0.50950646", "0.50930786", "0.5088054", "0.50852305", "0.50752455", "0.50706226", "0.5066047", "0.50536335", "0.50508577", "0.5045858", "0.5039302", "0.5036276", "0.5024292", "0.50191617", "0.50191444", "0.5014823", "0.50135607", "0.50077546", "0.50077003" ]
0.0
-1
Get the total number of RTP payload bytes sent.
public Long getBytesSent() { return bytesSent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTotalPayload() {\n return totalPayload;\n }", "public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "int getPayloadCount();", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n public abstract long getSentBytesCount();", "public static int countReceivedBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "public int getPayloadCount() {\n return payload_.size();\n }", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "@Override\n public abstract long getReceivedBytesCount();", "int getTotalLength() {\n int totalLength = convertMultipleBytesToPositiveInt(mPacket[IP_TOTAL_LENGTH_HIGH_BYTE_INDEX],\n mPacket[IP_TOTAL_LENGTH_LOW_BYTE_INDEX]);\n return totalLength;\n }", "protected int getPayloadLength() {\n if (data == null) {\n return 0;\n } else {\n return data.length;\n }\n }", "public static int size_p_sendts() {\n return (32 / 8);\n }", "public int totalMsgsPerSec()\n\t{\n\t\treturn _totalMsgsPerSec;\n\t}", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "public static int countSentBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "public native long getSentByteCount()\n throws IOException, IllegalArgumentException;", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}", "int getNetTransferMsgsCount();", "public native long getRetransmittedPacketCount()\n throws IOException, IllegalArgumentException;", "public int TotalBytes()\n {\n int totalBytes = request.getContentLength();\n if (totalBytes == -1) return 0;\n return totalBytes;\n }", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "public int getBytes(){\r\n\t\tint bytes = 0;\r\n\t\tbytes = packet.getLength();\r\n\t\treturn bytes;\r\n\t}", "public int getPacketLength() {\n return TfsConstant.INT_SIZE * 3 + failServer.size() * TfsConstant.LONG_SIZE;\n }", "public static int countReceivedMessages() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countReceivedMessages(messageClassType);\n\n\treturn sum;\n }", "public int length() {\r\n int length = 1 + 2 + deviceToken.length + 2 + payload.length;\r\n final int marshalledLength = marshall().length;\r\n assert marshalledLength == length;\r\n return length;\r\n }", "public int getNetTransferMsgsCount() {\n return netTransferMsgs_.size();\n }", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public Long getSentPackets() {\n\t\treturn sentPackets;\n\t}", "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "long getReceivedEventsCount();", "public int getMessagesSent() {\n return this.messagesSent;\n }", "public static int countSentMessages() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentMessages(messageClassType);\n\n\treturn sum;\n }", "int getServerPayloadSizeBytes();", "public long getTotalBytesWritten() {\n return totalBytesWritten;\n }", "private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }", "Long payloadLength();", "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "public int getDataMessagesSent() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}", "public synchronized int getNumSent(){\n return numSent;\n }", "Long getCountTotalRecords(Long transmissionId);", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "@Generated\n @Selector(\"countOfResponseBodyBytesReceived\")\n public native long countOfResponseBodyBytesReceived();", "public final int getTotalBytes() {\n return this.totalBytes;\n }", "public int getDataMessagesReceived() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMessages().size() - c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}", "public long getBytesWritten() { \n long count = 0;\n for (OutputStats out : outputs) {\n long n = out.getBytes(); \n if (n > 0) count += n;\n }\n return count;\n }", "public long getMessageReceivedCount() {\n return messageMetrics.received.get();\n }", "public static int count() {\n return postEncryptedPaymentRequestCount;\n }", "public int latencyMsgsPerSec()\n\t{\n\t\treturn _latencyMsgsPerSec;\n\t}", "public int getTotalCount() {\n return totalCount;\n }", "@Generated\n @Selector(\"countOfRequestBodyBytesSent\")\n public native long countOfRequestBodyBytesSent();", "public long getByteCount() {\n return byteCount;\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public final int bytesProduced() {\n/* 227 */ return this.bytesProduced;\n/* */ }", "public int getTotalSize() {\n return totalSize_;\n }", "public int getTotalMessageCount() {\n Query query = new Query(\"Message\");\n PreparedQuery results = datastore.prepare(query);\n return results.countEntities(FetchOptions.Builder.withLimit(1000));\n }", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "public int getTotalNumSyncPoints() {\n return (Integer) getProperty(\"numTotalSyncPoints\");\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public int getDeliveredCount() {\n return delivered_.size();\n }", "private int calculateContentBodyFrameCount(ByteBuffer payload)\n {\n int frameCount;\n if ((payload == null) || (payload.remaining() == 0))\n {\n frameCount = 0;\n }\n else\n {\n int dataLength = payload.remaining();\n final long framePayloadMax = _session.getAMQConnection().getMaximumFrameSize() - 1;\n int lastFrame = ((dataLength % framePayloadMax) > 0) ? 1 : 0;\n frameCount = (int) (dataLength / framePayloadMax) + lastFrame;\n }\n\n return frameCount;\n }", "public static int totalSize_entries_receiveEst() {\n return (176 / 8);\n }", "public static int size_receivets() {\n return (32 / 8);\n }", "public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }", "int getDeliveredCount();", "public int numberOfBytes() {\n return this.data.size();\n }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public int getDeliveredCount() {\n if (deliveredBuilder_ == null) {\n return delivered_.size();\n } else {\n return deliveredBuilder_.getCount();\n }\n }", "public long getLength() {\n try {\n Long temp = (Long)replyHeaders.getHeader(HeaderSet.LENGTH);\n\n if (temp == null) {\n return -1;\n } else {\n return temp.longValue();\n }\n } catch (IOException e) {\n return -1;\n }\n }", "public int size() {\n return bytes.length;\n }", "public long getTotalCount() {\n return _totalCount;\n }", "public Long getBytesReceived() {\n\t\treturn bytesReceived;\n\t}", "public long get_p_sendts() {\n return (long)getUIntBEElement(offsetBits_p_sendts(), 32);\n }", "int getMsgCount();", "int getMsgCount();", "@Override\n public int getPayloadByteCount(int valueCount) {\n return 0;\n }", "public long getTotalSize() {\n return totalSize;\n }", "int getTotalLength() {\n synchronized (lock) {\n return cache.getTotalLength();\n }\n }", "public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }", "public Long getTotalCount() {\r\n return totalCount;\r\n }", "public int getSMSCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getSMSCount() SMSCount: \" + _smsCount);\r\n\t\treturn _smsCount;\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "protected long getLiveSetSize() {\n\t\t// Sum of bytes removed from the containers.\n\t\tlong removed = 0;\n\n\t\tfor (int i = 0; i < sets.length; i++)\n\t\t\tremoved += sets[i].getContainer().getBytesRemoved();\n\n\t\t/*\n\t\t * The total number of butes still alive is the throughput minus the number of\n\t\t * bytes either removed from the container or never added in the first place.\n\t\t */\n\t\tlong size = getThroughput() - removed - producerThreadPool.getBytesNeverAdded();\n\n\t\treturn (size > 0) ? size : 0;\n\t}", "public static int sizeBits_p_sendts() {\n return 32;\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "public int length() {\r\n\t\treturn _stream.size();\r\n\t}", "public int getSizeOfSecureMessagePayload() {\r\n\t\treturn this.sizeOfSecureMessagePayload;\r\n\t}", "public int getSubscriptionCount()\n {\n int count;\n\n synchronized (lock)\n {\n count = (subscriptions != null) ? subscriptions.size() : 0;\n }\n\n return count;\n }", "public int getFlowSize()\n\t{\n\t\tint result = 0;\n\t\t\n\t\tfor(Edge e : this.source.getOutgoingEdges())\n\t\t{\n\t\t\tresult += e.getFlow();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public int getNetworkTransmitCount() {\n return networkTransmitCount;\n }", "public int remain() {\n if (sendbuffer == null) {\n return 0;\n }\n return sendbuffer.remaining();\n }", "public static int registeredSize() {\n\t\tInteger count = new Integer(0);\n\t\tObject object = cache.get(FQN_COUNT, LOGGED_COUNT);\n\t\tif (object != null) {\n\t\t\tcount = (Integer) object;\n\t\t}\n\n\t\treturn (count == null ? 0 : count.intValue());\n\t}", "public int getActualPacketLength(byte packet[], int packetLen)\n {\n if (PACKET_LEN_END_OF_STREAM) {\n return ServerSocketThread.PACKET_LEN_END_OF_STREAM;\n } else {\n return ServerSocketThread.PACKET_LEN_LINE_TERMINATOR;\n }\n }" ]
[ "0.7561212", "0.7294042", "0.72354126", "0.72271407", "0.7192883", "0.7035568", "0.6999376", "0.69626623", "0.69612473", "0.6957684", "0.69125265", "0.67941755", "0.6762794", "0.67568284", "0.6728945", "0.67115986", "0.66560096", "0.66089475", "0.66064906", "0.6604592", "0.65749305", "0.65708303", "0.648247", "0.6427561", "0.6421406", "0.63488543", "0.6321497", "0.6287653", "0.6286267", "0.6264765", "0.6254422", "0.62347496", "0.62247765", "0.62050164", "0.62009346", "0.61787593", "0.6173193", "0.6166965", "0.6165008", "0.616171", "0.6140776", "0.6130159", "0.6128026", "0.6092082", "0.60537976", "0.604965", "0.6044071", "0.6032033", "0.6031272", "0.6020611", "0.60128903", "0.6009008", "0.5999877", "0.5983602", "0.5982531", "0.5977493", "0.5977493", "0.5974162", "0.59681314", "0.5960291", "0.5954887", "0.5953269", "0.593718", "0.5932916", "0.5929202", "0.5920205", "0.59120184", "0.5907553", "0.59066176", "0.59038883", "0.59032965", "0.59032965", "0.59032965", "0.58957636", "0.5893288", "0.5893172", "0.5881633", "0.5876995", "0.5874749", "0.58588916", "0.58588916", "0.5853761", "0.58534956", "0.58507085", "0.58449244", "0.582809", "0.582136", "0.58203256", "0.58203256", "0.5813808", "0.58123577", "0.5804696", "0.5802834", "0.57931876", "0.5793181", "0.57869464", "0.5784913", "0.57792914", "0.57749057", "0.57718784" ]
0.6099785
43
Set the total number of RTP payload bytes sent.
public void setBytesSent(Long bytesSent) { this.bytesSent = bytesSent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalPayload(int value) {\n this.totalPayload = value;\n }", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "public int getTotalPayload() {\n return totalPayload;\n }", "@Override\n public int getPayloadByteCount(int valueCount) {\n return 0;\n }", "@Override\n public abstract long getSentBytesCount();", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "int getPayloadCount();", "public int getPayloadCount() {\n return payload_.size();\n }", "public void totalMsgsPerSec(int totalMsgsPerSec)\n\t{\n\t\t_totalMsgsPerSec = totalMsgsPerSec;\n\t}", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "public void setTotalMail(int value) {\n this.totalMail = value;\n }", "public void setNumberOfDeliveredFiles(int value) {\n this.numberOfDeliveredFiles = value;\n }", "public static int size_p_sendts() {\n return (32 / 8);\n }", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "@Override\n public abstract long getReceivedBytesCount();", "protected int getPayloadLength() {\n if (data == null) {\n return 0;\n } else {\n return data.length;\n }\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public void setOutboundNumberOfLengthBytes(int length, SECSItemNumLengthBytes desiredNumberOfLengthBytes)\n {\n if (length < 0 || length > 0x00FFFFFF)\n {\n throw new IllegalArgumentException(\n \"The value for the length argument must be between 0 and 16777215 inclusive.\");\n }\n\n outboundNumberOfLengthBytes = calculateMinimumNumberOfLengthBytes(length);\n if (outboundNumberOfLengthBytes.valueOf() < desiredNumberOfLengthBytes.valueOf())\n {\n outboundNumberOfLengthBytes = desiredNumberOfLengthBytes;\n }\n }", "public void setNbTotalItems(long value) {\n this.nbTotalItems = value;\n }", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "public synchronized void incrementNumSent(){\n numSent++;\n }", "void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }", "public void incMessagesSent() {\n this.messagesSent++;\n }", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "public Builder setServerPayloadSizeBytes(int value) {\n \n serverPayloadSizeBytes_ = value;\n onChanged();\n return this;\n }", "public void setTotalCount(int totalCount) {\n this.totalCount = totalCount;\n }", "public void setBytesReceived(final long newValue)\n {\n m_BytesReceived = newValue;\n }", "public void setSentPackets(Long sentPackets) {\n\t\tthis.sentPackets = sentPackets;\n\t}", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public void setTotalItemCount(Integer totalItemCount) {\n this.totalItemCount = totalItemCount;\n }", "public static void updateTotal(Label totalPacketsCaptured) {\n //Set total number of packets captured\n int totalNumPackets = DatabaseInteraction.getTotalPackets();\n totalPacketsCaptured.setText(String.valueOf(totalNumPackets));\n }", "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "public synchronized int getNumSent(){\n return numSent;\n }", "public void setBytesReceived(Long bytesReceived) {\n\t\tthis.bytesReceived = bytesReceived;\n\t}", "public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "public void setRemainingSms(int value) {\n this.remainingSms = value;\n }", "private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }", "void setNumberOfInstallments(java.math.BigInteger numberOfInstallments);", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "public void setTotalVariables( int totalVars ) ;", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setLength(){\n this.length = 0;\n for (Music track : this.tracks){\n this.length += track.getLength();\n }\n }", "public void setTotalRecords(int totalRecords) {\r\n this.totalRecords = totalRecords;\r\n }", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public void setCount(int pcount) {\r\n if(gzipOp != null) {\r\n throw new IllegalStateException(\"Cannot set count with compression on\");\r\n }\r\n int diff = pcount - bop.getCount();\r\n bop.setCount(pcount);\r\n bytesWrittenSinceSessionStart += diff;\r\n bytesWrittenAtLastAbandonCheck += diff;\r\n }", "public void setLengthOfStay(int len) {\n this.length_of_stay=len;\n }", "private void updateByteCount(int n) {\n\t\tif (byteCount + n > (buffer.length << 3)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tbyteCount += n;\n\t\tif (byteCount == (buffer.length << 3)) {\n\t\t\tflush();\n\t\t}\n\t}", "void setExpectedLength(final int expectedLength) {\n this.vars.put(\"expectedLength\", String.valueOf(expectedLength));\n }", "@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}", "public void setPayload(int data) {\n payload = data;\n }", "public void setRemainingData(int value) {\n this.remainingData = value;\n }", "int getNetTransferMsgsCount();", "public static void setCount(int aCount) {\n count = aCount;\n }", "public static int sizeBits_p_sendts() {\n return 32;\n }", "public static int count() {\n return postEncryptedPaymentRequestCount;\n }", "public void setTotalCount(long totalCount) {\r\n\t\tif (totalCount < 0) {\r\n\t\t\tthis.totalCount = 0;\r\n\t\t} else {\r\n\t\t\tthis.totalCount = totalCount;\r\n\t\t}\r\n\t}", "public static int countReceivedBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "int getServerPayloadSizeBytes();", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "Long payloadLength();", "public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "public void setTotalPassengers(int value) {\n this.totalPassengers = value;\n }", "public void setNumOfActionTaken(int numOfActionTaken) {\n this.numOfActionTaken = numOfActionTaken;\n }", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public int totalMsgsPerSec()\n\t{\n\t\treturn _totalMsgsPerSec;\n\t}", "public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;", "public void setRecordCount(Integer value) {\n this.recordCount = value;\n }", "public int getBufferSize() {\n return count;\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public static int countSentBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }", "public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }", "@Override\n\tpublic void setLen(ByteBuffer fileBytes) {\n\t\tthis.len = fileBytes.getInt();\n\t}", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}", "public static int size_receivets() {\n return (32 / 8);\n }", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "public void setParticipantCount (byte p) {\n\t\tParticipants = p;\n\t}", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "public void setStreamCount(int streamCount) {\n this.streamCount = streamCount;\n }", "public void set_size(int s);", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "@Override\n\tpublic int getMailynCnt() {\n\t\treturn 0;\n\t}", "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "public void setNumberOfAvailableFiles(int value) {\n this.numberOfAvailableFiles = value;\n }", "public int getNetTransferMsgsCount() {\n return netTransferMsgs_.size();\n }", "public int getNumberOfDeliveredFiles() {\n return numberOfDeliveredFiles;\n }", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "private void sendPayloads(int numPayloads) {\n\t\tfor (int i = 0; i < numPayloads; i++) {\n\t\t\tint destination = rand.nextInt(allNodes.length);\n\t\t\twhile (allNodes[destination] == myAssignedID) {\n\t\t\t\tdestination = rand.nextInt(allNodes.length);\n\t\t\t}\n\t\t\tint payload = rand.nextInt();\n\t\t\tthis.sendSummation += payload;\n\t\t\tint[] traceField = { myAssignedID };\n\t\t\tOverlayNodeSendsData dataPacket = new OverlayNodeSendsData(\n\t\t\t\t\tallNodes[destination], myAssignedID, payload, 1, traceField);\n\t\t\ttry {\n\t\t\t\tnodesToSendTo.getConnections()\n\t\t\t\t\t\t.get(relayPayloadDestination(dataPacket)).getSender()\n\t\t\t\t\t\t.sendData(dataPacket.getBytes());\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t\t+ \" trouble sending packet to first hop\");\n\t\t\t}\n\t\t\tthis.sendTracker++;\n\t\t}\n\t\ttry {\n\t\t\tregistry.getSender().sendData(\n\t\t\t\t\tnew OverlayNodeReportsTaskFinished(myIPAddress,\n\t\t\t\t\t\t\tincomingMsgNodes.getPort(), myAssignedID)\n\t\t\t\t\t\t\t.getBytes());\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" trouble reporting task finished.\");\n\t\t}\n\t}" ]
[ "0.6927232", "0.63575053", "0.60952395", "0.6019248", "0.6006549", "0.5990637", "0.5989613", "0.59581655", "0.5900338", "0.5864684", "0.58495563", "0.5783517", "0.5772601", "0.5748937", "0.5681264", "0.56584084", "0.5656919", "0.56448376", "0.56448376", "0.56396353", "0.5631171", "0.56293774", "0.5621372", "0.5588099", "0.5583607", "0.5583607", "0.5583607", "0.55771667", "0.5572581", "0.55700636", "0.55632037", "0.55548465", "0.5550349", "0.5544686", "0.553889", "0.5536851", "0.55319035", "0.5516537", "0.54802924", "0.54419804", "0.5433712", "0.5431356", "0.5427115", "0.5410007", "0.54039294", "0.5403427", "0.53789353", "0.5374942", "0.5368141", "0.53604126", "0.53514284", "0.534802", "0.53393084", "0.5337744", "0.5335335", "0.5333625", "0.5332502", "0.5327517", "0.5322755", "0.53201216", "0.5316382", "0.53072405", "0.53000563", "0.5297617", "0.52932817", "0.52881116", "0.5286354", "0.5281489", "0.5272308", "0.526935", "0.52638924", "0.5259165", "0.5259054", "0.5246674", "0.5240937", "0.52312547", "0.5229452", "0.52228737", "0.5219522", "0.5216244", "0.5212947", "0.5208431", "0.52081305", "0.52016926", "0.5200982", "0.5180829", "0.51792604", "0.517743", "0.5173595", "0.5167398", "0.5163827", "0.51625615", "0.5155344", "0.5154322", "0.51513475", "0.515134", "0.5151213", "0.5150007", "0.5146762", "0.51447153" ]
0.56472975
17
Set the total number of RTP payload bytes sent.
public RealTime withBytesSent(Long bytesSent) { this.bytesSent = bytesSent; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalPayload(int value) {\n this.totalPayload = value;\n }", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "public int getTotalPayload() {\n return totalPayload;\n }", "@Override\n public int getPayloadByteCount(int valueCount) {\n return 0;\n }", "@Override\n public abstract long getSentBytesCount();", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "int getPayloadCount();", "public int getPayloadCount() {\n return payload_.size();\n }", "public void totalMsgsPerSec(int totalMsgsPerSec)\n\t{\n\t\t_totalMsgsPerSec = totalMsgsPerSec;\n\t}", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "public void setTotalMail(int value) {\n this.totalMail = value;\n }", "public void setNumberOfDeliveredFiles(int value) {\n this.numberOfDeliveredFiles = value;\n }", "public static int size_p_sendts() {\n return (32 / 8);\n }", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "@Override\n public abstract long getReceivedBytesCount();", "protected int getPayloadLength() {\n if (data == null) {\n return 0;\n } else {\n return data.length;\n }\n }", "public void setBytesSent(Long bytesSent) {\n\t\tthis.bytesSent = bytesSent;\n\t}", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public void setOutboundNumberOfLengthBytes(int length, SECSItemNumLengthBytes desiredNumberOfLengthBytes)\n {\n if (length < 0 || length > 0x00FFFFFF)\n {\n throw new IllegalArgumentException(\n \"The value for the length argument must be between 0 and 16777215 inclusive.\");\n }\n\n outboundNumberOfLengthBytes = calculateMinimumNumberOfLengthBytes(length);\n if (outboundNumberOfLengthBytes.valueOf() < desiredNumberOfLengthBytes.valueOf())\n {\n outboundNumberOfLengthBytes = desiredNumberOfLengthBytes;\n }\n }", "public void setNbTotalItems(long value) {\n this.nbTotalItems = value;\n }", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "public synchronized void incrementNumSent(){\n numSent++;\n }", "void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }", "public void incMessagesSent() {\n this.messagesSent++;\n }", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "public Builder setServerPayloadSizeBytes(int value) {\n \n serverPayloadSizeBytes_ = value;\n onChanged();\n return this;\n }", "public void setTotalCount(int totalCount) {\n this.totalCount = totalCount;\n }", "public void setBytesReceived(final long newValue)\n {\n m_BytesReceived = newValue;\n }", "public void setSentPackets(Long sentPackets) {\n\t\tthis.sentPackets = sentPackets;\n\t}", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public void setTotalItemCount(Integer totalItemCount) {\n this.totalItemCount = totalItemCount;\n }", "public static void updateTotal(Label totalPacketsCaptured) {\n //Set total number of packets captured\n int totalNumPackets = DatabaseInteraction.getTotalPackets();\n totalPacketsCaptured.setText(String.valueOf(totalNumPackets));\n }", "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "public synchronized int getNumSent(){\n return numSent;\n }", "public void setBytesReceived(Long bytesReceived) {\n\t\tthis.bytesReceived = bytesReceived;\n\t}", "public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final int packets() {\n return this.packets;\n }", "public void setRemainingSms(int value) {\n this.remainingSms = value;\n }", "private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }", "void setNumberOfInstallments(java.math.BigInteger numberOfInstallments);", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "public void setTotalVariables( int totalVars ) ;", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setLength(){\n this.length = 0;\n for (Music track : this.tracks){\n this.length += track.getLength();\n }\n }", "public void setTotalRecords(int totalRecords) {\r\n this.totalRecords = totalRecords;\r\n }", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public void setCount(int pcount) {\r\n if(gzipOp != null) {\r\n throw new IllegalStateException(\"Cannot set count with compression on\");\r\n }\r\n int diff = pcount - bop.getCount();\r\n bop.setCount(pcount);\r\n bytesWrittenSinceSessionStart += diff;\r\n bytesWrittenAtLastAbandonCheck += diff;\r\n }", "public void setLengthOfStay(int len) {\n this.length_of_stay=len;\n }", "private void updateByteCount(int n) {\n\t\tif (byteCount + n > (buffer.length << 3)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tbyteCount += n;\n\t\tif (byteCount == (buffer.length << 3)) {\n\t\t\tflush();\n\t\t}\n\t}", "void setExpectedLength(final int expectedLength) {\n this.vars.put(\"expectedLength\", String.valueOf(expectedLength));\n }", "@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}", "public void setPayload(int data) {\n payload = data;\n }", "public void setRemainingData(int value) {\n this.remainingData = value;\n }", "int getNetTransferMsgsCount();", "public static void setCount(int aCount) {\n count = aCount;\n }", "public static int sizeBits_p_sendts() {\n return 32;\n }", "public static int count() {\n return postEncryptedPaymentRequestCount;\n }", "public void setTotalCount(long totalCount) {\r\n\t\tif (totalCount < 0) {\r\n\t\t\tthis.totalCount = 0;\r\n\t\t} else {\r\n\t\t\tthis.totalCount = totalCount;\r\n\t\t}\r\n\t}", "public static int countReceivedBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "int getServerPayloadSizeBytes();", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "Long payloadLength();", "public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "public void setTotalPassengers(int value) {\n this.totalPassengers = value;\n }", "public void setNumOfActionTaken(int numOfActionTaken) {\n this.numOfActionTaken = numOfActionTaken;\n }", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public int totalMsgsPerSec()\n\t{\n\t\treturn _totalMsgsPerSec;\n\t}", "public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;", "public void setRecordCount(Integer value) {\n this.recordCount = value;\n }", "public int getBufferSize() {\n return count;\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public static int countSentBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }", "public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }", "@Override\n\tpublic void setLen(ByteBuffer fileBytes) {\n\t\tthis.len = fileBytes.getInt();\n\t}", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}", "public static int size_receivets() {\n return (32 / 8);\n }", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "public void setParticipantCount (byte p) {\n\t\tParticipants = p;\n\t}", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "public void setStreamCount(int streamCount) {\n this.streamCount = streamCount;\n }", "public void set_size(int s);", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "@Override\n\tpublic int getMailynCnt() {\n\t\treturn 0;\n\t}", "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "public void setNumberOfAvailableFiles(int value) {\n this.numberOfAvailableFiles = value;\n }", "public int getNetTransferMsgsCount() {\n return netTransferMsgs_.size();\n }", "public int getNumberOfDeliveredFiles() {\n return numberOfDeliveredFiles;\n }", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "private void sendPayloads(int numPayloads) {\n\t\tfor (int i = 0; i < numPayloads; i++) {\n\t\t\tint destination = rand.nextInt(allNodes.length);\n\t\t\twhile (allNodes[destination] == myAssignedID) {\n\t\t\t\tdestination = rand.nextInt(allNodes.length);\n\t\t\t}\n\t\t\tint payload = rand.nextInt();\n\t\t\tthis.sendSummation += payload;\n\t\t\tint[] traceField = { myAssignedID };\n\t\t\tOverlayNodeSendsData dataPacket = new OverlayNodeSendsData(\n\t\t\t\t\tallNodes[destination], myAssignedID, payload, 1, traceField);\n\t\t\ttry {\n\t\t\t\tnodesToSendTo.getConnections()\n\t\t\t\t\t\t.get(relayPayloadDestination(dataPacket)).getSender()\n\t\t\t\t\t\t.sendData(dataPacket.getBytes());\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t\t+ \" trouble sending packet to first hop\");\n\t\t\t}\n\t\t\tthis.sendTracker++;\n\t\t}\n\t\ttry {\n\t\t\tregistry.getSender().sendData(\n\t\t\t\t\tnew OverlayNodeReportsTaskFinished(myIPAddress,\n\t\t\t\t\t\t\tincomingMsgNodes.getPort(), myAssignedID)\n\t\t\t\t\t\t\t.getBytes());\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" trouble reporting task finished.\");\n\t\t}\n\t}" ]
[ "0.6927232", "0.63575053", "0.60952395", "0.6019248", "0.6006549", "0.5990637", "0.5989613", "0.59581655", "0.5900338", "0.5864684", "0.58495563", "0.5783517", "0.5772601", "0.5748937", "0.5681264", "0.56584084", "0.5656919", "0.56472975", "0.56448376", "0.56448376", "0.56396353", "0.5631171", "0.56293774", "0.5621372", "0.5588099", "0.5583607", "0.5583607", "0.5583607", "0.55771667", "0.5572581", "0.55700636", "0.55632037", "0.55548465", "0.5550349", "0.5544686", "0.553889", "0.5536851", "0.55319035", "0.5516537", "0.54802924", "0.54419804", "0.5433712", "0.5431356", "0.5427115", "0.5410007", "0.54039294", "0.5403427", "0.53789353", "0.5374942", "0.5368141", "0.53604126", "0.53514284", "0.534802", "0.53393084", "0.5337744", "0.5335335", "0.5333625", "0.5332502", "0.5327517", "0.5322755", "0.53201216", "0.5316382", "0.53072405", "0.53000563", "0.5297617", "0.52932817", "0.52881116", "0.5286354", "0.5281489", "0.5272308", "0.526935", "0.52638924", "0.5259165", "0.5259054", "0.5246674", "0.5240937", "0.52312547", "0.5229452", "0.52228737", "0.5219522", "0.5216244", "0.5212947", "0.5208431", "0.52081305", "0.52016926", "0.5200982", "0.5180829", "0.51792604", "0.517743", "0.5173595", "0.5167398", "0.5163827", "0.51625615", "0.5155344", "0.5154322", "0.51513475", "0.515134", "0.5151213", "0.5150007", "0.5146762", "0.51447153" ]
0.0
-1
Get the total number of RTP payload bytes received.
public Long getBytesReceived() { return bytesReceived; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTotalPayload() {\n return totalPayload;\n }", "int getPayloadCount();", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "protected int getPayloadLength() {\n if (data == null) {\n return 0;\n } else {\n return data.length;\n }\n }", "@Override\n public abstract long getReceivedBytesCount();", "public int getPayloadCount() {\n return payload_.size();\n }", "int getTotalLength() {\n int totalLength = convertMultipleBytesToPositiveInt(mPacket[IP_TOTAL_LENGTH_HIGH_BYTE_INDEX],\n mPacket[IP_TOTAL_LENGTH_LOW_BYTE_INDEX]);\n return totalLength;\n }", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public static int countReceivedBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "public native long getRetransmittedPacketCount()\n throws IOException, IllegalArgumentException;", "int getNetTransferMsgsCount();", "public int totalMsgsPerSec()\n\t{\n\t\treturn _totalMsgsPerSec;\n\t}", "Long payloadLength();", "public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;", "public int getBytes(){\r\n\t\tint bytes = 0;\r\n\t\tbytes = packet.getLength();\r\n\t\treturn bytes;\r\n\t}", "public int TotalBytes()\n {\n int totalBytes = request.getContentLength();\n if (totalBytes == -1) return 0;\n return totalBytes;\n }", "public int length() {\r\n int length = 1 + 2 + deviceToken.length + 2 + payload.length;\r\n final int marshalledLength = marshall().length;\r\n assert marshalledLength == length;\r\n return length;\r\n }", "public long getMessageReceivedCount() {\n return messageMetrics.received.get();\n }", "long getReceivedEventsCount();", "public int getPacketLength() {\n return TfsConstant.INT_SIZE * 3 + failServer.size() * TfsConstant.LONG_SIZE;\n }", "@Generated\n @Selector(\"countOfResponseBodyBytesReceived\")\n public native long countOfResponseBodyBytesReceived();", "int getServerPayloadSizeBytes();", "private int calculateContentBodyFrameCount(ByteBuffer payload)\n {\n int frameCount;\n if ((payload == null) || (payload.remaining() == 0))\n {\n frameCount = 0;\n }\n else\n {\n int dataLength = payload.remaining();\n final long framePayloadMax = _session.getAMQConnection().getMaximumFrameSize() - 1;\n int lastFrame = ((dataLength % framePayloadMax) > 0) ? 1 : 0;\n frameCount = (int) (dataLength / framePayloadMax) + lastFrame;\n }\n\n return frameCount;\n }", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}", "public static int countReceivedMessages() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countReceivedMessages(messageClassType);\n\n\treturn sum;\n }", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "@Override\n public abstract long getSentBytesCount();", "public long getLength() {\n try {\n Long temp = (Long)replyHeaders.getHeader(HeaderSet.LENGTH);\n\n if (temp == null) {\n return -1;\n } else {\n return temp.longValue();\n }\n } catch (IOException e) {\n return -1;\n }\n }", "public int getDataMessagesReceived() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMessages().size() - c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}", "public int getNetTransferMsgsCount() {\n return netTransferMsgs_.size();\n }", "private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }", "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "public static int totalSize_entries_receiveEst() {\n return (176 / 8);\n }", "public native long getSentByteCount()\n throws IOException, IllegalArgumentException;", "public final int getTotalBytes() {\n return this.totalBytes;\n }", "public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }", "public int getDecodedStreamLength()\n {\n return this.stream.getInt(COSName.DL);\n }", "public static int size_p_sendts() {\n return (32 / 8);\n }", "public int getTotalSize() {\n return totalSize_;\n }", "private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "int getTotalLength() {\n synchronized (lock) {\n return cache.getTotalLength();\n }\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public static int size_receivets() {\n return (32 / 8);\n }", "Long getCountTotalRecords(Long transmissionId);", "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "@Override\n public int getPayloadByteCount(int valueCount) {\n return 0;\n }", "public Long getRcvPackets() {\n\t\treturn rcvPackets;\n\t}", "public long getByteCount() {\n return byteCount;\n }", "public int getActualPacketLength(byte packet[], int packetLen)\n {\n if (PACKET_LEN_END_OF_STREAM) {\n return ServerSocketThread.PACKET_LEN_END_OF_STREAM;\n } else {\n return ServerSocketThread.PACKET_LEN_LINE_TERMINATOR;\n }\n }", "public long getTotalSize() {\n return totalSize;\n }", "public int getSizeOfSecureMessagePayload() {\r\n\t\treturn this.sizeOfSecureMessagePayload;\r\n\t}", "public int getLength() {\r\n\t\treturn messageData.length;\r\n\t}", "public void setTotalPayload(int value) {\n this.totalPayload = value;\n }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public int receiveNumCards() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Number of cards not received\");\n e.printStackTrace();\n }\n return 0;\n }", "public int numberOfBytes() {\n return this.data.size();\n }", "public int length() {\r\n\t\treturn _stream.size();\r\n\t}", "public int getPayload() {\n return payload;\n }", "public final int bytesProduced() {\n/* 227 */ return this.bytesProduced;\n/* */ }", "int getMsgCount();", "int getMsgCount();", "public int getTotalCount() {\n return totalCount;\n }", "public long getSize() {\n\t\treturn this.payloadSize; // UTF-16 => 2 bytes per character\n\t}", "public int size() {\n return bytes.length;\n }", "public int getDecodedStreamLength() {\n/* 567 */ return this.stream.getInt(COSName.DL);\n/* */ }", "public SECSItemNumLengthBytes getInboundNumberOfLengthBytes()\n {\n return inboundNumberOfLengthBytes;\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }", "public int getTotalMessageCount() {\n Query query = new Query(\"Message\");\n PreparedQuery results = datastore.prepare(query);\n return results.countEntities(FetchOptions.Builder.withLimit(1000));\n }", "@Generated\n @Selector(\"countOfResponseBodyBytesAfterDecoding\")\n public native long countOfResponseBodyBytesAfterDecoding();", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "protected long getLiveSetSize() {\n\t\t// Sum of bytes removed from the containers.\n\t\tlong removed = 0;\n\n\t\tfor (int i = 0; i < sets.length; i++)\n\t\t\tremoved += sets[i].getContainer().getBytesRemoved();\n\n\t\t/*\n\t\t * The total number of butes still alive is the throughput minus the number of\n\t\t * bytes either removed from the container or never added in the first place.\n\t\t */\n\t\tlong size = getThroughput() - removed - producerThreadPool.getBytesNeverAdded();\n\n\t\treturn (size > 0) ? size : 0;\n\t}", "public long length() {\r\n return 1 + 4 + buffer.length;\r\n }", "public int getLengthInBytes()\n {\n return lengthInBytes;\n }", "public int getSubscriptionCount()\n {\n int count;\n\n synchronized (lock)\n {\n count = (subscriptions != null) ? subscriptions.size() : 0;\n }\n\n return count;\n }", "public int getFrameByteCount() {\n return mMetaData[0] * mMetaData[1] * 4;\n }", "public long getTotalCount() {\n return _totalCount;\n }", "public int latencyMsgsPerSec()\n\t{\n\t\treturn _latencyMsgsPerSec;\n\t}", "public long getBodySize() {\n\t\t\tif (this.headers.containsKey(\"content-length\")) {\n\t\t\t\treturn Long.parseLong(this.headers.get(\"content-length\"));\n\t\t\t} else if (this.splitbyte < this.rlen) {\n\t\t\t\treturn this.rlen - this.splitbyte;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "public final int length() {\n return this.data.remaining();\n }", "public final int getRecordSize()\n\t{\n\t\treturn tarBuffer.getRecordSize();\n\t}", "int getDeliveredCount();", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }", "public int length()\n\t{\n\t\tif ( properties != null && properties.containsKey(\"ogg.length.bytes\") )\n\t\t{\n\t\t\tlengthInMillis = VobisBytes2Millis((Integer)properties.get(\"ogg.length.bytes\"));\n\t\t\tSystem.out.println(\"GOT LENGTH: \"+lengthInMillis);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlengthInMillis = -1;\n\t\t}\n\t\treturn (int)lengthInMillis;\n\t}", "public static long getTotalLengthOfInput() {\n return lengthOfInput;\n }", "public final int Available() {\n\t\treturn m_rxlen;\n\t}", "public int size() {\n return 4 + value.length + BufferUtil.paddingLength(value.length, 4);\n }", "public Long getTotalCount() {\r\n return totalCount;\r\n }", "public static int count() {\n return postEncryptedPaymentRequestCount;\n }", "public int getRecordSize() {\n\t\treturn this.buffer.getRecordSize();\n\t\t}" ]
[ "0.77152264", "0.7322022", "0.73027307", "0.72124225", "0.70248204", "0.7011464", "0.6998618", "0.69906765", "0.68478173", "0.67684555", "0.6670928", "0.66195637", "0.6585805", "0.6558379", "0.65074337", "0.65056473", "0.64401424", "0.6406453", "0.6404636", "0.63817626", "0.63444304", "0.6306708", "0.62948865", "0.62841684", "0.6269876", "0.62271184", "0.6220572", "0.6192142", "0.615572", "0.6121669", "0.60894984", "0.6070074", "0.60647804", "0.6059108", "0.6056715", "0.60242534", "0.6012428", "0.59982616", "0.59836936", "0.59808695", "0.597018", "0.5963906", "0.59592885", "0.5953641", "0.5951251", "0.5950868", "0.5943582", "0.5938903", "0.59354967", "0.5932157", "0.59271187", "0.5907542", "0.5899508", "0.588865", "0.58877057", "0.5880612", "0.5856784", "0.5850605", "0.5842939", "0.5842939", "0.5842939", "0.5842608", "0.5815011", "0.5804432", "0.5801849", "0.57957363", "0.5781195", "0.5781195", "0.577234", "0.5771649", "0.5761012", "0.5751133", "0.57499635", "0.5748397", "0.5748397", "0.57445484", "0.57416105", "0.57401097", "0.5735625", "0.573445", "0.5731259", "0.5728153", "0.57221735", "0.57161003", "0.5713963", "0.5701184", "0.56956345", "0.5692299", "0.5690876", "0.56849253", "0.56794375", "0.5672828", "0.5663594", "0.5658595", "0.56573313", "0.5648307", "0.56340367", "0.5628818", "0.56197166", "0.5618937" ]
0.60717964
31
Set the total number of RTP payload bytes received.
public void setBytesReceived(Long bytesReceived) { this.bytesReceived = bytesReceived; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalPayload(int value) {\n this.totalPayload = value;\n }", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "public int getTotalPayload() {\n return totalPayload;\n }", "int getPayloadCount();", "@Override\n public int getPayloadByteCount(int valueCount) {\n return 0;\n }", "public int getPayloadCount() {\n return payload_.size();\n }", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "protected int getPayloadLength() {\n if (data == null) {\n return 0;\n } else {\n return data.length;\n }\n }", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "@Override\n public abstract long getReceivedBytesCount();", "public void setBytesReceived(final long newValue)\n {\n m_BytesReceived = newValue;\n }", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "public void setOutboundNumberOfLengthBytes(int length, SECSItemNumLengthBytes desiredNumberOfLengthBytes)\n {\n if (length < 0 || length > 0x00FFFFFF)\n {\n throw new IllegalArgumentException(\n \"The value for the length argument must be between 0 and 16777215 inclusive.\");\n }\n\n outboundNumberOfLengthBytes = calculateMinimumNumberOfLengthBytes(length);\n if (outboundNumberOfLengthBytes.valueOf() < desiredNumberOfLengthBytes.valueOf())\n {\n outboundNumberOfLengthBytes = desiredNumberOfLengthBytes;\n }\n }", "public void totalMsgsPerSec(int totalMsgsPerSec)\n\t{\n\t\t_totalMsgsPerSec = totalMsgsPerSec;\n\t}", "public void setRemainingData(int value) {\n this.remainingData = value;\n }", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public void setNumberOfDeliveredFiles(int value) {\n this.numberOfDeliveredFiles = value;\n }", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }", "Long payloadLength();", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "public Builder setServerPayloadSizeBytes(int value) {\n \n serverPayloadSizeBytes_ = value;\n onChanged();\n return this;\n }", "public void setPayload(int data) {\n payload = data;\n }", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "public void setNbTotalItems(long value) {\n this.nbTotalItems = value;\n }", "public void setTotalMail(int value) {\n this.totalMail = value;\n }", "public static void updateTotal(Label totalPacketsCaptured) {\n //Set total number of packets captured\n int totalNumPackets = DatabaseInteraction.getTotalPackets();\n totalPacketsCaptured.setText(String.valueOf(totalNumPackets));\n }", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public void setTotalItemCount(Integer totalItemCount) {\n this.totalItemCount = totalItemCount;\n }", "int getServerPayloadSizeBytes();", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }", "public void setTotalVariables( int totalVars ) ;", "public void setRemainingSms(int value) {\n this.remainingSms = value;\n }", "public void setRecordCount(Integer value) {\n this.recordCount = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }", "public void setTotalCount(int totalCount) {\n this.totalCount = totalCount;\n }", "void setExpectedLength(final int expectedLength) {\n this.vars.put(\"expectedLength\", String.valueOf(expectedLength));\n }", "public void setTotalRecords(int totalRecords) {\r\n this.totalRecords = totalRecords;\r\n }", "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "public int getTotalSize() {\n return totalSize_;\n }", "public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }", "public int getBufferSize() {\n return count;\n }", "void setNumberOfInstallments(java.math.BigInteger numberOfInstallments);", "public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }", "public void setLength(){\n this.length = 0;\n for (Music track : this.tracks){\n this.length += track.getLength();\n }\n }", "@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}", "public int getTotalSize() {\n return totalSize_;\n }", "@Override\n\tpublic void setLen(ByteBuffer fileBytes) {\n\t\tthis.len = fileBytes.getInt();\n\t}", "public static int size_receivets() {\n return (32 / 8);\n }", "int getNetTransferMsgsCount();", "@Override\n public abstract long getSentBytesCount();", "public final void setPayload(final ByteBuffer payload) {\n\n if (logger.isLoggable(Level.FINER)) {\n logger.finer(this.log.entry(\"UdpPacket.setPayload\", payload));\n }\n\n this.payload = payload.slice();\n setLength((short) (getHeaderLength() + this.payload.limit()));\n }", "public void setNumberOfAvailableFiles(int value) {\n this.numberOfAvailableFiles = value;\n }", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}", "public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }", "void setFoundLength(final int foundLength) {\n this.vars.put(\"foundLength\", String.valueOf(foundLength));\n }", "private void updateByteCount(int n) {\n\t\tif (byteCount + n > (buffer.length << 3)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tbyteCount += n;\n\t\tif (byteCount == (buffer.length << 3)) {\n\t\t\tflush();\n\t\t}\n\t}", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "long throttleByteCount() {\n return parseLong(settings.get(THROTTLE_BYTE_COUNT), Long.MAX_VALUE);\n }", "public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "public void setNumberOfRestraunts(int _numberOfRestraunts){\n \n numberOfRestraunts = _numberOfRestraunts;\n }", "public int getPacketLength() {\n return TfsConstant.INT_SIZE * 3 + failServer.size() * TfsConstant.LONG_SIZE;\n }", "public void setLengthOfStay(int len) {\n this.length_of_stay=len;\n }", "public void setTotalCount(long totalCount) {\r\n\t\tif (totalCount < 0) {\r\n\t\t\tthis.totalCount = 0;\r\n\t\t} else {\r\n\t\t\tthis.totalCount = totalCount;\r\n\t\t}\r\n\t}", "public void setLength(long length);", "public void setLength(long length);", "public void setCount(int count)\r\n\t{\r\n\t}", "long countMessageLengthTill(long maxLength) throws IllegalStateException;", "public void setDecodedStreamLength(int decodedStreamLength) {\n/* 577 */ this.stream.setInt(COSName.DL, decodedStreamLength);\n/* */ }", "public long getTotalSize() {\n return totalSize;\n }", "void calculateAndSetBodyLength(TranscoderContext context);", "public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }", "public static int countReceivedBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "public int totalMsgsPerSec()\n\t{\n\t\treturn _totalMsgsPerSec;\n\t}", "long throttleByteCount() {\n return parseLong(get(THROTTLE_BYTE_COUNT), Long.MAX_VALUE);\n }", "@JsProperty(name = \"length\")\n public native void setLength(@DoNotAutobox Number value);", "private int calculateContentBodyFrameCount(ByteBuffer payload)\n {\n int frameCount;\n if ((payload == null) || (payload.remaining() == 0))\n {\n frameCount = 0;\n }\n else\n {\n int dataLength = payload.remaining();\n final long framePayloadMax = _session.getAMQConnection().getMaximumFrameSize() - 1;\n int lastFrame = ((dataLength % framePayloadMax) > 0) ? 1 : 0;\n frameCount = (int) (dataLength / framePayloadMax) + lastFrame;\n }\n\n return frameCount;\n }", "int getTotalLength() {\n int totalLength = convertMultipleBytesToPositiveInt(mPacket[IP_TOTAL_LENGTH_HIGH_BYTE_INDEX],\n mPacket[IP_TOTAL_LENGTH_LOW_BYTE_INDEX]);\n return totalLength;\n }", "public int getReceiveBufferSize() {\n return soRcvBuf;\n }", "@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}", "public static int size_p_sendts() {\n return (32 / 8);\n }", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "@Generated\n @Selector(\"countOfResponseBodyBytesReceived\")\n public native long countOfResponseBodyBytesReceived();", "public static void setCount(int aCount) {\n count = aCount;\n }", "void setLength( long length );", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "public static int totalSize_entries_receiveEst() {\n return (176 / 8);\n }" ]
[ "0.7102727", "0.652656", "0.6351674", "0.61389", "0.6130066", "0.60837305", "0.6051543", "0.5990278", "0.5920412", "0.58372754", "0.57904404", "0.57531893", "0.5722602", "0.5688833", "0.5681075", "0.5675947", "0.56222475", "0.56175137", "0.5616031", "0.56032646", "0.5581383", "0.5574658", "0.5564928", "0.5516222", "0.5497936", "0.54717606", "0.5439276", "0.54337025", "0.5431194", "0.5431194", "0.5428538", "0.54202217", "0.53932554", "0.5388895", "0.537882", "0.5375033", "0.5370846", "0.5370846", "0.5370846", "0.53662735", "0.5351123", "0.5348685", "0.53407097", "0.5329878", "0.53194827", "0.53172624", "0.53170335", "0.5294953", "0.52928305", "0.5285261", "0.5285021", "0.5284548", "0.5282801", "0.5276485", "0.5267756", "0.526723", "0.52584445", "0.52261686", "0.5214609", "0.52144647", "0.5210045", "0.52100277", "0.5195733", "0.5189624", "0.51813906", "0.51798654", "0.5170715", "0.516577", "0.5164296", "0.51545155", "0.51465243", "0.51441866", "0.5137977", "0.51373476", "0.51373476", "0.51365346", "0.5135068", "0.5124562", "0.51186067", "0.5112952", "0.51126415", "0.51098484", "0.51016384", "0.51016384", "0.50970936", "0.5095904", "0.50846887", "0.50803924", "0.50765795", "0.5075671", "0.50727636", "0.50717485", "0.5071205", "0.507073", "0.50635684", "0.5058359", "0.5048305", "0.50468415", "0.5046827", "0.50438446" ]
0.5673843
16
Set the total number of RTP payload bytes received.
public RealTime withBytesReceived(Long bytesReceived) { this.bytesReceived = bytesReceived; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalPayload(int value) {\n this.totalPayload = value;\n }", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "public int getTotalPayload() {\n return totalPayload;\n }", "int getPayloadCount();", "@Override\n public int getPayloadByteCount(int valueCount) {\n return 0;\n }", "public int getPayloadCount() {\n return payload_.size();\n }", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "protected int getPayloadLength() {\n if (data == null) {\n return 0;\n } else {\n return data.length;\n }\n }", "public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n return payloadBuilder_.getCount();\n }\n }", "@Override\n public abstract long getReceivedBytesCount();", "public void setBytesReceived(final long newValue)\n {\n m_BytesReceived = newValue;\n }", "public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }", "public void setOutboundNumberOfLengthBytes(int length, SECSItemNumLengthBytes desiredNumberOfLengthBytes)\n {\n if (length < 0 || length > 0x00FFFFFF)\n {\n throw new IllegalArgumentException(\n \"The value for the length argument must be between 0 and 16777215 inclusive.\");\n }\n\n outboundNumberOfLengthBytes = calculateMinimumNumberOfLengthBytes(length);\n if (outboundNumberOfLengthBytes.valueOf() < desiredNumberOfLengthBytes.valueOf())\n {\n outboundNumberOfLengthBytes = desiredNumberOfLengthBytes;\n }\n }", "public void totalMsgsPerSec(int totalMsgsPerSec)\n\t{\n\t\t_totalMsgsPerSec = totalMsgsPerSec;\n\t}", "public void setRemainingData(int value) {\n this.remainingData = value;\n }", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public void setBytesReceived(Long bytesReceived) {\n\t\tthis.bytesReceived = bytesReceived;\n\t}", "public void setNumberOfDeliveredFiles(int value) {\n this.numberOfDeliveredFiles = value;\n }", "private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }", "Long payloadLength();", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "public Builder setServerPayloadSizeBytes(int value) {\n \n serverPayloadSizeBytes_ = value;\n onChanged();\n return this;\n }", "public void setPayload(int data) {\n payload = data;\n }", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "public void setNbTotalItems(long value) {\n this.nbTotalItems = value;\n }", "public void setTotalMail(int value) {\n this.totalMail = value;\n }", "public static void updateTotal(Label totalPacketsCaptured) {\n //Set total number of packets captured\n int totalNumPackets = DatabaseInteraction.getTotalPackets();\n totalPacketsCaptured.setText(String.valueOf(totalNumPackets));\n }", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfStorageMessage(int value) {\n \n numOfStorageMessage_ = value;\n onChanged();\n return this;\n }", "public void setTotalItemCount(Integer totalItemCount) {\n this.totalItemCount = totalItemCount;\n }", "int getServerPayloadSizeBytes();", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }", "public void setTotalVariables( int totalVars ) ;", "public void setRemainingSms(int value) {\n this.remainingSms = value;\n }", "public void setRecordCount(Integer value) {\n this.recordCount = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }", "public void setTotalCount(int totalCount) {\n this.totalCount = totalCount;\n }", "void setExpectedLength(final int expectedLength) {\n this.vars.put(\"expectedLength\", String.valueOf(expectedLength));\n }", "public void setTotalRecords(int totalRecords) {\r\n this.totalRecords = totalRecords;\r\n }", "public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}", "public int getTotalSize() {\n return totalSize_;\n }", "public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }", "public int getBufferSize() {\n return count;\n }", "void setNumberOfInstallments(java.math.BigInteger numberOfInstallments);", "public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }", "public void setLength(){\n this.length = 0;\n for (Music track : this.tracks){\n this.length += track.getLength();\n }\n }", "@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}", "public int getTotalSize() {\n return totalSize_;\n }", "@Override\n\tpublic void setLen(ByteBuffer fileBytes) {\n\t\tthis.len = fileBytes.getInt();\n\t}", "public static int size_receivets() {\n return (32 / 8);\n }", "int getNetTransferMsgsCount();", "@Override\n public abstract long getSentBytesCount();", "public final void setPayload(final ByteBuffer payload) {\n\n if (logger.isLoggable(Level.FINER)) {\n logger.finer(this.log.entry(\"UdpPacket.setPayload\", payload));\n }\n\n this.payload = payload.slice();\n setLength((short) (getHeaderLength() + this.payload.limit()));\n }", "public void setNumberOfAvailableFiles(int value) {\n this.numberOfAvailableFiles = value;\n }", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}", "public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }", "void setFoundLength(final int foundLength) {\n this.vars.put(\"foundLength\", String.valueOf(foundLength));\n }", "private void updateByteCount(int n) {\n\t\tif (byteCount + n > (buffer.length << 3)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tbyteCount += n;\n\t\tif (byteCount == (buffer.length << 3)) {\n\t\t\tflush();\n\t\t}\n\t}", "int getByteCount() {\n\t\treturn byteCount;\n\t}", "long throttleByteCount() {\n return parseLong(settings.get(THROTTLE_BYTE_COUNT), Long.MAX_VALUE);\n }", "public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "public void setNumberOfRestraunts(int _numberOfRestraunts){\n \n numberOfRestraunts = _numberOfRestraunts;\n }", "public int getPacketLength() {\n return TfsConstant.INT_SIZE * 3 + failServer.size() * TfsConstant.LONG_SIZE;\n }", "public void setLengthOfStay(int len) {\n this.length_of_stay=len;\n }", "public void setTotalCount(long totalCount) {\r\n\t\tif (totalCount < 0) {\r\n\t\t\tthis.totalCount = 0;\r\n\t\t} else {\r\n\t\t\tthis.totalCount = totalCount;\r\n\t\t}\r\n\t}", "public void setLength(long length);", "public void setLength(long length);", "public void setCount(int count)\r\n\t{\r\n\t}", "long countMessageLengthTill(long maxLength) throws IllegalStateException;", "public void setDecodedStreamLength(int decodedStreamLength) {\n/* 577 */ this.stream.setInt(COSName.DL, decodedStreamLength);\n/* */ }", "public long getTotalSize() {\n return totalSize;\n }", "void calculateAndSetBodyLength(TranscoderContext context);", "public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }", "public static int countReceivedBytes() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countSentBytes(messageClassType);\n\n\treturn sum;\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }", "public int totalMsgsPerSec()\n\t{\n\t\treturn _totalMsgsPerSec;\n\t}", "long throttleByteCount() {\n return parseLong(get(THROTTLE_BYTE_COUNT), Long.MAX_VALUE);\n }", "@JsProperty(name = \"length\")\n public native void setLength(@DoNotAutobox Number value);", "private int calculateContentBodyFrameCount(ByteBuffer payload)\n {\n int frameCount;\n if ((payload == null) || (payload.remaining() == 0))\n {\n frameCount = 0;\n }\n else\n {\n int dataLength = payload.remaining();\n final long framePayloadMax = _session.getAMQConnection().getMaximumFrameSize() - 1;\n int lastFrame = ((dataLength % framePayloadMax) > 0) ? 1 : 0;\n frameCount = (int) (dataLength / framePayloadMax) + lastFrame;\n }\n\n return frameCount;\n }", "int getTotalLength() {\n int totalLength = convertMultipleBytesToPositiveInt(mPacket[IP_TOTAL_LENGTH_HIGH_BYTE_INDEX],\n mPacket[IP_TOTAL_LENGTH_LOW_BYTE_INDEX]);\n return totalLength;\n }", "public int getReceiveBufferSize() {\n return soRcvBuf;\n }", "@Override\n\tpublic void SetLength(long value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream SetLength not supported\");\n\t}", "public static int size_p_sendts() {\n return (32 / 8);\n }", "public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "@Generated\n @Selector(\"countOfResponseBodyBytesReceived\")\n public native long countOfResponseBodyBytesReceived();", "public static void setCount(int aCount) {\n count = aCount;\n }", "void setLength( long length );", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "public static int totalSize_entries_receiveEst() {\n return (176 / 8);\n }" ]
[ "0.7102727", "0.652656", "0.6351674", "0.61389", "0.6130066", "0.60837305", "0.6051543", "0.5990278", "0.5920412", "0.58372754", "0.57904404", "0.57531893", "0.5722602", "0.5688833", "0.5681075", "0.5675947", "0.5673843", "0.56222475", "0.56175137", "0.5616031", "0.56032646", "0.5581383", "0.5574658", "0.5564928", "0.5516222", "0.5497936", "0.54717606", "0.5439276", "0.54337025", "0.5431194", "0.5431194", "0.5428538", "0.54202217", "0.53932554", "0.5388895", "0.537882", "0.5375033", "0.5370846", "0.5370846", "0.5370846", "0.53662735", "0.5351123", "0.5348685", "0.53407097", "0.5329878", "0.53194827", "0.53172624", "0.53170335", "0.5294953", "0.52928305", "0.5285261", "0.5285021", "0.5284548", "0.5282801", "0.5276485", "0.5267756", "0.526723", "0.52584445", "0.52261686", "0.5214609", "0.52144647", "0.5210045", "0.52100277", "0.5195733", "0.5189624", "0.51813906", "0.51798654", "0.5170715", "0.516577", "0.5164296", "0.51545155", "0.51465243", "0.51441866", "0.5137977", "0.51373476", "0.51373476", "0.51365346", "0.5135068", "0.5124562", "0.51186067", "0.5112952", "0.51126415", "0.51098484", "0.51016384", "0.51016384", "0.50970936", "0.5095904", "0.50846887", "0.50803924", "0.50765795", "0.5075671", "0.50727636", "0.50717485", "0.5071205", "0.507073", "0.50635684", "0.5058359", "0.5048305", "0.50468415", "0.5046827", "0.50438446" ]
0.0
-1
Get the this object contains performances relating to Real Time Transport using RTP.
public Perf getPerf() { return perf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPerformanceTime()\r\n {\r\n return performanceTime;\r\n }", "public RTPSourceInfo getRTPSourceInfo() {\n return this.sourceInfo;\n }", "public long getLatency() {\n return latency;\n }", "public String getPerformanceName()\r\n {\r\n return performanceName;\r\n }", "public TransmissionStats\n getSourceTransmissionStats();", "public abstract PerformanceEntry[] getPerformanceEntries();", "public Properties getPerformanceTuningSettings() {\n return mPerformanceTuningSettings;\n }", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "public Transports getTransports();", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "public Float getTraffic() {\r\n return traffic;\r\n }", "public TimingSource getTimingSource() {\n return f_timingSource;\n }", "protected static ArrayList<Object> preProcessTrafficData() throws IOException {\r\n String stringResponse = makeGetRequest(URL_TRAFFIC_SOURCE);\r\n Map<String, Object> mapResponse = new Gson().fromJson(stringResponse, Map.class);\r\n ArrayList<Object> listTraffics = (ArrayList<Object>) mapResponse.get(\"features\");\r\n return listTraffics;\r\n }", "public Double latency() {\n return this.latency;\n }", "public java.util.List<org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed> getTurnSpeedList()\r\n {\r\n final class TurnSpeedList extends java.util.AbstractList<org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed>\r\n {\r\n public org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed get(int i)\r\n { return IntersectionImpl.this.getTurnSpeedArray(i); }\r\n \r\n public org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed set(int i, org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed o)\r\n {\r\n org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed old = IntersectionImpl.this.getTurnSpeedArray(i);\r\n IntersectionImpl.this.setTurnSpeedArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed o)\r\n { IntersectionImpl.this.insertNewTurnSpeed(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed remove(int i)\r\n {\r\n org.landxml.schema.landXML11.TurnSpeedDocument.TurnSpeed old = IntersectionImpl.this.getTurnSpeedArray(i);\r\n IntersectionImpl.this.removeTurnSpeed(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfTurnSpeedArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new TurnSpeedList();\r\n }\r\n }", "public Field getPerformanceRequirements() {\n\t\treturn _performanceReq;\n\t}", "public double getTraffic() {\n return traffic;\n }", "public List<TPStatsInfo> getTPStats() {\n List<TPStatsInfo> tpstats = new ArrayList<>();\n Iterator<Map.Entry<String, JMXEnabledThreadPoolExecutorMBean>> threads = nodeProbe.getThreadPoolMBeanProxies();\n while (threads.hasNext()) {\n Map.Entry<String, JMXEnabledThreadPoolExecutorMBean> thread = threads.next();\n JMXEnabledThreadPoolExecutorMBean threadPoolProxy = thread.getValue();\n tpstats.add(new TPStatsInfo(thread.getKey(), threadPoolProxy.getActiveCount(),\n threadPoolProxy.getPendingTasks(), threadPoolProxy.getCompletedTasks(),\n threadPoolProxy.getCurrentlyBlockedTasks(), threadPoolProxy.getTotalBlockedTasks()));\n }\n return tpstats;\n }", "List<Transport> getTransports();", "public Transports getTransportsUsed();", "public String getPerformanceDate()\r\n {\r\n return performanceDate;\r\n }", "public double getAcademicPerformance()\n {\n return academicPerformance;\n }", "public TransmissionAndSpeed getSpeed()\n {\n\treturn this.speed;\n }", "public double getTrafficFromEachSuperAS() {\n return this.trafficFromSuperAS;\n }", "public List<TrafficWeight> traffic() {\n return this.traffic;\n }", "public DatasetPerformance getDatasetPerformance() {\n return this.datasetPerformance;\n }", "public java.util.List<org.landxml.schema.landXML11.TimingDocument.Timing> getTimingList()\r\n {\r\n final class TimingList extends java.util.AbstractList<org.landxml.schema.landXML11.TimingDocument.Timing>\r\n {\r\n public org.landxml.schema.landXML11.TimingDocument.Timing get(int i)\r\n { return IntersectionImpl.this.getTimingArray(i); }\r\n \r\n public org.landxml.schema.landXML11.TimingDocument.Timing set(int i, org.landxml.schema.landXML11.TimingDocument.Timing o)\r\n {\r\n org.landxml.schema.landXML11.TimingDocument.Timing old = IntersectionImpl.this.getTimingArray(i);\r\n IntersectionImpl.this.setTimingArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.TimingDocument.Timing o)\r\n { IntersectionImpl.this.insertNewTiming(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.TimingDocument.Timing remove(int i)\r\n {\r\n org.landxml.schema.landXML11.TimingDocument.Timing old = IntersectionImpl.this.getTimingArray(i);\r\n IntersectionImpl.this.removeTiming(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfTimingArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new TimingList();\r\n }\r\n }", "public BigDecimal getTotalLatency() {\n return totalLatency;\n }", "@java.lang.Override\n public boolean getUsePlayerBasedSampling() {\n return usePlayerBasedSampling_;\n }", "public interface RTPConnector\n{\n public void close();\n\n public PushSourceStream getControlInputStream() throws IOException;\n\n public OutputDataStream getControlOutputStream() throws IOException;\n\n public PushSourceStream getDataInputStream() throws IOException;\n\n public OutputDataStream getDataOutputStream() throws IOException;\n\n public int getReceiveBufferSize();\n\n public double getRTCPBandwidthFraction();\n\n public double getRTCPSenderBandwidthFraction();\n\n public int getSendBufferSize();\n\n public void setReceiveBufferSize(int size) throws IOException;\n\n public void setSendBufferSize(int size) throws IOException;\n\n}", "public ArrayList<TransportView> getTransportViews () {\n return _transportViews;\n }", "public Collection getQualityResults()\r\n {\r\n return mQualityResults;\r\n }", "public Map<Employee,String> getPerformancemap(){\r\n\t\treturn performance;\r\n\t}", "public Float getItraffic() {\r\n return itraffic;\r\n }", "public int getSamplingRate() {\n return samplingRate;\n }", "public int getRXRReps() { \r\n \treturn getReps(\"RXR\");\r\n }", "protected double getDataRate() {\n\t\treturn (double) getThroughput() / (double) getElapsedTime();\n\t}", "@java.lang.Override\n public boolean getUsePlayerBasedSampling() {\n return usePlayerBasedSampling_;\n }", "private void getRTPStream(String session, String source, int portl, int portr, int payloadFormat ){\n \t InetAddress addr;\r\n \t\ttry {\r\n \t\t\taddr = InetAddress.getLocalHost();\r\n \t\t // Get IP Address\r\n // \t\t\tLAN_IP_ADDR = addr.getHostAddress();\r\n \t\t\tLAN_IP_ADDR = \"192.168.1.125\";\r\n \t\t\tLog.d(TAG, \"using client IP addr \" +LAN_IP_ADDR);\r\n \t\t \r\n \t\t} catch (UnknownHostException e1) {\r\n \t\t\t// TODO Auto-generated catch block\r\n \t\t\te1.printStackTrace();\r\n \t\t}\r\n\r\n \t\t\r\n final CountDownLatch latch = new CountDownLatch(2);\r\n\r\n RtpParticipant local1 = RtpParticipant.createReceiver(new RtpParticipantInfo(1), LAN_IP_ADDR, portl, portl+=1);\r\n // RtpParticipant local1 = RtpParticipant.createReceiver(new RtpParticipantInfo(1), \"127.0.0.1\", portl, portl+=1);\r\n RtpParticipant remote1 = RtpParticipant.createReceiver(new RtpParticipantInfo(2), source, portr, portr+=1);\r\n \r\n \r\n remote1.getInfo().setSsrc( Long.parseLong(ssrc, 16));\r\n session1 = new SingleParticipantSession(session, payloadFormat, local1, remote1);\r\n \r\n Log.d(TAG, \"remote ssrc \" +session1.getRemoteParticipant().getInfo().getSsrc());\r\n \r\n session1.init();\r\n \r\n session1.addDataListener(new RtpSessionDataListener() {\r\n @Override\r\n public void dataPacketReceived(RtpSession session, RtpParticipantInfo participant, DataPacket packet) {\r\n // System.err.println(\"Session 1 received packet: \" + packet + \"(session: \" + session.getId() + \")\");\r\n \t//TODO close the file, flush the buffer\r\n// \tif (_sink != null) _sink.getPackByte(packet);\r\n \tgetPackByte(packet);\r\n \t\r\n // \tSystem.err.println(\"Ssn 1 packet seqn: typ: datasz \" +packet.getSequenceNumber() + \" \" +packet.getPayloadType() +\" \" +packet.getDataSize());\r\n // \tSystem.err.println(\"Ssn 1 packet sessn: typ: datasz \" + session.getId() + \" \" +packet.getPayloadType() +\" \" +packet.getDataSize());\r\n // latch.countDown();\r\n }\r\n\r\n });\r\n // DataPacket packet = new DataPacket();\r\n // packet.setData(new byte[]{0x45, 0x45, 0x45, 0x45});\r\n // packet.setSequenceNumber(1);\r\n // session1.sendDataPacket(packet);\r\n\r\n\r\n// try {\r\n // latch.await(2000, TimeUnit.MILLISECONDS);\r\n // } catch (Exception e) {\r\n // fail(\"Exception caught: \" + e.getClass().getSimpleName() + \" - \" + e.getMessage());\r\n \r\n // }\r\n \t}", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "java.util.List<org.landxml.schema.landXML11.SpeedsDocument.Speeds> getSpeedsList();", "public String getTotal_latency() {\n return total_latency;\n }", "public java.lang.Boolean getLatencySensitivitySupported() {\r\n return latencySensitivitySupported;\r\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "private void getPM10() {\n this.sensorsPm10.addAll(this.getSensors(this.readHTML(this.buildPm10URL())));\n }", "public ArrayList<Double> getPackets(){\n\t\treturn packets;\n\t}", "public Float getSpeechTraff() {\n return speechTraff;\n }", "public int getRt() {\n return rt_;\n }", "@Override\n public StatsViewer getStatsViewer() {\n return sessionPool.getStatsViewer();\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "com.google.ads.googleads.v6.resources.ShoppingPerformanceView getShoppingPerformanceView();", "public List<String> getRuntime() {\n double totalhit = 0;\n double longesthit = 0;\n double averagehit = 0;\n for (Double i : recHitTimes) {\n totalhit += i;\n averagehit += i / recHitTimes.size();\n if (i > longesthit) {\n longesthit = i;\n }\n }\n List<String> list = new ArrayList<>();\n list.add(Double.toString(runtime));\n list.add(Double.toString(totalhit));\n list.add(Double.toString(longesthit));\n list.add(Double.toString(averagehit));\n return list;\n }", "public int getSpeedRating(){\n\t\treturn speedRating;\n\t}", "public boolean isSymmetricRtp()\n { return symmetric_rtp;\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "public Object updatePerformance()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to updatePerformance : \" + \"Agent\");\r\n/* 261 */ return this;\r\n/* */ }", "public List<Sample> getSampleResults() {\n return sampleResults;\n }", "public java.util.Map<String, FieldStats> getStats() {\n if (stats == null) {\n stats = new com.amazonaws.internal.SdkInternalMap<String, FieldStats>();\n }\n return stats;\n }", "public Boolean liveStreamMetrics() {\n return this.liveStreamMetrics;\n }", "public double getTpsRep() {\r\n\t\treturn this.tpsRep.doubleValue();\r\n\t}", "Map<String, Object> getStats();", "public int getRt() {\n return rt_;\n }", "public int getTopSpeed() {\n return topSpeed;\n }", "public int getEngineeringRate() {\n return engineeringRate;\n }", "public double getSpeed() {\n return speed;\n }", "@ComputerMethod\n private Collection<TeleporterFrequency> getFrequencies() {\n return FrequencyType.TELEPORTER.getManagerWrapper().getPublicManager().getFrequencies();\n }", "public \tMicroAvgAggregatePerformances<TimeType,PType> getMicroAveraging() {\n\t\t\n\t\treturn this.microAvg;\n\t}", "public List<TimeSpan> getRequestedTimes()\r\n {\r\n return myRequestedTimes;\r\n }", "public double getLiveDemand() {\n\n return liveConsumption;\n }", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "protected synchronized int getResistivity() { return resistivity; }", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "private void retrieveBitRate() {\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n\n HashMap<String, String> metadata = new HashMap<>();\n\n MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();\n mediaMetadataRetriever.setDataSource(radioStation.getListenUrl(), metadata);\n //mediaMetadataRetriever.setDataSource(RadioPlayerFragment.RADIO_LOCAL_URL, metadata);\n\n bitRate = mediaMetadataRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_BITRATE);\n Log.d(LOG_TAG, \"Bitrate: \" + bitRate);\n\n sendAlert(RadioPlayerFragment.SEND_BITRATE, bitRate);\n }\n }).start();\n\n }", "public float getSpeed (){\n return speed;\n }", "public int getRXCReps() { \r\n \treturn getReps(\"RXC\");\r\n }", "public Long getTotal_latency() {\n return total_latency;\n }", "public IShippingRate getRateObject();", "List<Sensor> getPm10Sensors() {\n return Collections.unmodifiableList(this.pm10Sensors);\n }", "com.google.ads.googleads.v6.resources.HotelPerformanceView getHotelPerformanceView();", "public RealTime withPerf(Perf perf) {\n\t\tthis.perf = perf;\n\t\treturn this;\n\t}", "public Integer getTraffic() {\n return traffic;\n }", "public Integer getTraffic() {\n return traffic;\n }", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "public RealtimeList getRealtimeList(int realtimeListId) {\n RealtimeList realtimeList = queryForObject(\"select id, xid, userId, name from realtime_lists where id=?\",\n new Object[] { realtimeListId }, new RealtimeListRowMapper());\n populateWatchlistData(realtimeList);\n return realtimeList;\n }", "public BigDecimal getAvgLatency() {\n return avgLatency;\n }", "public int getVehiclePerformance() {\n return itemAttribute;\n }", "private Rate toLatency(final boolean isPremium, final boolean isSSD) {\n\t\tif (isPremium) {\n\t\t\treturn Rate.BEST;\n\t\t}\n\t\treturn isSSD ? Rate.GOOD : Rate.MEDIUM;\n\t}", "public static Collection getCostingRates() throws EnvoyServletException\n {\n try\n {\n return ServerProxy.getCostingEngine().getRates();\n }\n catch (Exception e)\n {\n throw new EnvoyServletException(e);\n }\n }", "public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}", "@java.lang.Override\n public java.util.List<com.google.cloud.speech.v2.StreamingRecognitionResult> getResultsList() {\n return results_;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getSamplingRate( ) {\r\n return samplingRate;\r\n }", "public double getTruckArrivalTime() {\r\n\t\treturn truckArrivalTime.sample();\r\n\t}", "public ThreadingProfile getThreadingProfile()\n {\n return threadingProfile;\n }", "public Rate rate() {\n _initialize();\n return rate;\n }" ]
[ "0.569412", "0.5656624", "0.52204", "0.51863515", "0.5175928", "0.5157851", "0.5142157", "0.5099812", "0.50756055", "0.5071216", "0.5060193", "0.50434136", "0.50216556", "0.49830914", "0.4964663", "0.49549243", "0.4946473", "0.49285397", "0.49181005", "0.49077243", "0.49057192", "0.48745388", "0.48677802", "0.48577324", "0.48508546", "0.4838195", "0.47958174", "0.4765008", "0.47597316", "0.4753661", "0.47464508", "0.47404745", "0.47389784", "0.4734464", "0.47341344", "0.47269097", "0.47042698", "0.47033602", "0.4686927", "0.4686755", "0.46719036", "0.4647457", "0.4644653", "0.46421346", "0.4641865", "0.46371508", "0.46338853", "0.46306482", "0.46274513", "0.46257025", "0.46207827", "0.46170703", "0.46147263", "0.46006396", "0.45900324", "0.45887673", "0.45872185", "0.45830354", "0.45788726", "0.45773137", "0.45769385", "0.45682907", "0.45643267", "0.45416886", "0.4541358", "0.45406392", "0.4538907", "0.45372358", "0.4535341", "0.45323223", "0.45284104", "0.45221546", "0.451147", "0.45105657", "0.45105657", "0.45105657", "0.45105657", "0.44921455", "0.4490644", "0.4484161", "0.44788182", "0.44779268", "0.44726944", "0.44707876", "0.44687134", "0.4467265", "0.4467265", "0.44640893", "0.446269", "0.44573477", "0.44556803", "0.4455183", "0.44547525", "0.44542608", "0.44483903", "0.44450113", "0.44444275", "0.44442505", "0.44423363", "0.44392985" ]
0.55810785
2
Set the this object contains performances relating to Real Time Transport using RTP.
public void setPerf(Perf perf) { this.perf = perf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSymmetricRtp(boolean symmetric_rtp)\n { this.symmetric_rtp=symmetric_rtp;\n }", "public void setPerformanceTuningSettings(Properties aPerformanceTuningSettings) {\n mPerformanceTuningSettings = aPerformanceTuningSettings;\n }", "abstract public void setPerformanceInfo() throws Exception;", "public void setPerformanceTime(String ticketTime)\r\n {\r\n performanceTime = ticketTime;\r\n }", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "public SocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)\r\n/* 196: */ {\r\n/* 197:204 */ this.javaSocket.setPerformancePreferences(connectionTime, latency, bandwidth);\r\n/* 198:205 */ return this;\r\n/* 199: */ }", "private static void setRTTTransmissionPolicy() {\n\n /*\n * Set the transmission policy for each of the JChord event types\n */\n TransmissionPolicyManager.setClassPolicy(Event.class.getName(),\n PolicyType.BY_VALUE, true);\n TransmissionPolicyManager.setClassPolicy(HashMap.class.getName(),\n PolicyType.BY_VALUE, true);\n\n /*\n * Set the transmission policy for KeyImpl, JChordNextHopResult and\n * SuccessorList objects\n */\n TransmissionPolicyManager.setClassPolicy(JChordNextHopResult.class\n .getName(), PolicyType.BY_VALUE, true);\n TransmissionPolicyManager.setClassPolicy(KeyImpl.class.getName(),\n PolicyType.BY_VALUE, true);\n\n// RafdaRunTime.registerCustomSerializer(SuccessorList.class,\n// new jchord_impl_SuccessorList());\n// TransmissionPolicyManager.setClassPolicy(SuccessorList.class.getName(),\n// PolicyType.BY_VALUE, true);\n \n// TransmissionPolicyManager.setReturnValuePolicy(JChordNodeImpl.class\n// .getName(), \"getSuccessorList\", PolicyType.BY_VALUE, true);\n\n /*\n * Set the transmission policy for the 'node_rep' fields of\n * JChordNodeImpl objects\n */\n String JChordNodeImplName = JChordNodeImpl.class.getName();\n TransmissionPolicyManager.setFieldToBeCached(JChordNodeImplName,\n \"hostAddress\");\n TransmissionPolicyManager.setFieldToBeCached(JChordNodeImplName, \"key\");\n }", "public void start() {\r\n // Send the first RTCP packet\r\n long delay = (long) (Math.random() * SECS_TO_MS) + DELAY_CONSTANT;\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n globalReceptionStats.resetBytesRecd();\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n }", "private void setSpeedValues(){\n minSpeed = trackingList.get(0).getSpeed();\n maxSpeed = trackingList.get(0).getSpeed();\n averageSpeed = trackingList.get(0).getSpeed();\n\n double sumSpeed =0.0;\n for (TrackingEntry entry:trackingList) {\n\n sumSpeed += entry.getSpeed();\n\n //sets min Speed\n if (minSpeed > entry.getSpeed()){\n minSpeed = entry.getSpeed();\n }\n //sets max Speed\n if (maxSpeed < entry.getSpeed()) {\n maxSpeed = entry.getSpeed();\n }\n\n }\n\n averageSpeed = sumSpeed/trackingList.size();\n }", "protected void setFps(double fps) {\n this.fps = fps;\n }", "public void setRate();", "public void setPerformanceDate(String ticketDate)\r\n {\r\n performanceTime = ticketDate;\r\n }", "public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }", "public void setSpeechRate(int speechRate) {\n mSelf.setSpeechRate(speechRate);\n }", "public void setAddSpeed(float addSpeed)\n {\n this.addSpeed = addSpeed;\n setChanged();\n notifyObservers();\n }", "public void setTransmitRate(String transmitRate)\r\n\t{\r\n\t\tthis.transmitRate = transmitRate;\r\n\t}", "private void initSocket() {\n try {\n rtpSocket = new DatagramSocket(localRtpPort);\n rtcpSocket = new DatagramSocket(localRtcpPort);\n } catch (Exception e) {\n System.out.println(\"RTPSession failed to obtain port\");\n }\n\n rtpSession = new RTPSession(rtpSocket, rtcpSocket);\n rtpSession.RTPSessionRegister(this, null, null);\n\n rtpSession.payloadType(96);//dydnamic rtp payload type for opus\n\n //adding participant, where to send traffic\n Participant p = new Participant(remoteIpAddress, remoteRtpPort, remoteRtcpPort);\n rtpSession.addParticipant(p);\n }", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public void setSpeechTraff(Float speechTraff) {\n this.speechTraff = speechTraff;\n }", "public void setSpeed(float val) {speed = val;}", "public RealTime withPerf(Perf perf) {\n\t\tthis.perf = perf;\n\t\treturn this;\n\t}", "@Override\n\tpublic void setSpeed(double speed) {\n\n\t}", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "void setPlaybackSpeed(float speed);", "public abstract void setRate();", "@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}", "public abstract void setSpeed(int sp);", "@Override\n\tpublic void setReadSpeed(int bps) {\n\t\t\n\t}", "private void updatePerformanceBasedOnNavigation() {\n if (DataPool.LmCurrentCard >= 0 && DataPool.LmCurrentCard < DataPool.getPoolSize()) {\n WordConnection wc = DataPool.getWordConnection(DataPool.LmCurrentCard);\n Performance perf = DataPool.getPerformance(wc.connectionId);\n if (perf == null) {\n MyQuickToast.showShort(act, \"No performance data: \" + wc.connectionId);\n return;\n }\n if (DataPool.LmType == Learning_Type_Review) {\n perf.performance = \"good\";\n }\n perf.tempVersion = perf.version + 1;\n perf.save();\n }\n }", "public void setRate(int rate) { this.rate = rate; }", "public void setPerformanceName(String ticketPerformance)\r\n {\r\n performanceName = ticketPerformance;\r\n }", "public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }", "public void setRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t}", "public void setTraffic(Float traffic) {\r\n this.traffic = traffic;\r\n }", "public void setPacketProcessor(MaplePacketProcessor processor);", "@SuppressWarnings(\"unused\")\n private void setTrafficEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n map.setTrafficEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }", "public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}", "public void setTrafficFromEachSuperAS(double traffic) {\n this.trafficFromSuperAS = traffic;\n }", "public void setPreviewFrameRate(int fps) {\n set(\"preview-frame-rate\", fps);\n }", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "public native void setInitialAssumedRTT (long RTT);", "public Properties getPerformanceTuningSettings() {\n return mPerformanceTuningSettings;\n }", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "public MediaStreamTarget(InetSocketAddress rtpTarget, InetSocketAddress rtcpTarget)\n {\n this.rtpTarget = rtpTarget;\n this.rtcpTarget = rtcpTarget;\n }", "public Object updatePerformance()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to updatePerformance : \" + \"Agent\");\r\n/* 261 */ return this;\r\n/* */ }", "public void setSpeed(double multiplier);", "public static void setSpeedScalingFactor(double speedFactor)\n\t{\n\t\tspeedScalingFactor = speedFactor;\n\t//\telse speedScalingFactor = SpeedBasedDetection.DEF_SCALING_FACTOR;\n\t\t//\t\tSystem.out.println(\"speedScalingFactor: \"+speedScalingFactor);\n\t\t//Prefs.speedScalingFactor = speedScalingFactor;\n\t}", "public void resetPerformanceMetrics() {\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setInterest(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setEngagement(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setStress(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setRelaxation(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setRelaxation(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setExcitement(0);\n\t}", "public void setVehiclePerformance(int vehiclePerformance) {\n this.itemAttribute = vehiclePerformance;\n }", "public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }", "public RayTracerBase setAdaptiveSuperSampling(boolean adaptiveSuperSampling) {\n this.adaptiveSuperSampling = adaptiveSuperSampling;\n return this;\n }", "public String getPerformanceTime()\r\n {\r\n return performanceTime;\r\n }", "public SawLPFInstRT(int sampleRate){\r\n\t\tthis(sampleRate, 1000);\r\n\t}", "public MediaStreamTarget(InetAddress rtpAddr, int rtpPort, InetAddress rtcpAddr, int rtcpPort)\n {\n this(new InetSocketAddress(rtpAddr, rtpPort), new InetSocketAddress(rtcpAddr, rtcpPort));\n }", "public OfferTripProperty(TranspoolTrip offerTrip) {\n this.offerTrip = offerTrip;\n /* timeList = new ArrayList<>();\n capacityList = new ArrayList<>();\n stops = new ArrayList<>();\n upDownPassengers = new ArrayList<>();*/\n initial();\n }", "public void setSSRCFactory(SSRCFactory ssrcFactory) {\n\t\tif (translator == null) {\n\t\t\tRTPManager m = this.manager;\n\n\t\t\tif (m instanceof org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr) {\n\t\t\t\torg.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr sm = (org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr) m;\n\n\t\t\t\tsm.setSSRCFactory(ssrcFactory);\n\t\t\t}\n\t\t} else {\n\t\t\ttranslator.setSSRCFactory(ssrcFactory);\n\t\t}\n\n\t}", "public void setAdaptiveRateAlgorithm(String algorithm);", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setElapsedTime(String elapsedTime) {\n this.elapsedTime = elapsedTime;\n }", "public void enableAdaptiveRateControl(boolean enabled);", "public void setSpeed( Vector2 sp ) { speed = sp; }", "@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}", "public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}", "public void init()\n {\n boolean tHotspot = true;\n // Figures below valid for 1000TPS\n double tGcRateFactor = 1000.0D / ((1000.0D * 1000.0) * cClientTransPerMicro) ;\n if (tHotspot)\n {\n // tax average 6ms, max 65, every 20 seconds\n // me1 27ms, max 83ms, every 20 seconds\n // me1s 27ms, max 87, every 22seconds\n mTaxJvm = new GcService(9908.0D*1000 * tGcRateFactor, 9.0D*1000); \n mMeJvm = new GcService(2509.0D*1000 * tGcRateFactor, 17.0D*1000); \n mMeStandbyJvm = new GcService(2257.0D*1000 * tGcRateFactor, 15.0D*1000);\n }\n else\n {\n // Metronome \n mTaxJvm = new GcService(100*1000, 500);\n mMeJvm = new GcService(100*1000, 500);\n mMeStandbyJvm = new GcService(100*1000, 500);\n }\n\n String tName;\n mClient.init(new ServerConfig(mClient, mClientTaxNwDelay, \"Client\", cClientCount, cClientCount, 0.1));\n {\n mClientTaxNwDelay.init(new ServerConfig(mClientTaxNwDelay, mTaxTcp, \"ClientTaxNwDelay\", 1, 1, 0.1)); \n {\n tName = \"TaxServer\";\n mTaxTcp.init(new ServerConfig(mTaxJvm, mTaxTcp, mTaxPool, tName + \"_Tcp\", 1, 1, 22)); \n mTaxPool.init(new ServerConfig(mTaxJvm, mTaxPool, mTaxMeNwDelay, tName + \"_ServerPool\", 5, 150, 11)); \n\n {\n mTaxMeNwDelay.init(new ServerConfig(mTaxMeNwDelay, mMePrimaryTcp, \"TaxMeNwDelay\", 1, 1, 100)); \n {\n tName=\"MatchingEngine\";\n mMePrimaryTcp.init(new ServerConfig(mMeJvm, mMePrimaryTcp, mMePrimaryServerPool, tName + \"Tcp\", 1, 1, 14));\n mMePrimaryServerPool.init(new ServerConfig(mMeJvm, mMePrimaryServerPool, mMePrimarySorter, tName + \"_ServerPool\", 5, 150, 12)); \n mMePrimarySorter.init(new ServerConfig(mMeJvm, mMePrimarySorter, mMePrimaryChainUnit0, tName + \"_Sorter\", 1, 1, 13));\n mMePrimaryChainUnit0.init(new ServerConfig(mMeJvm, mMePrimaryChainUnit0, mMePrimaryPostChain, tName + \"_ChainUnit0\", 1, 1, 59)); \n mMePrimaryBatchSender.init(new ServerConfig(mMeJvm, mMePrimaryBatchSender, mMeMesNwDelay, tName + \"_BatchSender\", 10, 10, 1)); \n mMePrimaryRecoveryLog.init(new ServerConfig(mMeJvm, mMePrimaryRecoveryLog, mMePrimaryPostChain, tName + \"_RecoveryLog\", 1, 1, 50)); \n mMePrimaryPostChain.init(new ServerConfig(mMeJvm, mMePrimaryPostChain, mMePrimaryResponsePool, tName + \"_PostChain\", 1, 1, 46)); \n mMePrimaryResponsePool.init(new ServerConfig(mMeJvm, mMePrimaryResponsePool, mMeTaxNwDelay, tName + \"_ResponsePool\", 5, 25, 16)); \n\n {\n mMeMesNwDelay.init(new ServerConfig(mMeMesNwDelay, mMeStandbyTcp, \"MeMesNwDelay\", 1, 1, 90)); \n {\n tName=\"MatchingEngineStandby\";\n mMeStandbyTcp.init(new ServerConfig(mMeStandbyJvm, mMeStandbyTcp, mMeStandbyServerPool, tName + \"_Tcp\", 1, 1, 13)); \n mMeStandbyServerPool.init(new ServerConfig(mMeStandbyJvm, mMeStandbyServerPool, mMesMeNwDelay, tName + \"_ServerPool\", 5, 150, 18)); \n }\n mMesMeNwDelay.init(new ServerConfig(mMesMeNwDelay, mMePrimaryPostChain, \"MesMeNwDelay\", 1, 1, 90)); \n }\n }\n mMeTaxNwDelay.init(new ServerConfig(mMeTaxNwDelay, mTaxCollector, \"MeTaxNwDelay\", 1, 1, 100));\n }\n } \n mTaxCollector.init(new ServerConfig(mTaxJvm, mTaxCollector, mTaxClientNwDelay, tName + \"_Collector\", 1, 1, 0.1)); \n mTaxClientNwDelay.init(new ServerConfig(mTaxClientNwDelay, null, \"TaxClientNwDelay\", 1, 1, 0.1));\n }\n }", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "public AddGenericRtlibObject() {\n super();\n\n delay = defaultdelay;\n\n constructStandardValues();\n constructPorts();\n\n enableAnimationFlag = SetupManager.getBoolean(\n \"Hades.LayerTable.RtlibAnimation\", false);\n }", "@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }", "public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSetupTimeReal(BigDecimal SetupTimeReal) {\n\t\tset_Value(\"SetupTimeReal\", SetupTimeReal);\n\t}", "@Override\n @Deprecated // Deprecated so developer does not accidentally use\n public void setSpeed(int speed) {\n }", "@Override\r\n\tpublic void setStats(Stats s) {\n\t\t\r\n\t}", "public String getPerformanceName()\r\n {\r\n return performanceName;\r\n }", "public void setEngineeringRate(int value) {\n this.engineeringRate = value;\n }", "public void setLatencyParameters(int input, int output){\n\t\tif (input < 10000){Ts = (double)input/500000;}\n\t\tif (input >= 10000 && input <= 50000 ){Ts = (double)input/700000;}\n\t\tif (input > 50000){Ts = (double)input/900000;}\n\t\t\n\t\tif(output < 10000){Tr = (double)output/500000;}\n\t\tif (output >= 10000 && output <= 50000 ){Tr = (double)output/700000;}\n\t\tif (output > 50000){Tr = (double)output/900000;}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*for(int i = 0; i < nSN; i++ ){\n\t\t\tlatencyRemote[i][mthMD] = (Ts + Tp + Tr);\n\t\t\t}*/\n\t\t}", "public RealTime withRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t\treturn this;\n\t}", "public void setTimes(long startCpuTime, long startSystemTime) {\r\n this.startCpuTime = startCpuTime;\r\n this.startSystemTime = startSystemTime;\r\n }", "public void setItraffic(Float itraffic) {\r\n this.itraffic = itraffic;\r\n }", "void setStatisticsEnabled(boolean statsEnabled);", "public static void setMicrotimingMode(MicrotimingMode microtimingMode) {\n WebServer.microtimingMode = microtimingMode == null ? MicrotimingMode.URI : microtimingMode;\n }", "public void setUseTimings(boolean useTimings)\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_store().add_attribute_user(USETIMINGS$22);\n }\n target.setBooleanValue(useTimings);\n }\n }", "public void setThroughput(Integer throughput) {\n this.throughput = throughput;\n }", "private void setFPS(int fps) {\n this.fps = fps;\n }", "public void setSpeedFunction(Calculation speedFunction) {\n this.speedFunction = new Calculation(speedFunction);\n }", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "public void setQuality(float quality);", "public final void setAdvanceFilterTRModel(AdvanceFilterTRModel advanceFilterTRModel) {\r\n\t\tthis.advanceFilterTRModel = advanceFilterTRModel;\r\n\t}", "public void onUpdateTraffic(Message msg) {\n if (msg != null && msg.obj != null) {\n Bundle bundle = (Bundle) msg.obj;\n this.mHwHiStreamCHRManager.onUpdateQuality(bundle.getInt(\"wifiRxTraffic\"), bundle.getInt(\"cellularRxTraffic\"), bundle.getInt(\"wifiTxTraffic\"), bundle.getInt(\"celluarTxTraffic\"), bundle.getInt(\"monitoringUid\"));\n }\n }", "public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "public <T extends Number> void setSpeedPerFrame(T speed){\r\n\t\tif(speed.doubleValue() <= 0){\r\n\t\t\tthis.speed = 1;\r\n\t\t\tSystem.err.println(\"Negative Speed, resulting to a speed of 1!\");\r\n\t\t}else{\r\n\t\t\tthis.speed = speed.doubleValue();\r\n\t\t}\r\n\t}", "public void syncWithRTInfo() {\n new rtLocation(locationValueString).execute();\n new rtTemp(tempValueString).execute();\n new rtHumidity(humidityValueString).execute();\n new rtCondition(conditionValueString).execute();\n }", "public void setHighPerformanceNeeded(boolean highPerformanceNeeded) { this.highPerformanceNeeded = highPerformanceNeeded; }", "public Float getTraffic() {\r\n return traffic;\r\n }", "protected void updateTelemetry(){\n telemetry.addData(\"Runtime\", this.getRuntime());\n Robot.outputToTelemetry(this);\n telemetry.update();\n }", "public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}", "public void setVideoMulticastTtl(int ttl);" ]
[ "0.5395663", "0.53215486", "0.53161055", "0.5259574", "0.522001", "0.5141514", "0.5125759", "0.5036543", "0.49739486", "0.49617764", "0.49529958", "0.49346825", "0.49326992", "0.4931585", "0.4908053", "0.48922828", "0.48779863", "0.48759493", "0.48750207", "0.4870479", "0.48658094", "0.48512095", "0.484444", "0.483027", "0.4826916", "0.4822485", "0.48116753", "0.4806861", "0.4791396", "0.47902295", "0.47825944", "0.47760665", "0.47748345", "0.47464737", "0.47421396", "0.47393417", "0.47247422", "0.47013363", "0.4697083", "0.46836528", "0.4677227", "0.4671796", "0.46700528", "0.46517086", "0.46492928", "0.46448836", "0.4642901", "0.4641807", "0.46323836", "0.4626287", "0.4615005", "0.46090737", "0.45943636", "0.4588723", "0.45657212", "0.45621443", "0.45613134", "0.45599067", "0.45578495", "0.45578495", "0.45565897", "0.45519462", "0.45387694", "0.45363784", "0.45342144", "0.45326683", "0.45288584", "0.45256644", "0.45210868", "0.4516176", "0.45149273", "0.45149273", "0.45105743", "0.45101258", "0.45057115", "0.44965348", "0.44942722", "0.44920206", "0.4477437", "0.44766212", "0.44752264", "0.44637054", "0.4462436", "0.44562542", "0.44552574", "0.44479868", "0.4443547", "0.44417074", "0.44387195", "0.4433399", "0.44328463", "0.4427933", "0.442752", "0.4424227", "0.44230908", "0.4416153", "0.44160637", "0.44110292", "0.44057587", "0.44044453" ]
0.5548517
0
Set the this object contains performances relating to Real Time Transport using RTP.
public RealTime withPerf(Perf perf) { this.perf = perf; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPerf(Perf perf) {\n\t\tthis.perf = perf;\n\t}", "public void setSymmetricRtp(boolean symmetric_rtp)\n { this.symmetric_rtp=symmetric_rtp;\n }", "public void setPerformanceTuningSettings(Properties aPerformanceTuningSettings) {\n mPerformanceTuningSettings = aPerformanceTuningSettings;\n }", "abstract public void setPerformanceInfo() throws Exception;", "public void setPerformanceTime(String ticketTime)\r\n {\r\n performanceTime = ticketTime;\r\n }", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "public SocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)\r\n/* 196: */ {\r\n/* 197:204 */ this.javaSocket.setPerformancePreferences(connectionTime, latency, bandwidth);\r\n/* 198:205 */ return this;\r\n/* 199: */ }", "private static void setRTTTransmissionPolicy() {\n\n /*\n * Set the transmission policy for each of the JChord event types\n */\n TransmissionPolicyManager.setClassPolicy(Event.class.getName(),\n PolicyType.BY_VALUE, true);\n TransmissionPolicyManager.setClassPolicy(HashMap.class.getName(),\n PolicyType.BY_VALUE, true);\n\n /*\n * Set the transmission policy for KeyImpl, JChordNextHopResult and\n * SuccessorList objects\n */\n TransmissionPolicyManager.setClassPolicy(JChordNextHopResult.class\n .getName(), PolicyType.BY_VALUE, true);\n TransmissionPolicyManager.setClassPolicy(KeyImpl.class.getName(),\n PolicyType.BY_VALUE, true);\n\n// RafdaRunTime.registerCustomSerializer(SuccessorList.class,\n// new jchord_impl_SuccessorList());\n// TransmissionPolicyManager.setClassPolicy(SuccessorList.class.getName(),\n// PolicyType.BY_VALUE, true);\n \n// TransmissionPolicyManager.setReturnValuePolicy(JChordNodeImpl.class\n// .getName(), \"getSuccessorList\", PolicyType.BY_VALUE, true);\n\n /*\n * Set the transmission policy for the 'node_rep' fields of\n * JChordNodeImpl objects\n */\n String JChordNodeImplName = JChordNodeImpl.class.getName();\n TransmissionPolicyManager.setFieldToBeCached(JChordNodeImplName,\n \"hostAddress\");\n TransmissionPolicyManager.setFieldToBeCached(JChordNodeImplName, \"key\");\n }", "public void start() {\r\n // Send the first RTCP packet\r\n long delay = (long) (Math.random() * SECS_TO_MS) + DELAY_CONSTANT;\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n globalReceptionStats.resetBytesRecd();\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n }", "private void setSpeedValues(){\n minSpeed = trackingList.get(0).getSpeed();\n maxSpeed = trackingList.get(0).getSpeed();\n averageSpeed = trackingList.get(0).getSpeed();\n\n double sumSpeed =0.0;\n for (TrackingEntry entry:trackingList) {\n\n sumSpeed += entry.getSpeed();\n\n //sets min Speed\n if (minSpeed > entry.getSpeed()){\n minSpeed = entry.getSpeed();\n }\n //sets max Speed\n if (maxSpeed < entry.getSpeed()) {\n maxSpeed = entry.getSpeed();\n }\n\n }\n\n averageSpeed = sumSpeed/trackingList.size();\n }", "protected void setFps(double fps) {\n this.fps = fps;\n }", "public void setRate();", "public void setPerformanceDate(String ticketDate)\r\n {\r\n performanceTime = ticketDate;\r\n }", "public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }", "public void setSpeechRate(int speechRate) {\n mSelf.setSpeechRate(speechRate);\n }", "public void setAddSpeed(float addSpeed)\n {\n this.addSpeed = addSpeed;\n setChanged();\n notifyObservers();\n }", "public void setTransmitRate(String transmitRate)\r\n\t{\r\n\t\tthis.transmitRate = transmitRate;\r\n\t}", "private void initSocket() {\n try {\n rtpSocket = new DatagramSocket(localRtpPort);\n rtcpSocket = new DatagramSocket(localRtcpPort);\n } catch (Exception e) {\n System.out.println(\"RTPSession failed to obtain port\");\n }\n\n rtpSession = new RTPSession(rtpSocket, rtcpSocket);\n rtpSession.RTPSessionRegister(this, null, null);\n\n rtpSession.payloadType(96);//dydnamic rtp payload type for opus\n\n //adding participant, where to send traffic\n Participant p = new Participant(remoteIpAddress, remoteRtpPort, remoteRtcpPort);\n rtpSession.addParticipant(p);\n }", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public void setSpeechTraff(Float speechTraff) {\n this.speechTraff = speechTraff;\n }", "public void setSpeed(float val) {speed = val;}", "@Override\n\tpublic void setSpeed(double speed) {\n\n\t}", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "void setPlaybackSpeed(float speed);", "public abstract void setRate();", "@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}", "public abstract void setSpeed(int sp);", "@Override\n\tpublic void setReadSpeed(int bps) {\n\t\t\n\t}", "private void updatePerformanceBasedOnNavigation() {\n if (DataPool.LmCurrentCard >= 0 && DataPool.LmCurrentCard < DataPool.getPoolSize()) {\n WordConnection wc = DataPool.getWordConnection(DataPool.LmCurrentCard);\n Performance perf = DataPool.getPerformance(wc.connectionId);\n if (perf == null) {\n MyQuickToast.showShort(act, \"No performance data: \" + wc.connectionId);\n return;\n }\n if (DataPool.LmType == Learning_Type_Review) {\n perf.performance = \"good\";\n }\n perf.tempVersion = perf.version + 1;\n perf.save();\n }\n }", "public void setRate(int rate) { this.rate = rate; }", "public void setPerformanceName(String ticketPerformance)\r\n {\r\n performanceName = ticketPerformance;\r\n }", "public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }", "public void setRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t}", "public void setTraffic(Float traffic) {\r\n this.traffic = traffic;\r\n }", "public void setPacketProcessor(MaplePacketProcessor processor);", "@SuppressWarnings(\"unused\")\n private void setTrafficEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n map.setTrafficEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }", "public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}", "public void setTrafficFromEachSuperAS(double traffic) {\n this.trafficFromSuperAS = traffic;\n }", "public void setPreviewFrameRate(int fps) {\n set(\"preview-frame-rate\", fps);\n }", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "public native void setInitialAssumedRTT (long RTT);", "public Properties getPerformanceTuningSettings() {\n return mPerformanceTuningSettings;\n }", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "public MediaStreamTarget(InetSocketAddress rtpTarget, InetSocketAddress rtcpTarget)\n {\n this.rtpTarget = rtpTarget;\n this.rtcpTarget = rtcpTarget;\n }", "public Object updatePerformance()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to updatePerformance : \" + \"Agent\");\r\n/* 261 */ return this;\r\n/* */ }", "public void setSpeed(double multiplier);", "public static void setSpeedScalingFactor(double speedFactor)\n\t{\n\t\tspeedScalingFactor = speedFactor;\n\t//\telse speedScalingFactor = SpeedBasedDetection.DEF_SCALING_FACTOR;\n\t\t//\t\tSystem.out.println(\"speedScalingFactor: \"+speedScalingFactor);\n\t\t//Prefs.speedScalingFactor = speedScalingFactor;\n\t}", "public void resetPerformanceMetrics() {\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setInterest(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setEngagement(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setStress(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setRelaxation(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setRelaxation(0);\n\t\tdetectionModel.getPrimaryDataModel().getAffectiveDataModel().setExcitement(0);\n\t}", "public void setVehiclePerformance(int vehiclePerformance) {\n this.itemAttribute = vehiclePerformance;\n }", "public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }", "public RayTracerBase setAdaptiveSuperSampling(boolean adaptiveSuperSampling) {\n this.adaptiveSuperSampling = adaptiveSuperSampling;\n return this;\n }", "public String getPerformanceTime()\r\n {\r\n return performanceTime;\r\n }", "public SawLPFInstRT(int sampleRate){\r\n\t\tthis(sampleRate, 1000);\r\n\t}", "public MediaStreamTarget(InetAddress rtpAddr, int rtpPort, InetAddress rtcpAddr, int rtcpPort)\n {\n this(new InetSocketAddress(rtpAddr, rtpPort), new InetSocketAddress(rtcpAddr, rtcpPort));\n }", "public OfferTripProperty(TranspoolTrip offerTrip) {\n this.offerTrip = offerTrip;\n /* timeList = new ArrayList<>();\n capacityList = new ArrayList<>();\n stops = new ArrayList<>();\n upDownPassengers = new ArrayList<>();*/\n initial();\n }", "public void setSSRCFactory(SSRCFactory ssrcFactory) {\n\t\tif (translator == null) {\n\t\t\tRTPManager m = this.manager;\n\n\t\t\tif (m instanceof org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr) {\n\t\t\t\torg.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr sm = (org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr) m;\n\n\t\t\t\tsm.setSSRCFactory(ssrcFactory);\n\t\t\t}\n\t\t} else {\n\t\t\ttranslator.setSSRCFactory(ssrcFactory);\n\t\t}\n\n\t}", "public void setAdaptiveRateAlgorithm(String algorithm);", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setElapsedTime(String elapsedTime) {\n this.elapsedTime = elapsedTime;\n }", "public void enableAdaptiveRateControl(boolean enabled);", "public void setSpeed( Vector2 sp ) { speed = sp; }", "@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}", "public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}", "public void init()\n {\n boolean tHotspot = true;\n // Figures below valid for 1000TPS\n double tGcRateFactor = 1000.0D / ((1000.0D * 1000.0) * cClientTransPerMicro) ;\n if (tHotspot)\n {\n // tax average 6ms, max 65, every 20 seconds\n // me1 27ms, max 83ms, every 20 seconds\n // me1s 27ms, max 87, every 22seconds\n mTaxJvm = new GcService(9908.0D*1000 * tGcRateFactor, 9.0D*1000); \n mMeJvm = new GcService(2509.0D*1000 * tGcRateFactor, 17.0D*1000); \n mMeStandbyJvm = new GcService(2257.0D*1000 * tGcRateFactor, 15.0D*1000);\n }\n else\n {\n // Metronome \n mTaxJvm = new GcService(100*1000, 500);\n mMeJvm = new GcService(100*1000, 500);\n mMeStandbyJvm = new GcService(100*1000, 500);\n }\n\n String tName;\n mClient.init(new ServerConfig(mClient, mClientTaxNwDelay, \"Client\", cClientCount, cClientCount, 0.1));\n {\n mClientTaxNwDelay.init(new ServerConfig(mClientTaxNwDelay, mTaxTcp, \"ClientTaxNwDelay\", 1, 1, 0.1)); \n {\n tName = \"TaxServer\";\n mTaxTcp.init(new ServerConfig(mTaxJvm, mTaxTcp, mTaxPool, tName + \"_Tcp\", 1, 1, 22)); \n mTaxPool.init(new ServerConfig(mTaxJvm, mTaxPool, mTaxMeNwDelay, tName + \"_ServerPool\", 5, 150, 11)); \n\n {\n mTaxMeNwDelay.init(new ServerConfig(mTaxMeNwDelay, mMePrimaryTcp, \"TaxMeNwDelay\", 1, 1, 100)); \n {\n tName=\"MatchingEngine\";\n mMePrimaryTcp.init(new ServerConfig(mMeJvm, mMePrimaryTcp, mMePrimaryServerPool, tName + \"Tcp\", 1, 1, 14));\n mMePrimaryServerPool.init(new ServerConfig(mMeJvm, mMePrimaryServerPool, mMePrimarySorter, tName + \"_ServerPool\", 5, 150, 12)); \n mMePrimarySorter.init(new ServerConfig(mMeJvm, mMePrimarySorter, mMePrimaryChainUnit0, tName + \"_Sorter\", 1, 1, 13));\n mMePrimaryChainUnit0.init(new ServerConfig(mMeJvm, mMePrimaryChainUnit0, mMePrimaryPostChain, tName + \"_ChainUnit0\", 1, 1, 59)); \n mMePrimaryBatchSender.init(new ServerConfig(mMeJvm, mMePrimaryBatchSender, mMeMesNwDelay, tName + \"_BatchSender\", 10, 10, 1)); \n mMePrimaryRecoveryLog.init(new ServerConfig(mMeJvm, mMePrimaryRecoveryLog, mMePrimaryPostChain, tName + \"_RecoveryLog\", 1, 1, 50)); \n mMePrimaryPostChain.init(new ServerConfig(mMeJvm, mMePrimaryPostChain, mMePrimaryResponsePool, tName + \"_PostChain\", 1, 1, 46)); \n mMePrimaryResponsePool.init(new ServerConfig(mMeJvm, mMePrimaryResponsePool, mMeTaxNwDelay, tName + \"_ResponsePool\", 5, 25, 16)); \n\n {\n mMeMesNwDelay.init(new ServerConfig(mMeMesNwDelay, mMeStandbyTcp, \"MeMesNwDelay\", 1, 1, 90)); \n {\n tName=\"MatchingEngineStandby\";\n mMeStandbyTcp.init(new ServerConfig(mMeStandbyJvm, mMeStandbyTcp, mMeStandbyServerPool, tName + \"_Tcp\", 1, 1, 13)); \n mMeStandbyServerPool.init(new ServerConfig(mMeStandbyJvm, mMeStandbyServerPool, mMesMeNwDelay, tName + \"_ServerPool\", 5, 150, 18)); \n }\n mMesMeNwDelay.init(new ServerConfig(mMesMeNwDelay, mMePrimaryPostChain, \"MesMeNwDelay\", 1, 1, 90)); \n }\n }\n mMeTaxNwDelay.init(new ServerConfig(mMeTaxNwDelay, mTaxCollector, \"MeTaxNwDelay\", 1, 1, 100));\n }\n } \n mTaxCollector.init(new ServerConfig(mTaxJvm, mTaxCollector, mTaxClientNwDelay, tName + \"_Collector\", 1, 1, 0.1)); \n mTaxClientNwDelay.init(new ServerConfig(mTaxClientNwDelay, null, \"TaxClientNwDelay\", 1, 1, 0.1));\n }\n }", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "public AddGenericRtlibObject() {\n super();\n\n delay = defaultdelay;\n\n constructStandardValues();\n constructPorts();\n\n enableAnimationFlag = SetupManager.getBoolean(\n \"Hades.LayerTable.RtlibAnimation\", false);\n }", "@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }", "public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSetupTimeReal(BigDecimal SetupTimeReal) {\n\t\tset_Value(\"SetupTimeReal\", SetupTimeReal);\n\t}", "@Override\n @Deprecated // Deprecated so developer does not accidentally use\n public void setSpeed(int speed) {\n }", "@Override\r\n\tpublic void setStats(Stats s) {\n\t\t\r\n\t}", "public String getPerformanceName()\r\n {\r\n return performanceName;\r\n }", "public void setEngineeringRate(int value) {\n this.engineeringRate = value;\n }", "public void setLatencyParameters(int input, int output){\n\t\tif (input < 10000){Ts = (double)input/500000;}\n\t\tif (input >= 10000 && input <= 50000 ){Ts = (double)input/700000;}\n\t\tif (input > 50000){Ts = (double)input/900000;}\n\t\t\n\t\tif(output < 10000){Tr = (double)output/500000;}\n\t\tif (output >= 10000 && output <= 50000 ){Tr = (double)output/700000;}\n\t\tif (output > 50000){Tr = (double)output/900000;}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*for(int i = 0; i < nSN; i++ ){\n\t\t\tlatencyRemote[i][mthMD] = (Ts + Tp + Tr);\n\t\t\t}*/\n\t\t}", "public RealTime withRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t\treturn this;\n\t}", "public void setTimes(long startCpuTime, long startSystemTime) {\r\n this.startCpuTime = startCpuTime;\r\n this.startSystemTime = startSystemTime;\r\n }", "public void setItraffic(Float itraffic) {\r\n this.itraffic = itraffic;\r\n }", "void setStatisticsEnabled(boolean statsEnabled);", "public static void setMicrotimingMode(MicrotimingMode microtimingMode) {\n WebServer.microtimingMode = microtimingMode == null ? MicrotimingMode.URI : microtimingMode;\n }", "public void setUseTimings(boolean useTimings)\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_store().add_attribute_user(USETIMINGS$22);\n }\n target.setBooleanValue(useTimings);\n }\n }", "public void setThroughput(Integer throughput) {\n this.throughput = throughput;\n }", "private void setFPS(int fps) {\n this.fps = fps;\n }", "public void setSpeedFunction(Calculation speedFunction) {\n this.speedFunction = new Calculation(speedFunction);\n }", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "public void setQuality(float quality);", "public final void setAdvanceFilterTRModel(AdvanceFilterTRModel advanceFilterTRModel) {\r\n\t\tthis.advanceFilterTRModel = advanceFilterTRModel;\r\n\t}", "public void onUpdateTraffic(Message msg) {\n if (msg != null && msg.obj != null) {\n Bundle bundle = (Bundle) msg.obj;\n this.mHwHiStreamCHRManager.onUpdateQuality(bundle.getInt(\"wifiRxTraffic\"), bundle.getInt(\"cellularRxTraffic\"), bundle.getInt(\"wifiTxTraffic\"), bundle.getInt(\"celluarTxTraffic\"), bundle.getInt(\"monitoringUid\"));\n }\n }", "public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "public <T extends Number> void setSpeedPerFrame(T speed){\r\n\t\tif(speed.doubleValue() <= 0){\r\n\t\t\tthis.speed = 1;\r\n\t\t\tSystem.err.println(\"Negative Speed, resulting to a speed of 1!\");\r\n\t\t}else{\r\n\t\t\tthis.speed = speed.doubleValue();\r\n\t\t}\r\n\t}", "public void syncWithRTInfo() {\n new rtLocation(locationValueString).execute();\n new rtTemp(tempValueString).execute();\n new rtHumidity(humidityValueString).execute();\n new rtCondition(conditionValueString).execute();\n }", "public void setHighPerformanceNeeded(boolean highPerformanceNeeded) { this.highPerformanceNeeded = highPerformanceNeeded; }", "public Float getTraffic() {\r\n return traffic;\r\n }", "protected void updateTelemetry(){\n telemetry.addData(\"Runtime\", this.getRuntime());\n Robot.outputToTelemetry(this);\n telemetry.update();\n }", "public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}", "public void setVideoMulticastTtl(int ttl);" ]
[ "0.5548517", "0.5395663", "0.53215486", "0.53161055", "0.5259574", "0.522001", "0.5141514", "0.5125759", "0.5036543", "0.49739486", "0.49617764", "0.49529958", "0.49346825", "0.49326992", "0.4931585", "0.4908053", "0.48922828", "0.48779863", "0.48759493", "0.48750207", "0.4870479", "0.48658094", "0.484444", "0.483027", "0.4826916", "0.4822485", "0.48116753", "0.4806861", "0.4791396", "0.47902295", "0.47825944", "0.47760665", "0.47748345", "0.47464737", "0.47421396", "0.47393417", "0.47247422", "0.47013363", "0.4697083", "0.46836528", "0.4677227", "0.4671796", "0.46700528", "0.46517086", "0.46492928", "0.46448836", "0.4642901", "0.4641807", "0.46323836", "0.4626287", "0.4615005", "0.46090737", "0.45943636", "0.4588723", "0.45657212", "0.45621443", "0.45613134", "0.45599067", "0.45578495", "0.45578495", "0.45565897", "0.45519462", "0.45387694", "0.45363784", "0.45342144", "0.45326683", "0.45288584", "0.45256644", "0.45210868", "0.4516176", "0.45149273", "0.45149273", "0.45105743", "0.45101258", "0.45057115", "0.44965348", "0.44942722", "0.44920206", "0.4477437", "0.44766212", "0.44752264", "0.44637054", "0.4462436", "0.44562542", "0.44552574", "0.44479868", "0.4443547", "0.44417074", "0.44387195", "0.4433399", "0.44328463", "0.4427933", "0.442752", "0.4424227", "0.44230908", "0.4416153", "0.44160637", "0.44110292", "0.44057587", "0.44044453" ]
0.48512095
22
Walks in a straight line towards the destination.
public static boolean straightWalk(final RSTile tile) { if (tile == null) { return false; } if (compareGameDestination(tile) || comparePlayerPosition(tile)) { return true; } return Walking.blindWalkTo(tile, new Condition() { @Override public boolean active() { AntiBan.activateRun(); return compareGameDestination(tile); } }, 500); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void walk(int direction);", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }", "public abstract void lineTo(double x, double y);", "public void lineTo(double x, double y)\n {\n\tPoint2D pos = transformedPoint(x,y);\n\tdouble tx = pos.getX();\n\tdouble ty = pos.getY();\n\t\n\tLine line = new Line(_currentx, _currenty, tx, ty);\n\n\tSystem.out.println(\"+Line: \" + line.toString());\n\t_currentPath.add(line);\n\t_currentx = tx;\n\t_currenty = ty;\n }", "protected abstract void lineTo(final float x, final float y);", "public void moveForward (double distance) {\r\n\t\t\r\n\t\t//if the tail is lowered it leaves a dashed line\r\n\t\tif (tail_mode) {\r\n\t\t\t\r\n\t\t\t//skips (tail up and down) of distances of 10\r\n\t\t\tfor (int i=0; i<distance; i=i+20) {\r\n\t\t\t\tsuper.moveForward(10);\r\n\t\t\t\ttailUp();\r\n\t\t\t\tsuper.moveForward(10);\r\n\t\t\t\ttailDown();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t//if the tail is up he move forward without leaving trails\r\n\t\t} else {\r\n\t\t\tsuper.moveForward(distance);\r\n\t\t}\r\n\t}", "public void DoGoToLine(int spot) {\n\t\tint col = spot % 10;\n\t\txDestination = 175 + (col * 25);\n\t\tyDestination = yEnterBus;\n\t\tcommand = Command.GetInLine;\n\t}", "public void stepForward() {\n\t\tposition = forwardPosition();\n\t}", "public void traverseZipline(){\n this.driver.setForwardSpeed(150);\n this.driver.forward();\n \n // Note: rotations are negative because motor is built the wrong way\n // Rotate slowly for the first third of the rotations \n this.pulleyMotor.setSpeed(80);\n this.pulleyMotor.rotate(-2160);\n \n // Rotate quicker for the second third of the rotations\n this.pulleyMotor.setSpeed(120);\n this.pulleyMotor.rotate(-2160);\n \n // Rotate slowly for the last third of the rotations\n this.pulleyMotor.setSpeed(80);\n this.pulleyMotor.rotate(-2160);\n\n // Move a bit forward to move away from zipline\n this.driver.forward(2,false);\n this.driver.setForwardSpeed(120); \n }", "@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }", "protected void rotateUntilLine() {\n\t\tlog(\"Start looking for line again.\");\n\t\tgetPilot().setRotateSpeed(slowRotateSpeed);\n\t\t// getPilot().rotateRight();\n\n\t\tbindTransition(onLine(), LineFinderState.POSITION_PERPENDICULAR);\n\t\tbindTransition(getPilot().rotateComplete(-360), LineFinderState.FAILED);\n\t}", "@Override\n void setJourney(String line, TransitCard transitCard) {\n SubwayLine subwayLine = SubwaySystem.getSubwayLineByName(line);\n int startIndex = subwayLine.getStationList().indexOf(this.startLocation);\n int endIndex = subwayLine.getStationList().indexOf(this.endLocation);\n if (startIndex < endIndex) {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex++;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n } else {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex--;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n }\n double d =\n Distance.getDistance(\n startLocation.getNodeLocation().get(0),\n startLocation.getNodeLocation().get(1),\n endLocation.getNodeLocation().get(0),\n endLocation.getNodeLocation().get(1));\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementDistance(d);\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementPassengers();\n }", "private static Activity moveInDirection(int x, int y) {\n return Activity.newBuilder()\n .addSubActivity(() -> {\n Position pos = Players.getLocal().getPosition();\n while(pos.isPositionWalkable()) {\n pos = pos.translate(x, y);\n }\n pos = pos.translate(-x, -y);\n while(!Movement.setWalkFlagWithConfirm(pos)) {\n pos = pos.translate(-x, -y);\n }\n Time.sleepUntil(() -> !Movement.isDestinationSet(), 1000 * 10);\n })\n .build();\n }", "public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}", "public void moveForward()\r\n\t{\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading-90))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading-90))*distance;\r\n\t\t}\r\n\t}", "void moveForward();", "public void keepWalking() {\n\t\t// move along the current segment\n\t\tif (UserParameters.socialInteraction) speed = progressSocial(moveRate);\n\t\telse speed = progress(moveRate);\n\t\tcurrentIndex += speed;\n\t\t// check to see if the progress has taken the current index beyond its goal\n\t\t// given the direction of movement. If so, proceed to the next edge\n\t\tif (linkDirection == 1 && currentIndex > endIndex) {\n\t\t\tCoordinate currentPos = segment.extractPoint(endIndex);\n\t\t\tupdatePosition(currentPos);\n\t\t\ttransitionToNextEdge(currentIndex - endIndex);\n\t\t}\n\t\telse if (linkDirection == -1 && currentIndex < startIndex) {\n\t\t\tCoordinate currentPos = segment.extractPoint(startIndex);\n\t\t\tupdatePosition(currentPos);\n\t\t\ttransitionToNextEdge(startIndex - currentIndex);\n\t\t}\n\t\telse {\n\t\t\t// just update the position!\n\t\t\tCoordinate currentPos = segment.extractPoint(currentIndex);\n\t\t\tupdatePosition(currentPos);\n\t\t}\n\t}", "private void goTo(double x, double y) \n\t{\n\t\t/* Transform our coordinates into a vector */\n\t\tx -= getX();\n\t\ty -= getY();\n\t \n\t\t/* Calculate the angle to the target position */\n\t\tdouble angleToTarget = Math.atan2(x, y);\n\t \n\t\t/* Calculate the turn required get there */\n\t\tdouble targetAngle = Utils.normalRelativeAngle(angleToTarget - getHeadingRadians());\n\t \n\t\t/* \n\t\t * The Java Hypot method is a quick way of getting the length\n\t\t * of a vector. Which in this case is also the distance between\n\t\t * our robot and the target location.\n\t\t */\n\t\tdouble distance = Math.hypot(x, y);\n\t \n\t\t/* This is a simple method of performing set front as back */\n\t\tdouble turnAngle = Math.atan(Math.tan(targetAngle));\n\t\tsetTurnRightRadians(turnAngle);\n\t\tif(targetAngle == turnAngle) {\n\t\t\tsetAhead(distance);\n\t\t} else {\n\t\t\tsetBack(distance);\n\t\t}\n\t}", "@Override\n\tpublic void moveTowards(int destination) {\n \tif (stepCount % 2 == 0) {\n \tif (getFloor() < destination) {\n \t\tmoveUpstairs();\n \t} else {\n \t\tmoveDownstairs();\n \t}\n \t}\n }", "public void moveOneStep() {\n //We will create a line that checks the movement of the ball.\n Line trajectory = new Line(this.center.getX(), this.center.getY(),\n this.center.getX() + this.velocity.getDx(), this.center.getY() + this.velocity.getDy());\n //We will get information for the closest barrier.\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n //If there is information about an obstacle on the way, we will almost change our direction before reaching\n // the barrier.\n if (info != null) {\n this.center = new Velocity(-0.2 * this.velocity.getDx(),\n -0.2 * this.velocity.getDy()).applyToPoint(this.center);\n this.velocity = info.collisionObject().hit(this, info.collisionPoint(), this.velocity);\n //Otherwise, we will allow it to reach its destination\n } else {\n this.center = this.velocity.applyToPoint(this.center);\n }\n }", "private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }", "@Override\n\tpublic void move(float x, float y) {\n\t\tsuper.move(x, y);\n\t\tpath.lineTo(x, y);\n\t}", "public Line getLine(String targetLine);", "public boolean followLine(Line2D path)\r\n\t{\r\n\t\tif(phase != DONE)\r\n\t\t{\r\n\t\t\tsetAngle(path);\r\n\t\t\t//debugLine = path;\r\n\t\t\tsetVelX(2*Math.cos(Math.toRadians(mcnAngle)));\r\n\t\t\tsetVelY(-2*Math.sin(Math.toRadians(mcnAngle)));\r\n\t\t\tif(getPoint().distance(path.getP2()) < 10)\r\n\t\t\t{\r\n\t\t\t\tphase = DONE;\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 void walkToPoint(Point destination) {\n\n\t\tACTION attemptedMove;\n\n\t\tif (coordX != destination.x && coordY != destination.y) {\n\t\t\tSystem.out.println(\"X- \" + coordX + \" Y- \" + coordY);\n\t\t\tSystem.out.println(\"pX- \" + destination.x + \" pY- \" + destination.y);\n\t\t\tthrow new IllegalArgumentException(\"Illegal coordinate. Only move in one direction at a time\");\n\t\t}\n\t\tif (coordX < destination.x) {\n\t\t\tattemptedMove = ACTION.RIGHT;\n\t\t} else if (coordX > destination.x) {\n\t\t\tattemptedMove = ACTION.LEFT;\n\t\t} else if (coordY < destination.y) {\n\t\t\tattemptedMove = ACTION.DOWN;\n\t\t} else if (coordY > destination.y) {\n\t\t\tattemptedMove = ACTION.UP;\n\t\t} else {\n\t\t\treturn; //In case someone issues a move to nowhere\n\t\t}\n\t\tchangeFacing(attemptedMove);\n\t\taction = attemptedMove;\n\t\tpointWalking = true;\n\t\tendPoint = destination;\n\n\t\tif (validMoveEh(action)) {\n\t\t\tmoving = true;\n\t\t\tremainingSteps = STEP_SIZE;\n\t\t\tthis.updateCoordinate(action, true);\n\t\t\tcurrentImage = startAnimation(attemptedMove);\n\t\t}\n\t}", "public void moveToOrigin() {\n for(Waypoint waypoint : path)\n waypoint.setCoordinates(waypoint.getX() - path.get(0).getX(),\n waypoint.getY() - path.get(0).getY());\n }", "public static void moveStraightFor(double distance) {\n //Set motor speeds and rotate them by the given distance.\n // This method will not return until the robot has finished moving.\n leftMotor.setSpeed(FORWARD_SPEED);\n rightMotor.setSpeed(FORWARD_SPEED);\n leftMotor.rotate(convertDistance(distance), true);\n rightMotor.rotate(convertDistance(distance), false);\n \n }", "public void findSimplePathTo(final Coords dest, final MoveStepType type,\n int direction, int facing) {\n Coords src = getFinalCoords();\n Coords currStep = src;\n Coords nextStep = currStep.translated(direction);\n while (dest.distance(nextStep) < dest.distance(currStep)) {\n addStep(type);\n currStep = nextStep;\n nextStep = currStep.translated(direction);\n }\n\n // Did we reach the destination? If not, try another direction\n if (!currStep.equals(dest)) {\n int dir = currStep.direction(dest);\n // Java does mod different from how we want...\n dir = (((dir - facing) % 6) + 6) % 6;\n switch (dir) {\n case 0:\n findSimplePathTo(dest, MoveStepType.FORWARDS, currStep.direction(dest), facing);\n break;\n case 1:\n findSimplePathTo(dest, MoveStepType.LATERAL_RIGHT, currStep.direction(dest), facing);\n break;\n case 2:\n // TODO: backwards lateral shifts are switched:\n // LATERAL_LEFT_BACKWARDS moves back+right and vice-versa\n findSimplePathTo(dest, MoveStepType.LATERAL_LEFT_BACKWARDS, currStep.direction(dest), facing);\n break;\n case 3:\n findSimplePathTo(dest, MoveStepType.BACKWARDS, currStep.direction(dest), facing);\n break;\n case 4:\n // TODO: backwards lateral shifts are switched:\n // LATERAL_LEFT_BACKWARDS moves back+right and vice-versa\n findSimplePathTo(dest, MoveStepType.LATERAL_RIGHT_BACKWARDS, currStep.direction(dest), facing);\n break;\n case 5:\n findSimplePathTo(dest, MoveStepType.LATERAL_LEFT, currStep.direction(dest), facing);\n break;\n }\n }\n }", "public void lineTo(int x1, int y1, int c1) {\n\n if (lineToOrigin) {\n if (x1 == sx0 && y1 == sy0) {\n // staying in the starting point\n return;\n }\n\n // not closing the path, do the previous lineTo\n lineToImpl(sx0, sy0, scolor0, joinToOrigin);\n lineToOrigin = false;\n } else if (x1 == x0 && y1 == y0) {\n return;\n } else if (x1 == sx0 && y1 == sy0) {\n lineToOrigin = true;\n joinToOrigin = joinSegment;\n joinSegment = false;\n return;\n }\n\n lineToImpl(x1, y1, c1, joinSegment);\n joinSegment = false;\n }", "public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }", "public static boolean straightWalk(final RSTile tile, final Condition condition) {\n if (tile == null) {\n return false;\n }\n if (compareGameDestination(tile) || comparePlayerPosition(tile)) {\n return true;\n }\n return Walking.blindWalkTo(tile, new Condition() {\n @Override\n public boolean active() {\n Client.sleep(100);\n AntiBan.activateRun();\n if (condition != null && condition.active()) {\n return true;\n }\n return compareGameDestination(tile);\n }\n }, 500);\n }", "public void runPath()\n\t{\n\t\tinit();\n\t\t\n\t\twhile(_run && (SEQUENCE != null))\n\t\t{\n\t\t\tboolean midLine = LS_MIDDLE.getLightValue() >= s_mid.threshold;\n\t\t\tboolean leftLine = LS_LEFT.getLightValue() >= s_left.threshold;\n\t\t\tboolean rightLine = LS_RIGHT.getLightValue() >= s_right.threshold;\n\t\t\t\n\t\t\tif(!leftLine && !rightLine) handleIntersection();\n\t\t\telse // just a straight line\n\t\t\t{\n\t\t\t\tif (!midLine && !leftLine && !rightLine) turnAround();\n\t\t\t\telse followLine();\n\t\t\t}\n\t\t}\n\t}", "public void travelForward (double x, double y){\r\n\r\n\t\t\tdouble xDistance = x - odometer.getX();//the distance the robot has to travel in x to get to its destination from current position.\r\n\t\t\tdouble yDistance = y - odometer.getY();//the distance the robot has to travel in y to get to its destination from current position.\r\n\t\t\tdouble distance = Math.sqrt(xDistance*xDistance + yDistance*yDistance);//the overall distance the robot has to travel from current position.\r\n\t\t\r\n\t\t\tdouble xStart = odometer.getX();\r\n\t\t\tdouble yStart = odometer.getY();\r\n\t\t\t\r\n\t\t\tboolean isTravelling = true;\r\n\t\t\t\r\n\t\t\twhile(isTravelling){\r\n\t\t\t\t\r\n\t\t\t\tleftMotor.setSpeed(FORWARD_SPEED);\r\n\t\t\t\trightMotor.setSpeed(FORWARD_SPEED);\r\n\r\n\t\t\t\tleftMotor.rotate(convertDistance(wheelRadius, distance - distanceTravelled), true);\r\n\t\t\t\trightMotor.rotate(convertDistance(wheelRadius, distance - distanceTravelled), true);\r\n\t\t\t\t\r\n\t\t\t\txTravelled =(odometer.getX() - xStart); //update xTravelled\r\n\t\t\t\tyTravelled =(odometer.getY() - yStart);\t//update yTravelled\r\n\t\t\t\t\r\n\t\t\t\tdistanceTravelled = Math.sqrt(xTravelled*xTravelled +yTravelled*yTravelled); //update the distance travelled\r\n\t\t\t\tif (distanceTravelled >= distance){\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(getFilteredData() < 15 ){ // if the robot sees an object on the path\r\n\t\t\t\t\tisTravelling = false; //set to false so we exit the loop \r\n\t\t\t\t}\r\n\t\t\t\tLCD.drawString(\"x \", 0, 5);\r\n\t\t\t\tLCD.drawString(\"x \"+odometer.getX(), 0, 5);\r\n\t\t\t\tLCD.drawString(\"y \", 0, 6);\r\n\t\t\t\tLCD.drawString(\"y \"+odometer.getY(), 0, 6);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tleftMotor.setSpeed(0);\r\n\t\t\trightMotor.setSpeed(0);\r\n\t\t\t\t\r\n\t\t\t}", "public void lineTo(int x, int y){\n paint.setColor(Color.parseColor(\"#000000\"));\n //ToDo: implement line drawing here\n\n canvas.drawLine(lastX, lastY, x, y, paint);\n lastX = x;\n lastY = y;\n Log.d(\"Canvas Element\", \"drawing line from: \" + lastX + \", \" + lastY +\",\" + \" to: \" + x +\", \" + y);\n }", "private void moveForwards() {\n\t\tposition = MoveAlgorithmExecutor.getAlgorithmFromCondition(orientation).execute(position);\n\t\t\n\t\t// Extracted the condition to check if tractor is in Ditch\n\t\tif(isTractorInDitch()){\n\t\t\tthrow new TractorInDitchException();\n\t\t}\n\t}", "public boolean lineOfSight(PathAgentModel viewer, PathAgentModel target)\r\n/* 293: */ {\r\n/* 294: */ float ty;\r\n/* 295: */ float tx;\r\n/* 296: */ float ty;\r\n/* 297:336 */ if (target.hasTarget())\r\n/* 298: */ {\r\n/* 299:338 */ float tx = target.getTargetX();\r\n/* 300:339 */ ty = target.getTargetY();\r\n/* 301: */ }\r\n/* 302: */ else\r\n/* 303: */ {\r\n/* 304:343 */ tx = target.getX();\r\n/* 305:344 */ ty = target.getY();\r\n/* 306: */ }\r\n/* 307:348 */ if (viewer.fov(tx, ty)) {\r\n/* 308:350 */ if (line(viewer.getX(), viewer.getY(), tx, ty)) {\r\n/* 309:352 */ return true;\r\n/* 310: */ }\r\n/* 311: */ }\r\n/* 312:355 */ return false;\r\n/* 313: */ }", "public void goStraight() {\n\t\tleftMotor.setSpeed(motorStraight);\n\t\trightMotor.setSpeed(motorStraight);\n\t}", "public void apply() {\n double currentHeading = self.getHeading();\n IGameIterator iter = target.getCollection().getIterator();\n Pylon nextPylon = null;\n while (iter.hasNext()) {\n iter.getNext();\n if (iter.get() instanceof Pylon) {\n if (((Pylon) iter.get()).getNum() == self.getLatestPylon() + 1) { //if it is the next pylon\n nextPylon = (Pylon) iter.get();\n }\n }\n }\n if (nextPylon == null) { //if there are no more pylons\n self.changeSpeed(0 - ((int) self.getMaxSpeed())); //stop at the finish line\n return;\n }\n\n double deltaX = nextPylon.getPosition().getX() - self.getPosition().getX();\n double deltaY = nextPylon.getPosition().getY() - self.getPosition().getY();\n newHeading = Math.toDegrees(Math.atan2(deltaY, deltaX));\n double rightTurn;\n double leftTurn;\n\n rightTurn = (newHeading - currentHeading);\n if (rightTurn < 0)\n rightTurn += 360;\n leftTurn = 360 - rightTurn;\n\n if (leftTurn <= rightTurn) {\n //turn left\n self.steer(-15);\n } else {\n // turn right\n self.steer(15);\n }\n //self.steer((int) (newHeading - currentHeading));\n currentHeading = self.getHeading();\n\n //move at max speed towards it\n self.changeSpeed((int) self.getMaxSpeed());\n }", "void move(int steps);", "private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "public void move(){\n x+=xDirection;\n y+=yDirection;\n }", "double direction (IPoint other);", "private void calculateDirection(){\n\t\tif(waypoints.size() > 0){\n\t\t\tif(getDistanceToWaypoint() <= getSpeed()){\n\t\t\t\tsetPosition(new Vector2(waypoints.remove(0)));\n\t\t\t\tsetCurrentWaypoint(getCurrentWaypoint() + 1);\n\t\t\t}else{\t\t\n\t\t\t\tVector2 target = new Vector2(waypoints.get(0));\n\t\t\t\tVector2 newDirection = new Vector2(target.sub(getPosition())); \n\t\t\t\tsetDirection(newDirection);\n\t\t\t}\n\t\t}else{\n\t\t\tsetDirection(new Vector2(0, 0));\n\t\t}\n\t}", "public void move(int distance) {\n float oldX=0, oldY=0;\n if (penDown) {\n oldX = pos.x; \n oldY = pos.y;\n }\n PVector temp = PVector.fromAngle(p.radians(-direction));\n temp.mult(distance);\n pos.add(temp);\n if (penDown) {\n pen.beginDraw();\n pen.line(oldX, oldY, pos.x, pos.y);\n pen.endDraw();\n }\n }", "public boolean line(float x0, float y0, float x1, float y1)\r\n/* 355: */ {\r\n/* 356:412 */ float dx = Math.abs(x1 - x0);\r\n/* 357:413 */ float dy = Math.abs(y1 - y0);\r\n/* 358: */ int sx;\r\n/* 359: */ int sx;\r\n/* 360:416 */ if (x0 < x1) {\r\n/* 361:418 */ sx = 1;\r\n/* 362: */ } else {\r\n/* 363:421 */ sx = -1;\r\n/* 364: */ }\r\n/* 365: */ int sy;\r\n/* 366: */ int sy;\r\n/* 367:423 */ if (y0 < y1) {\r\n/* 368:425 */ sy = 1;\r\n/* 369: */ } else {\r\n/* 370:429 */ sy = -1;\r\n/* 371: */ }\r\n/* 372:431 */ float err = dx - dy;\r\n/* 373:432 */ boolean line = true;\r\n/* 374:433 */ while (line)\r\n/* 375: */ {\r\n/* 376:435 */ float e2 = 2.0F * err;\r\n/* 377:437 */ if (e2 > -dy)\r\n/* 378: */ {\r\n/* 379:439 */ err -= dy;\r\n/* 380:440 */ x0 += sx;\r\n/* 381: */ }\r\n/* 382:442 */ if (e2 < dx)\r\n/* 383: */ {\r\n/* 384:444 */ err += dx;\r\n/* 385:445 */ y0 += sy;\r\n/* 386: */ }\r\n/* 387:448 */ line = tileWalkable(x0, y0);\r\n/* 388:451 */ if ((x0 == x1) && (y0 == y1)) {\r\n/* 389: */ break;\r\n/* 390: */ }\r\n/* 391:457 */ if (getAgentOnTile(x0, y0) != null) {\r\n/* 392:459 */ line = false;\r\n/* 393: */ }\r\n/* 394: */ }\r\n/* 395:465 */ return line;\r\n/* 396: */ }", "void transitionToNextEdge(double residualMove) {\n\n\t\t// update the counter for where the index on the path is\n\t\tindexOnPath += pathDirection;\n\n\t\t// check to make sure the Agent has not reached the end of the path already\n\t\t// depends on where you're going!\n\t\tif ((pathDirection > 0 && indexOnPath >= path.size()) || (pathDirection < 0 && indexOnPath < 0)) {\n\t\t\treachedDestination = true;\n\t\t\tindexOnPath -= pathDirection; // make sure index is correct\n\t\t\treturn;\n\t\t}\n\n\t\t// move to the next edge in the path\n\t\tEdgeGraph edge = (EdgeGraph) path.get(indexOnPath).getEdge();\n\t\tsetupEdge(edge);\n\t\tspeed = progress(residualMove);\n\t\tcurrentIndex += speed;\n\n\t\t// check to see if the progress has taken the current index beyond its goal\n\t\t// given the direction of movement. If so, proceed to the next edge\n\t\tif (linkDirection == 1 && currentIndex > endIndex) transitionToNextEdge(currentIndex - endIndex);\n\t\telse if (linkDirection == -1 && currentIndex < startIndex) transitionToNextEdge(startIndex - currentIndex);\n\t}", "public static void moveStraightFor(double distance) {\n leftMotor.rotate(convertDistance(distance * TILE_SIZE), true);\n rightMotor.rotate(convertDistance(distance * TILE_SIZE), false);\n }", "public void moveForward(){\n\t\tSystem.out.println(\"Vehicle moved forward\");\n\t}", "@Override\n protected void processPathAction(GridNode start, GridNode goal, Stack<GridNode> path) {\n path.pop();\n\n // Make the robot follow the path\n Mover mover = new Mover(\n robot.getDifferentialPilot(),\n new LightSensor(leftSensorPort),\n new LightSensor(rightSensorPort),\n path,\n initialDirection);\n mover.run();\n }", "public void move(String direction);", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "public void goToXY(float x, float y) {\n float oldX, oldY;\n oldX = pos.x;\n oldY = pos.y; \n pos.x = x; \n pos.y = y;\n if (penDown) {\n pen.beginDraw();\n pen.line(oldX,oldY,pos.x,pos.y);\n pen.endDraw();\n }\n }", "public void Mirror(Line l)\n\t{\n\t\tif (l == null) return;\n\t\tif (l.point1 == null || l.point2 == null)\n {\n return;\n }\n\t\tint rise = l.point1.y - l.point2.y;\n\t\tint run = l.point1.x - l.point2.x;\n\t\t\n\t\tif (run != 0)\n\t\t{\n\t\t\tint slope = rise/run;\n\n\t\t\tint b = l.point1.y - (slope*l.point1.x);\n\n\t\t\tint d = (l.point1.x + (l.point1.y - b)*slope) / ( 1 + slope*slope);\n\n\t\t\tthis.x = 2*d - this.x;\n\t\t\tthis.y = (2*d*slope - this.y + 2*b);\n\t\t}\n\t\t//handle undefined slope; \n\t\telse\n\t\t{\n\t\t\tthis.x = -(this.x - l.point1.x); \n\t\t}\n\t\t\n\n\t}", "public void move(int distance);", "private void navToPoint(Unit unit){\n\t\tMapLocation currentLocation = unit.location().mapLocation();\n\t\tMapLocation locationToTest;\n\t\tMapLocation targetLocation = orderStack.peek().getLocation();\n\t\tlong smallestDist=1000000000; //arbitrary large number\n\t\tlong temp;\n\t\tDirection closestDirection=null;\n\t\tint i=1;\n\t\t\n\t\tif(gc.isMoveReady(unitID)){\n\t\t\t//first find the direction that moves us closer to the target\n\t\t\tfor(Direction dir : Direction.values()){\n\t\t\t\tif (debug) System.out.println(\"this (\"+dir.name()+\") is the \"+i+\"th direction to check, should get to 9\");\n\t\t\t\tlocationToTest=currentLocation.add(dir);\n\t\t\t\t//make sure it is on the map and is passable\n\t\t\t\tif (debug){\n\t\t\t\t\tSystem.out.println(\"testing this location: \"+locationToTest);\n\t\t\t\t\tSystem.out.println(\"valid move? \"+gc.canMove(unitID, dir));\n\t\t\t\t}\n\t\t\t\tif(gc.canMove(unitID, dir)){\n\t\t\t\t\tif (debug)System.out.println(\"we can indeed move there...\");\n\t\t\t\t\t//make sure the location hasn't already been visited\n\t\t\t\t\tif(!pastLocations.contains(locationToTest)){\n\t\t\t\t\t\tif (debug)System.out.println(\"not been there recently...\");\n\t\t\t\t\t\t//at this point its a valid location to test, check its distance\n\t\t\t\t\t\ttemp = locationToTest.distanceSquaredTo(targetLocation);\n\t\t\t\t\t\tif (debug)System.out.println(\"distance :\"+temp);\n\t\t\t\t\t\tif (temp<smallestDist){\n\t\t\t\t\t\t\tif (debug)System.out.println(\"new closest!\");\n\t\t\t\t\t\t\t//new closest point, update accordingly\n\t\t\t\t\t\t\tsmallestDist=temp;\n\t\t\t\t\t\t\tclosestDirection=dir;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}//end of for-each loop\n\t\t}//end move ready if.\n\t\t\n\t\t//actual movement and maintenance of places recently visited\n\t\tif(closestDirection!=null){\n\t\t\tif (debug){\n\t\t\t\tSystem.out.println(\"found a closest direction, calling navInDirection()\");\n\t\t\t\tSystem.out.println(\"heading \"+closestDirection.name());\n\t\t\t}\n\t\t\tmoveInDirection(closestDirection, unit);\n\t\t\tcleanUpAfterMove(unit);\n\t\t}else{\n\t\t\t//can't get any closer\n\t\t\tif (debug) System.out.println(\"can't get closer, erasing past locations\");\n\t\t\tpastLocations.clear();\n\t\t}\n\t\t\n\t\t//have we arrived close enough?\n\t\tif(unit.location().mapLocation().distanceSquaredTo(targetLocation)<=howCloseToDestination){\n\t\t\t//atTargetLocation=true;\n\t\t\t\n\t\t\t//if order was a MOVE order, it is complete, go ahead and pop it off the stack\n\t\t\tif(orderStack.peek().getType().equals(OrderType.MOVE)){\n\t\t\t\torderStack.pop();\n\t\t\t}\n\t\t\tif (debug) System.out.println(\"Unit \"+unit.id()+\" arrived at destination.\");\n\t\t}\n\t\t\n\t\t;\n\t}", "public void move(Vector start,Vector dist);", "void moveTurtle(int turtleIndex, Coordinate start, Coordinate end);", "protected void patrol(){\n Point currentDest = patrolPoints.get(pointIndex);\n //Check if we have reached the current destination\n if(this.x == currentDest.x && this.y == currentDest.y){\n nextPatrolPoint();\n }\n if(stuckCounter > 30){\n nextPatrolPoint();\n }\n\n double dist;\n if(this.x != currentDest.x){\n dist = currentDest.x - this.x;\n //Counteracts the effect of speed being greater than the distance, cauing jitter\n if(Math.abs(dist) < speed){\n dx = dist;\n }\n else {\n int direction = (int)(dist/Math.abs(dist));\n switch (direction){\n case 1:\n moveRight();\n break;\n case -1:\n moveLeft();\n break;\n }\n }\n }\n else{\n dx = 0;\n }\n if(this.y != currentDest.y){\n dist = currentDest.y - this.y;\n //Counteracts the effect of speed being greater than the distance, cauing jitter\n if(Math.abs(dist) < speed){\n dy = dist;\n }\n else {\n int direction = (int)(dist/Math.abs(dist));\n switch (direction){\n case 1:\n moveDown();\n break;\n case -1:\n moveUp();\n break;\n }\n }\n }\n else{\n dy = 0;\n }\n }", "public void goForward(double distance) {\n \t\tthis.travelTo(Math.cos(Math.toRadians(this.myOdometer.getAng())) * distance, Math.cos(Math.toRadians(this.myOdometer.getAng())) * distance);\n \t}", "private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-robot.getY(), goal.getX()-robot.getX()));\r\n\r\n\t\t// deviation of start point's x-axis from (0,0)\r\n\t\tthis.deviation = this.robot;\r\n\r\n\t\tthis.robot = new Robot(GA_PathPlanning.Transform(robot, -deviation.x, -deviation.y));\r\n\t\tthis.robot = new Robot(Rotate(robot, -angle));\r\n\t\t \r\n\t\tthis.goal = GA_PathPlanning.Transform(goal, -deviation.x, -deviation.y);\r\n\t\tthis.goal = GA_PathPlanning.Rotate(goal, -angle);\r\n\t\t\r\n\t\tfor(int i=0;i<obstacles.length;i++)\r\n\t\t{\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Transform(obstacles[i], -deviation.x, -deviation.y));\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Rotate(obstacles[i], -angle));\r\n\t\t}\r\n\t\t// make start point as (0,0)\r\n\t\t// transform xy-axis to axis of the straight line between start and goal\r\n\t\t\r\n\t\t\r\n\t}", "public List<MovePath> getNextMoves(boolean backward, boolean forward) {\n final ArrayList<MovePath> result = new ArrayList<MovePath>();\n final MoveStep last = getLastStep();\n// if (isJumping()) {\n// final MovePath left = clone();\n// final MovePath right = clone();\n//\n// // From here, we can move F, LF, RF, LLF, RRF, and RRRF.\n// result.add(clone().addStep(MovePath.MoveStepType.FORWARDS));\n// for (int turn = 0; turn < 2; turn++) {\n// left.addStep(MovePath.MoveStepType.TURN_LEFT);\n// right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n// result.add(left.clone().addStep(MovePath.MoveStepType.FORWARDS));\n// result.add(right.clone().addStep(MovePath.MoveStepType.FORWARDS));\n// }\n// right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n// result.add(right.addStep(MovePath.MoveStepType.FORWARDS));\n//\n// // We've got all our next steps.\n// return result;\n// }\n\n // need to do a separate section here for Aeros.\n // just like jumping for now, but I could add some other stuff\n // here later\n if (getEntity() instanceof Aero) {\n MovePath left = clone();\n MovePath right = clone();\n\n // From here, we can move F, LF, RF, LLF, RRF, and RRRF.\n result.add((clone()).addStep(MovePath.MoveStepType.FORWARDS));\n for (int turn = 0; turn < 2; turn++) {\n left.addStep(MovePath.MoveStepType.TURN_LEFT);\n right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n result.add(left.clone().addStep(MovePath.MoveStepType.FORWARDS));\n result.add(right.clone().addStep(MovePath.MoveStepType.FORWARDS));\n }\n right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n result.add(right.addStep(MovePath.MoveStepType.FORWARDS));\n\n // We've got all our next steps.\n return result;\n }\n\n // If the unit is prone or hull-down it limits movement options, unless\n // it's a tank; tanks can just drive out of hull-down and they cannot\n // be prone.\n if (getFinalProne() || (getFinalHullDown() && !(getEntity() instanceof Tank))) {\n if ((last != null) && (last.getType() != MoveStepType.TURN_RIGHT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_LEFT));\n }\n if ((last != null) && (last.getType() != MoveStepType.TURN_LEFT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_RIGHT));\n }\n\n if (getEntity().isCarefulStand()) {\n result.add(clone().addStep(MovePath.MoveStepType.CAREFUL_STAND));\n } else {\n result.add(clone().addStep(MovePath.MoveStepType.GET_UP));\n }\n return result;\n }\n if (canShift()) {\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_LEFT)))) {\n result.add(clone().addStep(MoveStepType.LATERAL_RIGHT));\n }\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_RIGHT)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_LEFT));\n }\n if (backward\n && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_LEFT_BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_RIGHT_BACKWARDS));\n }\n if (backward\n && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_RIGHT_BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_LEFT_BACKWARDS));\n }\n }\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.FORWARDS));\n }\n if ((last == null) || (last.getType() != MovePath.MoveStepType.TURN_LEFT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_RIGHT));\n }\n if ((last == null) || (last.getType() != MovePath.MoveStepType.TURN_RIGHT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_LEFT));\n }\n if (backward && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.FORWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.BACKWARDS));\n }\n return result;\n }", "@Override\n\tprotected Direction move(View v) {\n\t\tpause(100);\n\n\t\t// Currently, the left walker just follows a completely random\n\t\t// direction. This is not what the specification said it should do, so\n\t\t// tests will fail ... but you should find it helpful to look at how it\n\t\t// works!\n\n\t\tif(!caliberated){\n\t\t\treturn caliberate(v);\n\t\t}\n\t\treturn followLeftWall(v);\n\t}", "Move moveToward(Point target) {\n if (standing) {\n // Run to the destination\n if (pos.x != target.x) {\n if (pos.y != target.y) {\n // Run diagonally.\n return new Move(\"run\",\n pos.x + clamp(target.x - pos.x, -1, 1),\n pos.y + clamp(target.y - pos.y, -1, 1));\n }\n // Run left or right\n return new Move(\"run\",\n pos.x + clamp(target.x - pos.x, -2, 2),\n pos.y);\n }\n\n if (pos.y != target.y)\n // Run up or down.\n return new Move(\"run\",\n pos.x,\n pos.y + clamp(target.y - pos.y, -2, 2));\n } else {\n // Crawl to the destination\n if (pos.x != target.x)\n // crawl left or right\n return new Move(\"crawl\",\n pos.x + clamp(target.x - pos.x, -1, 1),\n pos.y);\n\n if (pos.y != target.y)\n // crawl up or down.\n return new Move(\"crawl\",\n pos.x,\n pos.y + clamp(target.y - pos.y, -1, 1));\n }\n\n // Nowhere to move, just reutrn the idle move.\n return new Move();\n }", "public void move(String direction) {\n \n }", "abstract public void moveForward();", "public void goToLine(int line) {\n // Humans number lines from 1, the rest of PTextArea from 0.\n --line;\n final int start = getLineStartOffset(line);\n final int end = getLineEndOffsetBeforeTerminator(line);\n centerOnNewSelection(start, end);\n }", "protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }", "void moveTo(int dx, int dy);", "private void straightDistance(double distance) {\n\t\tdouble marginOfError = 0.3;// in inches\n\t\tdouble distanceTraveled = 0;// in inches\n\t\tdouble forwardSpeed = 0;\n\t\tdouble rightSpeed = 0;\n\t\tdouble leftSpeed = 0;\n\t\t// desiredAngle = maggie.getAngle();\n\t\tleftEncoder.reset();\n\t\trightEncoder.reset();\n\n\t\twhile (Math.abs(distanceTraveled - distance) > marginOfError && isEnabled() && isAutonomous()) {\n\t\t\tdistanceTraveled = kDriveToInches * ((-leftEncoder.get() + rightEncoder.get()) / 2);\n\t\t\tSmartDashboard.putNumber(\"distance Traveled\", distanceTraveled);\n\t\t\t// slowed down for now\n\t\t\tforwardSpeed = Math.atan(0.125 * (distance - distanceTraveled)) / (0.5 * Math.PI);//replace arctan with 1/(1+(1.0*e^(-1.0*x)))\n\t\t\t/*rightSpeed = forwardSpeed * (1 + (0.01 * (maggie.getAngle() - desiredAngle)));\n\t\t\tleftSpeed = forwardSpeed * (1 - 0.01 * (maggie.getAngle() - desiredAngle));*/\n\t\t\trobot.lDrive(leftSpeed);\n\t\t\trobot.rDrive(rightSpeed);\n\t\t\televator.update();\n\t\t\trobot.eDrive(elevator.motorMovement);\n\t\t\treportEncoder();\n\t\t}\n\t}", "public void move()\n {\n move(WALKING_SPEED);\n }", "public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }", "@Override\n public void move() {\n System.out.println(\"diagonally\");\n }", "@Override\n public void doCommand(FrontEndTurtle frontEndTurtle) {\n frontEndTurtle.towards(x, y);\n }", "@Override\n public MFEDirection next()\n {\n if (!this.isPathValid()) {\n String msg = \"Annotated Path\" + this.getStart().getLocation() + \"->\" +\n this.getGoal().getLocation() + \": Cannot get next step \" +\n \"when path is invalid.\";\n logger.severe(msg);\n throw new IllegalStateException(msg);\n }\n final MFEDirection dir = this.path.poll();\n\n if (dir == null) {\n String msg = \"Annotated Path \" + this.getStart().getLocation() + \"->\" +\n this.getGoal().getLocation() + \": No more steps.\";\n logger.severe(msg);\n throw new NoSuchElementException(msg);\n }\n\n return dir;\n }", "@Override\n\tprotected boolean moveRobot(boolean printEachStep) {\n\t\tboolean move=true;\n\t\tint incOrDecR = destRow > curRow ? 1 : -1, \n\t\t\tincOrDecC = destCol > curCol ? 1 : -1, \n\t\t\tcount = diagonalCount();\n\t\t\t// Move diagonally as close to the destination it can get to\n\t\t\tfor(int i=0; i<count; ++i) {\n\t\t\t\tif(move=grid.moveFromTo(this, curRow, curCol, \n\t\t\t\t\t\tblockedRow=curRow+incOrDecR, \n\t\t\t\t\t\tblockedCol=curCol+incOrDecC)) { \n\t\t\t\t\tcurRow+=incOrDecR; \n\t\t\t\t\tcurCol+=incOrDecC;\n\t\t\t\t\t--energyUnits;\n\t\t\t\t\tif(printEachStep)\n\t\t\t\t\t\tgrid.printGrid();\n\t\t\t\t} else {\n\t\t\t\t\treturn move; \n\t\t\t\t}\n\t\t\t}\n\t\tmove=super.moveRobot(printEachStep);\n\t\treturn move;\n\t}", "public void DriveForwardSimple() {\n \ttheRobot.drive(-0.5, 0.0);\n }", "public abstract int drive(int journeyDistance);", "private void pointWalkBehavior() {\n\t\tif (moving) {\n\t\t\tif (remainingSteps > 0) {\n\t\t\t\tupdatePixels(action);\n\t\t\t\tremainingSteps -= speed;\n\t\t\t} else {\n\t\t\t\tupdateCoordinate(action, false);\n\t\t\t\tif (coordX != endPoint.x || coordY != endPoint.y) {\n\t\t\t\t\tif (validMoveEh(action)) {\n\t\t\t\t\t\tremainingSteps = STEP_SIZE;\n\t\t\t\t\t\tupdateCoordinate(action, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmoving = false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcurrentImage = stopAnimation(action);\n\t\t\t\t\tpointWalking = false;\n\t\t\t\t\tmoving = false;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (validMoveEh(action)) {\n\t\t\t\tmoving = true;\n\t\t\t\tremainingSteps = STEP_SIZE;\n\t\t\t\tupdateCoordinate(action, true);\n\t\t\t\tcurrentImage = startAnimation(action);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void move()\n {\n System.out.println(\"tightrope walking\");\n }", "private double[] getGoalPointAtLookaheadDistance(\n double[] initialPointOfLine, double[] finalPointOfLine, double[] nearestPoint) {\n\n // TODO: use lookahead distance proportional to robot max speed -> 0.5 * getRobotMaxSpeed()\n return Geometry.getPointAtDistance(\n initialPointOfLine, finalPointOfLine, nearestPoint, lookaheadDistance);\n }", "@Override\n\tpublic Direction nextMove(State state)\n\t{\n\t\t\n\t\tthis.direction = Direction.STAY;\n\t\tthis.hero = state.hero();\n\t\tthis.position = new Point( this.hero.position.right, this.hero.position.left ); //x and y are reversed, really\n\t\t\n\t\tthis.pathMap = new PathMap( state, this.position.x, this.position.y );\n\n\t\t//find the richest hero\n\t\tHero richestHero = state.game.heroes.get(0);\n\t\tif( richestHero == this.hero ) { richestHero = state.game.heroes.get(1); } //just grab another hero if we are #0\n\t\t\n\t\tfor( Hero hero : state.game.heroes )\n\t\t{\n\t\t\tif( hero != this.hero && hero.gold > richestHero.gold )\n\t\t\t{\n\t\t\t\trichestHero = hero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//get all interesting sites\n\t\tList<TileInfo> minesInRange = this.pathMap.getSitesInRange( TileType.FREE_MINE, 20 );\t//mines in vicinity\n\t\tList<TileInfo> takenMinesInRange = this.pathMap.getSitesInRange( TileType.TAKEN_MINE, (100-richestHero.life)/2 );\t//mines in vicinity\n\t\tList<TileInfo> pubsInRange = this.pathMap.getSitesInRange( TileType.TAVERN, (int)(Math.pow(100-this.hero.life,2)*state.game.board.size/5000) );\t\t//pubs in vicinity\n\t\t\n\t\t//first visit pubs (apparently we need it)\n\t\tif( pubsInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( pubsInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then visit the mines\n\t\telse if( minesInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( minesInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then visit taken mines\n\t\telse if( takenMinesInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( takenMinesInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then hunt for players\n\t\telse\n\t\t{\n\t\t\t//kill the richest hero! (but first full health)\n\t\t\tif( this.hero.life > 85 )\n\t\t\t{\n\t\t\t\tthis.direction = this.pathMap.getDirectionTo( richestHero.position.right, richestHero.position.left );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//run away!!!\n\t\t\t\tthis.direction = intToDir( (int)(Math.random()*4) );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//VisualPathMap.getInstance( pathMap );\n\t\t\n\t\treturn this.direction;\n\t}", "public double getDirectionMove();", "public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "public void travel();", "public void drawLine(Position scanPos, Position mypos)// in\n \t\t// ver�nderter\n \t\t// Form von\n \t\t// http://www-lehre.informatik.uni-osnabrueck.de\n \t\t\t{\n \t\t\t\tint x, y, error, delta, schritt, dx, dy, inc_x, inc_y;\n \n \t\t\t\tx = mypos.getX(); // \n \t\t\t\ty = mypos.getY(); // As i am center\n \n \t\t\t\tdx = scanPos.getX() - x;\n \t\t\t\tdy = scanPos.getY() - y; // Hoehenzuwachs\n \n \t\t\t\t// Schrittweite\n \n \t\t\t\tif (dx > 0) // Linie nach rechts?\n \t\t\t\t\tinc_x = 1; // x inkrementieren\n \t\t\t\telse\n \t\t\t\t\t// Linie nach links\n \t\t\t\t\tinc_x = -1; // x dekrementieren\n \n \t\t\t\tif (dy > 0) // Linie nach oben ?\n \t\t\t\t\tinc_y = 1; // y inkrementieren\n \t\t\t\telse\n \t\t\t\t\t// Linie nach unten\n \t\t\t\t\tinc_y = -1; // y dekrementieren\n \n \t\t\t\tif (Math.abs(dy) < Math.abs(dx))\n \t\t\t\t\t{ // flach nach oben oder unten\n \t\t\t\t\t\terror = -Math.abs(dx); // Fehler bestimmen\n \t\t\t\t\t\tdelta = 2 * Math.abs(dy); // Delta bestimmen\n \t\t\t\t\t\tschritt = 2 * error; // Schwelle bestimmen\n \t\t\t\t\t\twhile (x != scanPos.getX())\n \t\t\t\t\t\t\t{\n \n \t\t\t\t\t\t\t\tif (x != mypos.getX())\n \t\t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\t\tincPix(x + mypos.getX(), y + mypos.getY()); // Fuer\n \t\t\t\t\t\t\t\t\t\t// jede\n \t\t\t\t\t\t\t\t\t\t// x-Koordinate\n \t\t\t\t\t\t\t\t\t\t// System.out.println(\"inc pos \"+ (x +\n \t\t\t\t\t\t\t\t\t\t// mypos.getX()));\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t// Pixel\n \t\t\t\t\t\t\t\tx += inc_x; // naechste x-Koordinate\n \t\t\t\t\t\t\t\terror = error + delta; // Fehler aktualisieren\n \t\t\t\t\t\t\t\tif (error > 0)\n \t\t\t\t\t\t\t\t\t{ // neue Spalte erreicht?\n \t\t\t\t\t\t\t\t\t\ty += inc_y; // y-Koord. aktualisieren\n \t\t\t\t\t\t\t\t\t\terror += schritt; // Fehler\n \t\t\t\t\t\t\t\t\t\t// aktualisieren\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t} else\n \t\t\t\t\t{ // steil nach oben oder unten\n \t\t\t\t\t\terror = -Math.abs(dy); // Fehler bestimmen\n \t\t\t\t\t\tdelta = 2 * Math.abs(dx); // Delta bestimmen\n \t\t\t\t\t\tschritt = 2 * error; // Schwelle bestimmen\n \t\t\t\t\t\twhile (y != scanPos.getY())\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tif (y != mypos.getY())\n \t\t\t\t\t\t\t\t\t{// fuer jede y-Koordinate\n \t\t\t\t\t\t\t\t\t\tincPix(x + mypos.getX(), y + mypos.getY());\n \t\t\t\t\t\t\t\t\t}// setze\n \t\t\t\t\t\t\t\t// Pixel\n \t\t\t\t\t\t\t\ty += inc_y; // naechste y-Koordinate\n \t\t\t\t\t\t\t\terror = error + delta; // Fehler aktualisieren\n \t\t\t\t\t\t\t\tif (error > 0)\n \t\t\t\t\t\t\t\t\t{ // neue Zeile erreicht?\n \t\t\t\t\t\t\t\t\t\tx += inc_x; // x-Koord. aktualisieren\n \t\t\t\t\t\t\t\t\t\terror += schritt; // Fehler\n \t\t\t\t\t\t\t\t\t\t// aktualisieren\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\tif ((x != scanPos.getX() && y != scanPos.getY()))\n \t\t\t\t\t{\n \t\t\t\t\t\tdecPix(scanPos.getX() + x, scanPos.getY() + y);\n \t\t\t\t\t}\n \t\t\t}", "public void grip(){\n\t\tthis.motor.backward();\n\t}", "private static void follow(Node node, EDirection dir, Node start, Collection<Vec2f> r) {\n\t\tNode next = node.getNeighbor(dir);\n\t\tif (node == start && dir == EDirection.EAST && !r.isEmpty()) // starting point\n\t\t\treturn;\n\t\tif (next == null) { // no neighbor change direction\n\t\t\tr.add(corner(node.getRectBounds(), dir));\n\t\t\tfollow(node, dir.rot90(), start, r);\n\t\t} else if (next.getNeighbor(dir.opposite().rot90()) != null) {\n\t\t\tr.add(corner(node.getRectBounds(), dir));\n\t\t\tfollow(next.getNeighbor(dir.opposite().rot90()), dir.opposite().rot90(), start, r);\n\t\t} else {\n\t\t\tVec2f my = node.getLocation();\n\t\t\tVec2f ne = next.getLocation();\n\t\t\tEDimension shiftDir = dir.asDim().opposite();\n\t\t\tfloat shift = shiftDir.select(my) - shiftDir.select(ne);\n\t\t\tif (shift != 0) {\n\t\t\t\tr.add(corner(node.getRectBounds(), dir));\n\t\t\t\tr.add(corner(next.getRectBounds(), dir.opposite().rot90()));\n\t\t\t}\n\t\t\tfollow(next, dir, start, r);\n\t\t}\n\t}", "public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }", "public void move() {\r\n\t\tSystem.out.print(\"This Tiger moves forward\");\r\n\t}", "public void MoveSnake(Direction direction) {\n int end = tail;\n if(new_link)\n end = tail - 1;\n\n new_link = false; // If new_link was true, it has been added already so now there is no new link\n\n for(int i = end; i > 0; i--)\n snake.get(i).SetTo(snake.get(i - 1)); //Set each link to the link ahead\n\n snake.get(head).Update(direction); //Change the direction of the snake's head\n\n }", "public void editForwardLines(int line, int player, int newLine, int newPlayer) {\n Player selection1 = forwardLines[line][player];\n Player selection2 = forwardLines[newLine][newPlayer];\n\n //swap players\n forwardLines[line][player] = selection2;\n forwardLines[newLine][newPlayer] = selection1;\n }", "@Override\n public void run() {\n\n // Define vehicle label if undefined\n if (this.label == null) {\n this.label = \"Vehicle_\" + this.getId();\n }\n\n // Ask roundabout object for path\n Deque<Vertex<AtomicReference>> path = this.getVehicleRoute(this.source, this.destination);\n Vertex<AtomicReference> last = null;\n\n // Get entry queue\n ConcurrentLinkedQueue<Vehicle> entry = this.roundabout.queueOnEntry(this, this.source);\n\n // Wait for first in queue\n while (entry.peek() != this) this.vehicleSleep(waitOnQueue());\n\n // Traverse Path\n for (Vertex<AtomicReference> v : path) {\n\n // Accelerate between path nodes\n if (this.speed < this.maxSpeed) this.speed = accelerate(this.speed);\n\n // Move to node\n while (!v.getValue().compareAndSet(null, this)) {\n\n // Decelerate to not crash into another vehicle\n while (this.speed > 0) this.speed = decelerate(this.speed);\n\n System.out.println(this.label + \": Waiting for next node \" + v.getKey());\n\n // Wait\n this.vehicleSleep(waitToTravel());\n }\n\n // Accelerate for next in case it has stopped\n while (this.speed <= 0) this.speed = accelerate(this.speed);\n\n System.out.println(this.label + \": Moving to node \" + v.getKey() + \" for \" + travel());\n\n // Moving from node to node\n this.vehicleSleep(travel());\n\n // Remove myself from queue only after locking the first node\n if (path.peekFirst() == v) entry.remove(this);\n\n // Release last node\n while (last != null && !last.getValue().compareAndSet(this, null)) ;\n\n // Assign v as the last node which it travelled to\n last = v;\n }\n\n // Release last node\n while (!last.getValue().compareAndSet(this, null)) ;\n }", "private static void lineTo(float x, float y) {\n setPenDown();\n mPivotX = mPenX = x;\n mPivotY = mPenY = y;\n mPath.lineTo(x * mScale, y * mScale);\n elements.add(\n new PathElement(ElementType.kCGPathElementAddLineToPoint, new Point[] {new Point(x, y)}));\n }", "@Override\r\n public void act() {\r\n boolean willMove = canMove();\r\n if (isEnd) {\r\n // to show step count when reach the goal\r\n if (!hasShown) {\r\n String msg = stepCount.toString() + \" steps\";\r\n JOptionPane.showMessageDialog(null, msg);\r\n hasShown = true;\r\n }\r\n } else if (willMove) {\r\n move();\r\n // increase step count when move\r\n stepCount++;\r\n // 把当前走过的位置加入栈顶的arrayList\r\n crossLocation.peek().add(getLocation());\r\n // 当前方向的概率+1\r\n probablyDir[getDirection() / 90]++;\r\n } else if (!willMove) {\r\n // 这时候必须一步一步返回栈顶arrayList的开头\r\n ArrayList<Location> curCrossed = crossLocation.peek();\r\n curCrossed.remove(curCrossed.size() - 1);\r\n next = curCrossed.get(curCrossed.size() - 1);\r\n move();\r\n stepCount++;\r\n // 当前方向反向的概率-1\r\n probablyDir[((getDirection() + Location.HALF_CIRCLE)\r\n % Location.FULL_CIRCLE) / Location.RIGHT]--;\r\n if (curCrossed.size() == 1) {\r\n // 返回之后pop\r\n crossLocation.pop();\r\n }\r\n }\r\n }", "public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }", "public void drawTo(Point that) {\n StdDraw.line(this.x, this.y, that.x, that.y);\n }", "private void goForwardOne() \n {\n if (m_bufferOffset_ < 0) {\n // we're working on the source and not normalizing. fast path.\n // note Thai pre-vowel reordering uses buffer too\n m_source_.setIndex(m_source_.getIndex() + 1);\n }\n else {\n // we are in the buffer, buffer offset will never be 0 here\n m_bufferOffset_ ++;\n }\n }", "public void travelTo(double x, double y){\r\n\r\n\t\t\tdouble xDistance = x - odometer.getX();//the distance the robot has to travel in x to get to its destination from current position.\r\n\t\t\tdouble yDistance = y - odometer.getY();//the distance the robot has to travel in y to get to its destination from current position.\r\n\t\t\tdouble distance = Math.sqrt(xDistance*xDistance + yDistance*yDistance);//the overall distance the robot has to travel from current position.\r\n\t\t\t\r\n\t\t\tnewAngle = Math.atan(xDistance/yDistance); // if the yDistance is negative and xDistance superior to 0, it will provide the right angle for the nxt by adding pi to it's turn angle, \r\n\t\t\t\r\n\t\t\tcurrentAngle = odometer.getAng(); // gets current angle of nxt\r\n\t\t\ttheta = Math.toDegrees(newAngle) - currentAngle; \r\n\t\t\t\r\n\t\t\t// if true, turn to theta and run the trajectory without obstacleAvoidance\r\n\t\t\tLCD.drawString(\"theta: \"+ theta, 0, 1);\r\n\t\t\tturnTo(theta);\r\n\t\t\t\t\r\n\t\t\tleftMotor.setSpeed(FORWARD_SPEED);\r\n\t\t\trightMotor.setSpeed(FORWARD_SPEED);\r\n\r\n\t\t\tleftMotor.rotate(convertDistance(wheelRadius, distance), true);\r\n\t\t\trightMotor.rotate(convertDistance(wheelRadius, distance), false);\r\n\t\t}" ]
[ "0.64093673", "0.62268174", "0.6101613", "0.6082397", "0.60567445", "0.6010274", "0.595551", "0.59358996", "0.5879683", "0.5877147", "0.5861672", "0.58305216", "0.5795899", "0.5698164", "0.5690787", "0.5658417", "0.5656863", "0.5653399", "0.56333286", "0.56314236", "0.5631238", "0.5630313", "0.5626255", "0.5615657", "0.5604083", "0.5601169", "0.5582129", "0.55661", "0.5564035", "0.55387235", "0.5521394", "0.5519945", "0.5512524", "0.54795605", "0.54790515", "0.54506063", "0.54486495", "0.54479754", "0.54452366", "0.54280996", "0.5422558", "0.5404893", "0.5399311", "0.5394997", "0.5393615", "0.5391587", "0.53915304", "0.53852373", "0.5373368", "0.5368231", "0.5363849", "0.5357734", "0.53575075", "0.53485805", "0.53484684", "0.53302175", "0.5326243", "0.53232", "0.5319019", "0.53190005", "0.5315022", "0.53057253", "0.5303324", "0.5284464", "0.5280911", "0.5273567", "0.52732813", "0.5268469", "0.52668417", "0.526521", "0.52622646", "0.52563226", "0.525603", "0.5246855", "0.52409095", "0.5231716", "0.52299273", "0.52272296", "0.52267575", "0.5226753", "0.5224334", "0.52235454", "0.52212244", "0.52183324", "0.5211231", "0.5204759", "0.5201971", "0.5195646", "0.51893336", "0.51891273", "0.51738507", "0.5173042", "0.5171771", "0.5165859", "0.51656306", "0.51569057", "0.5150666", "0.51468575", "0.5144722", "0.51401937" ]
0.55141747
32
Walks in a straight line towards the destination.
public static boolean straightWalk(final RSTile tile, final Condition condition) { if (tile == null) { return false; } if (compareGameDestination(tile) || comparePlayerPosition(tile)) { return true; } return Walking.blindWalkTo(tile, new Condition() { @Override public boolean active() { Client.sleep(100); AntiBan.activateRun(); if (condition != null && condition.active()) { return true; } return compareGameDestination(tile); } }, 500); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void walk(int direction);", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }", "public abstract void lineTo(double x, double y);", "public void lineTo(double x, double y)\n {\n\tPoint2D pos = transformedPoint(x,y);\n\tdouble tx = pos.getX();\n\tdouble ty = pos.getY();\n\t\n\tLine line = new Line(_currentx, _currenty, tx, ty);\n\n\tSystem.out.println(\"+Line: \" + line.toString());\n\t_currentPath.add(line);\n\t_currentx = tx;\n\t_currenty = ty;\n }", "protected abstract void lineTo(final float x, final float y);", "public void moveForward (double distance) {\r\n\t\t\r\n\t\t//if the tail is lowered it leaves a dashed line\r\n\t\tif (tail_mode) {\r\n\t\t\t\r\n\t\t\t//skips (tail up and down) of distances of 10\r\n\t\t\tfor (int i=0; i<distance; i=i+20) {\r\n\t\t\t\tsuper.moveForward(10);\r\n\t\t\t\ttailUp();\r\n\t\t\t\tsuper.moveForward(10);\r\n\t\t\t\ttailDown();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t//if the tail is up he move forward without leaving trails\r\n\t\t} else {\r\n\t\t\tsuper.moveForward(distance);\r\n\t\t}\r\n\t}", "public void DoGoToLine(int spot) {\n\t\tint col = spot % 10;\n\t\txDestination = 175 + (col * 25);\n\t\tyDestination = yEnterBus;\n\t\tcommand = Command.GetInLine;\n\t}", "public void stepForward() {\n\t\tposition = forwardPosition();\n\t}", "public void traverseZipline(){\n this.driver.setForwardSpeed(150);\n this.driver.forward();\n \n // Note: rotations are negative because motor is built the wrong way\n // Rotate slowly for the first third of the rotations \n this.pulleyMotor.setSpeed(80);\n this.pulleyMotor.rotate(-2160);\n \n // Rotate quicker for the second third of the rotations\n this.pulleyMotor.setSpeed(120);\n this.pulleyMotor.rotate(-2160);\n \n // Rotate slowly for the last third of the rotations\n this.pulleyMotor.setSpeed(80);\n this.pulleyMotor.rotate(-2160);\n\n // Move a bit forward to move away from zipline\n this.driver.forward(2,false);\n this.driver.setForwardSpeed(120); \n }", "@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }", "protected void rotateUntilLine() {\n\t\tlog(\"Start looking for line again.\");\n\t\tgetPilot().setRotateSpeed(slowRotateSpeed);\n\t\t// getPilot().rotateRight();\n\n\t\tbindTransition(onLine(), LineFinderState.POSITION_PERPENDICULAR);\n\t\tbindTransition(getPilot().rotateComplete(-360), LineFinderState.FAILED);\n\t}", "@Override\n void setJourney(String line, TransitCard transitCard) {\n SubwayLine subwayLine = SubwaySystem.getSubwayLineByName(line);\n int startIndex = subwayLine.getStationList().indexOf(this.startLocation);\n int endIndex = subwayLine.getStationList().indexOf(this.endLocation);\n if (startIndex < endIndex) {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex++;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n } else {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex--;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n }\n double d =\n Distance.getDistance(\n startLocation.getNodeLocation().get(0),\n startLocation.getNodeLocation().get(1),\n endLocation.getNodeLocation().get(0),\n endLocation.getNodeLocation().get(1));\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementDistance(d);\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementPassengers();\n }", "private static Activity moveInDirection(int x, int y) {\n return Activity.newBuilder()\n .addSubActivity(() -> {\n Position pos = Players.getLocal().getPosition();\n while(pos.isPositionWalkable()) {\n pos = pos.translate(x, y);\n }\n pos = pos.translate(-x, -y);\n while(!Movement.setWalkFlagWithConfirm(pos)) {\n pos = pos.translate(-x, -y);\n }\n Time.sleepUntil(() -> !Movement.isDestinationSet(), 1000 * 10);\n })\n .build();\n }", "public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}", "public void moveForward()\r\n\t{\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading-90))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading-90))*distance;\r\n\t\t}\r\n\t}", "void moveForward();", "public void keepWalking() {\n\t\t// move along the current segment\n\t\tif (UserParameters.socialInteraction) speed = progressSocial(moveRate);\n\t\telse speed = progress(moveRate);\n\t\tcurrentIndex += speed;\n\t\t// check to see if the progress has taken the current index beyond its goal\n\t\t// given the direction of movement. If so, proceed to the next edge\n\t\tif (linkDirection == 1 && currentIndex > endIndex) {\n\t\t\tCoordinate currentPos = segment.extractPoint(endIndex);\n\t\t\tupdatePosition(currentPos);\n\t\t\ttransitionToNextEdge(currentIndex - endIndex);\n\t\t}\n\t\telse if (linkDirection == -1 && currentIndex < startIndex) {\n\t\t\tCoordinate currentPos = segment.extractPoint(startIndex);\n\t\t\tupdatePosition(currentPos);\n\t\t\ttransitionToNextEdge(startIndex - currentIndex);\n\t\t}\n\t\telse {\n\t\t\t// just update the position!\n\t\t\tCoordinate currentPos = segment.extractPoint(currentIndex);\n\t\t\tupdatePosition(currentPos);\n\t\t}\n\t}", "private void goTo(double x, double y) \n\t{\n\t\t/* Transform our coordinates into a vector */\n\t\tx -= getX();\n\t\ty -= getY();\n\t \n\t\t/* Calculate the angle to the target position */\n\t\tdouble angleToTarget = Math.atan2(x, y);\n\t \n\t\t/* Calculate the turn required get there */\n\t\tdouble targetAngle = Utils.normalRelativeAngle(angleToTarget - getHeadingRadians());\n\t \n\t\t/* \n\t\t * The Java Hypot method is a quick way of getting the length\n\t\t * of a vector. Which in this case is also the distance between\n\t\t * our robot and the target location.\n\t\t */\n\t\tdouble distance = Math.hypot(x, y);\n\t \n\t\t/* This is a simple method of performing set front as back */\n\t\tdouble turnAngle = Math.atan(Math.tan(targetAngle));\n\t\tsetTurnRightRadians(turnAngle);\n\t\tif(targetAngle == turnAngle) {\n\t\t\tsetAhead(distance);\n\t\t} else {\n\t\t\tsetBack(distance);\n\t\t}\n\t}", "@Override\n\tpublic void moveTowards(int destination) {\n \tif (stepCount % 2 == 0) {\n \tif (getFloor() < destination) {\n \t\tmoveUpstairs();\n \t} else {\n \t\tmoveDownstairs();\n \t}\n \t}\n }", "public void moveOneStep() {\n //We will create a line that checks the movement of the ball.\n Line trajectory = new Line(this.center.getX(), this.center.getY(),\n this.center.getX() + this.velocity.getDx(), this.center.getY() + this.velocity.getDy());\n //We will get information for the closest barrier.\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n //If there is information about an obstacle on the way, we will almost change our direction before reaching\n // the barrier.\n if (info != null) {\n this.center = new Velocity(-0.2 * this.velocity.getDx(),\n -0.2 * this.velocity.getDy()).applyToPoint(this.center);\n this.velocity = info.collisionObject().hit(this, info.collisionPoint(), this.velocity);\n //Otherwise, we will allow it to reach its destination\n } else {\n this.center = this.velocity.applyToPoint(this.center);\n }\n }", "private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }", "@Override\n\tpublic void move(float x, float y) {\n\t\tsuper.move(x, y);\n\t\tpath.lineTo(x, y);\n\t}", "public Line getLine(String targetLine);", "public boolean followLine(Line2D path)\r\n\t{\r\n\t\tif(phase != DONE)\r\n\t\t{\r\n\t\t\tsetAngle(path);\r\n\t\t\t//debugLine = path;\r\n\t\t\tsetVelX(2*Math.cos(Math.toRadians(mcnAngle)));\r\n\t\t\tsetVelY(-2*Math.sin(Math.toRadians(mcnAngle)));\r\n\t\t\tif(getPoint().distance(path.getP2()) < 10)\r\n\t\t\t{\r\n\t\t\t\tphase = DONE;\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 void walkToPoint(Point destination) {\n\n\t\tACTION attemptedMove;\n\n\t\tif (coordX != destination.x && coordY != destination.y) {\n\t\t\tSystem.out.println(\"X- \" + coordX + \" Y- \" + coordY);\n\t\t\tSystem.out.println(\"pX- \" + destination.x + \" pY- \" + destination.y);\n\t\t\tthrow new IllegalArgumentException(\"Illegal coordinate. Only move in one direction at a time\");\n\t\t}\n\t\tif (coordX < destination.x) {\n\t\t\tattemptedMove = ACTION.RIGHT;\n\t\t} else if (coordX > destination.x) {\n\t\t\tattemptedMove = ACTION.LEFT;\n\t\t} else if (coordY < destination.y) {\n\t\t\tattemptedMove = ACTION.DOWN;\n\t\t} else if (coordY > destination.y) {\n\t\t\tattemptedMove = ACTION.UP;\n\t\t} else {\n\t\t\treturn; //In case someone issues a move to nowhere\n\t\t}\n\t\tchangeFacing(attemptedMove);\n\t\taction = attemptedMove;\n\t\tpointWalking = true;\n\t\tendPoint = destination;\n\n\t\tif (validMoveEh(action)) {\n\t\t\tmoving = true;\n\t\t\tremainingSteps = STEP_SIZE;\n\t\t\tthis.updateCoordinate(action, true);\n\t\t\tcurrentImage = startAnimation(attemptedMove);\n\t\t}\n\t}", "public void moveToOrigin() {\n for(Waypoint waypoint : path)\n waypoint.setCoordinates(waypoint.getX() - path.get(0).getX(),\n waypoint.getY() - path.get(0).getY());\n }", "public static void moveStraightFor(double distance) {\n //Set motor speeds and rotate them by the given distance.\n // This method will not return until the robot has finished moving.\n leftMotor.setSpeed(FORWARD_SPEED);\n rightMotor.setSpeed(FORWARD_SPEED);\n leftMotor.rotate(convertDistance(distance), true);\n rightMotor.rotate(convertDistance(distance), false);\n \n }", "public void findSimplePathTo(final Coords dest, final MoveStepType type,\n int direction, int facing) {\n Coords src = getFinalCoords();\n Coords currStep = src;\n Coords nextStep = currStep.translated(direction);\n while (dest.distance(nextStep) < dest.distance(currStep)) {\n addStep(type);\n currStep = nextStep;\n nextStep = currStep.translated(direction);\n }\n\n // Did we reach the destination? If not, try another direction\n if (!currStep.equals(dest)) {\n int dir = currStep.direction(dest);\n // Java does mod different from how we want...\n dir = (((dir - facing) % 6) + 6) % 6;\n switch (dir) {\n case 0:\n findSimplePathTo(dest, MoveStepType.FORWARDS, currStep.direction(dest), facing);\n break;\n case 1:\n findSimplePathTo(dest, MoveStepType.LATERAL_RIGHT, currStep.direction(dest), facing);\n break;\n case 2:\n // TODO: backwards lateral shifts are switched:\n // LATERAL_LEFT_BACKWARDS moves back+right and vice-versa\n findSimplePathTo(dest, MoveStepType.LATERAL_LEFT_BACKWARDS, currStep.direction(dest), facing);\n break;\n case 3:\n findSimplePathTo(dest, MoveStepType.BACKWARDS, currStep.direction(dest), facing);\n break;\n case 4:\n // TODO: backwards lateral shifts are switched:\n // LATERAL_LEFT_BACKWARDS moves back+right and vice-versa\n findSimplePathTo(dest, MoveStepType.LATERAL_RIGHT_BACKWARDS, currStep.direction(dest), facing);\n break;\n case 5:\n findSimplePathTo(dest, MoveStepType.LATERAL_LEFT, currStep.direction(dest), facing);\n break;\n }\n }\n }", "public void lineTo(int x1, int y1, int c1) {\n\n if (lineToOrigin) {\n if (x1 == sx0 && y1 == sy0) {\n // staying in the starting point\n return;\n }\n\n // not closing the path, do the previous lineTo\n lineToImpl(sx0, sy0, scolor0, joinToOrigin);\n lineToOrigin = false;\n } else if (x1 == x0 && y1 == y0) {\n return;\n } else if (x1 == sx0 && y1 == sy0) {\n lineToOrigin = true;\n joinToOrigin = joinSegment;\n joinSegment = false;\n return;\n }\n\n lineToImpl(x1, y1, c1, joinSegment);\n joinSegment = false;\n }", "public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }", "public static boolean straightWalk(final RSTile tile) {\n if (tile == null) {\n return false;\n }\n if (compareGameDestination(tile) || comparePlayerPosition(tile)) {\n return true;\n }\n return Walking.blindWalkTo(tile, new Condition() {\n @Override\n public boolean active() {\n AntiBan.activateRun();\n return compareGameDestination(tile);\n }\n }, 500);\n }", "public void runPath()\n\t{\n\t\tinit();\n\t\t\n\t\twhile(_run && (SEQUENCE != null))\n\t\t{\n\t\t\tboolean midLine = LS_MIDDLE.getLightValue() >= s_mid.threshold;\n\t\t\tboolean leftLine = LS_LEFT.getLightValue() >= s_left.threshold;\n\t\t\tboolean rightLine = LS_RIGHT.getLightValue() >= s_right.threshold;\n\t\t\t\n\t\t\tif(!leftLine && !rightLine) handleIntersection();\n\t\t\telse // just a straight line\n\t\t\t{\n\t\t\t\tif (!midLine && !leftLine && !rightLine) turnAround();\n\t\t\t\telse followLine();\n\t\t\t}\n\t\t}\n\t}", "public void travelForward (double x, double y){\r\n\r\n\t\t\tdouble xDistance = x - odometer.getX();//the distance the robot has to travel in x to get to its destination from current position.\r\n\t\t\tdouble yDistance = y - odometer.getY();//the distance the robot has to travel in y to get to its destination from current position.\r\n\t\t\tdouble distance = Math.sqrt(xDistance*xDistance + yDistance*yDistance);//the overall distance the robot has to travel from current position.\r\n\t\t\r\n\t\t\tdouble xStart = odometer.getX();\r\n\t\t\tdouble yStart = odometer.getY();\r\n\t\t\t\r\n\t\t\tboolean isTravelling = true;\r\n\t\t\t\r\n\t\t\twhile(isTravelling){\r\n\t\t\t\t\r\n\t\t\t\tleftMotor.setSpeed(FORWARD_SPEED);\r\n\t\t\t\trightMotor.setSpeed(FORWARD_SPEED);\r\n\r\n\t\t\t\tleftMotor.rotate(convertDistance(wheelRadius, distance - distanceTravelled), true);\r\n\t\t\t\trightMotor.rotate(convertDistance(wheelRadius, distance - distanceTravelled), true);\r\n\t\t\t\t\r\n\t\t\t\txTravelled =(odometer.getX() - xStart); //update xTravelled\r\n\t\t\t\tyTravelled =(odometer.getY() - yStart);\t//update yTravelled\r\n\t\t\t\t\r\n\t\t\t\tdistanceTravelled = Math.sqrt(xTravelled*xTravelled +yTravelled*yTravelled); //update the distance travelled\r\n\t\t\t\tif (distanceTravelled >= distance){\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(getFilteredData() < 15 ){ // if the robot sees an object on the path\r\n\t\t\t\t\tisTravelling = false; //set to false so we exit the loop \r\n\t\t\t\t}\r\n\t\t\t\tLCD.drawString(\"x \", 0, 5);\r\n\t\t\t\tLCD.drawString(\"x \"+odometer.getX(), 0, 5);\r\n\t\t\t\tLCD.drawString(\"y \", 0, 6);\r\n\t\t\t\tLCD.drawString(\"y \"+odometer.getY(), 0, 6);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tleftMotor.setSpeed(0);\r\n\t\t\trightMotor.setSpeed(0);\r\n\t\t\t\t\r\n\t\t\t}", "public void lineTo(int x, int y){\n paint.setColor(Color.parseColor(\"#000000\"));\n //ToDo: implement line drawing here\n\n canvas.drawLine(lastX, lastY, x, y, paint);\n lastX = x;\n lastY = y;\n Log.d(\"Canvas Element\", \"drawing line from: \" + lastX + \", \" + lastY +\",\" + \" to: \" + x +\", \" + y);\n }", "private void moveForwards() {\n\t\tposition = MoveAlgorithmExecutor.getAlgorithmFromCondition(orientation).execute(position);\n\t\t\n\t\t// Extracted the condition to check if tractor is in Ditch\n\t\tif(isTractorInDitch()){\n\t\t\tthrow new TractorInDitchException();\n\t\t}\n\t}", "public boolean lineOfSight(PathAgentModel viewer, PathAgentModel target)\r\n/* 293: */ {\r\n/* 294: */ float ty;\r\n/* 295: */ float tx;\r\n/* 296: */ float ty;\r\n/* 297:336 */ if (target.hasTarget())\r\n/* 298: */ {\r\n/* 299:338 */ float tx = target.getTargetX();\r\n/* 300:339 */ ty = target.getTargetY();\r\n/* 301: */ }\r\n/* 302: */ else\r\n/* 303: */ {\r\n/* 304:343 */ tx = target.getX();\r\n/* 305:344 */ ty = target.getY();\r\n/* 306: */ }\r\n/* 307:348 */ if (viewer.fov(tx, ty)) {\r\n/* 308:350 */ if (line(viewer.getX(), viewer.getY(), tx, ty)) {\r\n/* 309:352 */ return true;\r\n/* 310: */ }\r\n/* 311: */ }\r\n/* 312:355 */ return false;\r\n/* 313: */ }", "public void goStraight() {\n\t\tleftMotor.setSpeed(motorStraight);\n\t\trightMotor.setSpeed(motorStraight);\n\t}", "public void apply() {\n double currentHeading = self.getHeading();\n IGameIterator iter = target.getCollection().getIterator();\n Pylon nextPylon = null;\n while (iter.hasNext()) {\n iter.getNext();\n if (iter.get() instanceof Pylon) {\n if (((Pylon) iter.get()).getNum() == self.getLatestPylon() + 1) { //if it is the next pylon\n nextPylon = (Pylon) iter.get();\n }\n }\n }\n if (nextPylon == null) { //if there are no more pylons\n self.changeSpeed(0 - ((int) self.getMaxSpeed())); //stop at the finish line\n return;\n }\n\n double deltaX = nextPylon.getPosition().getX() - self.getPosition().getX();\n double deltaY = nextPylon.getPosition().getY() - self.getPosition().getY();\n newHeading = Math.toDegrees(Math.atan2(deltaY, deltaX));\n double rightTurn;\n double leftTurn;\n\n rightTurn = (newHeading - currentHeading);\n if (rightTurn < 0)\n rightTurn += 360;\n leftTurn = 360 - rightTurn;\n\n if (leftTurn <= rightTurn) {\n //turn left\n self.steer(-15);\n } else {\n // turn right\n self.steer(15);\n }\n //self.steer((int) (newHeading - currentHeading));\n currentHeading = self.getHeading();\n\n //move at max speed towards it\n self.changeSpeed((int) self.getMaxSpeed());\n }", "void move(int steps);", "private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "public void move(){\n x+=xDirection;\n y+=yDirection;\n }", "double direction (IPoint other);", "private void calculateDirection(){\n\t\tif(waypoints.size() > 0){\n\t\t\tif(getDistanceToWaypoint() <= getSpeed()){\n\t\t\t\tsetPosition(new Vector2(waypoints.remove(0)));\n\t\t\t\tsetCurrentWaypoint(getCurrentWaypoint() + 1);\n\t\t\t}else{\t\t\n\t\t\t\tVector2 target = new Vector2(waypoints.get(0));\n\t\t\t\tVector2 newDirection = new Vector2(target.sub(getPosition())); \n\t\t\t\tsetDirection(newDirection);\n\t\t\t}\n\t\t}else{\n\t\t\tsetDirection(new Vector2(0, 0));\n\t\t}\n\t}", "public void move(int distance) {\n float oldX=0, oldY=0;\n if (penDown) {\n oldX = pos.x; \n oldY = pos.y;\n }\n PVector temp = PVector.fromAngle(p.radians(-direction));\n temp.mult(distance);\n pos.add(temp);\n if (penDown) {\n pen.beginDraw();\n pen.line(oldX, oldY, pos.x, pos.y);\n pen.endDraw();\n }\n }", "public boolean line(float x0, float y0, float x1, float y1)\r\n/* 355: */ {\r\n/* 356:412 */ float dx = Math.abs(x1 - x0);\r\n/* 357:413 */ float dy = Math.abs(y1 - y0);\r\n/* 358: */ int sx;\r\n/* 359: */ int sx;\r\n/* 360:416 */ if (x0 < x1) {\r\n/* 361:418 */ sx = 1;\r\n/* 362: */ } else {\r\n/* 363:421 */ sx = -1;\r\n/* 364: */ }\r\n/* 365: */ int sy;\r\n/* 366: */ int sy;\r\n/* 367:423 */ if (y0 < y1) {\r\n/* 368:425 */ sy = 1;\r\n/* 369: */ } else {\r\n/* 370:429 */ sy = -1;\r\n/* 371: */ }\r\n/* 372:431 */ float err = dx - dy;\r\n/* 373:432 */ boolean line = true;\r\n/* 374:433 */ while (line)\r\n/* 375: */ {\r\n/* 376:435 */ float e2 = 2.0F * err;\r\n/* 377:437 */ if (e2 > -dy)\r\n/* 378: */ {\r\n/* 379:439 */ err -= dy;\r\n/* 380:440 */ x0 += sx;\r\n/* 381: */ }\r\n/* 382:442 */ if (e2 < dx)\r\n/* 383: */ {\r\n/* 384:444 */ err += dx;\r\n/* 385:445 */ y0 += sy;\r\n/* 386: */ }\r\n/* 387:448 */ line = tileWalkable(x0, y0);\r\n/* 388:451 */ if ((x0 == x1) && (y0 == y1)) {\r\n/* 389: */ break;\r\n/* 390: */ }\r\n/* 391:457 */ if (getAgentOnTile(x0, y0) != null) {\r\n/* 392:459 */ line = false;\r\n/* 393: */ }\r\n/* 394: */ }\r\n/* 395:465 */ return line;\r\n/* 396: */ }", "void transitionToNextEdge(double residualMove) {\n\n\t\t// update the counter for where the index on the path is\n\t\tindexOnPath += pathDirection;\n\n\t\t// check to make sure the Agent has not reached the end of the path already\n\t\t// depends on where you're going!\n\t\tif ((pathDirection > 0 && indexOnPath >= path.size()) || (pathDirection < 0 && indexOnPath < 0)) {\n\t\t\treachedDestination = true;\n\t\t\tindexOnPath -= pathDirection; // make sure index is correct\n\t\t\treturn;\n\t\t}\n\n\t\t// move to the next edge in the path\n\t\tEdgeGraph edge = (EdgeGraph) path.get(indexOnPath).getEdge();\n\t\tsetupEdge(edge);\n\t\tspeed = progress(residualMove);\n\t\tcurrentIndex += speed;\n\n\t\t// check to see if the progress has taken the current index beyond its goal\n\t\t// given the direction of movement. If so, proceed to the next edge\n\t\tif (linkDirection == 1 && currentIndex > endIndex) transitionToNextEdge(currentIndex - endIndex);\n\t\telse if (linkDirection == -1 && currentIndex < startIndex) transitionToNextEdge(startIndex - currentIndex);\n\t}", "public static void moveStraightFor(double distance) {\n leftMotor.rotate(convertDistance(distance * TILE_SIZE), true);\n rightMotor.rotate(convertDistance(distance * TILE_SIZE), false);\n }", "public void moveForward(){\n\t\tSystem.out.println(\"Vehicle moved forward\");\n\t}", "@Override\n protected void processPathAction(GridNode start, GridNode goal, Stack<GridNode> path) {\n path.pop();\n\n // Make the robot follow the path\n Mover mover = new Mover(\n robot.getDifferentialPilot(),\n new LightSensor(leftSensorPort),\n new LightSensor(rightSensorPort),\n path,\n initialDirection);\n mover.run();\n }", "public void move(String direction);", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "public void goToXY(float x, float y) {\n float oldX, oldY;\n oldX = pos.x;\n oldY = pos.y; \n pos.x = x; \n pos.y = y;\n if (penDown) {\n pen.beginDraw();\n pen.line(oldX,oldY,pos.x,pos.y);\n pen.endDraw();\n }\n }", "public void Mirror(Line l)\n\t{\n\t\tif (l == null) return;\n\t\tif (l.point1 == null || l.point2 == null)\n {\n return;\n }\n\t\tint rise = l.point1.y - l.point2.y;\n\t\tint run = l.point1.x - l.point2.x;\n\t\t\n\t\tif (run != 0)\n\t\t{\n\t\t\tint slope = rise/run;\n\n\t\t\tint b = l.point1.y - (slope*l.point1.x);\n\n\t\t\tint d = (l.point1.x + (l.point1.y - b)*slope) / ( 1 + slope*slope);\n\n\t\t\tthis.x = 2*d - this.x;\n\t\t\tthis.y = (2*d*slope - this.y + 2*b);\n\t\t}\n\t\t//handle undefined slope; \n\t\telse\n\t\t{\n\t\t\tthis.x = -(this.x - l.point1.x); \n\t\t}\n\t\t\n\n\t}", "public void move(int distance);", "private void navToPoint(Unit unit){\n\t\tMapLocation currentLocation = unit.location().mapLocation();\n\t\tMapLocation locationToTest;\n\t\tMapLocation targetLocation = orderStack.peek().getLocation();\n\t\tlong smallestDist=1000000000; //arbitrary large number\n\t\tlong temp;\n\t\tDirection closestDirection=null;\n\t\tint i=1;\n\t\t\n\t\tif(gc.isMoveReady(unitID)){\n\t\t\t//first find the direction that moves us closer to the target\n\t\t\tfor(Direction dir : Direction.values()){\n\t\t\t\tif (debug) System.out.println(\"this (\"+dir.name()+\") is the \"+i+\"th direction to check, should get to 9\");\n\t\t\t\tlocationToTest=currentLocation.add(dir);\n\t\t\t\t//make sure it is on the map and is passable\n\t\t\t\tif (debug){\n\t\t\t\t\tSystem.out.println(\"testing this location: \"+locationToTest);\n\t\t\t\t\tSystem.out.println(\"valid move? \"+gc.canMove(unitID, dir));\n\t\t\t\t}\n\t\t\t\tif(gc.canMove(unitID, dir)){\n\t\t\t\t\tif (debug)System.out.println(\"we can indeed move there...\");\n\t\t\t\t\t//make sure the location hasn't already been visited\n\t\t\t\t\tif(!pastLocations.contains(locationToTest)){\n\t\t\t\t\t\tif (debug)System.out.println(\"not been there recently...\");\n\t\t\t\t\t\t//at this point its a valid location to test, check its distance\n\t\t\t\t\t\ttemp = locationToTest.distanceSquaredTo(targetLocation);\n\t\t\t\t\t\tif (debug)System.out.println(\"distance :\"+temp);\n\t\t\t\t\t\tif (temp<smallestDist){\n\t\t\t\t\t\t\tif (debug)System.out.println(\"new closest!\");\n\t\t\t\t\t\t\t//new closest point, update accordingly\n\t\t\t\t\t\t\tsmallestDist=temp;\n\t\t\t\t\t\t\tclosestDirection=dir;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}//end of for-each loop\n\t\t}//end move ready if.\n\t\t\n\t\t//actual movement and maintenance of places recently visited\n\t\tif(closestDirection!=null){\n\t\t\tif (debug){\n\t\t\t\tSystem.out.println(\"found a closest direction, calling navInDirection()\");\n\t\t\t\tSystem.out.println(\"heading \"+closestDirection.name());\n\t\t\t}\n\t\t\tmoveInDirection(closestDirection, unit);\n\t\t\tcleanUpAfterMove(unit);\n\t\t}else{\n\t\t\t//can't get any closer\n\t\t\tif (debug) System.out.println(\"can't get closer, erasing past locations\");\n\t\t\tpastLocations.clear();\n\t\t}\n\t\t\n\t\t//have we arrived close enough?\n\t\tif(unit.location().mapLocation().distanceSquaredTo(targetLocation)<=howCloseToDestination){\n\t\t\t//atTargetLocation=true;\n\t\t\t\n\t\t\t//if order was a MOVE order, it is complete, go ahead and pop it off the stack\n\t\t\tif(orderStack.peek().getType().equals(OrderType.MOVE)){\n\t\t\t\torderStack.pop();\n\t\t\t}\n\t\t\tif (debug) System.out.println(\"Unit \"+unit.id()+\" arrived at destination.\");\n\t\t}\n\t\t\n\t\t;\n\t}", "public void move(Vector start,Vector dist);", "void moveTurtle(int turtleIndex, Coordinate start, Coordinate end);", "protected void patrol(){\n Point currentDest = patrolPoints.get(pointIndex);\n //Check if we have reached the current destination\n if(this.x == currentDest.x && this.y == currentDest.y){\n nextPatrolPoint();\n }\n if(stuckCounter > 30){\n nextPatrolPoint();\n }\n\n double dist;\n if(this.x != currentDest.x){\n dist = currentDest.x - this.x;\n //Counteracts the effect of speed being greater than the distance, cauing jitter\n if(Math.abs(dist) < speed){\n dx = dist;\n }\n else {\n int direction = (int)(dist/Math.abs(dist));\n switch (direction){\n case 1:\n moveRight();\n break;\n case -1:\n moveLeft();\n break;\n }\n }\n }\n else{\n dx = 0;\n }\n if(this.y != currentDest.y){\n dist = currentDest.y - this.y;\n //Counteracts the effect of speed being greater than the distance, cauing jitter\n if(Math.abs(dist) < speed){\n dy = dist;\n }\n else {\n int direction = (int)(dist/Math.abs(dist));\n switch (direction){\n case 1:\n moveDown();\n break;\n case -1:\n moveUp();\n break;\n }\n }\n }\n else{\n dy = 0;\n }\n }", "public void goForward(double distance) {\n \t\tthis.travelTo(Math.cos(Math.toRadians(this.myOdometer.getAng())) * distance, Math.cos(Math.toRadians(this.myOdometer.getAng())) * distance);\n \t}", "private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-robot.getY(), goal.getX()-robot.getX()));\r\n\r\n\t\t// deviation of start point's x-axis from (0,0)\r\n\t\tthis.deviation = this.robot;\r\n\r\n\t\tthis.robot = new Robot(GA_PathPlanning.Transform(robot, -deviation.x, -deviation.y));\r\n\t\tthis.robot = new Robot(Rotate(robot, -angle));\r\n\t\t \r\n\t\tthis.goal = GA_PathPlanning.Transform(goal, -deviation.x, -deviation.y);\r\n\t\tthis.goal = GA_PathPlanning.Rotate(goal, -angle);\r\n\t\t\r\n\t\tfor(int i=0;i<obstacles.length;i++)\r\n\t\t{\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Transform(obstacles[i], -deviation.x, -deviation.y));\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Rotate(obstacles[i], -angle));\r\n\t\t}\r\n\t\t// make start point as (0,0)\r\n\t\t// transform xy-axis to axis of the straight line between start and goal\r\n\t\t\r\n\t\t\r\n\t}", "public List<MovePath> getNextMoves(boolean backward, boolean forward) {\n final ArrayList<MovePath> result = new ArrayList<MovePath>();\n final MoveStep last = getLastStep();\n// if (isJumping()) {\n// final MovePath left = clone();\n// final MovePath right = clone();\n//\n// // From here, we can move F, LF, RF, LLF, RRF, and RRRF.\n// result.add(clone().addStep(MovePath.MoveStepType.FORWARDS));\n// for (int turn = 0; turn < 2; turn++) {\n// left.addStep(MovePath.MoveStepType.TURN_LEFT);\n// right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n// result.add(left.clone().addStep(MovePath.MoveStepType.FORWARDS));\n// result.add(right.clone().addStep(MovePath.MoveStepType.FORWARDS));\n// }\n// right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n// result.add(right.addStep(MovePath.MoveStepType.FORWARDS));\n//\n// // We've got all our next steps.\n// return result;\n// }\n\n // need to do a separate section here for Aeros.\n // just like jumping for now, but I could add some other stuff\n // here later\n if (getEntity() instanceof Aero) {\n MovePath left = clone();\n MovePath right = clone();\n\n // From here, we can move F, LF, RF, LLF, RRF, and RRRF.\n result.add((clone()).addStep(MovePath.MoveStepType.FORWARDS));\n for (int turn = 0; turn < 2; turn++) {\n left.addStep(MovePath.MoveStepType.TURN_LEFT);\n right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n result.add(left.clone().addStep(MovePath.MoveStepType.FORWARDS));\n result.add(right.clone().addStep(MovePath.MoveStepType.FORWARDS));\n }\n right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n result.add(right.addStep(MovePath.MoveStepType.FORWARDS));\n\n // We've got all our next steps.\n return result;\n }\n\n // If the unit is prone or hull-down it limits movement options, unless\n // it's a tank; tanks can just drive out of hull-down and they cannot\n // be prone.\n if (getFinalProne() || (getFinalHullDown() && !(getEntity() instanceof Tank))) {\n if ((last != null) && (last.getType() != MoveStepType.TURN_RIGHT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_LEFT));\n }\n if ((last != null) && (last.getType() != MoveStepType.TURN_LEFT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_RIGHT));\n }\n\n if (getEntity().isCarefulStand()) {\n result.add(clone().addStep(MovePath.MoveStepType.CAREFUL_STAND));\n } else {\n result.add(clone().addStep(MovePath.MoveStepType.GET_UP));\n }\n return result;\n }\n if (canShift()) {\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_LEFT)))) {\n result.add(clone().addStep(MoveStepType.LATERAL_RIGHT));\n }\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_RIGHT)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_LEFT));\n }\n if (backward\n && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_LEFT_BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_RIGHT_BACKWARDS));\n }\n if (backward\n && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_RIGHT_BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_LEFT_BACKWARDS));\n }\n }\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.FORWARDS));\n }\n if ((last == null) || (last.getType() != MovePath.MoveStepType.TURN_LEFT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_RIGHT));\n }\n if ((last == null) || (last.getType() != MovePath.MoveStepType.TURN_RIGHT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_LEFT));\n }\n if (backward && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.FORWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.BACKWARDS));\n }\n return result;\n }", "@Override\n\tprotected Direction move(View v) {\n\t\tpause(100);\n\n\t\t// Currently, the left walker just follows a completely random\n\t\t// direction. This is not what the specification said it should do, so\n\t\t// tests will fail ... but you should find it helpful to look at how it\n\t\t// works!\n\n\t\tif(!caliberated){\n\t\t\treturn caliberate(v);\n\t\t}\n\t\treturn followLeftWall(v);\n\t}", "Move moveToward(Point target) {\n if (standing) {\n // Run to the destination\n if (pos.x != target.x) {\n if (pos.y != target.y) {\n // Run diagonally.\n return new Move(\"run\",\n pos.x + clamp(target.x - pos.x, -1, 1),\n pos.y + clamp(target.y - pos.y, -1, 1));\n }\n // Run left or right\n return new Move(\"run\",\n pos.x + clamp(target.x - pos.x, -2, 2),\n pos.y);\n }\n\n if (pos.y != target.y)\n // Run up or down.\n return new Move(\"run\",\n pos.x,\n pos.y + clamp(target.y - pos.y, -2, 2));\n } else {\n // Crawl to the destination\n if (pos.x != target.x)\n // crawl left or right\n return new Move(\"crawl\",\n pos.x + clamp(target.x - pos.x, -1, 1),\n pos.y);\n\n if (pos.y != target.y)\n // crawl up or down.\n return new Move(\"crawl\",\n pos.x,\n pos.y + clamp(target.y - pos.y, -1, 1));\n }\n\n // Nowhere to move, just reutrn the idle move.\n return new Move();\n }", "public void move(String direction) {\n \n }", "abstract public void moveForward();", "public void goToLine(int line) {\n // Humans number lines from 1, the rest of PTextArea from 0.\n --line;\n final int start = getLineStartOffset(line);\n final int end = getLineEndOffsetBeforeTerminator(line);\n centerOnNewSelection(start, end);\n }", "protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }", "void moveTo(int dx, int dy);", "private void straightDistance(double distance) {\n\t\tdouble marginOfError = 0.3;// in inches\n\t\tdouble distanceTraveled = 0;// in inches\n\t\tdouble forwardSpeed = 0;\n\t\tdouble rightSpeed = 0;\n\t\tdouble leftSpeed = 0;\n\t\t// desiredAngle = maggie.getAngle();\n\t\tleftEncoder.reset();\n\t\trightEncoder.reset();\n\n\t\twhile (Math.abs(distanceTraveled - distance) > marginOfError && isEnabled() && isAutonomous()) {\n\t\t\tdistanceTraveled = kDriveToInches * ((-leftEncoder.get() + rightEncoder.get()) / 2);\n\t\t\tSmartDashboard.putNumber(\"distance Traveled\", distanceTraveled);\n\t\t\t// slowed down for now\n\t\t\tforwardSpeed = Math.atan(0.125 * (distance - distanceTraveled)) / (0.5 * Math.PI);//replace arctan with 1/(1+(1.0*e^(-1.0*x)))\n\t\t\t/*rightSpeed = forwardSpeed * (1 + (0.01 * (maggie.getAngle() - desiredAngle)));\n\t\t\tleftSpeed = forwardSpeed * (1 - 0.01 * (maggie.getAngle() - desiredAngle));*/\n\t\t\trobot.lDrive(leftSpeed);\n\t\t\trobot.rDrive(rightSpeed);\n\t\t\televator.update();\n\t\t\trobot.eDrive(elevator.motorMovement);\n\t\t\treportEncoder();\n\t\t}\n\t}", "public void move()\n {\n move(WALKING_SPEED);\n }", "public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }", "@Override\n public void move() {\n System.out.println(\"diagonally\");\n }", "@Override\n public void doCommand(FrontEndTurtle frontEndTurtle) {\n frontEndTurtle.towards(x, y);\n }", "@Override\n public MFEDirection next()\n {\n if (!this.isPathValid()) {\n String msg = \"Annotated Path\" + this.getStart().getLocation() + \"->\" +\n this.getGoal().getLocation() + \": Cannot get next step \" +\n \"when path is invalid.\";\n logger.severe(msg);\n throw new IllegalStateException(msg);\n }\n final MFEDirection dir = this.path.poll();\n\n if (dir == null) {\n String msg = \"Annotated Path \" + this.getStart().getLocation() + \"->\" +\n this.getGoal().getLocation() + \": No more steps.\";\n logger.severe(msg);\n throw new NoSuchElementException(msg);\n }\n\n return dir;\n }", "@Override\n\tprotected boolean moveRobot(boolean printEachStep) {\n\t\tboolean move=true;\n\t\tint incOrDecR = destRow > curRow ? 1 : -1, \n\t\t\tincOrDecC = destCol > curCol ? 1 : -1, \n\t\t\tcount = diagonalCount();\n\t\t\t// Move diagonally as close to the destination it can get to\n\t\t\tfor(int i=0; i<count; ++i) {\n\t\t\t\tif(move=grid.moveFromTo(this, curRow, curCol, \n\t\t\t\t\t\tblockedRow=curRow+incOrDecR, \n\t\t\t\t\t\tblockedCol=curCol+incOrDecC)) { \n\t\t\t\t\tcurRow+=incOrDecR; \n\t\t\t\t\tcurCol+=incOrDecC;\n\t\t\t\t\t--energyUnits;\n\t\t\t\t\tif(printEachStep)\n\t\t\t\t\t\tgrid.printGrid();\n\t\t\t\t} else {\n\t\t\t\t\treturn move; \n\t\t\t\t}\n\t\t\t}\n\t\tmove=super.moveRobot(printEachStep);\n\t\treturn move;\n\t}", "public void DriveForwardSimple() {\n \ttheRobot.drive(-0.5, 0.0);\n }", "public abstract int drive(int journeyDistance);", "private void pointWalkBehavior() {\n\t\tif (moving) {\n\t\t\tif (remainingSteps > 0) {\n\t\t\t\tupdatePixels(action);\n\t\t\t\tremainingSteps -= speed;\n\t\t\t} else {\n\t\t\t\tupdateCoordinate(action, false);\n\t\t\t\tif (coordX != endPoint.x || coordY != endPoint.y) {\n\t\t\t\t\tif (validMoveEh(action)) {\n\t\t\t\t\t\tremainingSteps = STEP_SIZE;\n\t\t\t\t\t\tupdateCoordinate(action, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmoving = false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcurrentImage = stopAnimation(action);\n\t\t\t\t\tpointWalking = false;\n\t\t\t\t\tmoving = false;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (validMoveEh(action)) {\n\t\t\t\tmoving = true;\n\t\t\t\tremainingSteps = STEP_SIZE;\n\t\t\t\tupdateCoordinate(action, true);\n\t\t\t\tcurrentImage = startAnimation(action);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void move()\n {\n System.out.println(\"tightrope walking\");\n }", "private double[] getGoalPointAtLookaheadDistance(\n double[] initialPointOfLine, double[] finalPointOfLine, double[] nearestPoint) {\n\n // TODO: use lookahead distance proportional to robot max speed -> 0.5 * getRobotMaxSpeed()\n return Geometry.getPointAtDistance(\n initialPointOfLine, finalPointOfLine, nearestPoint, lookaheadDistance);\n }", "@Override\n\tpublic Direction nextMove(State state)\n\t{\n\t\t\n\t\tthis.direction = Direction.STAY;\n\t\tthis.hero = state.hero();\n\t\tthis.position = new Point( this.hero.position.right, this.hero.position.left ); //x and y are reversed, really\n\t\t\n\t\tthis.pathMap = new PathMap( state, this.position.x, this.position.y );\n\n\t\t//find the richest hero\n\t\tHero richestHero = state.game.heroes.get(0);\n\t\tif( richestHero == this.hero ) { richestHero = state.game.heroes.get(1); } //just grab another hero if we are #0\n\t\t\n\t\tfor( Hero hero : state.game.heroes )\n\t\t{\n\t\t\tif( hero != this.hero && hero.gold > richestHero.gold )\n\t\t\t{\n\t\t\t\trichestHero = hero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//get all interesting sites\n\t\tList<TileInfo> minesInRange = this.pathMap.getSitesInRange( TileType.FREE_MINE, 20 );\t//mines in vicinity\n\t\tList<TileInfo> takenMinesInRange = this.pathMap.getSitesInRange( TileType.TAKEN_MINE, (100-richestHero.life)/2 );\t//mines in vicinity\n\t\tList<TileInfo> pubsInRange = this.pathMap.getSitesInRange( TileType.TAVERN, (int)(Math.pow(100-this.hero.life,2)*state.game.board.size/5000) );\t\t//pubs in vicinity\n\t\t\n\t\t//first visit pubs (apparently we need it)\n\t\tif( pubsInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( pubsInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then visit the mines\n\t\telse if( minesInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( minesInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then visit taken mines\n\t\telse if( takenMinesInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( takenMinesInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then hunt for players\n\t\telse\n\t\t{\n\t\t\t//kill the richest hero! (but first full health)\n\t\t\tif( this.hero.life > 85 )\n\t\t\t{\n\t\t\t\tthis.direction = this.pathMap.getDirectionTo( richestHero.position.right, richestHero.position.left );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//run away!!!\n\t\t\t\tthis.direction = intToDir( (int)(Math.random()*4) );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//VisualPathMap.getInstance( pathMap );\n\t\t\n\t\treturn this.direction;\n\t}", "public double getDirectionMove();", "public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "public void travel();", "public void drawLine(Position scanPos, Position mypos)// in\n \t\t// ver�nderter\n \t\t// Form von\n \t\t// http://www-lehre.informatik.uni-osnabrueck.de\n \t\t\t{\n \t\t\t\tint x, y, error, delta, schritt, dx, dy, inc_x, inc_y;\n \n \t\t\t\tx = mypos.getX(); // \n \t\t\t\ty = mypos.getY(); // As i am center\n \n \t\t\t\tdx = scanPos.getX() - x;\n \t\t\t\tdy = scanPos.getY() - y; // Hoehenzuwachs\n \n \t\t\t\t// Schrittweite\n \n \t\t\t\tif (dx > 0) // Linie nach rechts?\n \t\t\t\t\tinc_x = 1; // x inkrementieren\n \t\t\t\telse\n \t\t\t\t\t// Linie nach links\n \t\t\t\t\tinc_x = -1; // x dekrementieren\n \n \t\t\t\tif (dy > 0) // Linie nach oben ?\n \t\t\t\t\tinc_y = 1; // y inkrementieren\n \t\t\t\telse\n \t\t\t\t\t// Linie nach unten\n \t\t\t\t\tinc_y = -1; // y dekrementieren\n \n \t\t\t\tif (Math.abs(dy) < Math.abs(dx))\n \t\t\t\t\t{ // flach nach oben oder unten\n \t\t\t\t\t\terror = -Math.abs(dx); // Fehler bestimmen\n \t\t\t\t\t\tdelta = 2 * Math.abs(dy); // Delta bestimmen\n \t\t\t\t\t\tschritt = 2 * error; // Schwelle bestimmen\n \t\t\t\t\t\twhile (x != scanPos.getX())\n \t\t\t\t\t\t\t{\n \n \t\t\t\t\t\t\t\tif (x != mypos.getX())\n \t\t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\t\tincPix(x + mypos.getX(), y + mypos.getY()); // Fuer\n \t\t\t\t\t\t\t\t\t\t// jede\n \t\t\t\t\t\t\t\t\t\t// x-Koordinate\n \t\t\t\t\t\t\t\t\t\t// System.out.println(\"inc pos \"+ (x +\n \t\t\t\t\t\t\t\t\t\t// mypos.getX()));\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t// Pixel\n \t\t\t\t\t\t\t\tx += inc_x; // naechste x-Koordinate\n \t\t\t\t\t\t\t\terror = error + delta; // Fehler aktualisieren\n \t\t\t\t\t\t\t\tif (error > 0)\n \t\t\t\t\t\t\t\t\t{ // neue Spalte erreicht?\n \t\t\t\t\t\t\t\t\t\ty += inc_y; // y-Koord. aktualisieren\n \t\t\t\t\t\t\t\t\t\terror += schritt; // Fehler\n \t\t\t\t\t\t\t\t\t\t// aktualisieren\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t} else\n \t\t\t\t\t{ // steil nach oben oder unten\n \t\t\t\t\t\terror = -Math.abs(dy); // Fehler bestimmen\n \t\t\t\t\t\tdelta = 2 * Math.abs(dx); // Delta bestimmen\n \t\t\t\t\t\tschritt = 2 * error; // Schwelle bestimmen\n \t\t\t\t\t\twhile (y != scanPos.getY())\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tif (y != mypos.getY())\n \t\t\t\t\t\t\t\t\t{// fuer jede y-Koordinate\n \t\t\t\t\t\t\t\t\t\tincPix(x + mypos.getX(), y + mypos.getY());\n \t\t\t\t\t\t\t\t\t}// setze\n \t\t\t\t\t\t\t\t// Pixel\n \t\t\t\t\t\t\t\ty += inc_y; // naechste y-Koordinate\n \t\t\t\t\t\t\t\terror = error + delta; // Fehler aktualisieren\n \t\t\t\t\t\t\t\tif (error > 0)\n \t\t\t\t\t\t\t\t\t{ // neue Zeile erreicht?\n \t\t\t\t\t\t\t\t\t\tx += inc_x; // x-Koord. aktualisieren\n \t\t\t\t\t\t\t\t\t\terror += schritt; // Fehler\n \t\t\t\t\t\t\t\t\t\t// aktualisieren\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\tif ((x != scanPos.getX() && y != scanPos.getY()))\n \t\t\t\t\t{\n \t\t\t\t\t\tdecPix(scanPos.getX() + x, scanPos.getY() + y);\n \t\t\t\t\t}\n \t\t\t}", "public void grip(){\n\t\tthis.motor.backward();\n\t}", "private static void follow(Node node, EDirection dir, Node start, Collection<Vec2f> r) {\n\t\tNode next = node.getNeighbor(dir);\n\t\tif (node == start && dir == EDirection.EAST && !r.isEmpty()) // starting point\n\t\t\treturn;\n\t\tif (next == null) { // no neighbor change direction\n\t\t\tr.add(corner(node.getRectBounds(), dir));\n\t\t\tfollow(node, dir.rot90(), start, r);\n\t\t} else if (next.getNeighbor(dir.opposite().rot90()) != null) {\n\t\t\tr.add(corner(node.getRectBounds(), dir));\n\t\t\tfollow(next.getNeighbor(dir.opposite().rot90()), dir.opposite().rot90(), start, r);\n\t\t} else {\n\t\t\tVec2f my = node.getLocation();\n\t\t\tVec2f ne = next.getLocation();\n\t\t\tEDimension shiftDir = dir.asDim().opposite();\n\t\t\tfloat shift = shiftDir.select(my) - shiftDir.select(ne);\n\t\t\tif (shift != 0) {\n\t\t\t\tr.add(corner(node.getRectBounds(), dir));\n\t\t\t\tr.add(corner(next.getRectBounds(), dir.opposite().rot90()));\n\t\t\t}\n\t\t\tfollow(next, dir, start, r);\n\t\t}\n\t}", "public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }", "public void move() {\r\n\t\tSystem.out.print(\"This Tiger moves forward\");\r\n\t}", "public void MoveSnake(Direction direction) {\n int end = tail;\n if(new_link)\n end = tail - 1;\n\n new_link = false; // If new_link was true, it has been added already so now there is no new link\n\n for(int i = end; i > 0; i--)\n snake.get(i).SetTo(snake.get(i - 1)); //Set each link to the link ahead\n\n snake.get(head).Update(direction); //Change the direction of the snake's head\n\n }", "public void editForwardLines(int line, int player, int newLine, int newPlayer) {\n Player selection1 = forwardLines[line][player];\n Player selection2 = forwardLines[newLine][newPlayer];\n\n //swap players\n forwardLines[line][player] = selection2;\n forwardLines[newLine][newPlayer] = selection1;\n }", "@Override\n public void run() {\n\n // Define vehicle label if undefined\n if (this.label == null) {\n this.label = \"Vehicle_\" + this.getId();\n }\n\n // Ask roundabout object for path\n Deque<Vertex<AtomicReference>> path = this.getVehicleRoute(this.source, this.destination);\n Vertex<AtomicReference> last = null;\n\n // Get entry queue\n ConcurrentLinkedQueue<Vehicle> entry = this.roundabout.queueOnEntry(this, this.source);\n\n // Wait for first in queue\n while (entry.peek() != this) this.vehicleSleep(waitOnQueue());\n\n // Traverse Path\n for (Vertex<AtomicReference> v : path) {\n\n // Accelerate between path nodes\n if (this.speed < this.maxSpeed) this.speed = accelerate(this.speed);\n\n // Move to node\n while (!v.getValue().compareAndSet(null, this)) {\n\n // Decelerate to not crash into another vehicle\n while (this.speed > 0) this.speed = decelerate(this.speed);\n\n System.out.println(this.label + \": Waiting for next node \" + v.getKey());\n\n // Wait\n this.vehicleSleep(waitToTravel());\n }\n\n // Accelerate for next in case it has stopped\n while (this.speed <= 0) this.speed = accelerate(this.speed);\n\n System.out.println(this.label + \": Moving to node \" + v.getKey() + \" for \" + travel());\n\n // Moving from node to node\n this.vehicleSleep(travel());\n\n // Remove myself from queue only after locking the first node\n if (path.peekFirst() == v) entry.remove(this);\n\n // Release last node\n while (last != null && !last.getValue().compareAndSet(this, null)) ;\n\n // Assign v as the last node which it travelled to\n last = v;\n }\n\n // Release last node\n while (!last.getValue().compareAndSet(this, null)) ;\n }", "private static void lineTo(float x, float y) {\n setPenDown();\n mPivotX = mPenX = x;\n mPivotY = mPenY = y;\n mPath.lineTo(x * mScale, y * mScale);\n elements.add(\n new PathElement(ElementType.kCGPathElementAddLineToPoint, new Point[] {new Point(x, y)}));\n }", "@Override\r\n public void act() {\r\n boolean willMove = canMove();\r\n if (isEnd) {\r\n // to show step count when reach the goal\r\n if (!hasShown) {\r\n String msg = stepCount.toString() + \" steps\";\r\n JOptionPane.showMessageDialog(null, msg);\r\n hasShown = true;\r\n }\r\n } else if (willMove) {\r\n move();\r\n // increase step count when move\r\n stepCount++;\r\n // 把当前走过的位置加入栈顶的arrayList\r\n crossLocation.peek().add(getLocation());\r\n // 当前方向的概率+1\r\n probablyDir[getDirection() / 90]++;\r\n } else if (!willMove) {\r\n // 这时候必须一步一步返回栈顶arrayList的开头\r\n ArrayList<Location> curCrossed = crossLocation.peek();\r\n curCrossed.remove(curCrossed.size() - 1);\r\n next = curCrossed.get(curCrossed.size() - 1);\r\n move();\r\n stepCount++;\r\n // 当前方向反向的概率-1\r\n probablyDir[((getDirection() + Location.HALF_CIRCLE)\r\n % Location.FULL_CIRCLE) / Location.RIGHT]--;\r\n if (curCrossed.size() == 1) {\r\n // 返回之后pop\r\n crossLocation.pop();\r\n }\r\n }\r\n }", "public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }", "public void drawTo(Point that) {\n StdDraw.line(this.x, this.y, that.x, that.y);\n }", "private void goForwardOne() \n {\n if (m_bufferOffset_ < 0) {\n // we're working on the source and not normalizing. fast path.\n // note Thai pre-vowel reordering uses buffer too\n m_source_.setIndex(m_source_.getIndex() + 1);\n }\n else {\n // we are in the buffer, buffer offset will never be 0 here\n m_bufferOffset_ ++;\n }\n }", "public void travelTo(double x, double y){\r\n\r\n\t\t\tdouble xDistance = x - odometer.getX();//the distance the robot has to travel in x to get to its destination from current position.\r\n\t\t\tdouble yDistance = y - odometer.getY();//the distance the robot has to travel in y to get to its destination from current position.\r\n\t\t\tdouble distance = Math.sqrt(xDistance*xDistance + yDistance*yDistance);//the overall distance the robot has to travel from current position.\r\n\t\t\t\r\n\t\t\tnewAngle = Math.atan(xDistance/yDistance); // if the yDistance is negative and xDistance superior to 0, it will provide the right angle for the nxt by adding pi to it's turn angle, \r\n\t\t\t\r\n\t\t\tcurrentAngle = odometer.getAng(); // gets current angle of nxt\r\n\t\t\ttheta = Math.toDegrees(newAngle) - currentAngle; \r\n\t\t\t\r\n\t\t\t// if true, turn to theta and run the trajectory without obstacleAvoidance\r\n\t\t\tLCD.drawString(\"theta: \"+ theta, 0, 1);\r\n\t\t\tturnTo(theta);\r\n\t\t\t\t\r\n\t\t\tleftMotor.setSpeed(FORWARD_SPEED);\r\n\t\t\trightMotor.setSpeed(FORWARD_SPEED);\r\n\r\n\t\t\tleftMotor.rotate(convertDistance(wheelRadius, distance), true);\r\n\t\t\trightMotor.rotate(convertDistance(wheelRadius, distance), false);\r\n\t\t}" ]
[ "0.64093673", "0.62268174", "0.6101613", "0.6082397", "0.60567445", "0.6010274", "0.595551", "0.59358996", "0.5879683", "0.5877147", "0.5861672", "0.58305216", "0.5795899", "0.5698164", "0.5690787", "0.5658417", "0.5656863", "0.5653399", "0.56333286", "0.56314236", "0.5631238", "0.5630313", "0.5626255", "0.5615657", "0.5604083", "0.5601169", "0.5582129", "0.55661", "0.5564035", "0.55387235", "0.5521394", "0.55141747", "0.5512524", "0.54795605", "0.54790515", "0.54506063", "0.54486495", "0.54479754", "0.54452366", "0.54280996", "0.5422558", "0.5404893", "0.5399311", "0.5394997", "0.5393615", "0.5391587", "0.53915304", "0.53852373", "0.5373368", "0.5368231", "0.5363849", "0.5357734", "0.53575075", "0.53485805", "0.53484684", "0.53302175", "0.5326243", "0.53232", "0.5319019", "0.53190005", "0.5315022", "0.53057253", "0.5303324", "0.5284464", "0.5280911", "0.5273567", "0.52732813", "0.5268469", "0.52668417", "0.526521", "0.52622646", "0.52563226", "0.525603", "0.5246855", "0.52409095", "0.5231716", "0.52299273", "0.52272296", "0.52267575", "0.5226753", "0.5224334", "0.52235454", "0.52212244", "0.52183324", "0.5211231", "0.5204759", "0.5201971", "0.5195646", "0.51893336", "0.51891273", "0.51738507", "0.5173042", "0.5171771", "0.5165859", "0.51656306", "0.51569057", "0.5150666", "0.51468575", "0.5144722", "0.51401937" ]
0.5519945
31
Walks to the destination via web walking.
public static boolean webWalk(final RSTile tile) { if (tile == null) { return false; } return WebWalking.walkTo(tile, new Condition() { @Override public boolean active() { AntiBan.activateRun(); return compareGameDestination(tile); } }, 500); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "public void startCrawl() throws IOException {\n\t\tElements paragraphs = wf.fetchWikipedia(source);\n\t\tqueueInternalLinks(paragraphs);\n\n\t\t// loop until we index a new page\n\t\tString res;\n\t\tdo {\n\t\t\tres = crawl();\n\n\t\t} while (res == null);\n\t}", "@Override\n public boolean canContinueWalking() {\n return true;\n }", "public void findDestination() {\n\t\t\n\t}", "public void createWalk() {\n\t\t\n\t\twhile(!isDone()) {\n\t\t\tstep();\n\t\t}\n\n\t}", "public static void main(String[] args) throws IOException {\n Deque<String> urlsToVisit = new ArrayDeque<String>();\n // Keep track of which URLs we have visited, so we don't get ourselves stuck in a loop.\n List<String> visitedUrls = new ArrayList<String>();\n // Keep track of how we got to each page, so that we can find our trace back to the BEGIN_URL.\n Hashtable<String, String> referrers = new Hashtable<String, String>();\n boolean pathFound = false;\n\n // Begin with the BEGIN_URL\n urlsToVisit.push(BEGIN_URL);\n\n while(!urlsToVisit.isEmpty() && !pathFound) {\n String currentUrl = urlsToVisit.pop();\n visitedUrls.add(currentUrl);\n\n Elements paragraphs = wf.fetchWikipedia(BASE_URL + currentUrl);\n List<String> pageUrls = new ArrayList<String>();\n\n for (Element p : paragraphs) {\n pageUrls.addAll(getLinksFromParagraph(p));\n }\n\n // Reverse the order of all page urls so that when we're done pushing all the URLS\n // to the stack, the first URL in the page will be the first URL in the current page.\n Collections.reverse(pageUrls);\n\n // Add all the URLs to the list of URLs to visit.\n for (String newUrl : pageUrls) {\n if(!visitedUrls.contains(newUrl)) {\n urlsToVisit.push(newUrl);\n // Record how we ended up at newUrl.\n referrers.put(newUrl, currentUrl);\n\n // Check if one of the links in this page is the END_URL; which means we'll be done!\n if (newUrl.equals(END_URL)) {\n pathFound = true;\n }\n }\n }\n }\n\n if (pathFound) {\n System.out.println(\"=================\");\n System.out.println(\"Path found!\");\n System.out.println(\"=================\");\n\n // Back trace how we ended up at END_URL.\n String backtraceUrl = END_URL;\n System.out.println(backtraceUrl);\n while(backtraceUrl != BEGIN_URL) {\n String referrerUrl = referrers.get(backtraceUrl);\n System.out.println(referrerUrl);\n backtraceUrl = referrerUrl;\n }\n } else {\n System.out.println(\"=================\");\n System.out.println(\"No path found :(\");\n System.out.println(\"=================\");\n }\n }", "abstract void walk();", "public void walk(int direction);", "public void run() {\n\t\t\tString html = \"\";\n\t\t\ttry {\n\t\t\t\thtml = HTTPFetcher.fetchHTML(this.url);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(\"Unknown host\");\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IOException\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif(html != null) {\n\t\t\t\t\tthis.newLinks = LinkParser.listLinks(new URL(this.url), html);\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t}\n\t\t\tif(newLinks != null) {\n\t\t\t\tfor(URL theURL : newLinks) {\n\t\t\t\t\tif(!(urls.contains(theURL))) {\n\t\t\t\t\t\tsynchronized(urls) {\n\t\t\t\t\t\t\turls.add(theURL);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinnerCrawl(theURL, limit);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInvertedIndex local = new InvertedIndex();\n\t\t\t\tString no_html = HTMLCleaner.stripHTML(html.toString());\n\t\t\t\tString[] the_words = WordParser.parseWords(no_html);\n\t\t\t\tlocal.addAll(the_words, this.url);\n\t\t\t\tindex.addAll(local);\n\t\t\t}\n\t\t}", "public void travel();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\t\n ArrayList<String> visited = new ArrayList<String>();\n\n\t\tString start = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\n String finish = \"https://en.wikipedia.org/wiki/Philosophy\";\n String url = start;\n\n for (int i = 0; i < 15; i++) {\n\n if (visited.contains(url)) {\n return;\n }\n else {\n visited.add(url); \n }\n\n Elements paragraphs = fetcher.fetchWikipedia(url);\n Element link = searchPage(paragraphs);\n\n if (link == null) {\n System.err.println(\"No links on this page...\");\n return;\n }\n\n url = link.attr(\"abs:href\");\n System.out.println(\"currently on: \" + url);\n \n if (url.equals(finish)) {\n System.out.println(\"found it!\");\n break;\n }\n }\n\t}", "void walk() {\n\t\t\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void crawl() {\n\t\tOOSpider.create(Site.me().setSleepTime(3000).setRetryTimes(3).setDomain(\"movie.douban.com\")//.setHttpProxy(httpProxy)\n .setUserAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36\"),\n filmInfoDaoPipeline, DoubanFilm.class)\n .addUrl(\"https://movie.douban.com/top250\")//entry url\n .thread(1)\n .run();\n }", "@Override\r\n\tpublic void going() {\n\t\tSystem.out.println(\"going to destination by a luxury car\");\r\n\t}", "@Override\r\n public void visit(Page page) {\r\n String url = page.getWebURL().getURL();\r\n System.out.println(\"URL: \" + url);\r\n\r\n if (page.getParseData() instanceof HtmlParseData) {\r\n HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\r\n String text = htmlParseData.getText();\r\n String html = htmlParseData.getHtml();\r\n List<WebURL> links = htmlParseData.getOutgoingUrls();\r\n\r\n System.out.println(\"Text length: \" + text.length());\r\n System.out.println(\"Html length: \" + html.length());\r\n System.out.println(\"Number of outgoing links: \" + links.size());\r\n\r\n try {\r\n Configuration config = new Configuration();\r\n System.setProperty(\"HADOOP_USER_NAME\", \"admin\");\r\n FileSystem fileSystem = FileSystem.get(new URI(\"hdfs://192.168.51.116:8022/\"), config);\r\n FSDataOutputStream outStream = fileSystem.append(new Path(\"/user/admin/crawler-results.txt\"));\r\n\r\n IOUtils.write(text.replace('\\n', ' '), outStream);\r\n outStream.flush();\r\n IOUtils.closeQuietly(outStream);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n throw new RuntimeException(ex);\r\n }\r\n }\r\n }", "public static void Execute ()\n\t{\n\t\tReceiveCollection (SpawnCrawler (target));\n\t\t\n\t\tList<String> initialCollection = overCollection;\n\t\t\n\t\tif ( ! initialCollection.isEmpty ())\n\t\t{\n\t\t\n\t\t\tfor (String collected : initialCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tReceiveCollection (SpawnCrawler (collected));\n\t\t\t\telse\n\t\t\t\t\tReceiveCollection (SpawnCrawler (target + collected));\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t/*\n\t\t * Several loops should commence here where the system reiteratively goes over all the newly acquired URLs\n\t\t * so it may extend itself beyond the first and second depth.\n\t\t * However this process should be halted once it reaches a certain configurable depth.\n\t\t */\n\t\tint depth = 0;\n\t\tint newFoundings = 0;\n\t\t\n\t\tdepthLoop: while (depth <= MAX_DEPTH)\n\t\t{\n\t\t\t\n\t\t\tfor (String collected : overCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tSpawnCrawler (collected);\n\t\t\t\telse\n\t\t\t\t\tSpawnCrawler (target + collected);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (newFoundings <= 0)\n\t\t\t\tbreak depthLoop;\n\t\t\t\n\t\t\tdepth++;\n\t\t\t\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void crawl() throws IOException {\n final String seedURL = url;\n Queue<String> currentDepthQueue = new LinkedList<>();\n currentDepthQueue.add(seedURL);\n crawl(visitedURL, 1, currentDepthQueue);\n customObjectWriter.flush();\n }", "@Override\r\n\tpublic void navigate() {\n\t\t\r\n\t}", "public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}", "public String forward(int steps) {\n while (steps != 0 && current.next != null) {\n steps--;\n current = current.next;\n }\n return current.url;\n }", "private void start() {\n\t\twhile(!navi.pathCompleted())\n\t\t{\n\t\t\tThread.yield();\n\t\t\t\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "private void travelTo(Location destination) \n\t{\n\t\tSystem.out.println(destination.name());\n\t\tif (destination == Location.Home) {\n\t\t\t\n\t\t\tif (role == Role.Attacker) {\n\t\t\t\t\n\t\t\t\tswitch(startingCorner) { \n\t\t\t\t\t/*case 1: travelTo(Location.X4); travelTo(Location.AttackBase); break;\n\t\t\t\t\tcase 2: travelTo(Location.X3); travelTo(Location.AttackBase); break;\n\t\t\t\t\tcase 3: case 4: travelTo(Location.AttackBase);*/\n\t\t\t\tcase 1: travelTo(Location.AttackBase); break;\n\t\t\t\tcase 2: travelTo(Location.AttackBase); break;\n\t\t\t\tcase 3: //travelTo(Location.X2);\n\t\t\t\t\t\ttravelTo(Location.AttackBase); break;\n\t\t\t\tcase 4: //travelTo(Location.X1);\n\t\t\t\t\t\ttravelTo(Location.AttackBase); break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (role == Role.Defender) {\n\t\t\t\t\n\t\t\t\tswitch(startingCorner) {\n\t\t\t\t\tcase 1: //travelTo(Location.X4);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 2: //travelTo(Location.X3);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 3: travelTo(Location.DefWay3);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 4: travelTo(Location.DefWay4);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\telse if (destination == Location.BallPlatform)\n\t\t\tnavigator.travelTo(ballPlatform[0], ballPlatform[1]);\n\t\t\t\n\t\telse if (destination == Location.ShootingRegion)\n\t\t\tnavigator.travelTo(CENTER, 7 * 30.0); // we have to account for the case when there is an obstacle in the destination\n\t\t\t// also need to find a way of determining the y coordinate\n\n\t\telse if (destination == Location.AttackBase)\n\t\t\tnavigator.travelTo(ATTACK_BASE[0], ATTACK_BASE[1]); \n\t\t\n\t\telse if (destination == Location.DefenseBase)\n\t\t\tnavigator.travelTo(DEFENSE_BASE[0], DEFENSE_BASE[1]);\n\t\t\n\t\telse if (destination == Location.X1) \n\t\t\tnavigator.travelTo(X[0][0] * 30.0, X[0][1] * 30.0);\n\n\t\telse if (destination == Location.X2)\n\t\t\tnavigator.travelTo(X[1][0] * 30.0, X[1][1] * 30.0);\n\t\t\n\t\telse if (destination == Location.X3) \n\t\t\tnavigator.travelTo(X[2][0] * 30.0, X[2][1] * 30.0);\n\n\t\telse if (destination == Location.X4)\n\t\t\tnavigator.travelTo(X[3][0] * 30.0, X[3][1] * 30.0);\n\t\t\n\t\telse if (destination == Location.DefWay3)\n\t\t\tnavigator.travelTo(240, 240);\n\t\t\n\t\telse if (destination == Location.DefWay4)\n\t\t\tnavigator.travelTo(60, 240);\n\n\t\t\n\t\t// return from method only after navigation is complete\n\t\twhile (navigator.isNavigating())\n\t\t{\n\t\t\tSystem.out.println(\"destX: \" + navigator.destDistance[0] + \"destY: \" + navigator.destDistance[1]);\n\t\t\ttry {\n\t\t\t\tThread.sleep(100);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void gotoCompletePage() {\n WebkitUtil.forward(mWebView, AFTER_PRINT_PAGE);\n }", "@Override\n public void visit(Page page) {\n\t visitObject.visitUrls(page);\n\t String url = page.getWebURL().getURL();\n\t System.out.println(\"URL: \" + url);\n\t if (page.getParseData() instanceof HtmlParseData) {\n\t\t HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\n\t\t String text = htmlParseData.getText();\n\t\t String html = htmlParseData.getHtml();\n\t\t Set<WebURL> links = htmlParseData.getOutgoingUrls();\n\t\t System.out.println(\"Text length: \" + text.length());\n\t\t System.out.println(\"Html length: \" + html.length());\n\t\t System.out.println(\"Number of outgoing links: \" + links.size());\n\t\t }\n }", "private void go() {\n\t\t\tgo2(new Tree(), new Chrome());\n\t\t\t//go2((Chrome) new Tree(),new Chrome());\n\t\t}", "@Override\n \tpublic void navigate(ParsedURL purl, String frame)\n \t{\n \t\tString[] navigateArgs = getNavigateArgs();\n \t\tif (navigateArgs != null && purl != null)\n \t\t{\n \t\t\tString purlString = purl.toString();\n \t\t\tint numArgs = navigateArgs.length;\n \t\t\tnavigateArgs[numArgs - 1] = purlString;\n \t\t\tStringBuilder sb = new StringBuilder();\n \t\t\tfor (int i = 0; i < numArgs; i++)\n \t\t\t\tsb.append(navigateArgs[i]).append(' ');\n \t\t\tDebug.println(\"navigate: \" + sb);\n \t\t\ttry\n \t\t\t{\n \t\t\t\tProcess p = Runtime.getRuntime().exec(navigateArgs);\n \t\t\t}\n \t\t\tcatch (IOException e)\n \t\t\t{\n \t\t\t\terror(\"navigate() - caught exception: \");\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t\telse\n \t\t\terror(\"navigate() - Can't find browser to navigate to.\");\n \t}", "protected void goTo(String url) {\n \t\tcontext.goTo(url);\n \t}", "@Override\r\n\tpublic void run()\r\n\t{\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\t//System.out.println(\"beginning of Parser code\");\r\n\t\t\t\r\n\t\t\t//pull a page from the page que\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tpageText = SharedPage.getNextPage();\r\n\t\t\t\t//System.out.println(\"Parser Page Pulled\");\r\n\t\t\t} \r\n\t\t\tcatch (InterruptedException e) \r\n\t\t\t{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//search the page for all links in anchor (<a href=\"\") elements\r\n\t\t\t\r\n\t\t\t//Regex\r\n\t\t\t//loop will execute for each link found\r\n\t\t\tPattern pattern = Pattern.compile(\"href=\\\"(http:.*?)\\\"\");\r\n\t\t\tMatcher matcher = null;\r\n\t\t\t\r\n\t\t\t//Some pages are returning null values\r\n\t\t\tif(pageText != null)\r\n\t\t\t{\r\n\t\t\t\tmatcher = pattern.matcher(pageText);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add each link found to the link queue\r\n\t\t\t\r\n\t\t\t//sometimes matcher is returning null values\r\n\t\t\twhile(matcher != null && matcher.find())\r\n\t\t\t{\r\n\t\t\t\tString link = matcher.group(1);\r\n\t\t\t\r\n\t\t\t\ttry \r\n\t\t\t\t{\r\n\t\t\t\t\tSharedLink.addLink(link);\r\n\t\t\t\t} \r\n\t\t\t\tcatch (InterruptedException e) \r\n\t\t\t\t{\r\n\t\t\t\t\t//do nothing\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//search the page for keywords specified by the user of the webcrawler\r\n\t\t\tArrayList<String> keywords = WebCrawlerConsole.getKeywords();\r\n\t\t\t\r\n\t\t\t\tfor(String word : keywords)\r\n\t\t\t\t{\r\n\t\t\t\t\t//cannot split pageText if it is null\r\n\t\t\t\t\tif(pageText != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString[] keywordSearch = pageText.split(word);\r\n\t\t\t\t\t\tfor(int i=0; i < keywordSearch.length; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tWebCrawlerConsole.keywordHit();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t//System.out.println(\"end of Parser code\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n // some example code to get you started\r\n\r\n\t\tString url = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\r\n\t\tElements paragraphs = wf.fetchWikipedia(url);\r\n\t\tString baseUrl = \"https://en.wikipedia.org\";\r\n\t\tString location = \"\";\r\n\t\tList<String> visited = new ArrayList<>();\r\n\t\tElement firstPara = paragraphs.get(0);\r\n\t\tboolean notFound = true;\r\n\t\tboolean first = false;\r\n\t\tint i = 0;\r\n\t\tIterable<Node> iter = new WikiNodeIterable(firstPara);\r\n\t\tvisited.add(url);\r\n\t\twhile (notFound && i < 7) {\r\n\t\t\tfor (Node node: iter) {\r\n\t\t\t\tif (node instanceof Element) {\r\n\t\t\t\t\tElement e2 = (Element) node;\r\n\t\t\t\t\tString e2txt = e2.text();\r\n\t\t\t\t\tElements e = e2.children();\r\n\t\t\t\t\tfor (Node n : e) {\r\n\t\t\t\t\t\tif (n instanceof Element) {\r\n\t\t\t\t\t\t\tElement e3 = (Element) n;\r\n\t\t\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\t\t\tif (e3.tag().toString().equals(\"a\")) {\r\n\t\t\t\t\t\t\t\t\tif (e2txt.indexOf(\"(\") < e2txt.indexOf(e3.text()) && e2txt.indexOf(\")\") > e2txt.indexOf(e3.text())) {\r\n\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tfirst = true;\r\n\t\t\t\t\t\t\t\t\t\tString str = e3.toString();\r\n\t\t\t\t\t\t\t\t\t\tString[] arr = str.split(\" \");\r\n\t\t\t\t\t\t\t\t\t\tlocation = arr[1].substring(6, arr[1].length() - 1);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\tSystem.out.println(\"No links found, exiting.\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tparagraphs = wf.fetchWikipedia(baseUrl + location);\r\n\t\t\titer = new WikiNodeIterable(paragraphs.get(0));\r\n\t\t\tfirst = false;\r\n\t\t\tif (visited.contains(baseUrl + location)) {\r\n\t\t\t\tSystem.out.println(\"Links go in a loop, exiting\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvisited.add(baseUrl + location);\r\n\t\t\ti++;\r\n\t\t\tif (location.substring(6).equals(\"Philosophy\")) {\r\n\t\t\t\tnotFound = false;\r\n\t\t\t\tSystem.out.println(\"Philosophy found in \" + i + \" jumps\");\r\n\t\t\t}\r\n }\r\n System.out.println(visited);\r\n\t}", "HtmlPage clickLink();", "public void gotoVideoLandingPage(){\r\n\t\twebAppDriver.get(baseUrl+\"/videos.aspx\");\r\n\t\t//need to add verification text\r\n\t}", "@Override\n\t\tpublic void onGetWalkingRouteResult(MKWalkingRouteResult arg0, int arg1) {\n\t\t\t\n\t\t}", "String nextLink();", "private void goToDetailedRune()\n\t{\n\t\tLog.e(\"before pages\", String.valueOf(player.getSummonerID()));\n\t\tRunePages tempPages = player.getPages().get(String.valueOf(player.getSummonerID()));\n\t\tLog.e(\"after pages\", String.valueOf(tempPages.getSummonerId()));\n\t\tSet<RunePage> tempSetPages = tempPages.getPages();\n\t\tRunePage currentPage = new RunePage();\n\t\tfor (RunePage tempPage : tempSetPages)\n\t\t{\n\t\t\tif (tempPage.getName() == player.getCurrentRunePage())\n\t\t\t{\n\t\t\t\tLog.e(\"temp page\", \"page found\");\n\t\t\t\tcurrentPage = tempPage;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// now we have the page, need to get the runes out of it\n\t\tList<RuneSlot> tempSlots = currentPage.getSlots();\n\t\tArrayList<Integer> tempIDs = new ArrayList<Integer>();\n\t\tLog.e(\"tempSlots size\", String.valueOf(tempSlots.size()));\n\t\tfor (int i = 0; i < tempSlots.size(); i++)\n\t\t{\t\n\t\t\tLog.e(\"tempSlot\", String.valueOf(tempSlots.get(i).getRune()));\n\t\t\ttempIDs.add(tempSlots.get(i).getRune());\n\t\t}\n\t\tfillRuneList(tempIDs);\n\t\t// go to the screen\n\t\tIntent intent = new Intent(activity, RuneDetailActivity.class);\n\t\tactivity.startActivity(intent);\n\t}", "PageAgent getPage();", "@Override\n\tpublic void walk() {\n\t\tSystem.out.println(\"Can Walk\");\n\t\t\n\t}", "public void ClickSearchOnline() throws InterruptedException {\n\n searchOnline.click();\n //sameOriginAndDestination();\n\n\n }", "public void run() {\n if(_dest!=null) {\n approachDest();\n return;\n }\n if(Rand.d100(_frequency)) {\n MSpace m = in.b.getEnvironment().getMSpace();\n if(!m.isOccupied()) {\n Logger.global.severe(in.b+\" has come unstuck\");\n return;\n }\n MSpace[] sur = m.surrounding();\n int i = Rand.om.nextInt(sur.length);\n for(int j=0;j<sur.length;j++) {\n if(sur[i]!=null&&sur[i].isWalkable()&&accept(sur[i])) {\n in.b.getEnvironment().face(sur[i]);\n MSpace sp = in.b.getEnvironment().getMSpace().move(in.b.getEnvironment().getFacing());\n if(sp!=null&&(in.b.isBlind()||!sp.isOccupied())) {\n _move.setBot(in.b);\n _move.perform();\n }\n break;\n }\n if(++i==sur.length) {\n i = 0;\n }\n }\n }\n else if(_dest==null&&Rand.d100(_travel)) {\n _dest = findNewSpace();\n //System.err.println(in.b+\" DEST: \"+_dest);\n }\n }", "@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onGetWalkingRouteResult(MKWalkingRouteResult arg0, int arg1) {\n\t\t\r\n\t}", "public void navigateTo() {\n LOGGER.info(\"Navigating to:\" + BASE_URL);\n driver.navigate().to(BASE_URL);\n }", "public Indexer crawl() \n\t{\n\t\t// This redirection may effect performance, but its OK !!\n\t\tSystem.out.println(\"Crawling: \"+u.toString());\n\t\treturn crawl(crawlLimitDefault);\n\t}", "public final EObject ruleGoTo() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n EObject lv_link_1_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:565:28: ( (otherlv_0= 'goTo' ( ( (lv_link_1_0= ruleLink ) ) | ( (otherlv_2= RULE_ID ) ) ) ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:566:1: (otherlv_0= 'goTo' ( ( (lv_link_1_0= ruleLink ) ) | ( (otherlv_2= RULE_ID ) ) ) )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:566:1: (otherlv_0= 'goTo' ( ( (lv_link_1_0= ruleLink ) ) | ( (otherlv_2= RULE_ID ) ) ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:566:3: otherlv_0= 'goTo' ( ( (lv_link_1_0= ruleLink ) ) | ( (otherlv_2= RULE_ID ) ) )\n {\n otherlv_0=(Token)match(input,17,FOLLOW_17_in_ruleGoTo1047); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getGoToAccess().getGoToKeyword_0());\n \n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:570:1: ( ( (lv_link_1_0= ruleLink ) ) | ( (otherlv_2= RULE_ID ) ) )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==47) ) {\n alt5=1;\n }\n else if ( (LA5_0==RULE_ID) ) {\n alt5=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:570:2: ( (lv_link_1_0= ruleLink ) )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:570:2: ( (lv_link_1_0= ruleLink ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:571:1: (lv_link_1_0= ruleLink )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:571:1: (lv_link_1_0= ruleLink )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:572:3: lv_link_1_0= ruleLink\n {\n \n \t newCompositeNode(grammarAccess.getGoToAccess().getLinkLinkParserRuleCall_1_0_0()); \n \t \n pushFollow(FOLLOW_ruleLink_in_ruleGoTo1069);\n lv_link_1_0=ruleLink();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getGoToRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"link\",\n \t\tlv_link_1_0, \n \t\t\"Link\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:589:6: ( (otherlv_2= RULE_ID ) )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:589:6: ( (otherlv_2= RULE_ID ) )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:590:1: (otherlv_2= RULE_ID )\n {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:590:1: (otherlv_2= RULE_ID )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:591:3: otherlv_2= RULE_ID\n {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getGoToRule());\n \t }\n \n otherlv_2=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGoTo1095); \n\n \t\tnewLeafNode(otherlv_2, grammarAccess.getGoToAccess().getVVariableCrossReference_1_1_0()); \n \t\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public void explore() {\n\t\t\tif(getSpeed() < CAR_MAX_SPEED){ // Need speed to turn and progress toward the exit\n\t\t\t\tapplyForwardAcceleration(); // Tough luck if there's a wall in the way\n\t\t\t}\n\t\t\tif (isFollowingWall) {\n\t\t\t\t// if already been to this tile, stop following the wall\n\t\t\t\tif (travelled.contains(new Coordinate(getPosition()))) {\n\t\t\t\t\tisFollowingWall = false;\n\t\t\t\t} else {\n\t\t\t\t\tif(!checkFollowingWall(getOrientation(), map)) {\n\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If wall on left and wall straight ahead, turn right\n\t\t\t\t\t\tif(checkWallAhead(getOrientation(), map)) {\n\t\t\t\t\t\t\tif (!checkWallRight(getOrientation(), map))\t{\n\t\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t\t\t} else if (!checkWallLeft(getOrientation(), map)){\n\t\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tapplyReverseAcceleration();\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} else {\n\t\t\t\t// Start wall-following (with wall on left) as soon as we see a wall straight ahead\n\t\t\t\tif(checkWallAhead(getOrientation(), map)) {\n\t\t\t\t\tif (!checkWallRight(getOrientation(), map) && !checkWallLeft(getOrientation(), map)) {\n\t\t\t\t\t\t// implementing some randomness so doesn't get stuck in loop\n\t\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\t\tint n = rand.nextInt(2);\n\t\t\t\t\t\tif (n==0) {\n\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (!checkWallRight(getOrientation(), map))\t{\n\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t} else if (!checkWallLeft(getOrientation(), map)){\n\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapplyReverseAcceleration();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "HtmlPage clickSiteLink();", "private void hitURL(String URL){\n Log.v(\".hitURL\", \" now crawling at: \" + URL);\n String refinedURL = NetworkUtils.makeURL(URL).toString();\n visitedLinks.add(refinedURL);\n browser.loadUrl(refinedURL);\n\n\n // OR, you can also load from an HTML string:\n// String summary = \"<html><body>You scored <b>192</b> points.</body></html>\";\n// webview.loadData(summary, \"text/html\", null);\n // ... although note that there are restrictions on what this HTML can do.\n // See the JavaDocs for loadData() and loadDataWithBaseURL() for more info.\n }", "URL getTarget();", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public void crawl(final String url, final String target) throws IOException;", "public void navigateToForward() {\n WebDriverManager.getDriver().navigate().forward();\n }", "String directsTo();", "protected abstract void traverse();", "@Override\n\tpublic void goToStings() {\n\t\t\n\t}", "private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }", "private void forwardPage()\n {\n page++;\n open();\n }", "public String crawl() throws IOException {\n // FILL THIS IN!\n if(queue.isEmpty()){\n \treturn null;\n }\n String url = queue.remove();\n \tSystem.out.println(\"crawling \"+url);\n Elements paragraphs;\n \tif(index.isIndexed(url))\n \t{\n \t\tSystem.out.println(url+\" is already indexed\");\n \t\treturn null;\n \t}\n \tparagraphs = wf.fetchWikipedia(url);\n index.indexPage(url,paragraphs);\n queueInternalLinks(paragraphs);\t \n\t\treturn url;\n\t}", "public void crawlSite()\n {\n /** Init the logger */\n WorkLogger.log(\"WebCrawler start at site \" + this.urlStart.getFullUrl() + \" and maxDepth = \" + this.maxDepth);\n WorkLogger.log(\"====== START ======\");\n WorkLogger.log(\"\");\n /** Save the start time of crawling */\n long startTime = System.currentTimeMillis();\n /** Start our workers */\n this.taskHandler.startTask(this.urlStart, maxDepth);\n /** Check workers finished their work; in case then all workers wait, then no ones work, that leads no more tasks -> the program finished */\n while(this.taskHandler.isEnd() == false)\n {\n /** Default timeout for 1 sec cause the socket timeout I set to 1 sec */\n try{Thread.sleep(1000);}catch(Exception e){}\n }\n this.taskHandler.stopTasks();\n /** End the log file and add the time elapsed and total sites visited */\n WorkLogger.log(\"\\r\\n====== END ======\");\n WorkLogger.log(\"Time elapsed: \" + (System.currentTimeMillis() - startTime)/1000.);\n WorkLogger.log(\"Total visited sites: \" + this.pool.getVisitedSize());\n }", "private void goThroughLinks() throws IOException {\n for (URL link :links) {\n pagesVisited++;\n Node node;\n if (link.toString().contains(\"?id=1\") && !books.contains(link)) {\n node = populateNode(link);\n depth = 2;\n books.add(node);\n } else if (link.toString().contains(\"?id=2\") && !movies.contains(link)) {\n node = populateNode(link);\n depth = 2;\n movies.add(node);\n } else if (link.toString().contains(\"?id=3\") && !music.contains(link)) {\n node = populateNode(link);\n depth = 2;\n music.add(node);\n }\n }\n }", "void sendForward(HttpServletRequest request, HttpServletResponse response, String location) throws AccessControlException, ServletException, IOException;", "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "Page getFollowingPage();", "public Browser followRel(String rel);", "protected final void walk(int direction) {\n doMove(direction, 1);\n this.energy -= Params.WALK_ENERGY_COST;\n }", "public GoToAction(PDFObject obj, PDFObject root) throws IOException {\n super(\"GoTo\");\n \n // find the destination\n PDFObject destObj = obj.getDictRef(\"D\");\n if (destObj == null) {\n throw new PDFParseException(\"No destination in GoTo action \" + obj);\n }\n \n // parse it\n dest = PDFDestination.getDestination(destObj, root);\n }", "@Override\n public void walk() {\n System.out.println(\"the robot is walking ... \");\n }", "public static void main(String[] args) throws IOException {\n\n\t\tString start = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\n\t\ttryGettingToDestination(start, philosophy, 10);\n\n\t}", "@When(\"^Navigate to \\\"([^\\\"]*)\\\" Site$\")\r\n\tpublic void navigate_to_Site(String arg1) throws Throwable {\n\t\tdriver = DriverManager.getDriver();\r\n\t\tdriver.get(arg1);\r\n\t\tSystem.out.println(\"Launched Mercury Tours Site\");\r\n\r\n\t}", "@BeforeMethod(description = \"Before method: navigation to the Web application\")\n public void navigateToSite()\n {\n HTMLReport htmlReport = new HTMLReport();\n TodoMVCWorkFlow flow = new TodoMVCWorkFlow();\n htmlReport.log(\"STARTING BeforeMethod\");\n htmlReport.logINFO(\"Navigation to site TodoMVC\");\n flow.navigate();\n }", "public void testExamplePage() throws Exception\n\t{\n\t\tWebNavigator nav = new WebNavigator();\n\n\t\tnav.gotoUrl(BASE_URL);\n\t\tnav.bodyChildren().deep().id(\"randomLink\").activate();\n\n\t\t// Same as above, but the search for id \"randomLink\" starts at the page\n\t\t// level\n\t\tnav.gotoUrl(BASE_URL);\n\t\tnav.page().deep().id(\"randomLink\").activate();\n\n\t\t// Gets the first element whose id matches starts with \"random\" and\n\t\t// attempts to activate it.\n\t\t// Note that if we had, say, a BR tag earlier in the page that had an id\n\t\t// of \"randomBreak\",\n\t\t// the navigation would attempt to activate it and throw an exception.\n\t\tnav.gotoUrl(BASE_URL);\n\t\tnav.page().deep().pattern().id(\"random.*\").activate();\n\n\t\t// Search for the anchor by href. Here you assume that the href will\n\t\t// always be \"goRandom.html\".\n\t\tnav.gotoUrl(BASE_URL);\n\t\tnav.page().deep().href(\"goRandom.html\").activate();\n\n\t\t// Do a step-by-step navigation down the dom. This assumes a lot about\n\t\t// the page layout,\n\t\t// and makes for a very brittle navigation.\n\t\tnav.gotoUrl(BASE_URL);\n\t\tnav.bodyChildren().div().id(\"section1\").children().div().id(\"subsectionA\").children().a().activate();\n\n\t\t// Do a deep search for an anchor that contains the exact text \"Click\n\t\t// here to go a random location\"\n\t\tnav.gotoUrl(BASE_URL);\n\t\tnav.page().deep().a().text(\"Click here to go a random location\").activate();\n\n\t\t// Do a deep search for an anchor whose text contains \"random\" at any\n\t\t// point.\n\t\tnav.gotoUrl(BASE_URL);\n\t\tnav.page().deep().a().pattern().text(\".*random.*\").activate();\n\t}", "public void makeWalkable() \n\t{\n\t\twalkable = true;\n\t}", "public static void goTo() {\n Browser.driver.get(\"https://www.abv.bg/\");\n Browser.driver.manage().window().maximize();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Indexer crawl (int limit) \n\t{\n\t\n\t\t////////////////////////////////////////////////////////////////////\n\t // Write your Code here as part of Priority Based Spider assignment\n\t // \n\t ///////////////////////////////////////////////////////////////////\n\t\tPQueue q=new PQueue();\n \t\n\t\ttry\n \t{\n\t\t\t final String authUser = \"iiit-63\";\n\t\t\t\tfinal String authPassword = \"MSIT123\";\n\n\t\t\t\tSystem.setProperty(\"http.proxyHost\", \"proxy.iiit.ac.in\");\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", \"8080\");\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n\n\t\t\t\tAuthenticator.setDefault(\n\t\t\t\t new Authenticator() \n\t\t\t\t {\n\t\t\t\t public PasswordAuthentication getPasswordAuthentication()\n\t\t\t\t {\n\t\t\t\t return new PasswordAuthentication(authUser, authPassword.toCharArray());\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t);\n\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n \t\tURLTextReader in = new URLTextReader(u);\n \t\t// Parse the page into its elements\n \t\tPageLexer elts = new PageLexer(in, u);\t\t\n \t\tint count1=0;\n \t\t// Print out the tokens\n \t\tint count = 0;\n \t\t\n \t\twhile (elts.hasNext()) \n \t\t{\n \t\t\tcount++;\n \t\t\tPageElementInterface elt = (PageElementInterface)elts.next();\t\t\t \n \t\t\tif (elt instanceof PageHref)\n \t\t\tif(count1<limit)\n \t\t\t{\n \t\t\t\tif(q.isempty())\n \t\t\t\t{\n \t\t\t\t\tq.enqueue(elt.toString(),count);\n\t\t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tif(q.search(elt.toString(),count))\n \t\t\t\t\t{\n \t\t\t\t\t\tq.enqueue(elt.toString(),count);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tcount1++;\n \t\t\t\tSystem.out.println(\"link: \"+elt);\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"links retrieved: \"+count1);\n \t\tq.display();\n \t\twhile(limit !=0)\n \t\t{\n \t\t\tObject elt=q.dequeue();\n \t\t\tURL u1=new URL(elt.toString());\n \t\t\tURLTextReader in1= new URLTextReader(u1);\n \t\t\t// Parse the page into its elements\n \t\t\tPageLexer elt1 = new PageLexer(in1, u1);\n \t\t\twhile (elt1.hasNext()) \n \t\t\t{\n \t\t\t\tPageElementInterface elts2= (PageElementInterface)elt1.next();\n \t\t\t\tif (elts2 instanceof PageWord)\n \t\t\t\t{\n \t\t\t\t\tv.add(elts2);\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"words:\"+elts2);\n \t\t\t} \t\t\t\n\t\t\t\tObjectIterator OI=new ObjectIterator(v);\n\t\t\t\ti.addPage(u1,OI);\n\t\t\t\tfor(int j=0;j<v.size();j++);\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"hello\"+v.get(count));\n\t\t\t\t}\n\t\t\t\tlimit--;\n \t\t}\n \t\t\n \t}\n \tcatch (Exception e)\n \t{\n \t\tSystem.out.println(\"Bad file or URL specification\");\n \t}\n return i;\n\t}", "private static void returnDoMove(String playerName, int kord1,int kord2,HttpServletResponse response, String url) throws IOException {\n GameOptions game = GamesSingleton.games.get(url);\n game.MakeStep(playerName,kord1,kord2);\n response.sendRedirect(url);\n\n }", "@Override\n protected String doInBackground(String... urls) {\n document = v2GetRouteDirection.getDocument(provider_position, user_position, GMapV2GetRouteDirection.MODE_WALKING);\n response = \"Success\";\n return response;\n }", "private void deepLinkingFlow() {\n\n if (getActivity().getIntent().hasExtra(\"deeplink\")) {\n destination = getActivity().getIntent().getParcelableExtra(\"deeplink\");\n hotelSearchPresenter.checkDeepLinking(destination, getActivity().getSupportFragmentManager().beginTransaction());\n }\n\n }", "public interface PageDispatcher {\n\t/**\n\t * Process a webpage\n\t * @param url The URL to process\n\t * @param link The link that was followed to get there\n\t */\n\tpublic void dispatch(URL url, Weblink link, long delay);\n\t\n\t/**\n\t * Register a redirect\n\t * @param oldURL The URL that was redirected\n\t * @param newURL The URL it was redirected to\n\t * @param delay The number of milliseconds to wait before loading the page\n\t */\n\tpublic void registerRedirect(String oldURL, String newURL);\n\t\n\t/**\n\t * Remove all traces of having crawled a URL\n\t * @param url the URL to remove\n\t */\n\tpublic void undispatchURL(String url);\n\t\n\t/**\n\t * Notify the dispatcher that a page has been parsed\n\t * @param page The final version of the page\n\t * @param link The link that was followed to reach the page\n\t */\n\tpublic void notifyPage(Webpage page, Weblink link);\n\t\n\t/**\n\t * Send a command to the Builders\n\t * @param cmd The Command to send\n\t */\n\tpublic void sendCommand(Command cmd);\n}", "Collection<PageLink> crawl(CrawlerArgs args);", "public void goTo(int destination) {\n\t\tdistance=1;\r\n\t\tif(destination == Constants.TO_BACKWARD_CENTER || destination == Constants.TO_BACK)\r\n\t\t{\r\n\t\t\tMove(-Constants.speed);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tMove(Constants.speed);\r\n\t\t}\r\n\t\tApplicationInfo.Destination=destination;\r\n\t\tthread=new DrawThread(glview);\r\n\t\tthread.setRenderingCount(destination, mApplications.get(CurIndex).getZ(),Constants.speed,distance);\r\n\t\tThreadList.add(thread);\r\n\t\tthread.start();\r\n\t}", "public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }", "@Override\r\n\tpublic void afterNavigateForward(WebDriver arg0) {\n\t\t\r\n\t}", "public void run() {\n\t\tHtmlPage page = null;\n\t\tHtmlSelect select = null;\n\t\tHtmlOption option = null;\n\t\tDataStreamWriter connection = null;\n\t\tWebClient client = new WebClient(BrowserVersion.FIREFOX_3);\n\t\t/* eseguo i job assegnati al thread in esecuzione */\n\t\tfor(int j = 0; j < this.jobs.length; j++) {\n\t\t\tint currentJob = this.jobs[j];\n\t\t\ttry {\n\t\t\t\t/* faccio dei tentativi per collegarmi alle pagine */\n\t\t\t\tpage = getPage(client, this.getDataSourceURL());\n\t\t\t\t/* seleziono l'opzione relativa alla regione assegnata al task */\n\t\t\t\tselect = (HtmlSelect) page.getByXPath(\"//select\").get(0);\n\t\t\t\toption = select.getOption(currentJob);\n\t\t\t\toption.setSelected(true);\n\t\t\t\tString regione = option.asText();\n\t\t\t\t/* seleziono l'opzione ed ottengo la pagina aggiornata */\n\t\t\t\tpage = (HtmlPage) select.fireEvent(Event.TYPE_CHANGE).getNewPage();\n\t\t\t\t\n\t\t\t\t/* estraggo i dati e li salvo nello \"storage\" */\n\t\t\t\tconnection = this.storageFacade.getDataStreamWriter();\n\t\t\t\tconnection.openStreamWriter();\n\t\t\t\tthis.extractData(client, connection, page, regione);\n\t\t\t}\n\t\t\tcatch (HTMLCrawlerException e) {\n\t\t\t\tSystem.err.println(\"@ HTMLCrawlerException : Extracting Data Error\");\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\t//client.closeAllWindows();\n\t\t\t\tif (connection != null)\n\t\t\t\t\tconnection.closeStreamWriter();\n\t\t\t}\n\t\t}\n\t\tclient.closeAllWindows();\n\t}", "public void goWebSite() {\n\n if (mIsFirst) {\n mSnackbar.setText(getString(R.string.please_wait)).show();\n } else {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mSiteData.getUrl()));\n //intent.putExtra(\"url\", webData.getUrl());\n //startActivity(intent);\n startActivityForResult(intent, 100);\n //showToolbarProgressBar();\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }", "public boolean isWalkable();", "@Override\r\npublic void afterNavigateForward(WebDriver arg0) {\n\tSystem.out.println(\"as\");\r\n}", "protected abstract long waitToTravel();", "@Async\n\tpublic void start() {\n\t\tUrl url = null;\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\turl = urlRepository.findFirstByDateScannedOrderByIdAsc(null);\n\t\t\t\tif (url == null) {\n\t\t\t\t\twhile (url == null) {\n\t\t\t\t\t\turl = WebSiteLoader.getRandomUrl();\n\n\t\t\t\t\t\tif (urlExists(url)) {\n\t\t\t\t\t\t\turl = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\turl = urlRepository.saveAndFlush(url);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Crawling URL : \" + url);\n\n\t\t\t\tWebPage webPage = WebSiteLoader.readPage(url);\n\t\t\t\tif (webPage != null) {\n\t\t\t\t\tReport report = textAnalyzer.analyze(webPage.getText());\n\t\t\t\t\t\n\t\t\t\t\tfor(SentenceReport sentenceReport : report.getSentenceReports()){\n\t\t\t\t\t\tSentence sentence = sentenceReport.getSentence();\n\t\t\t\t\t\tsentence = sentenceRepository.saveAndFlush(sentence);\n\t\t\t\t\t\tsentenceReport.setSentence(sentence);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(Occurrence occurrence : sentenceReport.getOccurences()){\n\t\t\t\t\t\t\toccurrence = occurrenceRepository.saveAndFlush(occurrence);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSentenceOccurrence so = new SentenceOccurrence();\n\t\t\t\t\t\t\tSentenceOccurrenceId soId = new SentenceOccurrenceId();\n\t\t\t\t\t\t\tso.setSentenceOccurrenceId(soId);\n\t\t\t\t\t\t\tsoId.setOccurenceId(occurrence.getId());\n\t\t\t\t\t\t\tsoId.setSentenceId(sentence.getId());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsentenceOccurrenceRepository.saveAndFlush(so);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\taddUrls(webPage.getUrls());\n\t\t\t\t}\n\n\t\t\t\tlog.info(\"Done crawling URL : \" + url);\n\t\t\t} catch (PageNotInRightLanguageException ex) {\n\t\t\t\tlog.info(\"Page not in the right language : \" + ex.getText());\n\t\t\t} catch (Exception ex) {\n\t\t\t\tlog.error(\"Error while crawling : \" + url, ex);\n\t\t\t}\n\t\t\t\n\t\t\turl.setDateScanned(new Date());\n\t\t\turlRepository.saveAndFlush(url);\n\t\t\t\n\t\t\tif(stop){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private void QueryDirections() {\n\t\tshowProgress(true, \"正在搜索导航路线...\");\n\t\t// Spawn the request off in a new thread to keep UI responsive\n\t\tfor (final FloorInfo floorInfo : floorList) {\n\t\t\tif (floorInfo.getPoints() != null\n\t\t\t\t\t&& floorInfo.getPoints().length >= 2) {\n\n\t\t\t\tThread t = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start building up routing parameters\n\t\t\t\t\t\t\tRouteTask routeTask = RouteTask\n\t\t\t\t\t\t\t\t\t.createOnlineRouteTask(\n\t\t\t\t\t\t\t\t\t\t\tfloorInfo.getRouteServerPath(),\n\t\t\t\t\t\t\t\t\t\t\tnull);\n\n\t\t\t\t\t\t\tRouteParameters rp = routeTask\n\t\t\t\t\t\t\t\t\t.retrieveDefaultRouteTaskParameters();\n\t\t\t\t\t\t\tNAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();\n\t\t\t\t\t\t\t// Convert point to EGS (decimal degrees)\n\t\t\t\t\t\t\t// Create the stop points (start at our location, go\n\t\t\t\t\t\t\t// to pressed location)\n\t\t\t\t\t\t\t// StopGraphic point1 = new StopGraphic(mLocation);\n\t\t\t\t\t\t\t// StopGraphic point2 = new StopGraphic(p);\n\t\t\t\t\t\t\trfaf.setFeatures(floorInfo.getPoints());\n\t\t\t\t\t\t\trfaf.setCompressedRequest(true);\n\t\t\t\t\t\t\trp.setStops(rfaf);\n\n\t\t\t\t\t\t\t// Set the routing service output SR to our map\n\t\t\t\t\t\t\t// service's SR\n\t\t\t\t\t\t\trp.setOutSpatialReference(wm);\n\t\t\t\t\t\t\trp.setFindBestSequence(true);\n\t\t\t\t\t\t\trp.setPreserveFirstStop(true);\n\t\t\t\t\t\t\tif (floorInfo.getEndPoint() != null) {\n\t\t\t\t\t\t\t\trp.setPreserveLastStop(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Solve the route and use the results to update UI\n\t\t\t\t\t\t\t// when received\n\t\t\t\t\t\t\tfloorInfo.setRouteResult(routeTask.solve(rp));\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmException = e;\n\t\t\t\t\t\t\t// mHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trouteIndex++;\n\t\t\t\t\t\tif (routeIndex >= routeCount) {\n\t\t\t\t\t\t\tmHandler.post(mSetCheckMap);\n\t\t\t\t\t\t\tmHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Start the operation\n\t\t\t\tt.start();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Location> possibleStartLocations = possibleStartLocations();\n\n\t\tfor(Entry<Integer, Location> startLocation : possibleStartLocations.entrySet()) {\n\t\t\t// Add startLocation to visited locations\n\t\t\tMap<Integer, Location> visitedLocations = new HashMap<Integer, Location>();\n\t\t\tvisitedLocations.put(startLocation.getKey(), startLocation.getValue());\n\t\t\t\n\t\t\t// Add startLocation to visited order\n\t\t\tList<Location> visitedOrder = new LinkedList<Location>();\n\t\t\tvisitedOrder.add(startLocation.getValue());\n\t\t\t\n\t\t\t// Start the recursion for the following start node\n\t\t\tfindSolution(startLocation, startLocation, visitedLocations, visitedOrder, 0);\n\t\t}\n\t}", "public void search(String url, String searchWord)\n {\n while(this.pagesVisited.size() < MAX_PAGES_TO_SEARCH)\n {\n String currentUrl;\n SpiderLeg leg = new SpiderLeg();\n if(this.pagesToVisit.isEmpty())\n {\n currentUrl = url;\n this.pagesVisited.add(url);\n }\n else\n {\n currentUrl = this.nextUrl();\n }\n leg.crawl(currentUrl); // Lots of stuff happening here. Look at the crawl method in\n // SpiderLeg\n boolean success = leg.searchForWord(searchWord);\n if(success)\n {\n System.out.println(String.format(\"**Success** Word %s found at %s\", searchWord, currentUrl));\n break;\n }\n this.pagesToVisit.addAll(leg.getLinks());\n }\n System.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size() + \" web page(s)\");\n }", "public Sommet destination() {\n return destination;\n }", "private void parseIndex() throws IOException {\n\t\tDocument doc = Jsoup.connect(WOLFF + \"/bioscopen/cinestar/\").get();\n\t\tElements movies = doc.select(\".table_agenda td[width=245] a\");\n\t\t\n\t\tSet<String> urls = new HashSet<String>();\n\t\tfor(Element movie : movies) {\n\t\t\turls.add(movie.attr(\"href\"));\n\t\t}\n\t\t\n\t\tfor(String url: urls) {\n\t\t\tparseMovie(url);\n\t\t}\n\t}", "public interface IPage {\r\n\r\n\t/**\r\n\t * Gets the url.\r\n\t *\r\n\t * @return the url\r\n\t */\r\n\tUrl getUrl();\r\n\r\n\t/**\r\n\t * Seek.\r\n\t *\r\n\t * @param skip the skip\r\n\t * @return the int\r\n\t */\r\n\tint seek(int skip);\r\n\r\n\t/**\r\n\t * Back to.\r\n\t *\r\n\t * @param s the s\r\n\t * @return true, if successful\r\n\t */\r\n\tboolean backTo(char s);\r\n\r\n\t/**\r\n\t * Seek.\r\n\t *\r\n\t * @param s the s\r\n\t * @return true, if successful\r\n\t */\r\n\tboolean seek(String s);\r\n\r\n\t/**\r\n\t * Seek.\r\n\t *\r\n\t * @param s the s\r\n\t * @param inlen the inlen\r\n\t * @return true, if successful\r\n\t */\r\n\tboolean seek(String s, int inlen);\r\n\r\n\t/**\r\n\t * Gets the attribute.\r\n\t *\r\n\t * @param name the name\r\n\t * @return the attribute\r\n\t */\r\n\tString getAttribute(String name);\r\n\r\n\t/**\r\n\t * Mark.\r\n\t */\r\n\tvoid mark();\r\n\r\n\t/**\r\n\t * Reset.\r\n\t */\r\n\tvoid reset();\r\n\r\n\t/**\r\n\t * Clear mark.\r\n\t */\r\n\tvoid clearMark();\r\n\r\n\t/**\r\n\t * Gets the text.\r\n\t *\r\n\t * @return the text\r\n\t */\r\n\tString getText();\r\n\r\n\t/**\r\n\t * Gets the word in.\r\n\t *\r\n\t * @param schar the schar\r\n\t * @param echar the echar\r\n\t * @return the word in\r\n\t */\r\n\tString getWordIn(String schar, String echar);\r\n\r\n\t/**\r\n\t * Gets the text.\r\n\t *\r\n\t * @param name the name\r\n\t * @return the text\r\n\t */\r\n\tString getText(String name);\r\n\r\n\t/**\r\n\t * Sets the cached.\r\n\t *\r\n\t * @param b the new cached\r\n\t */\r\n\tvoid setCached(boolean b);\r\n\r\n\t/**\r\n\t * Gets the request.\r\n\t *\r\n\t * @return the request\r\n\t */\r\n\tUrl getRequest();\r\n\r\n\t/**\r\n\t * Gets the status line.\r\n\t *\r\n\t * @return the status line\r\n\t */\r\n\tStatusLine getStatusLine();\r\n\r\n\t/**\r\n\t * Gets the headers.\r\n\t *\r\n\t * @return the headers\r\n\t */\r\n\tHeader[] getHeaders();\r\n\r\n\t/**\r\n\t * Gets the context.\r\n\t *\r\n\t * @return the context\r\n\t */\r\n\tString getContext();\r\n\r\n\t/**\r\n\t * Gets the urls.\r\n\t *\r\n\t * @return the urls\r\n\t */\r\n\tList<Url> getUrls();\r\n\r\n\t/**\r\n\t * Size.\r\n\t *\r\n\t * @return the int\r\n\t */\r\n\tint size();\r\n\r\n\t/**\r\n\t * Release.\r\n\t */\r\n\tvoid release();\r\n\r\n\t/**\r\n\t * Gets the.\r\n\t *\r\n\t * @param url the url\r\n\t * @return the string\r\n\t */\r\n\tString get(String url);\r\n\r\n\t/**\r\n\t * Format.\r\n\t *\r\n\t * @param href the href\r\n\t * @return the url\r\n\t */\r\n\tUrl format(String href);\r\n\r\n}", "@Override\n\tpublic void afterNavigateForward(WebDriver arg0) {\n\n\t}", "void execute(String link) throws CrawlerWorkerException;", "@Then(\"^navigate to hotel page$\")\r\n\tpublic void navigate_to_hotel_page() throws Exception {\n\t\tdriver.navigate().to(\"file:///D:/complete%20training%20data/JEE/2018/Java%20Full%20Stack/Module%203/hotelBooking/hotelbooking.html\");\r\n\t\tThread.sleep(2000);\r\n\t//driver.close();\r\n\t}", "@Override\n public void walks(String movement){\n System.out.println(\"The dog \"+movement);\n }", "private Element traverse_search(Element element) {\n \ttry {\n\t \tString userid = profile.getAttributeValue(\"personal\", \"id\");\n\t \tString course = profile.getAttributeValue(\"personal\", \"course\");\n\t \tString context = WOWStatic.config.Get(\"CONTEXTPATH\");\n\n\t \tElement a = doc.createElement(\"a\");\n\t \ta.setAttribute(\"href\", context + \"/Get?wndName=Search\");\n\t \ta.setAttribute(\"target\", userid + \"$\" + course);\n\t \ta.appendChild(doc.createTextNode(\"Search\"));\n\t \treturn (Element)replaceNode(element, a);\n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\treturn (Element)replaceNode(element, createErrorElement(\"Error!\"));\n \t}\n }", "public static void main(String[] args) throws Exception {\n\t\tInpherClient inpherClient = InpherClient.getClient();\n\t\tinpherClient.loginUser(new InpherUser(username, pwd));\n\t\tFrontendPath fpath = FrontendPath.parse(username + \":/\" + path);\n\n\t\t// To recursively list the remote location, we will use the ElementVisitor interface\n\t\t// from the Inpher API. This interface is very close to the java.nio FileVisitor interface.\n\t\t//\n\t\t// During the walk of the remote filesystem tree, we need to do the following:\n\t\t// 1. when we encounter a document, we pretty-print it\n\t\t// 2. when we encounter a directory, we pretty-print its name, and \n\t\t// and we process its content only if the recursion depth has not\n\t\t// been reached.\n\t\t// To ease our task, we will pass the recursion depth in the optional (Integer)\n\t\t// argument of the ElementVisitor\n\t\tElementVisitor<Integer> elemVisitor = new ElementVisitor<Integer>() {\n\t\t\t@Override\n\t\t\tpublic ElementVisitResult visitDocument(Element document, Integer depth) {\n\t\t\t\t//whenever we encounter a document, pretty-print it and continue the walk\n\t\t\t\tprettyPrintElement(document);\n\t\t\t\treturn ElementVisitResult.CONTINUE;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic ElementVisitResult preVisitDirectory(Element dir,\n\t\t\t\t\tInteger depth, Object[] depthToPass) {\n\t\t\t\t//whenever we encounter a directory, pretty-print it\n\t\t\t\t//then check the depth to determine if we continue or not\n\t\t\t\tprettyPrintElement(dir);\n\t\t\t\tif (depth <= 0) return ElementVisitResult.SKIP_SIBLINGS;\n\t\t\t\t//if we continue, don't forget to pass the new depth\n\t\t\t\tdepthToPass[0] = new Integer(depth - 1);\n\t\t\t\treturn ElementVisitResult.CONTINUE;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic ElementVisitResult postVisitDirectory(Element dir,\n\t\t\t\t\tInteger depth) {\n\t\t\t\t//nothing needs to be done when we leave a directory\n\t\t\t\treturn ElementVisitResult.CONTINUE;\n\t\t\t}\n\t\t};\n\t\tinpherClient.visitElementTree(new VisitElementTreeRequest(\n\t\t\t\tfpath, elemVisitor, maxDepth));\n\t}" ]
[ "0.59007716", "0.5839034", "0.5824776", "0.5783016", "0.5656927", "0.564742", "0.55937177", "0.55655473", "0.5483212", "0.54826367", "0.5434545", "0.5422263", "0.5395133", "0.53866124", "0.5361579", "0.53224164", "0.52607095", "0.5248249", "0.52294517", "0.5226961", "0.5214033", "0.5205234", "0.5197377", "0.5182993", "0.51671", "0.51524013", "0.51485574", "0.5142554", "0.51404536", "0.513229", "0.5127852", "0.51260674", "0.5114717", "0.51081586", "0.51044106", "0.5103769", "0.5098162", "0.50963163", "0.50949794", "0.5081384", "0.5064616", "0.5053209", "0.5040513", "0.50335336", "0.50265294", "0.5002972", "0.5002172", "0.5000846", "0.49907625", "0.49854982", "0.49791068", "0.49512687", "0.49492007", "0.49441734", "0.49280426", "0.49100456", "0.48961452", "0.48942366", "0.4888306", "0.48792872", "0.48731026", "0.48635623", "0.48629373", "0.48598555", "0.48551688", "0.48535872", "0.4852111", "0.4851192", "0.48498768", "0.48485714", "0.48403296", "0.48342243", "0.48253042", "0.48237622", "0.48161256", "0.48113176", "0.47944978", "0.47930074", "0.4787245", "0.47767782", "0.47705853", "0.4766028", "0.47639042", "0.47570342", "0.4738233", "0.47297567", "0.47254604", "0.4718812", "0.47167334", "0.47107577", "0.47101438", "0.47078773", "0.4705891", "0.4703831", "0.4696535", "0.4688598", "0.46817344", "0.46808776", "0.46635634", "0.46621513" ]
0.53397644
15
Compares the game destination to the specified tile to see if they are related.
private static boolean compareGameDestination(RSTile tile) { RSTile game_destination = Game.getDestination(); if (tile == null || game_destination == null) { return false; } return tile.distanceTo(game_destination) < 1.5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean comparePlayerPosition(RSTile tile) {\n RSTile player_position = Player07.getPosition();\n if (tile == null || player_position == null) {\n return false;\n }\n return tile.equals(player_position);\n }", "public boolean equals(Tile tile){\n\t if(tile.getLocation().equals(location))\n\t\t return true;\n\t else\n\t\t return false;\n\t}", "public boolean hasNeighbor(Tile tile) {\n if (tile == null) {\n return false;\n }\n\n return (this.tileNorth == tile || this.tileEast == tile || this.tileSouth == tile || this.tileEast == tile);\n }", "public boolean isNeighbour(Tile tile){\n int x1 = this.getX();\n int y1 = this.getY();\n\n int x2 = tile.getX();\n int y2 = tile.getY();\n return (x1 == x2 && (Math.abs(y1-y2) == 1)) || (y1 == y2 && (Math.abs(x1-x2) == 1));\n }", "public boolean isSameAs(Move comp){ \n return this.xFrom==comp.xFrom &&\n this.xTo==comp.xTo &&\n this.yFrom==comp.yFrom &&\n this.yTo==comp.yTo;\n }", "@Override\n public boolean hasPossibleCapture(final Coordinate destination) {\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (destination.equals(tempCoordinate1)) {\n return true;\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (destination.equals(tempCoordinate2)) {\n return true;\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (destination.equals(tempCoordinate3)) {\n return true;\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (destination.equals(tempCoordinate4)) {\n return true;\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (destination.equals(tempCoordinate5)) {\n return true;\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (destination.equals(tempCoordinate6)) {\n return true;\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (destination.equals(tempCoordinate7)) {\n return true;\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n return destination.equals(tempCoordinate8);\n }", "private boolean isSolvable() {\n\t\tshort permutations = 0; // the number of incorrect orderings of tiles\n\t\tshort currentTileViewLocationScore;\n\t\tshort subsequentTileViewLocationScore;\n\n\t\t// Start at the first tile\n\t\tfor (int i = 0; i < tiles.size() - 2; i++) {\n\t\t\tTile tile = tiles.get(i);\n\n\t\t\t// Determine the tile's location value\n\t\t\tcurrentTileViewLocationScore = computeLocationValue(tile\n\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t// Compare the tile's location score to all of the tiles that\n\t\t\t// follow it\n\t\t\tfor (int j = i + 1; j < tiles.size() - 1; j++) {\n\t\t\t\tTile tSub = tiles.get(j);\n\n\t\t\t\tsubsequentTileViewLocationScore = computeLocationValue(tSub\n\t\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t\t// If a tile is found to be out of order, increment the number\n\t\t\t\t// of permutations.\n\t\t\t\tif (currentTileViewLocationScore > subsequentTileViewLocationScore) {\n\t\t\t\t\tpermutations++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// return whether number of permutations is even\n\t\treturn permutations % 2 == 0;\n\t}", "public boolean equals(Tile tile) {\n\t\treturn tile.getShape() == shape && tile.getColor() == color;\n\t}", "private boolean probe(Tile tile, Direction previousDirection) {\n int currentX = tile.getPosition().getX();\n int currentY = tile.getPosition().getY();\n\n if (tile.getTerrain().equals(Terrain.EMPTY))\n return false;\n else if (currentX == 0 || currentX == MAP_WIDTH - 1 || currentY == 0 || currentY == MAP_HEIGHT - 1) {\n return true; // Check if tile hits edge wall\n } else {\n for (Direction direction : Direction.cardinals) {\n Tile targetTile = getTileAtCoordinates(Utility.locateDirection(tile.getPosition(), direction));\n if (!direction.equals(previousDirection) && targetTile.getTerrain().equals(Terrain.WALL)) {\n if (probe(targetTile, Utility.opposite(direction))) {\n tile.setTerrain(Terrain.EMPTY);\n return false;\n }\n }\n }\n return false;\n }\n }", "boolean isAllOnDestination(){\n\n if(player.getCurrentX()-player.getDestinationX()!=0 || player.getCurrentY()-player.getDestinationY()!=0)\n return false;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()-item.getDestinationX()!=0 || item.getCurrentY()-item.getDestinationY()!=0)\n return false;\n }\n return true;\n }", "private boolean thereispath(Move m, Tile tile, Integer integer, Graph g, Board B) {\n\n boolean result = true;\n boolean result1 = true;\n\n int start_dest_C = tile.COLUMN;\n int start_dest_R = tile.ROW;\n\n int move_column = m.getX();\n int move_row = m.getY();\n\n int TEMP = 0;\n int TEMP_ID = 0;\n int TEMP_ID_F = tile.id;\n int TEMP_ID_FIRST = tile.id;\n\n int final_dest_R = (integer / B.width);\n int final_dest_C = (integer % B.width);\n\n //System.out.println(\"* \" + tile.toString() + \" \" + integer + \" \" + m.toString());\n\n // Y ROW - X COLUMN\n\n for (int i = 0; i != 2; i++) {\n\n TEMP_ID_FIRST = tile.id;\n\n // possibility 1\n if (i == 0) {\n\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result != false; c++) {\n\n if (c == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n // System.out.println(\"OK\");\n\n } else {\n\n result = false;\n\n // System.out.println(\"NOPE\");\n\n\n }\n }\n\n for (int r = 0; r != Math.abs(move_row) && result != false; r++) {\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n // System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n\n } else {\n\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == true) {\n return true;\n }\n\n\n }\n\n TEMP_ID = 0;\n\n if (i == 1) {\n\n result = true;\n\n start_dest_C = tile.COLUMN;\n start_dest_R = tile.ROW;\n // first move row\n for (int r = 0; r != Math.abs(move_row) && result1 != false; r++) {\n\n if (r == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n\n //System.out.println(\"NOPE\");\n\n result = false;\n\n }\n\n\n }\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result1 != false; c++) {\n\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == false) {\n return false;\n\n }\n\n\n }\n\n\n }\n\n\n return true;\n }", "public boolean hasTile(GroundTile tile) {\n return this.editedTiles.contains(tile);\n }", "boolean hasDestination();", "boolean hasDestination();", "public boolean canReach(Tile dest) {\n if(dest == null || dest.isBlocked())\n return false; \n \n ArrayList<Tile> path = tileRoute(loc, dest);\n \n if(path == null)\n return false;\n \n return path.size() <= moveDistance;\n }", "public boolean aPourDestination(Sommet un_sommet) {\n return (destination == un_sommet);\n }", "@Override\n public boolean isValidMove(Tile target, Board board) {\n if (target == null || board == null) {\n throw new NullPointerException(\"Arguments for the isValidMove method can not be null.\");\n }\n // current and target tiles have to be on a diagonal (delta between row and col index have to be identical)\n int currentCol = this.getTile().getCol();\n int currentRow = this.getTile().getRow();\n int targetCol = target.getCol();\n int targetRow = target.getRow();\n\n int deltaRow = Math.abs(currentRow - targetRow);\n int deltaCol = Math.abs(currentCol - targetCol);\n int minDelta = Math.min(deltaCol, deltaRow);\n\n boolean sameDiagonal = deltaCol == deltaRow;\n\n // check if there are pieces between the tiles\n boolean noPiecesBetween = true;\n // Directions -- (Up and to the left) , -+ (Up and to the right), ++, +-\n if (targetRow < currentRow && targetCol < currentCol) { // --\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow - delta, currentCol - delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n\n } else if (targetRow > currentRow && targetCol < currentCol) { // +-\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow + delta, currentCol - delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n } else if (targetRow > currentRow && targetCol > currentCol) { // ++\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow + delta, currentCol + delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n } else if (targetRow < currentRow && targetCol > currentCol) { // -+\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow - delta, currentCol + delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n }\n\n return sameDiagonal && noPiecesBetween;\n }", "public boolean isEqual(MatchingCardsTile other){\n return this.getNumber() == other.getNumber();\n }", "private static boolean isTileAvailable(DisplayTile tile, Direction fromDirection, HashMap<DisplayTile, DisplayTile> chainedTiles) {\n\t\tif (tile == null || chainedTiles.containsKey(tile))\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isRoomTile() && !tile.hasDoor(fromDirection))\n\t\t\treturn false;\n\t\t\t\n\t\tif (tile.hasSuspect() || tile.isRemovedTile())\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isPassage() && tile.getPassageConnection().hasSuspect())\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public boolean isGoal() {\n return Arrays.deepEquals(tiles, goal);\n }", "boolean checkWin(Tile initialTile);", "boolean canMove(Tile t);", "public boolean hasTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getLeft() == a_tile.getLeft() && playerHand.get(i).getRight() == a_tile.getRight()){\n return true;\n }\n }\n return false;\n }", "public boolean alreadyOwnsIdenticalRoute(){\n City city1 = mSelectedRoute.getCity1();\n City city2 = mSelectedRoute.getCity2();\n for(int i=0; i<mUser.getClaimedRoutes().size(); i++){\n City ownedCity1 = mUser.getClaimedRoutes().get(i).getCity1();\n City ownedCity2 = mUser.getClaimedRoutes().get(i).getCity2();\n if(city1.equals(ownedCity1) && city2.equals(ownedCity2))\n return true;\n }\n return false;\n }", "@Test\n public void testCompareAfter() {\n Tile t7 = new Tile(6, 3);\n assertEquals(6, board3by3.compareAfter(t7));\n }", "public boolean canMove2() {\n\t\tGrid<Actor> gr = getGrid(); \n\t\tif (gr == null) {\n\t\t\treturn false; \n\t\t}\n\t\t\n\t\tLocation loc = getLocation(); \n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (!gr.isValid(next)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!gr.isValid(next2)) {\n\t\t\treturn false;\n\t\t}\n\t\tActor neighbor = gr.get(next2); \n\t\treturn (neighbor == null) || (neighbor instanceof Flower); \n\t}", "private double getDistance(Vector2i tile, Vector2i goal) {\n\t\t double dx = tile.getX() - goal.getX();\n\t\t double dy = tile.getY() - goal.getY();\n\t\t return Math.sqrt(dx * dx + dy *dy); //distance \n\t }", "boolean hasRouteDest();", "@Override\n public boolean equals(Object o) {\n\t\tif(o==null)\n\t\t\treturn false;\n\t\tMove m = (Move) o;\n\t\tif(this.pieceRow == m.pieceRow && this.pieceCol == m.pieceCol &&\n\t\t\t\tthis.destRow == m.destRow && this.destCol == m.destCol)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public void testPlaceFirstTile2() {\n \tPlacement placement1 = new Placement(Color.GREEN, 5, 26, Color.BLUE, 5, 27);\n Score score1 = null;\n try {\n \t\tscore1 = board.calculate(placement1);\n \t\tboard.place(placement1);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n assertEquals(1, (int)score1.get(Color.GREEN));\n assertEquals(0, (int)score1.get(Color.BLUE));\n \n Placement placement2 = new Placement(Color.GREEN, 5, 24, Color.BLUE, 5, 23);\n Score score2 = null;\n try {\n \t\tscore2 = board.calculate(placement2);\n \t\tboard.place(placement2);\n \t\tfail(\"It's not legal to place a first turn tile adjacent to the same starting hexagon as another player\");\n } catch (ContractAssertionError e) {\n //passed\n }\n }", "public static List<MapTile> findPath(MovableObject mO, GameObject destination) {\n List<MapTile> openList = new LinkedList<>();\n List<MapTile> closedList = new LinkedList<>();\n List<MapTile> neighbours = new ArrayList<>();\n Point objectTileCoord = mO.getGridCoordinates();\n Point destinationTileCoord = destination.getGridCoordinates();\n MapTile currentTile;\n try {\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.print(\"Error while getting current tile for pathfinding. Trying to adapt coords.\");\n if (mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight()) {\n objectTileCoord.y -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight() && mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n objectTileCoord.y -= 1;\n }\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n }\n\n currentTile.setParentMapTile(null);\n currentTile.totalMovementCost = 0;\n openList.add(currentTile);\n\n boolean notDone = true;\n\n while (notDone) {\n neighbours.clear();\n currentTile = getLowestCostTileFromOpenList(openList, currentTile);\n closedList.add(currentTile);\n openList.remove(currentTile);\n\n //ReachedGoal?\n if ((currentTile.xTileCoord == destinationTileCoord.x) && (currentTile.yTileCoord == destinationTileCoord.y)) {\n try {\n return getResultListOfMapTiles(currentTile);\n } catch (Exception e) {\n System.out.println(\"closed list size: \" + closedList.size());\n throw e;\n }\n }\n\n neighbours.addAll(currentTile.getNeighbourTiles());\n neighbours.removeAll(closedList);\n\n for (MapTile mapTile : neighbours) {\n if (openList.contains(mapTile)) {\n // compare total movement costs.\n if (mapTile.totalMovementCost > currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost) {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost;\n }\n } else {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.totalMovementCost + currentTile.getMovementCostToTile(mapTile);\n openList.add(mapTile);\n }\n }\n }\n return null;\n }", "public boolean doIMoveToWorkPlace()\n\t{\n\t\t// if(myWorker.getPosition().getX() == destBuilding.getPosition().getX()\n\t\t// && myWorker.getPosition().getY() ==\n\t\t// destBuilding.getPosition().getY())\n\t\t// return false;\n\t\t// return true;\n\t\tObjectType workplaceType = destBuilding.getObjectType();\n\t\tPoint workplacePoint = destBuilding.getPosition();\n\t\tfor (int i = destBuilding.getPosition().getX(); i < destBuilding\n\t\t\t\t.getPosition().getX()\n\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(workplaceType) - 1; i++)\n\t\t{\n\t\t\tif ((myWorker.getPosition().getX() == i && workplacePoint.getY() - 1 == myWorker\n\t\t\t\t\t.getPosition().getY())\n\t\t\t\t\t|| (myWorker.getPosition().getX() == i && workplacePoint\n\t\t\t\t\t\t\t.getY()\n\t\t\t\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t\t\t\t.get(workplaceType) == myWorker\n\t\t\t\t\t\t\t.getPosition().getY()))\n\t\t\t\treturn false;\n\t\t}\n\n\t\tfor (int i = destBuilding.getPosition().getY(); i < destBuilding\n\t\t\t\t.getPosition().getY()\n\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(workplaceType) - 1; i++)\n\t\t{\n\t\t\tif ((myWorker.getPosition().getY() == i && workplacePoint.getX() - 1 == myWorker\n\t\t\t\t\t.getPosition().getX())\n\t\t\t\t\t|| (myWorker.getPosition().getY() == i && workplacePoint\n\t\t\t\t\t\t\t.getX()\n\t\t\t\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t\t\t\t.get(workplaceType) == myWorker\n\t\t\t\t\t\t\t.getPosition().getX()))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public float distanceAdjacent(int x1, int y1, int x2, int y2) {\n float duration = 0;\n\n if (x1 == x2 || y1 == y2) {\n MapTile.Instance fromTile = getTileData(x1, y1);\n MapTile.Instance toTile = getTileData(x2, y2);\n assert fromTile != null && toTile != null;\n\n Direction move = Direction.get(x2 - x1, y2 - y1);\n\n int fromHeight = fromTile.heightOf(move);\n int toHeight = toTile.heightOf(move.inverse());\n\n // steepness\n float t1inc = (fromHeight - fromTile.getHeight()) / (TILE_SIZE / 2);\n float t2inc = (toHeight - toTile.getHeight()) / (TILE_SIZE / 2);\n\n // actual duration of walking\n float walkSpeedT1 = (1f / hypoLength(t1inc)) * walkSpeed;\n float walkSpeedT2 = (1f / hypoLength(t2inc)) * walkSpeed;\n\n // duration += walkspeed(steepness_1) * dist + walkspeed(steepness_2) * dist\n duration += (walkSpeedT1 + walkSpeedT2) * TILE_SIZE;\n\n // height difference on the sides of the tiles\n float cliffHeight = (toHeight - fromHeight) * TILE_SIZE_Z;\n\n // climbing if more than 'an acceptable height'\n if (cliffHeight > 0) {\n duration += (cliffHeight / climbSpeed);\n }\n\n } else {\n // TODO allow diagonal tracing\n Logger.WARN.print(String.format(\n \"Pathfinding (%s) asked for non-adjacent tiles (%d, %d) (%d, %d)\",\n getClass(), x1, y1, x2, y2\n ));\n\n return Float.POSITIVE_INFINITY;\n }\n\n return duration;\n }", "private double getDistance(Vector2i tile, Vector2i goal) {\r\n\t\tdouble dx = tile.getX() - goal.getX();\r\n\t\tdouble dy = tile.getY() - goal.getY();\r\n\t\treturn Math.sqrt((dx * dx) + (dy * dy));\r\n\t}", "public static boolean isCardinal(Tile tile1, Tile tile2) {\n\t\tif (tile1.getX() == tile2.getX() || tile1.getY() == tile2.getY())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean equals(Object r) {\r\n\t\tboolean sameTown = this.source.equals(((Road) r).getSource()) && this.destination.equals(((Road) r).getDestination());\r\n\t\tboolean oppositeTown = this.source.equals(((Road) r).getDestination()) && this.destination.equals(((Road) r).getSource());\r\n\t\t\r\n\t\tif(sameTown || oppositeTown)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean canMoveEntity (Entity entity, Point dest) {\n if (entity == null) throw new IllegalArgumentException(\"Entity is null\");\n if (dest == null) throw new IllegalArgumentException(\"Point is null\");\n if (!grid.containsKey(dest)) throw new IllegalArgumentException(\"The cell is not on the grid\");\n\n Point origin = entity.getCoords();\n\n if (origin.equals(dest)) return false;\n\n Vector vector = Vector.findStraightVector(origin, dest);\n\n if (vector == null) return false;\n Vector step = new Vector(vector.axis(), (int) (1 * Math.signum(vector.length())));\n Point probe = (Point) origin.clone();\n while (!probe.equals(dest)) {\n probe = step.applyVector(probe);\n if (!grid.containsKey(probe)) return false;\n }\n\n\n return true;\n }", "private static boolean sameDestination(Reservation a, Reservation b){\n\t\tif( (a.seatOwner() == b.seatOwner() ) && ( a.seatDestination() == b.seatDestination() ) ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean equals(Object object) {\n/* 4770 */ if (this == object)\n/* */ {\n/* 4772 */ return true;\n/* */ }\n/* 4774 */ if (object != null && object.getClass() == getClass()) {\n/* */ \n/* 4776 */ VolaTile tile = (VolaTile)object;\n/* 4777 */ return (tile.getTileX() == this.tilex && tile.getTileY() == this.tiley && tile.surfaced == this.surfaced);\n/* */ } \n/* 4779 */ return false;\n/* */ }", "public boolean match(BoardSpace that);", "boolean isGameFinished() {\n if (tiles.takenTilesNumber() < 3)\n return false;\n Symbol winningSymbol = tiles.getTile(1);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) {\n return true;\n }\n }\n if(tiles.getTile(2).equals(winningSymbol)) {\n if(tiles.getTile(3).equals(winningSymbol)) return true;\n }\n if(tiles.getTile(4).equals(winningSymbol)) {\n if(tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n winningSymbol = tiles.getTile(2);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(8).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(3);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n if (tiles.getTile(6).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n\n\n winningSymbol = tiles.getTile(4);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(7);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(8).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n return false;\n }", "public boolean coordsAreEqual(Cell anotherCell){\n return (getI() == anotherCell.getI()) && (getJ() == anotherCell.getJ());\n }", "public boolean hasShip(int tile) {\r\n return (tiles[tile] & 1) != 0;\r\n }", "public boolean validMove(TileEnum from, TileEnum to) {\n if (!isMyTurn() || hasMoved()\n || (getMyPlayerNumber() == 1 && TileStateEnum.PLAYERONE != getTileState(from))\n || (getMyPlayerNumber() == 2 && TileStateEnum.PLAYERTWO != getTileState(from)))\n return false;\n\n List<TileEnum> fromNeighbors = getNeighborsOf(from);\n for (TileEnum otherTile : fromNeighbors) {\n if (to.equals(otherTile)) return TileStateEnum.FREE.equals(getTileState(otherTile));\n\n List<TileEnum> otherNeighbors = getNeighborsOf(otherTile);\n for (TileEnum anotherTile : otherNeighbors) {\n if (to.equals(anotherTile)) return TileStateEnum.FREE.equals(getTileState(anotherTile));\n }\n }\n return false;\n }", "boolean hasSameAs();", "@Override\n public boolean equals(Object y) {\n if (!(y instanceof Board) || ((Board) y).size() != _N) {\n return false;\n }\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (((Board) y).tileAt(i,j) != _tiles[i][j]) {\n return false;\n }\n }\n }\n return true;\n }", "private boolean hasPath(GraphNode origin, GraphNode destination) {\n if (origin.node.getName().equals(outputNode.getName()) || destination.node.getName().equals(inputNode.getName()))\n return false;\n\n Queue<GraphNode> queue = new LinkedList<GraphNode>();\n queue.offer(origin);\n\n while(!queue.isEmpty()) {\n GraphNode current = queue.poll();\n if (current == destination) {\n return true;\n }\n else {\n for (GraphEdge e : current.to) {\n queue.offer(e.to);\n }\n }\n }\n return false;\n }", "private boolean isCorrect() {\n\t\t// if a single tile is incorrect, return false\n\t\tfor (Tile tile : tiles) {\n\t\t\tif (!tile.isCorrect()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean collisonCheck(List<Tile> nextTiles, Snake enemy) {\n\t\t// check himself\n\t\tfor (Tile tile : (List<Tile>)snakeTiles) {\n\t\t\tfor (Tile t : nextTiles) {\n\t\t\t\tif (tile.equals(t)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// check enemy\n\t\tfor (Tile tile : enemy.getSnakeTiles()) {\n\t\t\tfor (Tile t : nextTiles) {\n\t\t\t\tif (tile.equals(t)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean canBuildDome(Tile t);", "@Override\n public boolean equals(Object o) {\n try {\n Pair p = (Pair) o;\n return (this.getSource().equals(p.source) && this.getDestination().equals(p.getDestination()));\n\n } catch (Exception ex) {\n return false;\n }\n }", "public boolean isEqual(Road r) {\n if (this.targetVertex == r.targetVertex && this.startVertex == r.startVertex || this.targetVertex == r.startVertex && this.startVertex == r.targetVertex) {\n return true;\n } else {\n return false;\n }\n }", "private boolean isTownHallAt(int x, int y, Node dest) {\n\t\tif (x == dest.getX() && y == dest.getY()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (currentState.isUnitAt(x, y)) {\n\t\t\tint unitID = currentState.unitAt(x, y);\n \t\n String unitName = currentState.getUnit(unitID).getTemplateView().getName();\n if(unitName.equalsIgnoreCase(\"Townhall\")) {\n \treturn true;\n }\n\t\t}\n\t\n\t\treturn false;\n\t}", "public void testPlaceFirstTile1() {\n \tPlacement placement1 = new Placement(Color.GREEN, 5, 26, Color.BLUE, 5, 27);\n Score score1 = null;\n try {\n \t\tscore1 = board.calculate(placement1);\n \t\tboard.place(placement1);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n assertEquals(1, (int)score1.get(Color.GREEN));\n assertEquals(0, (int)score1.get(Color.BLUE));\n \n Placement placement2 = new Placement(Color.GREEN, 5, 28, Color.BLUE, 4, 22);\n Score score2 = null;\n try {\n \t\tscore2 = board.calculate(placement2);\n \t\tboard.place(placement2);\n \t\tfail(\"It's not legal to place a first turn tile adjacent to another player's tile\");\n } catch (ContractAssertionError e) {\n //passed\n }\n }", "@Override\n boolean isSameTransitTrip(TransitNode transitNode) {\n if (transitNode instanceof SubwayStation) {\n return this.startLocation.getLine().equals(((SubwayStation) transitNode).getLine());\n }\n return false;\n }", "public boolean goesToSameCountry(Transportation other) {\r\n\t\treturn this.destination.equals(other.destination);\r\n\t}", "private boolean hasPossibleMove()\n {\n for(int i=0; i<FieldSize; ++i)\n {\n for(int j=1; j<FieldSize; ++j)\n {\n if(field[i][j] == field[i][j-1])\n return true;\n }\n }\n for(int j=0; j<FieldSize; ++j)\n {\n for(int i=1; i<FieldSize; ++i)\n {\n if(field[i][j] == field[i-1][j])\n return true;\n }\n }\n return false;\n }", "boolean testPlaceShip(Tester t) {\n return t.checkExpect(ship3.place(this.em),\n em.placeImageXY(new CircleImage(10, OutlineMode.SOLID, Color.CYAN), 50, 50))\n && t.checkExpect(ship1.place(this.em),\n em.placeImageXY(new CircleImage(10, OutlineMode.SOLID, Color.CYAN), 0, 150));\n }", "@Override\n\tpublic int compareTo(Tile another) {\n\n\t\tfloat diference = (distanceToStart + distanceToEnd) - (another.distanceToStart + another.distanceToEnd);\n\n\t\tif( diference < 0 )\n\t\t\treturn -1;\n\t\telse if ( diference > 0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public boolean hasDestination() {\n return result.hasDestination();\n }", "public boolean checkEquality(){\n boolean flag = true;\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(this.currentBoardState[i][j] != this.goalBoardState[i][j]){\n flag = false;\n }\n }\n }\n return flag;\n }", "private boolean isValidAndSimilar(Point toPoint, Point fromPoint){\n if(toPoint.x < 0 || toPoint.x > (SIZE - 1) || toPoint.y < 0 || toPoint.y > (SIZE - 1)){\n return false;\n }\n\n TakStack toStack = getStack(toPoint);\n TakStack fromStack = getStack(fromPoint);\n\n // Check if the position has a piece on it\n if(toStack.isEmpty() || fromStack.isEmpty()){\n return false;\n }\n\n // Chack if the piece is a road\n if(!toStack.top().isRoad()){\n return false;\n }\n\n // check if road is of the correct color\n if(fromStack.top().isWhite() != toStack.top().isWhite()){\n return false;\n }\n\n return true;\n }", "@Override\n public boolean canMove(int destinationX, int destinationY) {\n int differenceX = Math.abs(destinationX - this.boardCoordinates.x);\n int differenceY = Math.abs(destinationY - this.boardCoordinates.y);\n\n return (destinationX == this.boardCoordinates.x && differenceY == 1) ||\n (destinationY == this.boardCoordinates.y && differenceX == 1) ||\n (differenceX == differenceY && differenceX == 0); //we're handling start=finish coordinates separately\n }", "public boolean transferTo(Team team) {\n\t\t//TODO\n\t\t// input check\n\t\tif (team == null || (team != null && team.equals(currentTeam)))\n\t\t\treturn false;\n\n\t\t// if the team exists in the teams array, we remove it \n\t\tif (teams.contains(team))\n\t\t\tteams.remove(team);\n\t\t\n\t\t// adding coach to new team and transferring old team to teams' Set\n\t\tif (addTeam(currentTeam) && team.registerCoach(this)) {\n\t\t\tcurrentTeam.setCoach(null);\n\t\t\tcurrentTeam = team;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object other) {\n if (other == null) {\n return false;\n }\n if (other == this) {\n return true;\n }\n if (!(other instanceof RunRoutePoint)) {\n return false;\n }\n\n // Other object is a RunRoutePoint and is not null.\n RunRoutePoint otherRunRoutePoint = (RunRoutePoint) other;\n return this.getLocation().equals(otherRunRoutePoint.getLocation()) && this.getDirection().equals(otherRunRoutePoint.getDirection());\n }", "private boolean finalDestination(OverlayNodeSendsData event) {\n\t\tif (event.getDestID() == myAssignedID)\n\t\t\treturn true;\n\t\treturn false;\n\n\t}", "public boolean connected(Path p1,Path p2){\n\t\t// Checks if p1 and p2 are connected\n\t\tif(p1.getExit()==p2.getPos()&&p1.getPos()==p2.getEntry())\n\t\t\t// If the exit of the first tile is equal to the position of the second tile\n\t\t\t// AND if the entrance of the second tile is equal to the position of the first tile\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\t\n\t}", "private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "public boolean tileOfComputer (int row, int col){\n return this.gameBoard[row][col] == 'o';\n }", "public boolean tileFinish(float xTile, float yTile)\r\n/* 166: */ {\r\n/* 167:189 */ return (tileInBounds(xTile, yTile)) && (this.finish[((int)xTile)][((int)yTile)] != 0);\r\n/* 168: */ }", "public boolean destinationReached() {\n boolean xCheck = cDestination.getX() <= cPosition.getX() + cFishSizeX\n && cDestination.getX() >= cPosition.getX();\n\n boolean yCheck = cDestination.getY() <= cPosition.getY() + cFishSizeY\n && cDestination.getY() >= cPosition.getY();\n return xCheck && yCheck;\n }", "private boolean canMove() {\n return !(bestMove[0].getX() == bestMove[1].getX() && bestMove[0].getY() == bestMove[1].getY());\n }", "public boolean sameAsGold() {\n\t\tif (this.level == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tArrayList<Gold> goldObjects = this.level.getGoldObjects();\n\n\t\tfor (int i = 0; i < goldObjects.size(); i++) {\n\t\t\tif (this.tilePositionX == goldObjects.get(i).getPositionX()\n\t\t\t\t\t&& this.tilePositionY == goldObjects.get(i).getPositionY()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void testPlaceNormalTile2() {\n \tPlacement placement1 = new Placement(Color.GREEN, 5, 26, Color.BLUE, 5, 27);\n \tPlacement placement2 = new Placement(Color.GREEN, 5, 19, Color.BLUE, 5, 18);\n \t\n try {\n \t\tboard.place(placement1);\n \t\tboard.place(placement2);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n \t\n Placement placement3 = new Placement(Color.GREEN, 4, 20, Color.BLUE, 4, 21);\n Score score3 = null;\n try {\n \t\tscore3 = board.calculate(placement3);\n \t\tboard.place(placement3);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n Score expected3 = new Score();\n expected3.setValue(Color.BLUE, 1);\n expected3.setValue(Color.GREEN, 3);\n assertEquals(expected3, score3);\n \n Placement placement4 = new Placement(Color.GREEN, 4, 19, Color.BLUE, 3, 15);\n Score score4 = null;\n try {\n \t\tscore4 = board.calculate(placement4);\n \t\tboard.place(placement4);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n Score expected4 = new Score();\n expected4.setValue(Color.BLUE, 2);\n expected4.setValue(Color.GREEN, 4);\n assertEquals(expected4, score4);\n }", "private void checkRegTileCollisions(float deltaTime) {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\t//overlap between player and tile\n\t\t\t\n\t\t\t//experiment with these values to get close to perfect collisions *************************\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t\n\t\t\t\t\t//check y - collisions\n\t\t\t\t\tif(player.position.y > tile.position.y + (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y + 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f; //prev. optimal was .3\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.y < tile.position.y - (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y - 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//check x - collision\n\t\t\t\t\tif(player.position.x > tile.position.x + (tile.bounds.width / 2) + correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x + 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.x < tile.position.x - (tile.bounds.width / 2) - correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x - 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\trecheckTileCollisions(); //fix frame-skipping \n\t}", "public boolean isChessOnWay(location start, location end, chess[][] board) {\n int startX = start.getX();\n int startY = start.getY();\n int endX = end.getX();\n int endY = end.getY();\n\n if(Math.abs(startX-endX) > 0){\n int step = startX < endX ? 1 : -1;\n for(int i = startX+step; i != endX ; i+=step){\n if(board[i][startY]!=null){\n return true;\n }\n }\n }\n else if(Math.abs(startY-endY) > 0){\n int step = startY < endY ? 1 : -1;\n for(int i = startY+step; i != endY; i+=step){\n if(board[startX][i]!=null){\n return true;\n }\n }\n\n }\n return false;\n\n }", "public boolean tileReachable(float tx, float ty, AgentModel selectedAgent)\r\n/* 243: */ {\r\n/* 244:271 */ float x = selectedAgent.getX() - 0.5F;\r\n/* 245:272 */ float y = selectedAgent.getY() - 0.5F;\r\n/* 246:274 */ switch ((int)selectedAgent.getAngle())\r\n/* 247: */ {\r\n/* 248: */ case 0: \r\n/* 249:277 */ if ((y - 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 250:279 */ return true;\r\n/* 251: */ }\r\n/* 252: */ break;\r\n/* 253: */ case 90: \r\n/* 254:283 */ if ((x + 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 255:285 */ return true;\r\n/* 256: */ }\r\n/* 257: */ break;\r\n/* 258: */ case 180: \r\n/* 259:289 */ if ((y + 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 260:291 */ return true;\r\n/* 261: */ }\r\n/* 262: */ break;\r\n/* 263: */ case 270: \r\n/* 264:295 */ if ((x - 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 265:298 */ return true;\r\n/* 266: */ }\r\n/* 267: */ break;\r\n/* 268: */ }\r\n/* 269:303 */ return false;\r\n/* 270: */ }", "private boolean isPathH(Board B, Move M, Graph G, int row, int column, Tile tile) {\n\n Tile t = tile;\n\n boolean result = true;\n boolean tempa = true;\n\n int sourceid = 0;\n\n\n int c = M.getX(), r = M.getY();\n\n if (r <= 0 && c <= 0) {\n\n\n } else if (r <= 0 && c >= 0) {\n\n\n } else if (r >= 0 && c >= 0) {\n\n for (int y = 0; y != 2; y++) {\n\n sourceid = (row * B.width) + column;\n\n // System.out.println(\"source id: \" + sourceid);\n\n if (y == 0) {\n\n\n //aab\n for (int i = 0; i != r; i++) {\n\n System.out.println(G.adj(sourceid).toString());\n\n if (G.adj.get(sourceid).contains(sourceid + B.width)) {\n\n // System.out.println(\"row artı\");\n\n } else {\n\n result = false;\n\n }\n\n sourceid += B.width;\n\n }\n\n for (int i = 0; i != c; i++) {\n\n\n if (G.adj.get(sourceid).contains(sourceid + 1)) {\n\n // System.out.println(\"okk\");\n\n } else {\n\n //return false;\n\n }\n\n sourceid += 1;\n\n System.out.println(\"b\");\n\n }\n } else {\n\n sourceid = row * B.width + column;\n\n for (int i = 0; i != c; i++) {\n // System.out.println(\"a\");\n\n }\n for (int i = 0; i != r; i++) {\n // System.out.println(\"b\");\n\n }\n }\n\n\n }\n\n\n }\n\n\n return result;\n }", "public boolean checkSwapping(int time,int originNodeId,int targetNodeId)\n {\n\n //If any book the origin node at time\n Map<Integer,Agent> times =this.ocuupied_times.get(originNodeId);\n if(times == null) {\n return true;\n }\n Agent agentObj = times.get(time);\n if(agentObj == null)\n return true;\n\n Integer agent =agentObj.getId();\n //If any book the target node at time -1\n times = this.ocuupied_times.get(targetNodeId);\n if(times == null)\n return true;\n agentObj = times.get(time-1);\n if(agentObj ==null)\n return true;\n Integer prevId = agentObj.getId();\n return agent.intValue() != prevId.intValue();\n\n }", "public void checkTileMapCollision() {\t\t\t// Works for both x and y directions. Only going to use the x-component for now but leaves room for future expansion.\n\n\t\tcurrCol = (int)x / tileSize;\n\t\tcurrRow = (int)y / tileSize;\n\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\n\t\txtemp = x;\n\t\tytemp = y;\n\n\t\tcalculateCorners(x, ydest);\n\t\tif (dy < 0) { \t\t\t// upwards\n\t\t\tif (topLeft || topRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = currRow * tileSize + height / 2;\t\t\t// Set just below where we bumped our head.\n\t\t\t} else {\n\t\t\t\tytemp += dy;\t\t// Otherwise keep going.\n\t\t\t}\n\t\t}\n\t\tif (dy > 0) { \t\t\t// downwards\n\t\t\tif (bottomLeft || bottomRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tfalling = false;\n\t\t\t\tytemp = (currRow + 1) * tileSize - height / 2;\n\t\t\t} else {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\n\t\tcalculateCorners(xdest, y);\n\t\tif (dx < 0) { \t\t\t// left\n\t\t\tif (topLeft || bottomLeft) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = currCol * tileSize + width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif (dx > 0) { \t\t\t// right\n\t\t\tif (topRight || bottomRight) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (currCol + 1) * tileSize - width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\n\t\tif(!falling) {\n\t\t\tcalculateCorners(x, ydest + 1);\t\t\t// Have to check the ground 1 pixel below us and make sure we haven't fallen off a cliff\n\t\t\tif(!bottomLeft && !bottomRight) {\n\t\t\t\tfalling = true;\n\t\t\t}\n\t\t}\n\n\t}", "private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }", "public boolean addBoardTile(Tile t, int xpos, int ypos) {\n \tTile leftTile = null;\n \tTile rightTile = null;\n \tif (ypos != 1) {\n \t\t// Aka if the tile isn't at the leftmost side\n \t\tleftTile = boardTiles.get(new Point(xpos - 1, ypos));\n \t} \t\n \tif (ypos != BoardController.BOARDSIZE) {\n \t\t// Aka if the tile isn't at the rightmost side\n \t\trightTile = boardTiles.get(new Point(xpos + 1, ypos));\n \t}\n \t\n \tif (leftTile != null && rightTile != null) {\n \t\t// Tile placed on the board between two existing melds\n \t\t// NOTE: If the tile is moved a space to the left or right, and that space is \n \t\t// not occupied, and there is another existing meld beside that space,\n \t\t// then the two melds are the meld it was moved beside and itself\n \t\tMeld leftMeld = findMeld(leftTile);\n \t\tMeld rightMeld = findMeld(rightTile);\n \t\t\n \t\t// First check if either meld is the single tile being moved\n \t\tif (leftMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(rightMeld.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (rightMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(leftMeld.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (leftMeld.addRightside(t)) {\n \t\t\tif(combineMeld(leftMeld, rightMeld)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t \t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\t\tcontroller.updateView();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse {\n \t\t\t\tleftMeld.removeFromMeld(t);\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}\n \t\n \telse if (leftTile == null && rightTile == null) {\n \t\t// Tile is placed on the board as the start of a new meld!\n \t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremoveHandTile(t);\n\t\t\t}\n\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n\t\t\tcontroller.updateView();\n\t\t\treturn true;\n \t}\n \t\n \telse if(leftTile != null) {\n \t\t// Tile is added to the end of an existing meld\n \t\t// OR tile is moved to the right and the left tile is itself!\n \t\t\n \t\tif (leftTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(leftTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(leftTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(leftTile).setMeld(t, 0)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(leftTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"2\");\n \t\t\treturn false;\n \t\t}\n \t}\n \t\n \telse if(rightTile != null) {\n \t\tif (rightTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(rightTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(rightTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(rightTile).setMeld(t, 1)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(rightTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\tSystem.out.print(\"We get here >:\");\n \t\t\tSystem.out.print(t.getValue());\n \t\t\tSystem.out.print(t.getColour().getName());\n \t\t\t\n \t\t\tSystem.out.println(rightTile.getValue());\n \t\t\tSystem.out.println(rightTile.getColour().getName());\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"3\");\n \t\t\treturn false;\n \t\t}\n \t}\n \telse {\n \t\t// Should not reach here, throw an error if it does\n \t\tSystem.out.println(\"4\");\n \t\treturn false;\n \t}\n }", "@Override\n public boolean equals(Object x) {\n // Check if the board equals an input Board object\n if (x == this) return true;\n if (x == null) return false;\n if (!(x instanceof Board)) return false;\n // Check if the same size\n Board y = (Board) x;\n if (y.tiles.length != n || y.tiles[0].length != n) {\n return false;\n }\n // Check if the same tile configuration\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (this.tiles[i][j] != y.tiles[i][j]) {\n return false;\n }\n }\n }\n return true;\n }", "public boolean replaceTileInSameTileLocation(Tile newTileInstance) {\n\t\tif(newTileInstance== null) return false;\n\t\tboolean isSuccess = false;\n\t\tint tileRow = newTileInstance.getLocation().getRow();\n\t\tint tileCol = newTileInstance.getLocation().getColumn();\n\n\t\tArrayList<Tile> boardRow= tiles.get(tileRow);\n\n\t\tboardRow.set(tileCol - getColumnLowerBound(), newTileInstance);\n\t\tthis.tiles.put(tileRow, boardRow);\n\t\tisSuccess = true;\n\n\t\treturn isSuccess;\n\t}", "private boolean makeMapTileTakeTurn(int x, int y) {\n MapTile tile_at_x_y = this.getTile(x, y);\n if (tile_at_x_y == null) {\n return false;\n }\n tile_at_x_y.takeTurn();\n return true;\n }", "@Override\n public boolean moveIsPossible(Coordinate coord) {\n if(gameState.getTurnState().hasMoved()){\n return false;\n }\n Field field = gameState.getField();\n if(!field.getField().containsKey(coord)){\n return false;\n }\n Cell currentPosition = gameState.getTurnState().getCurrentPlayer()\n .getPosition();\n Cell destination = field.getCell(coord);\n return field.isReachable(currentPosition, destination, 3);\n }", "private boolean canMoveDown()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = grid.length-2; row >=0; row-- ) {\n // looks at tile directly below the current tile\n int compare = row + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }", "public boolean hasDestination() {\n return destination_ != null;\n }", "public boolean checkSwitch(int row, int col){\n boolean output = false;\n Tile[] updownleftright = new Tile[4]; //Array which holds the four adjacent tiles\n if (row - 1 >= 0) updownleftright[0] = tiles[row - 1][col];\n else updownleftright[0] = nulltile;\n \n if (row + 1 < sidelength) updownleftright[1] = tiles[row + 1][col];\n else updownleftright[1] = nulltile;\n \n if (col - 1 >= 0) updownleftright[2] = tiles[row][col - 1];\n else updownleftright[2] = nulltile;\n \n if (col + 1 < sidelength) updownleftright[3] = tiles[row][col + 1];\n else updownleftright[3] = nulltile;\n \n for (int i = 0; i < 4; i ++) //Goes through the array and checks to see if any adjacent tile is the blank tile\n {\n if (updownleftright[i].getCurPic() == blankindex){\n tiles[row][col].swap(updownleftright[i]);\n return true;\n }\n }\n return false;\n }", "@Override\r\n public boolean isConnected(V start, V destination) {\r\n return !shortestPath(start, destination).isEmpty();\r\n }", "public boolean moveTile(int row, int col) {\n //first make sure the parameters are reasonable values\n if (row < 0 || row > 2 || col < 0 || col > 2) {\n return false;\n }\n int tile = getTiles()[row][col];\n if (tile == 0) {\n return false;\n }\n boolean inBounds;\n //check from one row to the left, to one row to the right\n for (int i = row - 1; i <= row + 1; i++) {\n //check from one column above, to one column below\n for (int j = col - 1; j <= col + 1; j++) {\n //use this to make sure our indices are reasonable\n inBounds = ((i >= 0 && i < 3) && (j >= 0 && j < 3));\n if (inBounds) {\n int otherTile = getTiles()[i][j];\n //can't move a cell to itself\n if (otherTile != tile) {\n //we want to ignore diagonals\n if (!(i != row && j != col)) {\n //if otherTile is blank, swap tile and otherTile\n if (otherTile == 0) {\n setTile(i, j, tile);\n setTile(row, col, otherTile);\n return true;\n }\n }\n }\n }\n }\n }\n //if we didn't return true yet, there was no adjacent blank tile\n return false;\n }", "private static boolean Equal(State o, State goal) {\n\t\tif (o==null || goal==null) return false;\n\t\tfor (int i=0;i<3;i++)\n\t\t\tfor (int j=0;j<3;j++)\n\t\t\t\tif (o.d[i][j]!=goal.d[i][j]) return false;\n\t\treturn true;\n\t}", "public static boolean hasWinningMove(int[][] gamePlay){\n\t\tfor(int i=0;i<4;i++){\n\t\t\tfor(int j=0;j<4;j++){\n\t\t\t\tif(gamePlay[i][j]==1){\n\t\t\t\t\tfor(int k=1;k<9;k++){\n\t\t\t\t\t\tint[] root={i,j};\n\t\t\t\t\t\tint[] root1={i,j};\n\t\t\t\t\t\tint[] source=root;\n\t\t\t\t\t\tsource=calculatePosition(root,k);\n\t\t\t\t\t\t//System.out.println(\"Looking in direction \"+k+\" For root\"+i+\",\"+j);\n\t\t\t\t\t\tif(isValidLocation(source)){ \n\t\t\t\t\t\t\tif(gamePlay[source[0]][source[1]]==1){\n\t\t\t\t\t\t\t\tint[] newSource=calculatePosition(source,k);\n\t//System.out.println(\"Two contigous isValid:\"+isValidLocation(newSource)+\"newSource(\"+newSource[0]+\",\"+newSource[1]+\")\"+\" gamePlay:\"+(isValidLocation(newSource)?gamePlay[newSource[0]][newSource[1]]:-1));\n\t\t\t\t\t\t\t\tif(isValidLocation(newSource)){ \n\t\t\t\t\t\t\t\t\tif(gamePlay[newSource[0]][newSource[1]]==0){\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Looking in opposite direction\");\n\t\t\t\t\t\t\t\t\t//Lookup in opposite direction\n\t\t\t\t\t\t\t\t\tnewSource=calculatePosition(root1,9-k);\n\t\t\t\t\t\t\t\t\tif(isValidLocation(newSource) && gamePlay[newSource[0]][newSource[1]]==1){\n\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Valid Location:\"+newSource[0]+\" \"+newSource[1]+\" gamePlay\"+gamePlay[newSource[0]][newSource[1]]);\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t}else if(gamePlay[source[0]][source[1]]==0){\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Looking for alternate\");\n\t\t\t\t\t\t\t\t\tsource=calculatePosition(source,k);\n\t\t\t\t\t\t\t\t\tif(isValidLocation(source) && gamePlay[source[0]][source[1]]==1){\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//System.out.println(\"Invalid direction or no move here isValid:\"+isValidLocation(source)+\"Source(\"+source[0]+\",\"+source[1]+\")\"+\" gamePlay:\"+(isValidLocation(source)?gamePlay[source[0]][source[1]]:-1));\n\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}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isGoal() {\n for (int row = 0; row < N; ++row) {\n for (int col = 0; col < N; ++col) {\n final int goalValue;\n if (row == N - 1 && col == N - 1) {\n goalValue = 0;\n }\n else {\n goalValue = N * row + col + 1;\n }\n if (tiles[row][col] != goalValue) {\n return false;\n }\n }\n }\n return true;\n }", "public boolean hasRouteDest() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean isApplicable(int xCells, int yCells, int tileSize)\n{\n //int actualXCells = m.getOutputImageManager().getMosaic().getFlipH().length;\n //int actualYCells = m.getOutputImageManager().getMosaic().getFlipH()[0].length;\n \n int actualTileSize = (int)cp5.getController(\"sizeOfTiles\").getValue();\n boolean isThereMatch = false;\n \n int actualXCells;\n int actualYCells;\n \n for(int i = 1; i < cp5.getController(\"sizeOfTiles\").getMax()+1; i++)\n {\n actualXCells = (m.getOutputImageManager().getMosaic().getXCanvasSize())/(m.getOutputImageManager().getMosaic().getTiles()[0].getW()*i)+3;\n actualYCells = (m.getOutputImageManager().getMosaic().getYCanvasSize())/(m.getOutputImageManager().getMosaic().getTiles()[0].getH()*i);\n if(xCells == actualXCells && yCells == actualYCells)\n isThereMatch = true;\n //println(xCells, yCells, i);\n //println(actualXCells,actualYCells, actualTileSize);\n //println(\"\");\n }\n return isThereMatch;\n}", "public boolean isequal(Transition t){\n\t\tif( !this.sourcestate.isequal(t.sourcestate)){\n\t\t\treturn false;\n\t\t}\n\t\tif( !this.targetstate.isequal(t.targetstate)){\n\t\t\treturn false;\n\t\t}\n\t\tint len = this.triggers.size();\n\t\tif( len == t.getTriggers().size()){\n\t\t\tfor(int i = 0; i < len; i ++){\n\t\t\t\tString tempTriggers = this.triggers.get(i);\n\t\t\t\t\n\t\t\t\tboolean temp = false;//This means one condition has the same condition in the other transition.\n\t\t\t\tfor(int j = 0; j < len; j ++){\n\t\t\t\t\tif(tempTriggers.equals(t.getTriggers().get(j))){\n\t\t\t\t\t\ttemp = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(temp == false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\t\treturn true;\n\t}", "public boolean isGoal() {\n boolean result = false; \n for (int i = 0; i < this.N; i++) {\n for (int j = 0; j < this.N; j++) {\n int idx = (i * this.N) + (j + 1);\n if (idx != N * N - 1 && tiles[i][j] != idx) {\n return false;\n } \n if (idx == N * N - 1) {\n if (tiles[N - 1][N - 1] == 0) return true;\n return false;\n }\n }\n }\n return result;\n }", "public boolean isRelated(SudokuCell compare){\n\t\t// this would mean they are the same cell\n\t\tif(this.row == compare.getRow() \n\t\t&& this.column == compare.getColumn() \n\t\t&& this.box == compare.getBox()){\n\t\t\treturn false;\n\t\t}\n\t\tif(this.row == compare.getRow())\n\t\t\treturn true;\n\t\tif(this.column == compare.getColumn())\n\t\t\treturn true;\n\t\t// if the cells are in the same 3x3 box\n\t\tif(this.box == compare.getBox())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public static boolean isOrdinal(Tile tile1, Tile tile2) {\n\t\tif (tile2.getX() - tile1.getX() == tile2.getY() - tile1.getY()\n\t\t\t\t|| tile2.getX() - tile1.getX() == tile1.getY() - tile2.getY())\n\t\t\treturn true;\n\t\treturn false;\n\t}" ]
[ "0.643892", "0.64008814", "0.6293628", "0.62443894", "0.59685", "0.59142554", "0.5906806", "0.58783114", "0.5856414", "0.58304024", "0.5827872", "0.5793764", "0.5667707", "0.5667707", "0.5644341", "0.5608247", "0.5604085", "0.55921555", "0.55779713", "0.5577061", "0.556725", "0.5534021", "0.5450299", "0.5437204", "0.5414498", "0.5392614", "0.53801465", "0.53747076", "0.5367497", "0.53483784", "0.534736", "0.53275216", "0.5281795", "0.52781475", "0.527353", "0.52686673", "0.52469045", "0.52346206", "0.52319854", "0.5227617", "0.52203083", "0.52184045", "0.5216671", "0.5215219", "0.5204738", "0.5202643", "0.5192891", "0.5191219", "0.51881576", "0.5186547", "0.5172141", "0.51662254", "0.5161658", "0.5141021", "0.51374435", "0.513497", "0.51286596", "0.51175696", "0.51152456", "0.511409", "0.51098955", "0.5105451", "0.50998056", "0.50992775", "0.50985944", "0.50961465", "0.5095936", "0.50873965", "0.50872916", "0.5078931", "0.5076891", "0.5069306", "0.5062676", "0.50509804", "0.50432837", "0.5040879", "0.5038859", "0.5031414", "0.5026077", "0.5024722", "0.5011884", "0.5010065", "0.5009593", "0.5007893", "0.5006486", "0.4992943", "0.49928883", "0.498639", "0.49629396", "0.496135", "0.49610284", "0.49571913", "0.49563923", "0.49553722", "0.4943666", "0.4942437", "0.49337372", "0.49238318", "0.49170804", "0.49134147" ]
0.8092375
0
Compares the player position to the specified tile to see if they are related.
private static boolean comparePlayerPosition(RSTile tile) { RSTile player_position = Player07.getPosition(); if (tile == null || player_position == null) { return false; } return tile.equals(player_position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean compareGameDestination(RSTile tile) {\n RSTile game_destination = Game.getDestination();\n if (tile == null || game_destination == null) {\n return false;\n }\n return tile.distanceTo(game_destination) < 1.5;\n }", "public boolean equals(Tile tile){\n\t if(tile.getLocation().equals(location))\n\t\t return true;\n\t else\n\t\t return false;\n\t}", "public boolean tilePlayerPlacable(float xTile, float yTile, int player)\r\n/* 196: */ {\r\n/* 197:220 */ return (tileInBounds(xTile, yTile)) && \r\n/* 198:221 */ (getStartPositionOnTile(player, xTile, yTile));\r\n/* 199: */ }", "private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "public boolean hasTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getLeft() == a_tile.getLeft() && playerHand.get(i).getRight() == a_tile.getRight()){\n return true;\n }\n }\n return false;\n }", "private void checkRegTileCollisions(float deltaTime) {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\t//overlap between player and tile\n\t\t\t\n\t\t\t//experiment with these values to get close to perfect collisions *************************\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t\n\t\t\t\t\t//check y - collisions\n\t\t\t\t\tif(player.position.y > tile.position.y + (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y + 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f; //prev. optimal was .3\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.y < tile.position.y - (tile.bounds.height / 2) && player.position.x - (player.bounds.width / 2) + correctionFactor < tile.position.x + (tile.bounds.width / 2) && player.position.x + (player.bounds.width / 2) - correctionFactor > tile.position.x - (tile.bounds.width / 2)) {\n\t\t\t\t\t\tplayer.velocity.y = 0;\n\t\t\t\t\t\tplayer.position.y = tile.position.y - 1;\n\t\t\t\t\t\tif(player.velocity.x > 3) {\n\t\t\t\t\t\t\tplayer.velocity.x -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//check x - collision\n\t\t\t\t\tif(player.position.x > tile.position.x + (tile.bounds.width / 2) + correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x + 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(player.position.x < tile.position.x - (tile.bounds.width / 2) - correctionFactor && player.position.y - (player.bounds.height / 2) + correctionFactor < tile.position.y + (tile.bounds.height / 2) && player.position.y + (player.bounds.height / 2) - correctionFactor > tile.position.y - (tile.bounds.height / 2)) {\n\t\t\t\t\t\tplayer.velocity.x = 0;\n\t\t\t\t\t\txColliding = true;\n\t\t\t\t\t\tplayer.position.x = tile.position.x - 1; //animate possibly\n\t\t\t\t\t\tif(player.velocity.y > 0) {\n\t\t\t\t\t\t\t//player.velocity.y -= 0.2f;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\trecheckTileCollisions(); //fix frame-skipping \n\t}", "boolean checkWin(Tile initialTile);", "public boolean equals(Tile tile) {\n\t\treturn tile.getShape() == shape && tile.getColor() == color;\n\t}", "public boolean isNeighbour(Tile tile){\n int x1 = this.getX();\n int y1 = this.getY();\n\n int x2 = tile.getX();\n int y2 = tile.getY();\n return (x1 == x2 && (Math.abs(y1-y2) == 1)) || (y1 == y2 && (Math.abs(x1-x2) == 1));\n }", "boolean canMove(Tile t);", "public boolean hasNeighbor(Tile tile) {\n if (tile == null) {\n return false;\n }\n\n return (this.tileNorth == tile || this.tileEast == tile || this.tileSouth == tile || this.tileEast == tile);\n }", "private boolean setPair(EntityPlayer player)\n\t{\n\t\t//valid point position\n\t\tif (tilePoint[0].getY() <= 0 || tilePoint[1].getY() <= 0) return false;\n\t\t\n\t\t//get player UID\n\t\tCapaTeitoku capa = CapaTeitoku.getTeitokuCapability(player);\n\t\tint uid = 0;\n\t\tif (capa != null) uid = capa.getPlayerUID();\n\t\tif (uid <= 0) return false;\n\t\t\n\t\t//get tile\n\t\tTileEntity[] tiles = new TileEntity[2];\n\t\ttiles[0] = player.world.getTileEntity(tilePoint[0]);\n\t\ttiles[1] = player.world.getTileEntity(tilePoint[1]);\n\t\t\n\t\t//calc distance\n\t\tint dx = this.tilePoint[0].getX() - this.tilePoint[1].getX();\n\t\tint dy = this.tilePoint[0].getY() - this.tilePoint[1].getY();\n\t\tint dz = this.tilePoint[0].getZ() - this.tilePoint[1].getZ();\n\t\tint dist = dx * dx + dy * dy + dz * dz;\n\t\t\n\t\t//is same point\n\t\tif (dx == 0 && dy == 0 && dz == 0)\n\t\t{\n\t\t\tplayer.sendMessage(new TextComponentTranslation(\"chat.shincolle:wrench.samepoint\"));\n\t\t\t\n\t\t\t//clear data\n\t\t\tresetPos();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\n\t\t//chest and crane pairing\n\t\tif (tiles[0] instanceof IInventory && !(tiles[0] instanceof TileEntityCrane) && tiles[1] instanceof TileEntityCrane ||\n\t\t\ttiles[1] instanceof IInventory && !(tiles[1] instanceof TileEntityCrane) && tiles[0] instanceof TileEntityCrane)\n\t\t{\n\t\t\t//check dist < ~6 blocks\n\t\t\tif (dist < 40)\n\t\t\t{\n\t\t\t\tBlockPos cranePos = null;\n\t\t\t\tBlockPos chestPos = null;\n\t\t\t\t\n\t\t\t\t//set chest pair\n\t\t\t\tif (tiles[0] instanceof TileEntityCrane)\n\t\t\t\t{\n\t\t\t\t\tcranePos = tilePoint[0];\n\t\t\t\t\tchestPos = tilePoint[1];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcranePos = tilePoint[1];\n\t\t\t\t\tchestPos = tilePoint[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//send pairing request packet\n\t\t\t\tCommonProxy.channelI.sendToServer(new C2SInputPackets(C2SInputPackets.PID.Request_ChestSet,\n\t\t\t\t\tuid, cranePos.getX(), cranePos.getY(), cranePos.getZ(),\n\t\t\t\t\tchestPos.getX(), chestPos.getY(), chestPos.getZ()));\n\t\t\t\t\n\t\t\t\t//clear data\n\t\t\t\tresetPos();\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t//send too far away msg\n\t\t\telse\n\t\t\t{\n\t\t\t\tTextComponentTranslation str = new TextComponentTranslation(\"chat.shincolle:wrench.toofar\");\n\t\t\t\tstr.getStyle().setColor(TextFormatting.YELLOW);\n\t\t\t\tplayer.sendMessage(str);\n\t\t\t\t\n\t\t\t\t//clear data\n\t\t\t\tresetPos();\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//waypoint pairing\n\t\telse if (tiles[0] instanceof ITileWaypoint && tiles[1] instanceof ITileWaypoint)\n\t\t{\n\t\t\t//dist < 48 blocks\n\t\t\tif (dist < 2304)\n\t\t\t{\n\t\t\t\t//get waypoint order\n\t\t\t\tITileWaypoint wpFrom = (ITileWaypoint) tiles[this.pointID];\n\t\t\t\tBlockPos posF = tilePoint[this.pointID];\n\t\t\t\tthis.switchPoint();\n\t\t\t\tITileWaypoint wpTo = (ITileWaypoint) tiles[this.pointID];\n\t\t\t\tBlockPos posT = tilePoint[this.pointID];\n\t\t\t\t\n\t\t\t\t//send pairing request packet\n\t\t\t\tCommonProxy.channelI.sendToServer(new C2SInputPackets(C2SInputPackets.PID.Request_WpSet,\n\t\t\t\t\tuid, posF.getX(), posF.getY(), posF.getZ(), posT.getX(), posT.getY(), posT.getZ()));\n\t\t\t\t\n\t\t\t\t//clear data\n\t\t\t\tresetPos();\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t//send too far away msg\n\t\t\telse\n\t\t\t{\n\t\t\t\tTextComponentTranslation str = new TextComponentTranslation(\"chat.shincolle:wrench.wptoofar\");\n\t\t\t\tstr.getStyle().setColor(TextFormatting.YELLOW);\n\t\t\t\tplayer.sendMessage(str);\n\t\t\t\t\n\t\t\t\t//clear data\n\t\t\t\tresetPos();\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tTextComponentTranslation str = new TextComponentTranslation(\"chat.shincolle:wrench.wrongtile\");\n\t\t\tstr.getStyle().setColor(TextFormatting.YELLOW);\n\t\t\tplayer.sendMessage(str);\n\t\t\t\n\t\t\t//clear data\n\t\t\tresetPos();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}", "public void checkCollisionTile(Entity entity) {\n\t\t\tint entityLeftX = entity.worldX + entity.collisionArea.x;\n\t\t\tint entityRightX = entity.worldX + entity.collisionArea.x + entity.collisionArea.width;\n\t\t\tint entityUpY = entity.worldY + entity.collisionArea.y;\n\t\t\tint entityDownY = entity.worldY + entity.collisionArea.y + entity.collisionArea.height;\n\t\t\t\n\t\t\tint entityLeftCol = entityLeftX/gamePanel.unitSize;\n\t\t\tint entityRightCol = entityRightX/gamePanel.unitSize;\n\t\t\tint entityUpRow = entityUpY/gamePanel.unitSize;\n\t\t\tint entityDownRow = entityDownY/gamePanel.unitSize;\n\t\t\t\n\t\t\tint point1;\n\t\t\tint point2;\n\t\t\t//This point is used for diagonal movement\n\t\t\tint point3;\n\t\t\t\n\t\t\tswitch(entity.direction) {\n\t\t\t\t//Lateral and longitudinal movements\n\t\t\t\tcase \"up\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"down\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t//Diagonal Movements\n\t\t\t\tcase \"upleft\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"upright\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase \"downleft\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"downright\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private void updateTileCollisions(Mob mob) {\n\t\tif (mob instanceof Player) {\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getScreenPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setScreenPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().x, Display.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getScreenPosition().y, Display.getHeight() - mob.getHeight() / 2)));\n\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().x, mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.max(mob.getAbsPosition().y, mob.getHeight() / 2)));\r\n\t\t\tmob.setAbsPosition(\r\n\t\t\t\t\tnew Point(\r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().x, tilemap.getWidth() - mob.getWidth() / 2), \r\n\t\t\t\t\t\t\tMath.min(mob.getAbsPosition().y, tilemap.getHeight()) - mob.getHeight() / 2));\r\n\t\t}\r\n\r\n\t\tPoint center = mob.getScreenPosition().add(offset);\r\n\r\n\t\tboolean hitGround = false; // used to check for vertical collisions and determine \r\n\t\t// whether or not the mob is in the air\r\n\t\tboolean hitWater = false;\r\n\r\n\t\t//update mob collisions with tiles\r\n\t\tfor (int i = 0; i < tilemap.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < tilemap.grid[0].length; j++) {\r\n\r\n\t\t\t\tif (tilemap.grid[i][j] != null &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x > center.x - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().x < center.x + (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y > center.y - (250) &&\r\n\t\t\t\t\t\ttilemap.grid[i][j].getAbsPosition().y < center.y + (250)) {\r\n\r\n\t\t\t\t\tRectangle mobRect = mob.getBounds();\r\n\t\t\t\t\tRectangle tileRect = tilemap.grid[i][j].getBounds();\r\n\r\n\t\t\t\t\t// if mob intersects a tile\r\n\t\t\t\t\tif (mobRect.intersects(tileRect)) {\r\n\r\n\t\t\t\t\t\t// get the intersection rectangle\r\n\t\t\t\t\t\tRectangle rect = mobRect.intersection(tileRect);\r\n\r\n\t\t\t\t\t\t// if the mob intersects a water tile, adjust its movement accordingly\r\n\t\t\t\t\t\tif (tilemap.grid[i][j].type == TileMap.WATER) { \r\n\r\n\t\t\t\t\t\t\tmob.gravity = mob.defaultGravity * 0.25f;\r\n\t\t\t\t\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed * 0.35f;\r\n\t\t\t\t\t\t\tmob.moveSpeed = mob.defaultMoveSpeed * 0.7f;\r\n\r\n\t\t\t\t\t\t\tif (!mob.inWater) { \r\n\t\t\t\t\t\t\t\tmob.velocity.x *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.velocity.y *= 0.2;\r\n\t\t\t\t\t\t\t\tmob.inWater = true;\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thitWater = true;\r\n\t\t\t\t\t\t\tmob.jumping = false;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\t\t// if intersection is vertical (and underneath player)\r\n\t\t\t\t\t\t\tif (rect.getHeight() < rect.getWidth()) {\r\n\r\n\t\t\t\t\t\t\t\t// make sure the intersection isn't really horizontal\r\n\t\t\t\t\t\t\t\tif (j + 1 < tilemap.grid[0].length && \r\n\t\t\t\t\t\t\t\t\t\t(tilemap.grid[i][j+1] == null || \r\n\t\t\t\t\t\t\t\t\t\t!mobRect.intersects(tilemap.grid[i][j+1].getBounds()))) {\r\n\r\n\t\t\t\t\t\t\t\t\t// only when the mob is falling\r\n\t\t\t\t\t\t\t\t\tif (mob.velocity.y <= 0) {\r\n\t\t\t\t\t\t\t\t\t\tmob.velocity.y = 0;\r\n\t\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().x, \r\n\t\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().y + rect.getHeight() - 1)));\r\n\t\t\t\t\t\t\t\t\t\tmob.inAir = false;\t\r\n\t\t\t\t\t\t\t\t\t\tmob.jumping = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// if intersection is horizontal\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tmob.velocity.x = 0;\r\n\r\n\t\t\t\t\t\t\t\tif (mobRect.getCenterX() < tileRect.getCenterX()) {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x - rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmob.setAbsPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getAbsPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getAbsPosition().y));\r\n\t\t\t\t\t\t\t\t\tmob.setScreenPosition(new Point(\r\n\t\t\t\t\t\t\t\t\t\t\t(float)(mob.getScreenPosition().x + rect.getWidth()), \r\n\t\t\t\t\t\t\t\t\t\t\tmob.getScreenPosition().y));\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\t\t\tfloat xToCenter = Math.abs((float)(mobRect.getCenterX() - tileRect.getCenterX()));\r\n\t\t\t\t\t\t\tfloat yToCenter = Math.abs((float)(mobRect.getCenterY() - tileRect.getCenterY())); \r\n\r\n\t\t\t\t\t\t\t// Check under the mob to see if it touches a tile. If so, hitGround = true\r\n\t\t\t\t\t\t\tif (yToCenter <= (mobRect.getHeight() / 2 + tileRect.getHeight() / 2) && \r\n\t\t\t\t\t\t\t\t\txToCenter <= (mobRect.getWidth() / 2 + tileRect.getWidth() / 2))\r\n\t\t\t\t\t\t\t\thitGround = true;\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if mob doesn't intersect a tile vertically, they are in the air\r\n\t\tif (!hitGround) {\r\n\t\t\tmob.inAir = true;\r\n\t\t}\r\n\t\t// if the mob is not in the water, restore its default movement parameters\r\n\t\tif (!hitWater) {\r\n\t\t\tmob.gravity = mob.defaultGravity;\r\n\t\t\tmob.moveSpeed = mob.defaultMoveSpeed;\r\n\t\t\tmob.jumpSpeed = mob.defaultJumpSpeed;\r\n\t\t\tmob.inWater = false;\r\n\t\t}\r\n\t}", "public boolean tileOccupied(int x, int y, int pno){\n\t\tfor (int key : playerPosition.keySet()){\n\t\t\tif (key != pno){\n\t\t\t\tint a = playerPosition.get(key)[0];\n\t\t\t\tint b = playerPosition.get(key)[1];\n\t\t\t\tif (a == x && b == y){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasTile(GroundTile tile) {\n return this.editedTiles.contains(tile);\n }", "@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer player){\n\t return worldObj.getTileEntity(xCoord, yCoord, zCoord) != this ? false : player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64.0D;\n\t}", "public boolean isEqual(MatchingCardsTile other){\n return this.getNumber() == other.getNumber();\n }", "public boolean isSameAs(Move comp){ \n return this.xFrom==comp.xFrom &&\n this.xTo==comp.xTo &&\n this.yFrom==comp.yFrom &&\n this.yTo==comp.yTo;\n }", "public boolean tileRock(float xTile, float yTile)\r\n/* 207: */ {\r\n/* 208:231 */ return (tileInBounds(xTile, yTile)) && (this.rock[((int)xTile)][((int)yTile)] != 0);\r\n/* 209: */ }", "private boolean isSolvable() {\n\t\tshort permutations = 0; // the number of incorrect orderings of tiles\n\t\tshort currentTileViewLocationScore;\n\t\tshort subsequentTileViewLocationScore;\n\n\t\t// Start at the first tile\n\t\tfor (int i = 0; i < tiles.size() - 2; i++) {\n\t\t\tTile tile = tiles.get(i);\n\n\t\t\t// Determine the tile's location value\n\t\t\tcurrentTileViewLocationScore = computeLocationValue(tile\n\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t// Compare the tile's location score to all of the tiles that\n\t\t\t// follow it\n\t\t\tfor (int j = i + 1; j < tiles.size() - 1; j++) {\n\t\t\t\tTile tSub = tiles.get(j);\n\n\t\t\t\tsubsequentTileViewLocationScore = computeLocationValue(tSub\n\t\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t\t// If a tile is found to be out of order, increment the number\n\t\t\t\t// of permutations.\n\t\t\t\tif (currentTileViewLocationScore > subsequentTileViewLocationScore) {\n\t\t\t\t\tpermutations++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// return whether number of permutations is even\n\t\treturn permutations % 2 == 0;\n\t}", "public boolean sameAsGold() {\n\t\tif (this.level == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tArrayList<Gold> goldObjects = this.level.getGoldObjects();\n\n\t\tfor (int i = 0; i < goldObjects.size(); i++) {\n\t\t\tif (this.tilePositionX == goldObjects.get(i).getPositionX()\n\t\t\t\t\t&& this.tilePositionY == goldObjects.get(i).getPositionY()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean equals(Object object) {\n/* 4770 */ if (this == object)\n/* */ {\n/* 4772 */ return true;\n/* */ }\n/* 4774 */ if (object != null && object.getClass() == getClass()) {\n/* */ \n/* 4776 */ VolaTile tile = (VolaTile)object;\n/* 4777 */ return (tile.getTileX() == this.tilex && tile.getTileY() == this.tiley && tile.surfaced == this.surfaced);\n/* */ } \n/* 4779 */ return false;\n/* */ }", "public boolean hasShip(int tile) {\r\n return (tiles[tile] & 1) != 0;\r\n }", "public boolean canKong(int tile) {\n\t\treturn TileAnalyser.in(tile, getTileNumbers())>2;\n\t}", "public boolean colidesWith(Entity e, boolean player){\n\t\tthis.setBounds((int) x, (int)y, Tile.size, Tile.size);\n\t\tif(player)\n\t\t\te.setBounds((int) (main.getCamOfSetX() + e.getPx()), (int) (main.getCamOfSetY() + e.getPy()), (int)e.getWidth(), (int)e.getHeight());\n\t\telse\n\t\t\te.setBounds((int)e.getX(), (int)e.getY(), (int)e.getWidth(), (int)e.getHeight());\n\t\treturn this.intersects(e);\n\t}", "@Override\r\n\tprotected boolean prerequisites() {\n\t\treturn _player1.getClient().getPlayer().getWrappedObject().getPosition()\r\n\t\t\t\t.equals(_player2.getClient().getPlayer().getWrappedObject().getPosition());\r\n\t}", "public static boolean canPlayerMove(Player player){\r\n int playerX = 0;\r\n int playerY = 0;\r\n int nX;\r\n int nY;\r\n //finding the player on the board\r\n for(int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if(player.getPosition() == board[i][j]) {\r\n playerX = i;\r\n playerY = j;\r\n }\r\n }\r\n }\r\n //making sure that the player stays on the board\r\n\r\n if(playerY != board[0].length-1) {\r\n nX = playerX;\r\n nY = playerY + 1;\r\n if (board[nX][nY].west && board[playerX][playerY].east && !board[nX][nY].isOnFire) {//if the tile will accept the player\r\n return true;\r\n }\r\n }\r\n\r\n if(playerY != 0) {\r\n nX = playerX;\r\n nY = playerY - 1;\r\n if (board[nX][nY].east && board[playerX][playerY].west && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n if(playerX != 0) {\r\n nX = playerX - 1;\r\n nY = playerY;\r\n if (board[nX][nY].south && board[playerX][playerY].north && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n if(playerX != board.length-1) {\r\n nX = playerX + 1;\r\n nY = playerY;\r\n if (board[nX][nY].north && board[playerX][playerY].south && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public boolean tileOfComputer (int row, int col){\n return this.gameBoard[row][col] == 'o';\n }", "@Override\n\tpublic int compareTo(Tile another) {\n\n\t\tfloat diference = (distanceToStart + distanceToEnd) - (another.distanceToStart + another.distanceToEnd);\n\n\t\tif( diference < 0 )\n\t\t\treturn -1;\n\t\telse if ( diference > 0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public boolean isUseableByPlayer(EntityPlayer entityPlayer)\n {\n return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) == this &&\n entityPlayer.getDistanceSq((double) this.xCoord + 0.5D, (double) this.yCoord + 0.5D,\n (double) this.zCoord + 0.5D) <= 64.0D;\n }", "private void checkIfAnotherPlayerLiesThere(int player, int place) {\n //get our board position\n int playerPos = userGridToLudoBoardGrid(player, place);\n\n //iterate all players\n for (int i = 0; i < nrOfPlayers(); i++) {\n //not our player\n if (players.get(i).getName() != players.get(player).getName()) {\n int counter = 0;\n //go through all pieces\n for (Piece piece : players.get(i).getPieces()) {\n //check if board position is the same\n if (userGridToLudoBoardGrid(i, piece.getPosition()) == playerPos) {\n counter++;\n }\n }\n //if there is only 1 piece there, reset it\n if (counter == 1) {\n int pieceIndex = 0;\n for (Piece piece : players.get(i).getPieces()) {\n if (userGridToLudoBoardGrid(i, piece.getPosition()) == playerPos) {\n\n // PIECELISTENER : Throw PieceEvent to PieceListeners\n for (PieceListener listener : pieceListeners) {\n PieceEvent pieceEvent = new PieceEvent(this, players.get(i).colour, pieceIndex++, piece.getPosition(), 0);\n listener.pieceMoved(pieceEvent);\n }\n\n // Reset piece\n piece.setPosition(0);\n }\n }\n }\n }\n }\n }", "boolean isGameFinished() {\n if (tiles.takenTilesNumber() < 3)\n return false;\n Symbol winningSymbol = tiles.getTile(1);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) {\n return true;\n }\n }\n if(tiles.getTile(2).equals(winningSymbol)) {\n if(tiles.getTile(3).equals(winningSymbol)) return true;\n }\n if(tiles.getTile(4).equals(winningSymbol)) {\n if(tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n winningSymbol = tiles.getTile(2);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(8).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(3);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n if (tiles.getTile(6).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n\n\n winningSymbol = tiles.getTile(4);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(7);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(8).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer p_70300_1_) {\n\t\treturn worldObj.getTileEntity(field_145851_c, field_145848_d,\n\t\t\t\tfield_145849_e) != this ? false : p_70300_1_.getDistanceSq(\n\t\t\t\tfield_145851_c + 0.5D, field_145848_d + 0.5D,\n\t\t\t\tfield_145849_e + 0.5D) <= 64.0D;\n\t}", "public static boolean isInSameBlock(EntityPlayer player, EntityPlayer other, int y) {\r\n\t\tBlockPos first = new BlockPos((int)player.posX, (int)player.posY, (int)player.posZ);\r\n\t\tBlockPos second = new BlockPos((int)other.posX, (int)other.posY, (int)other.posZ);\r\n\t\t\r\n\t\treturn first.getX() == second.getX() && Math.abs(first.getY() - second.getY()) <= y && first.getZ() == second.getZ();\r\n\t}", "private boolean collides(Cell player_cell, Point vector, Set<Cell> nearby_cells, Set<Pherome> nearby_pheromes) {\n Iterator<Cell> cell_it = nearby_cells.iterator();\n Point destination = player_cell.getPosition().move(vector);\n while (cell_it.hasNext()) {\n Cell other = cell_it.next();\n if ( destination.distance(other.getPosition()) < 0.5*player_cell.getDiameter() + 0.5*other.getDiameter() + 0.00011) \n return true;\n }\n Iterator<Pherome> pherome_it = nearby_pheromes.iterator();\n while (pherome_it.hasNext()) {\n Pherome other = pherome_it.next();\n if (other.player != player_cell.player && destination.distance(other.getPosition()) < 0.5*player_cell.getDiameter() + 0.0001) \n return true;\n }\n return false;\n }", "public boolean addBoardTile(Tile t, int xpos, int ypos) {\n \tTile leftTile = null;\n \tTile rightTile = null;\n \tif (ypos != 1) {\n \t\t// Aka if the tile isn't at the leftmost side\n \t\tleftTile = boardTiles.get(new Point(xpos - 1, ypos));\n \t} \t\n \tif (ypos != BoardController.BOARDSIZE) {\n \t\t// Aka if the tile isn't at the rightmost side\n \t\trightTile = boardTiles.get(new Point(xpos + 1, ypos));\n \t}\n \t\n \tif (leftTile != null && rightTile != null) {\n \t\t// Tile placed on the board between two existing melds\n \t\t// NOTE: If the tile is moved a space to the left or right, and that space is \n \t\t// not occupied, and there is another existing meld beside that space,\n \t\t// then the two melds are the meld it was moved beside and itself\n \t\tMeld leftMeld = findMeld(leftTile);\n \t\tMeld rightMeld = findMeld(rightTile);\n \t\t\n \t\t// First check if either meld is the single tile being moved\n \t\tif (leftMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(rightMeld.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (rightMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(leftMeld.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (leftMeld.addRightside(t)) {\n \t\t\tif(combineMeld(leftMeld, rightMeld)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t \t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\t\tcontroller.updateView();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse {\n \t\t\t\tleftMeld.removeFromMeld(t);\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}\n \t\n \telse if (leftTile == null && rightTile == null) {\n \t\t// Tile is placed on the board as the start of a new meld!\n \t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremoveHandTile(t);\n\t\t\t}\n\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n\t\t\tcontroller.updateView();\n\t\t\treturn true;\n \t}\n \t\n \telse if(leftTile != null) {\n \t\t// Tile is added to the end of an existing meld\n \t\t// OR tile is moved to the right and the left tile is itself!\n \t\t\n \t\tif (leftTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(leftTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(leftTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(leftTile).setMeld(t, 0)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(leftTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"2\");\n \t\t\treturn false;\n \t\t}\n \t}\n \t\n \telse if(rightTile != null) {\n \t\tif (rightTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(rightTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(rightTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(rightTile).setMeld(t, 1)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(rightTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\tSystem.out.print(\"We get here >:\");\n \t\t\tSystem.out.print(t.getValue());\n \t\t\tSystem.out.print(t.getColour().getName());\n \t\t\t\n \t\t\tSystem.out.println(rightTile.getValue());\n \t\t\tSystem.out.println(rightTile.getColour().getName());\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"3\");\n \t\t\treturn false;\n \t\t}\n \t}\n \telse {\n \t\t// Should not reach here, throw an error if it does\n \t\tSystem.out.println(\"4\");\n \t\treturn false;\n \t}\n }", "public static boolean isCardinal(Tile tile1, Tile tile2) {\n\t\tif (tile1.getX() == tile2.getX() || tile1.getY() == tile2.getY())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public MoveResult canMovePiece(Alignment player, Coordinate from, Coordinate to);", "public boolean validPosition(Player p, double x, double y) {\n\n\t\tTile tile = getTile(p, x + p.BOUNDING_BOX_X, y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x, y + p.BOUNDING_BOX_Y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x - p.BOUNDING_BOX_X, y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x, y - p.BOUNDING_BOX_Y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private static boolean isTileAvailable(DisplayTile tile, Direction fromDirection, HashMap<DisplayTile, DisplayTile> chainedTiles) {\n\t\tif (tile == null || chainedTiles.containsKey(tile))\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isRoomTile() && !tile.hasDoor(fromDirection))\n\t\t\treturn false;\n\t\t\t\n\t\tif (tile.hasSuspect() || tile.isRemovedTile())\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isPassage() && tile.getPassageConnection().hasSuspect())\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "private boolean playerFoundTreasure(int playerRow, int playerCol){\n return (playerRow == 7 && playerCol == 9);\n }", "@Test\n public void testCompareAfter() {\n Tile t7 = new Tile(6, 3);\n assertEquals(6, board3by3.compareAfter(t7));\n }", "@Test\n public void testAroundPlayerPositions() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n final List<Position> safePosition = new ArrayList<>();\n safePosition.add(TerrainFactoryImpl.PLAYER_POSITION);\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.PLAYER_POSITION.getY()));\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX(), \n TerrainFactoryImpl.PLAYER_POSITION.getY() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE));\n /*use assertFalse because they have already been removed*/\n assertFalse(terrain.getFreeTiles().stream().map(i -> i.getPosition()).collect(Collectors.toList()).containsAll(safePosition));\n level.levelUp();\n });\n }", "boolean testPlaceShip(Tester t) {\n return t.checkExpect(ship3.place(this.em),\n em.placeImageXY(new CircleImage(10, OutlineMode.SOLID, Color.CYAN), 50, 50))\n && t.checkExpect(ship1.place(this.em),\n em.placeImageXY(new CircleImage(10, OutlineMode.SOLID, Color.CYAN), 0, 150));\n }", "Tile getPosition();", "private Player checkIfEatsRedPlayer(Player player)\n {\n int x_cord = getMidPoint(player.x_cordinate);//player.x_cordinate;\n int y_cord = getMidPoint(player.y_cordinate);//player.y_cordinate;\n int redx1 = getMidPoint(getRed_player1().x_cordinate);\n int redx2 = getMidPoint(getRed_player2().x_cordinate);\n int redx3 = getMidPoint(getRed_player3().x_cordinate);\n int redx4 = getMidPoint(getRed_player4().x_cordinate);\n int redy1 = getMidPoint(getRed_player1().y_cordinate);\n int redy2 = getMidPoint(getRed_player2().y_cordinate);\n int redy3 = getMidPoint(getRed_player3().y_cordinate);\n int redy4 = getMidPoint(getRed_player4().y_cordinate);\n if (collisionDetection(x_cord, y_cord, redx1, redy1) == 1)\n {\n return getRed_player1();\n }\n else if (collisionDetection(x_cord, y_cord, redx2, redy2) == 1)\n {\n return getRed_player2();\n }\n else if (collisionDetection(x_cord, y_cord, redx3, redy3) == 1)\n {\n return getRed_player3();\n }\n else if (collisionDetection(x_cord, y_cord, redx4, redy4) == 1)\n {\n return getRed_player4();\n }\n else\n {\n return null;\n }\n }", "public boolean tileReachObjectives(float xTile, float yTile)\r\n/* 122: */ {\r\n/* 123:136 */ return (!tileInBounds(xTile, yTile)) || \r\n/* 124:137 */ (this.reach[((int)xTile)][((int)yTile)] != 0);\r\n/* 125: */ }", "public boolean canChow(int tile) {\n\t\treturn TileAnalyser.inchow(tile, getTileNumbers())>0;\n\t}", "@Override\n public boolean shouldDrawCard(Card topPileCard, Card.Suit changedSuit) {\n topCard = topPileCard;\n boolean drawCard = true;\n for (Card card : cardsInHand) {\n if (card.getSuit().equals(changedSuit) || card.getRank().equals(topPileCard.getRank())) {\n drawCard = false;\n break;\n }\n }\n return drawCard;\n }", "public Player checkWin ()\n {\n //checks rows\n for (int row = 0; row < 3; row++)\n if (getGridElement(row, 0).getPlayer() == getGridElement(row, 1).getPlayer() &&\n getGridElement(row, 1).getPlayer() == getGridElement(row, 2).getPlayer() &&\n getGridElement(row, 0).getPlayer() != Player.NONE)\n return getGridElement(row, 0).getPlayer();\n\n //checks columns\n for (int column = 0; column < 3; column++)\n if (getGridElement(0, column).getPlayer() == getGridElement(1, column).getPlayer() &&\n getGridElement(1, column).getPlayer() == getGridElement(2, column).getPlayer() &&\n getGridElement(0, column).getPlayer() != Player.NONE)\n return getGridElement(0, column).getPlayer();\n\n //checks diagonals\n if (getGridElement(0, 0).getPlayer() == getGridElement(1, 1).getPlayer() &&\n getGridElement(1, 1).getPlayer() == getGridElement(2, 2).getPlayer() &&\n getGridElement(0, 0).getPlayer() != Player.NONE)\n return getGridElement(0, 0).getPlayer();\n if (getGridElement(2, 0).getPlayer() == getGridElement(1, 1).getPlayer() &&\n getGridElement(1, 1).getPlayer() == getGridElement(0, 2).getPlayer() &&\n getGridElement(0, 0).getPlayer() != Player.NONE)\n return getGridElement(2, 0).getPlayer();\n\n return Player.NONE;\n }", "public boolean checkCheck(Player p){\n\t\tPosition position = null;\n\t\tfor (int i = Position.MAX_ROW; i >= Position.MIN_ROW; i--) {\n\t\t\tfor (char c = Position.MIN_COLUMN; c <= Position.MAX_COLUMN; c++) {\n\t Piece piece = gameState.getPieceAt(String.valueOf(c) + i);\n\t if(piece!=null &&piece.getClass().equals(King.class) && piece.getOwner()==p){\n\t \tposition = new Position(c,i);\n\t \tbreak;\n\t }\n\t\t\t}\n\t\t}\n\t\t//Find out if a move of other player contains position of king\n\t\tList<Move> moves = gameState.listAllMoves(p==Player.Black?Player.White:Player.Black,false);\n\t\tfor(Move move : moves){\n\t\t\tif(move.getDestination().equals(position)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public boolean equals( Object other ) {\n if ( super.equals( other ) && ( other instanceof Point ) ) {\n \tPoint p = (Point)other;\n boolean flagEq = Math.abs( getX() - p.getX() ) < mute &&\n \t \t\t\t Math.abs( getY() - p.getY() ) < mute;\n if ( getCoordinateDimension() == 3 ) {\n \tflagEq = flagEq && Math.abs( getZ() - p.getZ() ) < mute;\n }\n return flagEq;\n }\n\n return false;\n }", "private boolean probe(Tile tile, Direction previousDirection) {\n int currentX = tile.getPosition().getX();\n int currentY = tile.getPosition().getY();\n\n if (tile.getTerrain().equals(Terrain.EMPTY))\n return false;\n else if (currentX == 0 || currentX == MAP_WIDTH - 1 || currentY == 0 || currentY == MAP_HEIGHT - 1) {\n return true; // Check if tile hits edge wall\n } else {\n for (Direction direction : Direction.cardinals) {\n Tile targetTile = getTileAtCoordinates(Utility.locateDirection(tile.getPosition(), direction));\n if (!direction.equals(previousDirection) && targetTile.getTerrain().equals(Terrain.WALL)) {\n if (probe(targetTile, Utility.opposite(direction))) {\n tile.setTerrain(Terrain.EMPTY);\n return false;\n }\n }\n }\n return false;\n }\n }", "public boolean canPung(int tile) {\n\t\tint[] numbers = getTileNumbers();\n\t\tint instances = TileAnalyser.in(tile, numbers);\n\t\treturn instances>1;\n\t}", "public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }", "public static boolean hasWonTheGame(Player player) {\r\n FloorTile pos = null;\r\n for (int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if (player.getPosition() == board[i][j]) {\r\n pos = board[i][j];\r\n }\r\n }\r\n }\r\n if (goalTile == pos) {\r\n for (int i = 0; i < numOfPlayers; i++) {\r\n players[i].getPlayerProfile().incGamesPlayed();\r\n if (player == players[i]) {\r\n players[i].getPlayerProfile().incWins();\r\n } else {\r\n players[i].getPlayerProfile().incLosses();\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n return false;\r\n }", "@Test\n public void isCollidingTestCollision(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{1,1},{1,1},{1,1},{1,1}},new byte[][]{{1,1},{1,1},{1,1},{1,1}}, tilepath);\n Rect cBox = new Rect(24,24,24,24);\n assertTrue(tileMap.isColliding(cBox));\n assertEquals(true, tileMap.isColliding(cBox));\n }", "public boolean isTileOnMap(int x, int y) {\n\t\treturn getTileAt(x, y) != null;\n\t}", "public void checkTileMapCollision() {\t\t\t// Works for both x and y directions. Only going to use the x-component for now but leaves room for future expansion.\n\n\t\tcurrCol = (int)x / tileSize;\n\t\tcurrRow = (int)y / tileSize;\n\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\n\t\txtemp = x;\n\t\tytemp = y;\n\n\t\tcalculateCorners(x, ydest);\n\t\tif (dy < 0) { \t\t\t// upwards\n\t\t\tif (topLeft || topRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = currRow * tileSize + height / 2;\t\t\t// Set just below where we bumped our head.\n\t\t\t} else {\n\t\t\t\tytemp += dy;\t\t// Otherwise keep going.\n\t\t\t}\n\t\t}\n\t\tif (dy > 0) { \t\t\t// downwards\n\t\t\tif (bottomLeft || bottomRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tfalling = false;\n\t\t\t\tytemp = (currRow + 1) * tileSize - height / 2;\n\t\t\t} else {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\n\t\tcalculateCorners(xdest, y);\n\t\tif (dx < 0) { \t\t\t// left\n\t\t\tif (topLeft || bottomLeft) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = currCol * tileSize + width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif (dx > 0) { \t\t\t// right\n\t\t\tif (topRight || bottomRight) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (currCol + 1) * tileSize - width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\n\t\tif(!falling) {\n\t\t\tcalculateCorners(x, ydest + 1);\t\t\t// Have to check the ground 1 pixel below us and make sure we haven't fallen off a cliff\n\t\t\tif(!bottomLeft && !bottomRight) {\n\t\t\t\tfalling = true;\n\t\t\t}\n\t\t}\n\n\t}", "public void testPlaceFirstTile2() {\n \tPlacement placement1 = new Placement(Color.GREEN, 5, 26, Color.BLUE, 5, 27);\n Score score1 = null;\n try {\n \t\tscore1 = board.calculate(placement1);\n \t\tboard.place(placement1);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n assertEquals(1, (int)score1.get(Color.GREEN));\n assertEquals(0, (int)score1.get(Color.BLUE));\n \n Placement placement2 = new Placement(Color.GREEN, 5, 24, Color.BLUE, 5, 23);\n Score score2 = null;\n try {\n \t\tscore2 = board.calculate(placement2);\n \t\tboard.place(placement2);\n \t\tfail(\"It's not legal to place a first turn tile adjacent to the same starting hexagon as another player\");\n } catch (ContractAssertionError e) {\n //passed\n }\n }", "private boolean isCorrect() {\n\t\t// if a single tile is incorrect, return false\n\t\tfor (Tile tile : tiles) {\n\t\t\tif (!tile.isCorrect()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof BoardPosition))\n return false;\n BoardPosition b = (BoardPosition) obj;\n return (this.getRow() == b.getRow()) && (this.getColumn() == b.getColumn()) && (this.getPlayer() == b.getPlayer());\n }", "private boolean samePosition(ITarget t1, ITarget t2) {\n assert t1.getTag() == t2.getTag() : \"Programmer error; tags must match.\";\n switch (t1.getTag()) {\n case JPL_MINOR_BODY:\n case MPC_MINOR_PLANET:\n case NAMED:\n\n // SUPER SUPER SKETCHY\n // The .equals logic in NonSiderealTarget actually does what we want here, at\n // least according to the old implementation here. So we'll leave it for now.\n // This will be easier with the new model.\n return t1.equals(t2);\n\n case SIDEREAL:\n final HmsDegTarget hms1 = (HmsDegTarget) t1;\n final HmsDegTarget hms2 = (HmsDegTarget) t2;\n return hasSameCoordinates(hms1, hms2) &&\n hasSameProperMotion(hms1, hms2) &&\n hasSameTrackingDetails(hms1, hms2);\n\n default:\n throw new Error(\"Unpossible target tag: \" + t1.getTag());\n }\n }", "public boolean isPlayerTimeRelative ( ) {\n\t\treturn extract ( handle -> handle.isPlayerTimeRelative ( ) );\n\t}", "public void MoveTileSelf(Integer position){\n /**\n * if opponent activated confusion - move to a random tile\n */\n if(confused){\n //random tile for confusion\n Integer tile;\n do{\n Integer tile1 = returnRandom(getNthDigit(position,1)-1,getNthDigit(position,1)+2);\n Integer tile2 = returnRandom(getNthDigit(position,2)-1,getNthDigit(position,2)+2); // between 0 and 2\n tile = Integer.parseInt(tile1.toString() + tile2.toString());\n }while (tile==myTile || tile==opponentTile || getNthDigit(tile,1)<1 || getNthDigit(tile,1)>7 || getNthDigit(tile,2)<1 || getNthDigit(tile,2)>7);\n position = tile;\n showTimedAlertDialog(\"You are confused!\", \"moving at a random direction\", 5);\n confused = false;\n }\n\n /**\n * send message to opponent\n */\n MultiplayerManager.getInstance().SendMessage(position.toString());\n\n if(!is_debug){\n HandleLejos(myTile, position);\n }\n\n ImageView player1 = findImageButton(\"square_\"+position.toString());\n ImageView player1_old = findImageButton(\"square_\"+myTile.toString());\n player1.setImageDrawable(getResources().getDrawable(R.drawable.tank_blue));\n player1_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n myTile = position;\n myTurn = false;\n turnNumber = turnNumber + 1;\n }", "public boolean versus(Player player1, Player player2, Player player3) {\n Card player1FaceCard = player1.getHand().removeCardFromTop();\n Card player2FaceCard = player2.getHand().removeCardFromTop();\n Card player3FaceCard = player3.getHand().removeCardFromTop();\n if (player1FaceCard == null || player2FaceCard == null || player3FaceCard == null)\n return false;\n // modifyPile(pile, player1FaceCard, player2FaceCard, player3FaceCard);\n return compareAllPlayers(player1FaceCard, player2FaceCard, player3FaceCard);\n }", "private boolean collision(double xa, double ya) {\n\t\t\n\t\tint xMin = 2;\n int xMax = 15;\n int yMin = 15;\n int yMax = 19;\n if(Player.isSwimming){\n \tyMax = 1;\n \txMax = 18;\n }\n if (level.getTile((int)this.x / 32, (int)this.y / 32).getId() == 30) {\n \txMax = 18;\n \txMin = 20;\n }\n if (level.getTile((int)this.x / 32, (int)this.y / 32).getId() == 25) {\n \txMax = 32;\n \txMin = 32;\n \tyMax = 7;\n }\n \n \n int yMinWater = 0;\n for (int x = xMin; x < xMax; x++) {\n if (isSolidTile((int)xa, (int)ya, x, yMin)) {\n return true;\n }\n }\n for (int x = xMin; x < xMax; x++) {\n if (isSolidTile((int)xa,(int) ya, x, yMax)) {\n return true;\n }\n }\n for (int y = yMin; y < yMax; y++) {\n if (isSolidTile((int)xa, (int)ya, xMin, y)) {\n return true;\n }\n }\n for (int y = yMin; y < yMax; y++) {\n if (isSolidTile((int)xa, (int)ya, xMax, y)) {\n return true;\n }\n }\n if(Player.isSwimming || Player.isClimbing){\n \t for (int y = yMinWater; y < yMax; y++) {\n if (isSolidTile((int)xa, (int)ya, yMinWater, y)) {\n return true;\n }\n }\n }\n \n return false;\n\t}", "@Test\n void should_second_player_win_match_when_he_won_tie_break() {\n List<Integer> setPointOrderTab = Arrays.asList(1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2); // 6-6 and 1-3 for secondPlayer\n\n //WHEN\n game.computePoint(setPointOrderTab, true);\n\n //THEN\n assertEquals(GameStatus.FINISHED, game.getGameStatus());\n assertTrue(secondPlayer.isWinner());\n }", "public boolean includes(final int tx, final int ty) {\t\t\n\t\tint pileLowY = y+pileHeightY();\n\t\tint flipped = getFlipped();\n\t\tif (flipped == 0 ) flipped++;//if top card is face down\n\t\treturn x <= tx && tx <= x + Card.width && \n\t\t\tpileLowY-Card.height-(flipped-1)*VSHIFT <= ty \n\t\t\t&& ty<=pileLowY;//if ty is within topCard's y\n\t}", "private boolean findTicTacToe(int x, int y) {\n for (Point c : ticTacToeList) {\n if (c != null && c.getX() == x && c.getY() == y)\n return true;\n }\n return false;\n }", "public boolean tileOfHuman (int row, int col){\n return this.gameBoard[row][col] == 'o';\n }", "static boolean alreadyShot(Point shotPoint, BattleshipModel model, boolean player){\n List<Point> checkHits;\n List<Point> checkMisses;\n\n int sizeHits;\n int sizeMisses;\n\n //if player\n if(player) {\n checkHits = model.getComputerHits(); //Grabs the point list for player\n checkMisses = model.getComputerMisses();\n\n sizeHits = model.getComputerHits().size();\n sizeMisses = model.getComputerMisses().size();\n\n }else{\n checkHits = model.getPlayerHits(); //Grabs the point list for computer\n checkMisses = model.getPlayerMisses();\n\n sizeHits = model.getPlayerHits().size();\n sizeMisses = model.getPlayerMisses().size();\n }\n\n for(int i = 0; i < sizeHits; i++){ //checks the Hit list for the same point\n if(shotPoint.getAcross() == checkHits.get(i).getAcross() && shotPoint.getDown() == checkHits.get(i).getDown()){\n return true;\n }\n }\n\n for(int i = 0; i < sizeMisses; i++){ //checks the Hit list for the same point\n if(shotPoint.getAcross() == checkMisses.get(i).getAcross() && shotPoint.getDown() == checkMisses.get(i).getDown() ){\n return true;\n }\n }\n\n return false;\n }", "boolean testCoords(Tester t) {\n return t.checkExpect(this.p3.xCoord(), 50) && t.checkExpect(this.p4.yCoord(), 600);\n }", "public void testPlaceNormalTile2() {\n \tPlacement placement1 = new Placement(Color.GREEN, 5, 26, Color.BLUE, 5, 27);\n \tPlacement placement2 = new Placement(Color.GREEN, 5, 19, Color.BLUE, 5, 18);\n \t\n try {\n \t\tboard.place(placement1);\n \t\tboard.place(placement2);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n \t\n Placement placement3 = new Placement(Color.GREEN, 4, 20, Color.BLUE, 4, 21);\n Score score3 = null;\n try {\n \t\tscore3 = board.calculate(placement3);\n \t\tboard.place(placement3);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n Score expected3 = new Score();\n expected3.setValue(Color.BLUE, 1);\n expected3.setValue(Color.GREEN, 3);\n assertEquals(expected3, score3);\n \n Placement placement4 = new Placement(Color.GREEN, 4, 19, Color.BLUE, 3, 15);\n Score score4 = null;\n try {\n \t\tscore4 = board.calculate(placement4);\n \t\tboard.place(placement4);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n Score expected4 = new Score();\n expected4.setValue(Color.BLUE, 2);\n expected4.setValue(Color.GREEN, 4);\n assertEquals(expected4, score4);\n }", "public void testPlaceFirstTile1() {\n \tPlacement placement1 = new Placement(Color.GREEN, 5, 26, Color.BLUE, 5, 27);\n Score score1 = null;\n try {\n \t\tscore1 = board.calculate(placement1);\n \t\tboard.place(placement1);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n assertEquals(1, (int)score1.get(Color.GREEN));\n assertEquals(0, (int)score1.get(Color.BLUE));\n \n Placement placement2 = new Placement(Color.GREEN, 5, 28, Color.BLUE, 4, 22);\n Score score2 = null;\n try {\n \t\tscore2 = board.calculate(placement2);\n \t\tboard.place(placement2);\n \t\tfail(\"It's not legal to place a first turn tile adjacent to another player's tile\");\n } catch (ContractAssertionError e) {\n //passed\n }\n }", "private boolean collisonCheck(List<Tile> nextTiles, Snake enemy) {\n\t\t// check himself\n\t\tfor (Tile tile : (List<Tile>)snakeTiles) {\n\t\t\tfor (Tile t : nextTiles) {\n\t\t\t\tif (tile.equals(t)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// check enemy\n\t\tfor (Tile tile : enemy.getSnakeTiles()) {\n\t\t\tfor (Tile t : nextTiles) {\n\t\t\t\tif (tile.equals(t)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected boolean tileCollision(double xa, double ya) { // returns true if there is a collision\n\t\tboolean solid = false;\n\n\t\tfor (int c = 0; c < 4; c++) { // this checks all 4 corners for collision\n\t\t\tdouble xt = ((x - 6 + xa) - c % 2 * 4) / 16; // i honestly don't know hoW this works. It just does. Episode 65.\n\t\t\tdouble yt = ((y - 4 + ya) - c / 2 * 7) / 16;\n\n\t\t\tint ix = (int) Math.ceil(xt); // returns the smallest integer greater than or equal to a number\n\t\t\tint iy = (int) Math.ceil(yt);\n\n\t\t\tif (level.getTile(ix, iy).solid()) solid = true; // this is the important statement for collision detection. It works by looking at the tile you want to go to and seeing if it is solid.\n\t\t}\n\n\t\treturn solid;\n\t}", "private boolean thereispath(Move m, Tile tile, Integer integer, Graph g, Board B) {\n\n boolean result = true;\n boolean result1 = true;\n\n int start_dest_C = tile.COLUMN;\n int start_dest_R = tile.ROW;\n\n int move_column = m.getX();\n int move_row = m.getY();\n\n int TEMP = 0;\n int TEMP_ID = 0;\n int TEMP_ID_F = tile.id;\n int TEMP_ID_FIRST = tile.id;\n\n int final_dest_R = (integer / B.width);\n int final_dest_C = (integer % B.width);\n\n //System.out.println(\"* \" + tile.toString() + \" \" + integer + \" \" + m.toString());\n\n // Y ROW - X COLUMN\n\n for (int i = 0; i != 2; i++) {\n\n TEMP_ID_FIRST = tile.id;\n\n // possibility 1\n if (i == 0) {\n\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result != false; c++) {\n\n if (c == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n // System.out.println(\"OK\");\n\n } else {\n\n result = false;\n\n // System.out.println(\"NOPE\");\n\n\n }\n }\n\n for (int r = 0; r != Math.abs(move_row) && result != false; r++) {\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n // System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n\n } else {\n\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == true) {\n return true;\n }\n\n\n }\n\n TEMP_ID = 0;\n\n if (i == 1) {\n\n result = true;\n\n start_dest_C = tile.COLUMN;\n start_dest_R = tile.ROW;\n // first move row\n for (int r = 0; r != Math.abs(move_row) && result1 != false; r++) {\n\n if (r == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n\n //System.out.println(\"NOPE\");\n\n result = false;\n\n }\n\n\n }\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result1 != false; c++) {\n\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == false) {\n return false;\n\n }\n\n\n }\n\n\n }\n\n\n return true;\n }", "public boolean isWalkAbleTile(int x, int y) {\n\t\tfor (Entity e : entities) {\n\t\t\tif (e.getX() >> 4 == x && e.getY() >> 4 == y)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean fitsInPlayerBoard(int x, int y) {\n if (rotation) { // na vysku\n if (!(x + sizeSelected - 1 < maxN)) {\n return false;\n }\n } else { // na sirku\n if (!(y + sizeSelected - 1 < maxN)) {\n return false;\n }\n }\n\n // skontrolujem ci nebude prekrvat inu lod\n if (rotation) { // na vysku\n for (int i = 0; i < sizeSelected; i++) {\n if (boardPlayer[x + i][y] == GameObject.Ship) {\n return false;\n }\n }\n } else { // na sirku\n for (int i = 0; i < sizeSelected; i++) {\n if (boardPlayer[x][y + i] == GameObject.Ship) {\n return false;\n }\n }\n }\n\n // skontrolujem ci sa nebude dotykat inej lode\n if (rotation) { // na vysku\n for (int i = 0; i < sizeSelected; i++) {\n if ((x - 1 >= 0 && boardPlayer[x + i - 1][y] == GameObject.Ship) ||\n (x - 1 >= 0 && y - 1 >= 0 && boardPlayer[x + i - 1][y - 1] == GameObject.Ship) ||\n (y - 1 >= 0 && boardPlayer[x + i][y - 1] == GameObject.Ship) ||\n (x + i + 1 < maxN && y - 1 >= 0 && boardPlayer[x + i + 1][y - 1] == GameObject.Ship) ||\n (x + i + 1 < maxN && boardPlayer[x + i + 1][y] == GameObject.Ship) ||\n (x + i + 1 < maxN && y + 1 < maxN && boardPlayer[x + i + 1][y + 1] == GameObject.Ship) ||\n (y + 1 < maxN && boardPlayer[x + i][y + 1] == GameObject.Ship) ||\n (x - 1 >= 0 && y + 1 < maxN && boardPlayer[x + i - 1][y + 1] == GameObject.Ship)) {\n return false;\n }\n }\n } else { // na sirku\n for (int i = 0; i < sizeSelected; i++) {\n if ((x - 1 >= 0 && boardPlayer[x - 1][y + i] == GameObject.Ship) ||\n (x - 1 >= 0 && y - 1 >= 0 && boardPlayer[x - 1][y + i - 1] == GameObject.Ship) ||\n (y - 1 >= 0 && boardPlayer[x][y + i - 1] == GameObject.Ship) ||\n (x + 1 < maxN && y - 1 >= 0 && boardPlayer[x + 1][y + i - 1] == GameObject.Ship) ||\n (x + 1 < maxN && boardPlayer[x + 1][y + i] == GameObject.Ship) ||\n (x + 1 < maxN && y + i + 1 < maxN && boardPlayer[x + 1][y + i + 1] == GameObject.Ship) ||\n (y + i + 1 < maxN && boardPlayer[x][y + i + 1] == GameObject.Ship) ||\n (x - 1 >= 0 && y + i + 1 < maxN && boardPlayer[x - 1][y + i + 1] == GameObject.Ship)) {\n return false;\n }\n }\n }\n\n return true;\n }", "public boolean coordsAreEqual(Cell anotherCell){\n return (getI() == anotherCell.getI()) && (getJ() == anotherCell.getJ());\n }", "@Test\n public void equalsFalseDifferentPiece() {\n Player player1 = new Player(PlayerColor.BLACK, \"\");\n player1.addPiece(new Piece(PlayerColor.BLACK, 1));\n\n Player player2 = new Player(PlayerColor.BLACK, \"\");\n player2.addPiece(new Piece(PlayerColor.BLACK, 2));\n\n assertFalse(player1.equals(player2));\n }", "public void testPlaceNormalTile() {\n \tPlacement placement1 = new Placement(Color.GREEN, 5, 26, Color.BLUE, 5, 27);\n \tPlacement placement2 = new Placement(Color.GREEN, 5, 19, Color.BLUE, 5, 18);\n \t\n try {\n \t\tboard.place(placement1);\n \t\tboard.place(placement2);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n \n Placement placement3 = new Placement(Color.GREEN, 4, 15, Color.BLUE, 3, 12);\n Score score = null;\n try {\n \t\tscore = board.calculate(placement3);\n \t\tboard.place(placement3);\n } catch (ContractAssertionError e) {\n fail(e.getMessage());\n }\n Score expected = new Score();\n expected.setValue(Color.BLUE, 1);\n expected.setValue(Color.GREEN, 1);\n assertEquals(expected, score);\n }", "private boolean playerWonGameWithVerticalLine(Player player) {\n char playerSymbol = player.getType(); \n for (int i = 0; i < 3; i++) {\n if (boardState[0][i] == playerSymbol && boardState[1][i] == playerSymbol \n && boardState[2][i] == playerSymbol) {\n return true; \n }\n \n }\n return false; \n }", "private boolean isEqual(Roster r2)\n\t{\n\t\tIterator<Player> it1 = iterator();\n\t\twhile(it1.hasNext())\n\t\t{\n\t\t\tPlayer p = it1.next();\n\t\t\tif(!r2.has(p))\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tIterator<Player> it2 = r2.iterator();\n\t\twhile(it2.hasNext())\n\t\t{\n\t\t\tPlayer p = it2.next();\n\t\t\tif(!has(p))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "public boolean tileWalkable(float xTile, float yTile)\r\n/* 160: */ {\r\n/* 161:183 */ return (!tileInBounds(xTile, yTile)) || \r\n/* 162:184 */ (this.walkable[((int)xTile)][((int)yTile)] != 0);\r\n/* 163: */ }", "public boolean canMine(EntityPlayer player, int X, int Y, int Z);", "@Override\n public boolean isLocalPlayersTurn() {\n return getTeam().equals(currentBoard.turn());\n }", "private boolean isTagged(Player player, Player itPlayer) {\r\n double distanceBetweenPlayers = distanceBetweenLatLongPoints(itPlayer.getLastLocation().latitude,\r\n itPlayer.getLastLocation().longitude,\r\n player.getLastLocation().latitude,\r\n player.getLastLocation().longitude);\r\n\r\n Log.i(TAG, \"distance between players is \" + distanceBetweenPlayers + \" meters\");\r\n\r\n// if (distanceBetweenPlayers < tagDistance) {\r\n if (distanceBetweenPlayers < tagDistance && itPlayer != player) {\r\n Log.i(TAG, \"*************player is set to true*************\");\r\n player.setIt(true);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "protected int winnable(Board b){\r\n\t\t//checks if two tiles are the same (and not empty) and checks if\r\n\t\t//the third tile required to win is empty for a winning condition\r\n\t\tint condition = 0;\r\n\t\tif ((b.getTile(1) == b.getTile(2)) && (b.getTile(3) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\t\tcondition =3;\r\n\t\telse if ((b.getTile(1) == b.getTile(3)) && (b.getTile(2) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 2;\r\n\t\telse if ((b.getTile(2) == b.getTile(3)) && (b.getTile(1) == ' ')\r\n\t\t\t\t&& (b.getTile(2) != ' ') && (b.getTile(2) == this.getSymbol()))\r\n\t\t\tcondition = 1;\r\n\t\telse if ((b.getTile(4) == b.getTile(5)) && (b.getTile(6) == ' ')\r\n\t\t\t\t&& (b.getTile(4) != ' ') && (b.getTile(4) == this.getSymbol()))\r\n\t\t\tcondition = 6;\r\n\t\telse if ((b.getTile(4) == b.getTile(6)) && (b.getTile(5) == ' ')\r\n\t\t\t\t&& (b.getTile(4) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 5;\r\n\t\telse if ((b.getTile(5) == b.getTile(6)) && (b.getTile(4) == ' ')\r\n\t\t\t\t&& (b.getTile(5) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 4;\r\n\t\telse if ((b.getTile(7) == b.getTile(8)) && (b.getTile(9) == ' ')\r\n\t\t\t\t&& (b.getTile(7) != ' ') && (b.getTile(7) == this.getSymbol()))\r\n\t\t\tcondition = 9;\r\n\t\telse if ((b.getTile(7) == b.getTile(9)) && (b.getTile(8) == ' ')\r\n\t\t\t\t&& (b.getTile(7) != ' ') && (b.getTile(7) == this.getSymbol()))\r\n\t\t\tcondition = 8;\r\n\t\telse if ((b.getTile(8) == b.getTile(9)) && (b.getTile(7) == ' ')\r\n\t\t\t\t&& (b.getTile(8) != ' ') && (b.getTile(8) == this.getSymbol()))\r\n\t\t\tcondition = 7;\r\n\t\telse if ((b.getTile(1) == b.getTile(4)) && (b.getTile(7) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 7;\r\n\t\telse if ((b.getTile(1) == b.getTile(7)) && (b.getTile(4) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 4;\r\n\t\telse if ((b.getTile(4) == b.getTile(7)) && (b.getTile(1) == ' ')\r\n\t\t\t\t&& (b.getTile(4) != ' ') && (b.getTile(4) == this.getSymbol()))\r\n\t\t\tcondition = 1;\r\n\t\telse if ((b.getTile(2) == b.getTile(5)) && (b.getTile(8) == ' ')\r\n\t\t\t\t&& (b.getTile(2) != ' ') && (b.getTile(2) == this.getSymbol()))\r\n\t\t\tcondition = 8;\r\n\t\telse if ((b.getTile(2) == b.getTile(8)) && (b.getTile(5) == ' ')\r\n\t\t\t\t&& (b.getTile(2) != ' ') && (b.getTile(2) == this.getSymbol()))\r\n\t\t\tcondition = 5;\r\n\t\telse if ((b.getTile(5) == b.getTile(8)) && (b.getTile(2) == ' ')\r\n\t\t\t\t&& (b.getTile(5) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 2;\r\n\t\telse if ((b.getTile(3) == b.getTile(6)) && (b.getTile(9) == ' ')\r\n\t\t\t\t&& (b.getTile(3) != ' ') && (b.getTile(3) == this.getSymbol()))\r\n\t\t\tcondition = 9;\r\n\t\telse if ((b.getTile(3) == b.getTile(9)) && (b.getTile(6) == ' ')\r\n\t\t\t\t&& (b.getTile(3) != ' ') && (b.getTile(3) == this.getSymbol()))\r\n\t\t\tcondition = 6;\r\n\t\telse if ((b.getTile(6) == b.getTile(9)) && (b.getTile(3) == ' ')\r\n\t\t\t\t&& (b.getTile(6) != ' ') && (b.getTile(6) == this.getSymbol()))\r\n\t\t\tcondition = 3;\r\n\t\telse if ((b.getTile(1) == b.getTile(5)) && (b.getTile(9) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 9;\r\n\t\telse if ((b.getTile(1) == b.getTile(5)) && (b.getTile(5) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 5;\r\n\t\telse if ((b.getTile(5) == b.getTile(9)) && (b.getTile(1) == ' ')\r\n\t\t\t\t&& (b.getTile(5) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 1;\r\n\t\telse if ((b.getTile(3) == b.getTile(5)) && (b.getTile(7) == ' ')\r\n\t\t\t\t&& (b.getTile(3) != ' ') && (b.getTile(3) == this.getSymbol()))\r\n\t\t\tcondition = 7;\r\n\t\telse if ((b.getTile(3) == b.getTile(7)) && (b.getTile(5) == ' ')\r\n\t\t\t\t&& (b.getTile(3) != ' ') && (b.getTile(3) == this.getSymbol()))\r\n\t\t\tcondition = 5;\r\n\t\telse if ((b.getTile(5) == b.getTile(7)) && (b.getTile(3) == ' ')\r\n\t\t\t\t&& (b.getTile(5) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 3;\r\n\t\treturn condition;\r\n\t}", "private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }", "public boolean isAt(Point punto) {\r\n Point inner = toInnerPoint(punto);\r\n for (Point block : innerPiece.getPoints())\r\n \tif (block.X() == inner.X() && block.Y() == inner.Y())\r\n \t\treturn true;\r\n return false;\r\n }", "public boolean playerWins(){\n return playerFoundTreasure(curPlayerRow, curPlayerCol);\n }", "public boolean meWin(){\n return whitePieces.size() > blackPieces.size() && isWhitePlayer;\n }", "public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)\n {\n return this.worldObj.getBlockTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : par1EntityPlayer.getDistanceSq((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) <= 64.0D;\n }", "@Test\n public void testPositionEquals(){\n assertEquals(Maze.position(0,0), Maze.position(0,0));\n assertThat(Maze.position(1, 0), not(Maze.position(0, 0)));\n assertThat(Maze.position(0,0), not(Maze.position(0,1)));\n }", "protected void checkEntityCollisions(long time) {\n\t\tRectangle2D.Float pla1 = player1.getLocationAsRect();\n\t\tRectangle2D.Float pla2 = player2.getLocationAsRect();\n\t\tfor(int i = 0; i < ghosts.length; i++)\n\t\t{\n\t\t\tGhost g = ghosts[i];\n\t\t\t\n\t\t\tif(g.isDead())\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tRectangle2D.Float ghRect = g.getLocationAsRect();\n\t\t\t\n\t\t\tif(ghRect.intersects(pla1))\n\t\t\t\tonPlayerCollideWithGhost(time, player1, i);\n\t\t\t\n\t\t\tif(ghRect.intersects(pla2))\n\t\t\t\tonPlayerCollideWithGhost(time, player2, i);\n\t\t}\n\t}", "public void MoveTileOpponent(Integer position){\n Integer position_inverted = revertTile(position);\n String position_inverted_str = String.valueOf(position_inverted);\n\n ImageView player2 = findImageButton(\"square_\"+position_inverted_str);\n ImageView player2_old = findImageButton(\"square_\"+opponentTile.toString());\n player2.setImageDrawable(getResources().getDrawable(R.drawable.tank_red));\n player2_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n\n opponentTile = position_inverted;\n myTurn = true;\n canPlaceBomb = true;\n turnNumber = turnNumber + 1;\n\n if(ShotsCaller){\n placePowerup(null);\n }\n }" ]
[ "0.66336817", "0.6621375", "0.6324292", "0.62381303", "0.6236126", "0.6195358", "0.6145573", "0.6134339", "0.6078479", "0.6067036", "0.59228694", "0.5888793", "0.587186", "0.58635086", "0.5861432", "0.58442956", "0.5839088", "0.5828282", "0.5696155", "0.56554633", "0.5625301", "0.56154317", "0.5614213", "0.55602586", "0.55135787", "0.55134016", "0.55093247", "0.54941964", "0.54930633", "0.5490848", "0.54727626", "0.5471742", "0.54492515", "0.5445343", "0.54273015", "0.54185426", "0.53928924", "0.53838813", "0.5375921", "0.53703207", "0.53640443", "0.53611684", "0.53431255", "0.5333224", "0.53322345", "0.5331438", "0.5330928", "0.5330355", "0.5316265", "0.5313148", "0.5311718", "0.5310379", "0.5309316", "0.5293488", "0.5292246", "0.52911514", "0.5273581", "0.52713567", "0.52693164", "0.5263404", "0.5262327", "0.5259394", "0.52575827", "0.52542174", "0.52494687", "0.5246465", "0.52425504", "0.5240113", "0.5239035", "0.5238352", "0.52354085", "0.5232429", "0.5223503", "0.52096987", "0.52035445", "0.5198667", "0.5192194", "0.5184524", "0.51782566", "0.5170478", "0.51568687", "0.5154833", "0.51443374", "0.5140968", "0.5136687", "0.5131833", "0.51314664", "0.5122372", "0.5122353", "0.51021504", "0.51005375", "0.509681", "0.5096568", "0.5091532", "0.5090428", "0.5087896", "0.50857055", "0.5081081", "0.50798196", "0.5077456" ]
0.79938275
0
rollover on women category and select casual dresses user should be able to navigate to women category from home page
public void navigateToWomanCategory(){ a = new Actions(driver); a.moveToElement(driver.findElement(By.cssSelector("div[id ='block_top_menu'] a[title='Women']"))).build().perform(); driver.findElement(By.cssSelector("ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Casual Dresses'] ")).click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectCategory() {\n\t\t\r\n\t}", "@When(\"^user click on apparel category from home page$\")\n public void userClickOnApparelCategoryFromHomePage() {\n homePage.clickOnAppareal();\n }", "public void onSelectCategory(View view) {\n\n Intent intent = new Intent(this, SelectCategoryActivity.class);\n intent.putExtra(\"whichActivity\", 1);\n startActivity(intent);\n\n }", "public void category(String menuCategory) {\n for (WebElement element : categories) {\n\n if (menuCategory.equals(CategoryConstants.NEW_IN.toString())) {\n String newin = menuCategory.replace(\"_\", \" \");\n menuCategory = newin;\n }\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String elementText = element.getText();\n if (elementText.equals(menuCategory)) {\n element.click();\n\n break;\n }\n }\n }", "public void category1() {\r\n\t\tmySelect1.click();\r\n\t}", "@Override\n public void onClick(View v) {\n Intent i = new Intent(mContext,SubCategoryPage.class);\n mContext.startActivity(i);\n }", "@Override\n\t\t\t\t\tpublic void onSelcted(Category mParent, Category category) {\n\t\t\t\t\t\tif (view == solverMan) {\n\t\t\t\t\t\t\tsolverCategory = category;\n\t\t\t\t\t\t\tsolverMan.setContent(category.getName());\n\t\t\t\t\t\t} else {// check is foucs choose person\n\t\t\t\t\t\t\tChooseItemView chooseItemView = (ChooseItemView) view\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.common_add_item_title);\n\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (category.getId().equals(mCategory.getId())) {\n\t\t\t\t\t\t\t\t\t// modify do nothing.\n\t\t\t\t\t\t\t\t\tif (!category.getName().equals(\n\t\t\t\t\t\t\t\t\t\t\tchooseItemView.getContent())) {\n\t\t\t\t\t\t\t\t\t\tshowToast(\"该关注人已经在列表了\");// not in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// chooseItem,but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// other already\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// has this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// name.\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchooseItemView.setContent(category.getName());\n\n\t\t\t\t\t\t\tAddItem addItem = (AddItem) chooseItemView.getTag();\n\t\t\t\t\t\t\t// 关注人是否已经存在,就只更新\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (addItem.tag.equals(mCategory.tag)) {\n\t\t\t\t\t\t\t\t\t// modify .\n\t\t\t\t\t\t\t\t\tmCategory.setName(category.getName());\n\t\t\t\t\t\t\t\t\tmCategory.setId(category.getId());\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLog.i(TAG,\n\t\t\t\t\t\t\t\t\t\"can not find the select item from fouc:\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "private void showCategoryMenu() {\n if(CategoryMenu == null) {\n CategoryMenu = new PopupMenu(getActivity(), CategoryExpand);\n CategoryMenu.setOnMenuItemClickListener(this);\n\n MenuInflater inflater = CategoryMenu.getMenuInflater();\n inflater.inflate(R.menu.category_menu, CategoryMenu.getMenu());\n }\n\n if(Equival.isChecked()){\n Toaster toaster = new Toaster(getContext());\n toaster.standardToast(getText(R.string.err_modify_category).toString());\n }\n else CategoryMenu.show();\n setFromCategoryTitleToMenu();\n }", "public static WebElement lnk_selectSingleCategory() throws Exception{\r\n \ttry{\r\n \t\t// Date 1-Sep-2016 UI Changed\r\n \t\t//*[contains(@class, 'sidebar_con relateCat kwRelateLink')]\r\n \t\tWebDriverWait waits = new WebDriverWait(driver, 15);\r\n \t\twaits.until(ExpectedConditions.visibilityOfElementLocated(\r\n \t\t\t\tBy.xpath(\"//*[contains(@class, 'sidebar_con relateCat')]\")));\r\n \t\t\r\n \t//\telement = driver.findElement(\r\n \t//\t\t\tBy.xpath(\"(//*[contains(@class, 'sidebar_con relateCat')]/li/a)[position()=1]\"));\r\n \t\t\r\n \t\t// 03-Jan-2017: Select 2nd category\r\n \t\t// 08-Feb-2017: Select 1st category\r\n \t\telement = driver.findElement(\r\n \t\t\t\tBy.xpath(\"(//*[contains(@class, 'sidebar_con relateCat')]/li/a)[position()=1]\"));\r\n \t\t\r\n \t/*\tWebDriverWait waits = new WebDriverWait(driver, 15);\r\n \t\twaits.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"catList\")));\r\n \t\t\r\n \t\telement = driver.findElement(\r\n \t\t\t\tBy.xpath(\"(//*[@id='catList']/li[1]/a)[position()=1]\"));\r\n \t*/\t\r\n \t\t// Print selected category into console\r\n \t\tString txt_getSelectedCategoryName = element.getText();\r\n \t\tAdd_Log.info(\"Selected single category are ::\" + txt_getSelectedCategoryName);\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"Related Categories side bar is NOT found on the page.\");\r\n \t\t// Get the list of window handles\r\n \t\tArrayList<String> tabs = new ArrayList<String> (driver.getWindowHandles());\r\n \t\tAdd_Log.info(\"Print number of window opened ::\" + tabs.size());\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }", "@Test(priority = 2)\n\tpublic void SelectMen() throws InterruptedException {\n\t\t\n\t\tThread.sleep(3000);\n\t\t\n\t\tWebElement Men = driver.findElement(By.xpath(\"//a[@data-group=\\\"men\\\" and contains(text(),'Men')]\"));\n\n\t\tActions act = new Actions(driver);\n\t\tact.moveToElement(Men).perform();\n\n\t\tThread.sleep(2000);\n\n\t\tdriver.findElement(By.xpath(\"//a[text()='Rain Jackets']\")).click();\n\t\t\n\t\tString url = driver.getCurrentUrl();\n\t\tSystem.out.println(\"The url after clicking Rain jackets is:\"+ url);\n\n\t}", "private static void listStaffByCategory(){\n\t\t\n\t\tshowMessage(\"Choose one category to list:\\n\");\n\t\tshowMessage(\"1 - Surgeon\");\n showMessage(\"2 - Nurse\");\n showMessage(\"3 - Vet\");\n showMessage(\"4 - Accountant\");\n showMessage(\"5 - ItSupport\");\n showMessage(\"6 - Secretary\");\n showMessage(\"7 - Back to previous menu.\");\n \n int option = getUserStaffByCategory();\n /** switch case option start below */\n switch (option){\n \tcase 1 : ToScreen.listEmployee(employee.getSurgeonList(), true); listStaffByCategory();\n break;\n case 2 : ToScreen.listEmployee(employee.getNurseList(), true); listStaffByCategory();\n break;\n case 3 : ToScreen.listEmployee(employee.getVetList(), true); listStaffByCategory();\n \tbreak;\n case 4 : ToScreen.listEmployee(employee.getAccountantList(), true); listStaffByCategory();\n \tbreak;\n case 5 : ToScreen.listEmployee(employee.getItSupportList(), true); listStaffByCategory();\n \tbreak;\n case 6 : ToScreen.listEmployee(employee.getSecretaryList(), true); listStaffByCategory();\n \tbreak;\n case 7 : main();\n break;\n \n default: listStaffByCategory();\n \n }\n\n\t}", "public void chooseCategory(String category) {\n for (Category c : categories) {\n if (c.getName().equals(category)) {\n if (c.isActive()) {\n c.setInActive();\n } else {\n c.setActive();\n }\n }\n }\n for (int i = 0; i < categories.size(); i++) {\n System.out.println(categories.get(i).getName());\n System.out.println(categories.get(i).isActive());\n }\n }", "public void onCategoryClicked(String category){\n\t\tfor(int i = 0 ; i < mData.getStatistics().size(); i++){\r\n\t\t\tif(mData.getStatistics().get(i).getCategory().equals(category)){\r\n\t\t\t\tif(mData.getStatistics().get(i).getDueChallenges() == 0){\r\n\t\t\t\t\tmGui.showToastNoDueChallenges(mData.getActivity());\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Start activity challenge (learn session) with category and user \t\r\n\t\t\t\t\tNavigation.startActivityChallenge(mData.getActivity(), mData.getUser(), category);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "public void clickOnSummerDresses(){\n a = new Actions(driver);\n a.moveToElement(driver.findElement(By.cssSelector(\"div[id ='block_top_menu'] a[title='Women']\"))).build().perform();\n driver.findElement(By.cssSelector(\"ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Summer Dresses']\")).click();\n a.moveToElement(driver.findElement(By.xpath(\"//ul[contains(@class,'product_list')]/li[2]\"))).build().perform();\n driver.findElement(By.xpath(\"//ul[contains(@class,'product_list')]/li[2]/div/div[2]/div[2]/a[1]\")).click();\n }", "Category selectCategory(String name);", "public void navigateToTaxonomyPage(String appname){\n\trefApplicationGenericUtils.clickOnElement(objectRepository.get(\"GlobalElements.FeaturedArticle\"), \"Featured Article\");\n\t\t\n\t// Verify if sectional Tag is displayed.\n\trefApplicationGenericUtils.checkForElement(objectRepository.get(\"ArticlePageElements.Tag\"), \"Tag\");\n\t\n\t\n\t//Click on the tag.\n\trefApplicationGenericUtils.clickOnElement(objectRepository.get(\"ArticlePageElements.Tag\"), \"Tag\");\n\t\n\t//Scroll till the news letter Signup.\n\tsubscribeNewsLetter();\n\n\t}", "void selectCategory() {\n // If user is the active player, ask for the user's category.\n if (activePlayer.getIsHuman()) {\n setGameState(GameState.CATEGORY_REQUIRED);\n }\n // Or get AI active player to select best category.\n else {\n Card activeCard = activePlayer.getTopMostCard();\n activeCategory = activeCard.getBestCategory();\n }\n\n logger.log(\"Selected category: \" + activeCategory + \"=\" +\n activePlayer.getTopMostCard().getCardProperties()\n .get(activeCategory));\n logger.log(divider);\n\n setGameState(GameState.CATEGORY_SELECTED);\n }", "public void seleccionarCategoria(String name);", "@Override\r\n\tpublic boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,\r\n\t\t\t\tPreference preference) {\n\t\tif(preference == categoryedit)\r\n\t\t{\r\n\t\t\tIntent i=new Intent();\r\n\t\t\ti.setClass(getActivity(),CategoryEdit.class);\r\n\t\t\tstartActivityForResult(i,1);\r\n\t\t\tgetActivity().overridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);\r\n\t\t}\r\n\t\treturn super.onPreferenceTreeClick(preferenceScreen, preference);\r\n\t}", "public void category2() {\r\n\t\tmySelect2.click();\r\n\t}", "@Override\n public void onItemSelcted(Object data, String brandName) {\n\n Intent c = new Intent(MainActivity.this, categories_Activity.class);\n c.putExtra(\"Cat\", brandName);\n c.putExtra(\"img\", \"https://ownshopz.com/wp-content/uploads/2018/07/5d84ef15c47229ed33758985f45411e3.jpg\");\n startActivity(c);\n }", "public static void setCategory(String categoryName) {\n wait.until(ExpectedConditions.elementToBeClickable(EntityCreationPage.PlatformsPanel.selectCategory()));\n EntityCreationPage.PlatformsPanel.selectCategory().click();\n wait.until(ExpectedConditions.visibilityOf(EntityCreationPage.PlatformsPanel.selectCategoryPopUp(categoryName)));\n EntityCreationPage.PlatformsPanel.selectCategoryPopUp(categoryName).click();\n }", "public static WebElement lnk_selectL3Category() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(By.xpath(\"(//*[@id='l2CatId']/li/a)[position()=1]\"));\r\n \t\t\r\n \t\t// Print selected category into console\r\n \t\tString txt_getSelectedCategoryName = element.getText();\r\n \t\tAdd_Log.info(\"Selected single category are ::\" + txt_getSelectedCategoryName);\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"Related Categories side bar is NOT found on the page.\");\r\n \tthrow(e);\r\n }\r\n return element;\r\n }", "public void setCategory(String category){\n this.category = category;\n }", "@Override\n public void onClick(View view) {\n final String e = imagedat.get(0).getCategory();\n Intent c = new Intent(MainActivity.this, categories_Activity.class) ;\n c.putExtra(\"Cat\", e);\n startActivity(c);\n }", "private void lanzarListadoCategorias() {\n\t\tIntent i = new Intent(this, ListCategorias.class);\n\t\tstartActivity(i);\n\t\t\n\t}", "@Override\n public void onClick(View view, int position, boolean isLongClick) {\n //get category id from adapter and set in Common.CategoryId\n Common.categoryId=adapter.getRef(position).getKey(); // 01 or 02 or 03 ..... of category\n Common.categoryName=model.getName(); // set name of category to Common variable categoryName\n startActivity(Start.newIntent(getActivity()));// move to StartActivity\n\n }", "public void clickSupercatNextLevel(String CategoryName){\r\n\t\tString supercartlink2 = getValue(CategoryName);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+supercartlink2);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- '\"+supercartlink2+\"' link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"BylnkSuperCatNext\"));\r\n\t\t\tclickSpecificElementContains(locator_split(\"BylnkSuperCatNext\"),supercartlink2);\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(supercartlink2+\"link clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- '\"+supercartlink2+\"' link is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- '\"+supercartlink2+\"' link is not clicked\");\r\n\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.ivHookCat:\n unselectAllCategories();\n findViewById(R.id.btnEduCat).setSelected(true);\n toggleSubCategoryView();\n break;\n\n case R.id.btnEduCat:\n unselectAllCategories();\n findViewById(R.id.btnEduCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_EDU);\n break;\n\n case R.id.btnFunCat:\n unselectAllCategories();\n findViewById(R.id.btnFunCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_FUN);\n break;\n\n case R.id.btnGovtCat:\n unselectAllCategories();\n findViewById(R.id.btnGovtCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_GOVT);\n break;\n\n case R.id.btnHealthCat:\n unselectAllCategories();\n findViewById(R.id.btnHealthCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_HEALTH);\n break;\n\n case R.id.btnJobCat:\n unselectAllCategories();\n findViewById(R.id.btnJobCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_JOB);\n break;\n\n case R.id.btnLawCat:\n unselectAllCategories();\n findViewById(R.id.btnLawCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_LAW);\n break;\n\n case R.id.btnMoneyCat:\n unselectAllCategories();\n findViewById(R.id.btnMoneyCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_MONEY);\n break;\n\n case R.id.ivOpenerCat:\n if (llFlowingDetails.getWidth() < 1)\n showFlowingDetails();\n else\n hideFlowingDetails();\n break;\n\n default:\n break;\n\n }\n }", "public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[index].setCategoryUser(user[index].newCategory(\"mildContributor\"));\n }\n else if(user[index].getAmountCategory() == 30){\n user[index].setCategoryUser(user[index].newCategory(\"starContributor\"));\n }\n }", "public void clickSupercatlink(String CategoryName){\r\n\t\tString supercartlink1 = getValue(CategoryName);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+supercartlink1);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- '\"+supercartlink1+\"' link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"BylnkSuperCat\"));\r\n\t\t\tclickSpecificElement(locator_split(\"BylnkSuperCat\"),supercartlink1);\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(supercartlink1+\" link is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- '\"+supercartlink1+\"' link is clicked\");\r\n\t\t\tsleep(3000);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+supercartlink1+\" link is not clicked\");\r\n\r\n\t\t}\r\n\t}", "public void selectMenuCatagory(String menuChoice) {\n\t\tBy cName = By.className(\"btn lvl1tab\");\n\t\tList<WebElement> elements = driver.findElements(cName);\n\t\t\n\t\tfor (WebElement item : elements) {\n\t\t\tString test = item.getAttribute(\"innerHTML\");\n\t\t\tif (test.contains(menuChoice)){\n\t\t\t\titem.click();\n\t\t\t}\n\t\t}\n\t}", "public String redirectCrearCategoria() {\n\t\treturn \"crear-categoria.xhtml\";\n\t}", "Category selectCategory(long id);", "private void toggleSubCategoryView() {\n FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) ivHookCat.getLayoutParams();\n // -1 will decrease the top margin of the hook (hide sub-category), 1 will increase it\n int hookMovDir = lp.topMargin == HOOK_TOP_MARGIN ? 1 : -1;\n toggleSubCategoryView(hookMovDir, AppConstants.CAT_BASE);\n }", "@OnClick(R.id.shop_by_category_layout)\n public void onCategoryLayoutClicked() {\n if (myListener != null) {\n myListener.changeToCategoriesMenu();\n }\n }", "@Override\n public void switchToCategoriesView() {\n this.isInCategoriesView = true;\n switchToContentView();\n ClipboardCategoriesAdapter adapter = new ClipboardCategoriesAdapter(getContext(), this::switchToDetailCategoryView);\n mRecyclerView.setAdapter(adapter);\n\n }", "public void setCategory(String category);", "public void setCategory(Category cat) {\n this.category = cat;\n }", "public static void main(String[] args){\n\t\tProfilesIni profile = new ProfilesIni();\n\t\tFirefoxProfile myprofile = profile.getProfile(\"default\");\n\t\tmyprofile.setAcceptUntrustedCertificates(true);\n\t\tmyprofile.setAssumeUntrustedCertificateIssuer(true);\n\t\tWebDriver dr = new FirefoxDriver(myprofile);\n\t\tdr.get(\"https://www.angelplastics.co.uk/\");\n\t\tdr.manage().window().maximize();\n\t\tdr.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdr.findElement(By.xpath(\".//*[@id='categories']/a[1]/div\")).click();\n\t\tList<WebElement> options = dr.findElements(By.xpath(\"html/body/div[1]/div[3]/div[1]/div[2]/div/div[3]/div[1]/div/div/div[8]/div[2]/div/a\"));\n\t\tint n=options.size();\n\t\tfor(i=1;i<=n; i++ ){\n\t\t\tString str1=\"html/body/div[1]/div[3]/div[1]/div[2]/div/div[3]/div[1]/div/div/div[8]/div[2]/div/a[\";\n\t\t\tString str2=\"]/div\";\n\t\t\tdr.findElement(By.xpath(str1+i+str2)).click();\n\t\t\tList<WebElement> suboptions =dr.findElements(By.xpath(\"html/body/div[1]/div[3]/div[1]/div[2]/div/div[3]/div[1]/div/div/div[8]/div[2]/div/a\"));\n\t\t\tint no = suboptions.size();\n\t\t\tfor(j=1; j<=no;j++){\n\t\t\t\tString str3=\"html/body/div[1]/div[3]/div[1]/div[2]/div/div[3]/div[1]/div/div/div[8]/div[2]/div/a[\";\n\t\t\t\tString str4=\"]/div/div[2]\";\n\t\t\t\tdr.findElement(By.xpath(str3+j+str4)).click();\n\t\t\t\tdr.navigate().back();\n//\t\t\t\tRandomSelection();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenu.getPopupMenu().show(menu, menu.getX()+menu.getWidth(), menu.getHeight());\n\t\t\t\tui_ShowAnimal6 animal6 = new ui_ShowAnimal6();\n\t\t\t\tsplitPane.setRightComponent(panel_1.add(animal6.getContentPane()));\n\t\t\t}", "private void goToShop() {\n shopMenu.runMenu();\n }", "@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }", "@FXML\n private String handleComboCategory(ActionEvent event)\n {\n String category;\n\n int selectedIndex = comboCategoryBox.getSelectionModel().getSelectedIndex();\n\n switch (selectedIndex)\n {\n case 0:\n category = \"blues\";\n break;\n case 1:\n category = \"hipHop\";\n break;\n case 2:\n category = \"pop\";\n break;\n case 3:\n category = \"rap\";\n break;\n case 4:\n category = \"rock\";\n break;\n case 5:\n category = \"techno\";\n break;\n case 6:\n txtOtherCategory.setVisible(true);\n category = txtOtherCategory.getText();\n break;\n default:\n throw new UnsupportedOperationException(\"Category not chosen\");\n }\n return category;\n }", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "@Override\n public void onClick(View view, int position, boolean isLongClick) {\n Intent foodListIntent = new Intent(Home.this,FoodList.class);\n // CategoryId is a key , so we just get the key of the clicked item\n foodListIntent.putExtra(\"categoryId\" , adapter.getRef(position).getKey());\n startActivity(foodListIntent);\n }", "private void setSuggestedCategory() {\n if (selectedCategoryKey != null) {\n return;\n }\n if (suggestedCategories != null && suggestedCategories.length != 0) {\n selectedCategoryKey = suggestedCategories[0].getKey();\n selectCategory.setText(suggestedCategories[0].getName());\n }\n }", "public void setCategory(Category category) {\r\n this.category = category;\r\n }", "@Override\n public void onClick(View v) {\n PopupMenu popup = new PopupMenu(MainActivity.this, frameLayoutCategories);\n\n for (int i = 0; i < categories.length; i++){\n popup.getMenu().add(0, i, 0, categories[i]);\n\n }\n\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.poupup_menu_categories, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n ((TextView)findViewById(R.id.textViewCategory)).setText(\"Category: \" + item.getTitle());\n item.setChecked(true);\n currentCategoryID = item.getItemId();\n multipleChoiceQuestion (categories[currentCategoryID], jeopardyMode);\n\n return true;\n }\n });\n\n\n\n popup.show();//showing popup menu\n }", "public static void academicClusterMenu() {\n\t\tCareerPlanningApplication.setHeader(\"CAREER PLANNING APP\");\n\t\tSystem.out.println(\"1. Add academic clusters\");\n\t\tSystem.out.println(\"2. View academic clusters\");\n\t\tSystem.out.println(\"3. Delete an academic cluster\");\n\t\tSystem.out.println(\"4. Return to Main Menu\");\n\t\tHelper.line(80, \"-\");\n\t}", "@When(\"user clicks on Careers link\")\n public void user_clicks_on_careers_link() throws InterruptedException {\n // bu.windowHandling();\n hp.search();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tcp.mostraGestioCategories();\n\t\t\t}", "public DashBoardPage NavigateToMittICA()\n{\n\tif(Action.IsVisible(Master_Guest_Mitt_ICA_Link))\n\tAction.Click(Master_Guest_Mitt_ICA_Link);\n\telse\n\t\tAction.Click(Master_SignIN_Mitt_ICA_Link);\n\treturn this;\n}", "public void selectProduct() {\n\t\tActions obj = new Actions(driver);\n\t\tobj.moveToElement(driver.findElements(By.xpath(\".//*[@id='center_column']/ul/li\")).get(0)).build().perform();\n\t\tdriver.findElement(By.xpath(\".//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]/span\")).click();\n\t}", "public void openEmployeesPage() {\n // Navigate to HumanResources > Employees through the left menu\n driver.findElement(By.cssSelector(\"div.group-items>fuse-nav-vertical-collapsable:nth-child(5)\")).click();\n driver.findElement(By.cssSelector(\"fuse-nav-vertical-collapsable:nth-child(5)>div.children>fuse-nav-vertical-item:nth-child(2)\")).click();\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "public void setCategory(Category category) {\n this.category = category;\n }", "@RequestMapping(\"\")\n\tpublic ModelAndView category(){\n\t\tJSONObject json = categoryService.getAllCategorys();\n\t\tModelAndView mv = new ModelAndView(\"category/category\");\n\t\tmv.addObject(\"categories\",json);\n\t\tmv.addObject(\"active\", \"2\");\n\t\treturn mv;\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tvalidateCategory(myCategory);\n\t\t\t\t}", "private static void moveMenu(OrganizedCategory oldParent, int index)\n {\n\t// True if the 'Cancel.' option has been selected or the category/image has been moved.\n\tboolean exit = false;\n\t// A browser for files beginning at the user's home directory.\n\tImageBrowser browser = new ImageBrowser(allOrganized);\n\t// A temporary variable for holding the option the user chooses.\n\tint userOption;\n\n\twhile(!exit)\n\t {\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Where would you like to move this category/image to?\");\n\n\t\tbrowser.view();\n\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\">>Main>Browse organized images>Move category/image:\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"1: Move category/image here.\");\n\t\tSystem.out.println(\"2: Open sub category.\");\n\t\tSystem.out.println(\"3: Open parent category.\");\n\t\tSystem.out.println(\"4: Cancel.\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.print(\"\\t>> \");\n\t\t\n\t\tswitch(getUserOption())\n\t\t {\n\t\t case(1):\n\t\t\t// Sets the parent of the image being moved to the OrganizedCategory it will be\n\t\t\t// moved to.\n\t\t\tOrganizedCategory.get(oldParent, index).setParent(browser.getCurrent());\n\t\t\t// Creates a copy of the OrganizedImage in the new location.\n\t\t\tbrowser.getCurrent().getCategory().add(OrganizedCategory.get(oldParent, index));\n\t\t\t// Deletes the OrganizedImage in the original location.\n\t\t\tOrganizedCategory.delete(oldParent, index);\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"Moved!!\");\n\t\t\texit = true;\n\t\t\tbreak;\n\t\t case(2):\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.print(\"Please enter the number of the sub category you wish to open: \");\n\t\t\tuserOption = getUserOption();\n\t\t\tif(browser.get(userOption) != null)\n\t\t\t {\n\t\t\t\tbrowser.goToSubFolder(userOption);\n\t\t\t }\n\t\t\telse\n\t\t\t {\n\t\t\t\tSystem.out.println(\"That was not a valid option, please try again:\");\n\t\t\t }\n\t\t\tbreak;\n\t\t case(3):\n\t\t\tbrowser.goToParentFolder();\n\t\t\tbreak;\n\t\t case(4):\n\t\t\texit = true;\n\t\t\tbreak;\n\t\t default:\n\t\t\tSystem.out.println(\"That was not a valid option, please try again:\");\n\t\t }\n\t }\n }", "public void createCategory(String categoryName) {\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.className(\"page-title\"))));\n Actions builder = new Actions(driver);\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCatalog\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminProducts\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCategories\")));\n builder.click(driver.findElement(By.id(\"subtab-AdminCategories\"))).perform();\n\n waitForContentLoad(\"Women\");\n WebElement creatNew = driver.findElement(By.id(\"page-header-desc-category-new_category\"));\n creatNew.click();\n WebElement newName = driver.findElement(By.id(\"name_1\"));\n newName.sendKeys(categoryName);\n WebElement saveBtn = driver.findElement(By.id(\"category_form_submit_btn\"));\n saveBtn.click();\n // TODO implement logic for new category creation\n if (categoryName == null) {\n throw new UnsupportedOperationException();\n }\n }", "public void showMemberCategoryMenu() {\n System.out.println(\"Visa lista med: \");\n System.out.println(\"\\t1. Barnmedlemmar\");\n System.out.println(\"\\t2. Ungdomsmedlemmar\");\n System.out.println(\"\\t3. Vuxenmedlemmar\");\n System.out.println(\"\\t4. Seniormedlemmar\");\n System.out.println(\"\\t5. VIP-medlemmar\");\n System.out.print(\"Ange val: \");\n }", "public void Tickets() throws InterruptedException {\n Actions actions = new Actions(driver);\n WebElement hover = driver.findElement(By.linkText(\"BILJETTER\"));\n WebElement link = driver.findElement(By.cssSelector(\"div.subMenuCategoryListContainer > ul > li > a\"));\n\n actions.moveToElement(hover)\n .moveToElement(link)\n .click()\n .build()\n .perform();\n\n WebDriverWait wait = new WebDriverWait(driver, 10);\n wait.until(new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver driver) {\n return driver.getCurrentUrl().equals(\"http://www.sf.se/biljetter/bokningsflodet/valj-forestallning/\");\n }\n });\n }", "private void changeCategory(int index){\n ListViewCategoryAdapter listViewCategoryAdapter = (ListViewCategoryAdapter) listViewCategory.getAdapter();\n listViewCategoryAdapter.setSelectedIndex(index);\n buttonCategory.setText(((Category) listViewCategoryAdapter.getItem(index)).getName());\n selectedCategoryId = ((Category) listViewCategoryAdapter.getItem(index)).getId();\n\n updateWhereItemListData();\n //Toast.makeText(getContext(), \"Tính năng chưa hoàn thiện\", Toast.LENGTH_SHORT).show();\n }", "private void CallHomePage() {\n\t\t\n\t\tfr = new FragmentCategories();\n\t\tFragmentManager fm = getFragmentManager();\n\t\tFragmentTransaction fragmentTransaction = fm.beginTransaction();\n\t\tfragmentTransaction.replace(R.id.fragment_place, fr);\n\t\tfragmentTransaction.addToBackStack(null);\n\t\tfragmentTransaction.commit();\n\n\t}", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "private void setcategoriaPrincipal(String categoriaPrincipal2) {\n\t\t\n\t}", "private void loadCategories() {\n // adapter that show data (View Holder with data )in Recycler View\n adapter=new FirebaseRecyclerAdapter<Category, CategoryViewHolder>(\n Category.class,\n R.layout.category_layout,\n CategoryViewHolder.class,\n categories) {\n @Override\n protected void populateViewHolder(CategoryViewHolder viewHolder, final Category model, int position) {\n // set data in View Holder\n viewHolder.name.setText(model.getName());\n Picasso.with(getActivity()).load(model.getImage()).into(viewHolder.image);\n // action View Holder\n viewHolder.setItemClickListener(new ItemClickListener() {\n // method that i create in interface and put it in action of click item in category view holder (to use position )\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n //get category id from adapter and set in Common.CategoryId\n Common.categoryId=adapter.getRef(position).getKey(); // 01 or 02 or 03 ..... of category\n Common.categoryName=model.getName(); // set name of category to Common variable categoryName\n startActivity(Start.newIntent(getActivity()));// move to StartActivity\n\n }\n });\n\n }\n };\n adapter.notifyDataSetChanged(); //refresh data when changed\n list.setAdapter(adapter); // set adapter\n }", "@Test\n\tpublic void handleMouseHover() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./Driver/chromedriver.exe\");\n\t\t// Open browser\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\n\t\t// Go to https://www.dell.com/en-us?~ck=mn\n\t\tdriver.get(\"https://www.dell.com/en-us?~ck=mn\");\n\t\t// Hover over Products\n\t\t// Use Actions class to hover over something\n\t\tActions action = new Actions(driver);\n\t\taction.moveToElement(driver.findElement(By.linkText(\"Products\"))).build().perform();\n\t\t// Click on the Workstations\n\t\t// Use Explicit wait on the following Element\n\t\twaitForElement(driver, 15, By.linkText(\"Workstations\"));\n\t\tdriver.findElement(By.linkText(\"Workstations\")).click();\n\n\t}", "@Override\n protected void onSelected(Category category) {\n setSelectedCategory(category);\n messageUtil.infoEntity(\"status_selected_ok\", getPart().getCategory());\n }", "public void setCategory(String category) {\r\n this.category = category;\r\n }", "@Override\n public void onItemCategoryClick(String categoryTitle) {\n Intent intent = new Intent(getContext(), ProductDetails.class);\n intent.putExtra(Constant.CATEGORY_ID_KEY, categoryTitle);\n Log.d(\"categoryTitle\",categoryTitle);\n startActivity(intent);\n\n }", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "public void selectContentCategory(WebDriver driver, String mainCat, String subCat){\n\t\t WebElement mainCategory = driver.findElement(By.id(\"edit-field-content-category-und-hierarchical-select-selects-0\"));\n\t\t Select clickDropDown = new Select(mainCategory);\n\t\t clickDropDown.selectByVisibleText(mainCat);\n\t\t \n\t\t if (! subCat.equals(\"\")) {\n\t\t\t WebDriverWait wait = new WebDriverWait(driver, 15);\n\t\t\t wait.until(ExpectedConditions.presenceOfElementLocated(By.id(\"edit-field-content-category-und-hierarchical-select-selects-1\")));\n\t\t\t WebElement subCategory = driver.findElement(By.id(\"edit-field-content-category-und-hierarchical-select-selects-1\"));\n\t\t\t clickDropDown = new Select(subCategory);\n\t\t\t clickDropDown.selectByVisibleText(subCat);\n\t\t }\n\n\t }", "public void selectContentCategory(WebDriver driver, String contentType) throws InterruptedException{\n\t\t\tWebElement dropwDownListBox = driver.findElement(By.xpath(\"//*[contains(@id,'edit-field') and contains(@id,'-content-category-und-hierarchical-select-selects-0')]\"));\n\t\t\tSelect clickThis = new Select(dropwDownListBox);\n\t\t\tThread.sleep(1000);\n\t\t clickThis.selectByVisibleText(contentType); \n\t\t\tThread.sleep(1000);\n\t }", "public void visitCashDrawer( DevCat devCat ) {}", "public void linktomenuButtonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent menuParent = FXMLLoader.load(getClass().getResource(\"customerMenu.fxml\"));\r\n Scene menuScene = new Scene(menuParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(menuScene);\r\n window.show();\r\n }", "@Test\n public void software_technology() {\n goToSoftVision();\n HomePage home = new HomePage(driver);\n home.acceptCookieMethod();\n home.hoverApproachBtn();\n\n openMenuPage(\"Guilds\");\n GuildsPage guilds = new GuildsPage(driver);\n softwareTechnologyCategoryPage soft = guilds.softTech();\n }", "@Override\n public void menuSelected(MenuEvent e) {\n \n }", "public void setCategory(Category c) {\n this.category = c;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void setCategory(String category) {\n this.category = category;\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\tJComboBox<?> CategoriesCombo = (JComboBox<?>) e.getSource();\r\n\t\tSelectedCategory = CategoriesCombo.getSelectedItem();\r\n\r\n\t}", "public String searchCategory()\n {\n logger.info(\"**** In searchCategory in Controller ****\");\n categoryList = categoryService.getCategories();\n return Constants.SEARCH_CATEGORY_VIEW;\n }", "@Override\r\n\tpublic void setSelectedItem(Object anItem) {\n c=(Category) anItem;\r\n\t}", "private static void browseOrganizedMenu(OrganizedCategory folder)\n {\n\t// True if the 'Back to 'Main' menu...' option has been selected.\n\tboolean backToMain = false;\n\t// A browser for files beginning at the user's home directory.\n\tImageBrowser browser = new ImageBrowser(folder);\n\t// A temporary variable for holding the option the user chooses.\n\tint userOption;\n\t// A temporary variable for holding the text the user enters.\n\tString userText;\n\n\twhile(!backToMain)\n\t {\n\t\tbrowser.view();\n\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\">>Main>Browse organized images:\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"1: Open image...\");\n\t\tSystem.out.println(\"2: Open sub category.\");\n\t\tSystem.out.println(\"3: Create new sub category.\");\n\t\tSystem.out.println(\"4: Open parent category.\");\n\t\tSystem.out.println(\"5: Move category/image...\");\n\t\tSystem.out.println(\"6: Remove category/image.\");\n\t\tSystem.out.println(\"7: Rename category/image.\");\n\t\tSystem.out.println(\"8: Back to 'Main' menu...\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.print(\"\\t>> \");\n\t\t\n\t\tswitch(getUserOption())\n\t\t {\n\t\t case(1):\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.print(\"Please enter the number of the image you wish to open: \");\n\t\t\tuserOption = getUserOption();\n\t\t\tif(browser.get(userOption) != null)\n\t\t\t {\n\t\t\t\tif(browser.get(userOption).isImage())\n\t\t\t\t {\n\t\t\t\t\topenImageMenu((OrganizedImage) browser.get(userOption), userOption);\n\t\t\t\t }\n\t\t\t\telse\n\t\t\t\t {\n\t\t\t\t\tSystem.out.println(\"That was not a valid option, please try again:\");\n\t\t\t\t }\n\t\t\t }\n\t\t\tbreak;\n\t\t case(2):\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.print(\"Please enter the number of the sub category you wish to open: \");\n\t\t\tuserOption = getUserOption();\n\t\t\tif(browser.get(userOption) != null)\n\t\t\t {\n\t\t\t\tbrowser.goToSubFolder(userOption);\n\t\t\t }\n\t\t\telse\n\t\t\t {\n\t\t\t\tSystem.out.println(\"That was not a valid option, please try again:\");\n\t\t\t }\n\t\t\tbreak;\n\t\t case(3):\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.print(\"Please enter the name of the new category you wish to add: \");\n\t\t\tbrowser.getCurrent().addEmptyCategory(getUserText());\n\t\t\tbreak;\n\t\t case(4):\n\t\t\tbrowser.goToParentFolder();\n\t\t\tbreak;\n\t\t case(5):\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.print(\"Please enter the number of the category/image you wish to move: \");\n\t\t\tuserOption = getUserOption();\n\t\t\tif(browser.get(userOption) != null)\n\t\t\t {\n\t\t\t\tmoveMenu(browser.getCurrent(), userOption);\n\t\t\t }\n\t\t\telse\n\t\t\t {\n\t\t\t\tSystem.out.println(\"That was not a valid option, please try again:\");\n\t\t\t }\n\t\t\tbreak;\n\t\t case(6):\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.print(\"Please enter the number of the category/image you wish to remove: \");\n\t\t\tbrowser.delete(getUserOption());\n\t\t\tSystem.out.println(\"Removed!!\");\n\t\t\tbreak;\n\t\t case(7):\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.print(\"Please enter the number of the category/image you wish to rename: \");\n\t\t\tuserOption = getUserOption();\n\t\t\tSystem.out.print(\"Please enter the new name (do not include .jpg): \");\n\t\t\tuserText = getUserText();\n\t\t\tif(browser.get(userOption) != null)\n\t\t\t {\n\t\t\t\tOrganized.rename(OrganizedCategory.get(browser.getCurrent(), userOption), userOption, userText);\n\t\t\t }\n\t\t\telse\n\t\t\t {\n\t\t\t\tSystem.out.println(\"That was not a valid option, please try again:\");\n\t\t\t }\n\t\t\tSystem.out.println(\"Renamed!!\");\n\t\t\tbreak;\n\t\t case(8):\n\t\t\tbackToMain = true;\n\t\t\tbreak;\n\t\t default:\n\t\t\tSystem.out.println(\"That was not a valid option, please try again:\");\n\t\t }\n\t }\n }", "@Test\n public void testSearchBoxCategoriesList() throws InterruptedException {\n log.info(\"Go to Homepage \" );\n log.info(\"Go to Search Box in Header \" );\n log.info(\"Write urn \" );\n Actions builder = new Actions(driver);\n WebElement searchBox = driver.findElement(By.id(\"SearchInputs\")).findElement(By.tagName(\"input\"));\n searchBox.click();\n searchBox.sendKeys(\"urn\");\n WebElement categoryResults = driver.findElement(By.partialLinkText(\"category results\"));\n List<WebElement> categoryResultsList = driver.findElement(By.className(\"categories\")).findElements(By.tagName(\"a\"));\n WebDriverWait wait = new WebDriverWait(driver, 1000);\n wait.until(ExpectedConditions.elementToBeClickable(categoryResults));\n log.info(\"Click on first result from category suggestion list\" );\n categoryResultsList.get(0).click();\n log.info(\"Confirm that the link oppened contains searched term (urn in this case ) related results.\");\n assertTrue(driver.getCurrentUrl().contains(\"urn\"));\n }", "private void selectCategory(int pos){\n\t\ttry{\n\t\t\tetCategoryName.setText(mCategories.get(pos).getTitle());\n\t\t}catch(IndexOutOfBoundsException e){\n\t\t\tetCategoryName.setText(\"\");\n\t\t\tetCategoryName.setHint(getResources().getText(R.string.name));\n\t\t}\n\t}", "@Override\n protected void populateViewHolder(CategoryViewHolder viewHolder, final Category model, int position) {\n viewHolder.name.setText(model.getName());\n Picasso.with(getActivity()).load(model.getImage()).into(viewHolder.image);\n // action View Holder\n viewHolder.setItemClickListener(new ItemClickListener() {\n // method that i create in interface and put it in action of click item in category view holder (to use position )\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n //get category id from adapter and set in Common.CategoryId\n Common.categoryId=adapter.getRef(position).getKey(); // 01 or 02 or 03 ..... of category\n Common.categoryName=model.getName(); // set name of category to Common variable categoryName\n startActivity(Start.newIntent(getActivity()));// move to StartActivity\n\n }\n });\n\n }", "public static void Goto()\n\t{\n\t\tUserLogin.Login();\n\t\t\t\t\n\t\t//Choose community\n\t\tWebElement Community= Driver.Instance.findElement(PageObjRef.CommunityTab);\n\t\tCommunity.click();\n\t\tWebElement CommunityToJoin= Driver.Instance.findElement(PageObjRef.CommunityToJoin);\n\t CommunityToJoin.click();\n\t\t\n\t}", "@Override\n public void onCategoryClicked(View itemView) {\n int position = mRecyclerView.getChildLayoutPosition(itemView);\n\n String mCategory = CategoryData.CATEGORY_LIST[position].toLowerCase();\n\n String mDifficulty = \"medium\";\n\n // select a random difficulty level\n Random random = new Random();\n switch(random.nextInt(3)) {\n case 0:\n mDifficulty = \"easy\";\n break;\n case 1:\n mDifficulty = \"medium\";\n break;\n case 2:\n mDifficulty = \"hard\";\n break;\n }\n\n // Select a random word from the assigned category and difficulty\n int resId = FileHelper.getStringIdentifier(getActivity(), mCategory + \"_\" + mDifficulty, \"raw\");\n mWord = FileHelper.selectRandomWord(getActivity(), resId);\n\n // set the edit text\n mEditText.setText(mWord);\n }", "@Test\n public void librarianSelectsDramaBookCategory(){\n driver.get(\"https://library2.cybertekschool.com/\");\n //locate and send valid email to email input bar\n driver.findElement(By.id(\"inputEmail\")).sendKeys(\"librarian21@library\");\n //locate and send valid email to password input bar\n driver.findElement(By.xpath(\"//*[@id=\\\"inputPassword\\\"]\")).sendKeys(\"Sdet2022*\");\n //press sign in button\n driver.findElement(By.cssSelector(\"button.btn.btn-lg.btn-primary.btn-block\")).click();\n //sign in complete, librarian is on homepage\n\n //librarian clicks books module\n driver.findElement(By.linkText(\"Books\")).click();\n\n WebElement bookCategories = driver.findElement(By.cssSelector(\"select#book_categories\"));\n WebElement dramaCategory = driver.findElement(By.cssSelector(\"select#book_categories>option[value='6']\"));\n Select bookCategoriesDropDown = new Select(bookCategories);\n bookCategoriesDropDown.selectByVisibleText(\"Drama\");\n assertTrue(dramaCategory.isSelected());\n\n }", "public void clickOnHome() {\n\t\twait.waitForStableDom(250);\n\t\tisElementDisplayed(\"link_home\");\n\t\twait.waitForElementToBeClickable(element(\"link_home\"));\n\t\texecuteJavascript(\"document.getElementById('doctor-home').getElementsByTagName('i')[0].click();\");\n//\t\t element(\"link_home\").click();\n\t\tlogMessage(\"user clicks on Home\");\n\t}", "void updateCategory(String category){}" ]
[ "0.66034377", "0.6270533", "0.58101547", "0.575171", "0.5655496", "0.5635773", "0.56331605", "0.5630341", "0.5624405", "0.55960476", "0.55954266", "0.5540623", "0.55304307", "0.5500015", "0.5481124", "0.546444", "0.5440942", "0.54056454", "0.54003847", "0.5387796", "0.53757435", "0.536627", "0.53498435", "0.53437966", "0.5343794", "0.5310109", "0.5306281", "0.5296142", "0.52866197", "0.5267592", "0.52667946", "0.52552307", "0.52536494", "0.52497005", "0.52226555", "0.51986563", "0.5194359", "0.51631635", "0.5146255", "0.51247996", "0.5123764", "0.51225775", "0.51110125", "0.5101068", "0.5094107", "0.5078974", "0.5077658", "0.5074402", "0.5057536", "0.5052223", "0.50385827", "0.5029403", "0.50235534", "0.5023001", "0.50189996", "0.50187707", "0.50187707", "0.50187707", "0.50187707", "0.50137717", "0.50136805", "0.49993724", "0.49927002", "0.49879387", "0.4987249", "0.4983377", "0.4979102", "0.4969259", "0.49691108", "0.49654618", "0.49643326", "0.49631253", "0.49584576", "0.4952918", "0.494993", "0.49396047", "0.49365342", "0.49339676", "0.4933396", "0.49301454", "0.49260604", "0.4919793", "0.49172196", "0.49149182", "0.49149182", "0.49149182", "0.49149182", "0.49149182", "0.49115232", "0.49098328", "0.49082083", "0.48979822", "0.48972872", "0.48957825", "0.4881643", "0.48755774", "0.48714554", "0.48714146", "0.48604193", "0.48598272" ]
0.70118076
0
verify user is on Women category page
public String verifyUserOnWomenPage(){ WebElement womenPage = driver.findElement(By.cssSelector("div[class='breadcrumb clearfix'] a[title='Dresses']")); String womenPageStatus = womenPage.getText(); return womenPageStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean veirfyUserOnSummerDressesPage(){\n WebElement page = driver.findElement(By.cssSelector(\"div[class='cat_desc']\"));\n boolean pageStatus = page.isDisplayed();\n return pageStatus;\n }", "boolean hasCategory();", "boolean hasPageCategoryId();", "@Test(suiteName = \"NowPlaying\", testName = \"Now Playing - Live - Disallowed - Category\", description = \"Validating Disallowed category\", enabled = true, groups = {\n\t\t\t\"MOBANDEVER-236:EVQAAND-229\" })\n\tpublic void verifydisallowedCategory() {\n\t\tCommon common = new Common(driver);\n\t\tCommon.log(\"Verifying Disallowed Category MOBANDEVER-236:EVQAAND-229\");\n\t\ttry {\n\t\t\tgetPageFactory().getEvehome().clickNews();\n\t\t\tcommon.scrollUntilTextExists(\"News/Public Radio\");\n\t\t\tgetPageFactory().getEvehome().clickSubCatNews();\n\t\t\tgetPageFactory().getEvehome().clickNewsChannel1();\n\t\t\tgetPageFactory().getEvehome().validateNPLScreen();\n\t\t} catch (AndriodException ex) {\n\t\t\tCommon.errorlog(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t\tAssert.fail(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t}\n\t}", "boolean hasPageCategoryDescription();", "@Override\n\tpublic void verifyCategories() {\n\t\t\n\t\tBy loc_catNames=MobileBy.xpath(\"//android.widget.TextView[@resource-id='com.ionicframework.SaleshuddleApp:id/category_name_tv']\");\n\t\tPojo.getObjSeleniumFunctions().waitForElementDisplayed(loc_catNames, 15);\n\t\tList<AndroidElement> catNames=Pojo.getObjSeleniumFunctions().getWebElementListAndroidApp(loc_catNames);\n\t\tList<String> catNamesStr=new ArrayList<String>();\n\t\t\n\t\t\n\t\tfor(AndroidElement catName:catNames)\n\t\t{\n\t\t\tcatNamesStr.add(catName.getText().trim());\n\t\t}\n\t\t\n\t\tif(catNamesStr.size()==0)\n\t\t{\n\t\tPojo.getObjUtilitiesFunctions().logTestCaseStatus(\"Verify that catgory names are correct\", false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPojo.getObjUtilitiesFunctions().logTestCaseStatus(\"Verify that catgory names are correct\", BuildSpGamePage.expectedData.get(\"Categories\").containsAll(catNamesStr));\n\n\t\t}\n\t\t}", "boolean hasHasInstitutionHomePage();", "@When(\"^user click on apparel category from home page$\")\n public void userClickOnApparelCategoryFromHomePage() {\n homePage.clickOnAppareal();\n }", "public void onCategoryClicked(String category){\n\t\tfor(int i = 0 ; i < mData.getStatistics().size(); i++){\r\n\t\t\tif(mData.getStatistics().get(i).getCategory().equals(category)){\r\n\t\t\t\tif(mData.getStatistics().get(i).getDueChallenges() == 0){\r\n\t\t\t\t\tmGui.showToastNoDueChallenges(mData.getActivity());\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Start activity challenge (learn session) with category and user \t\r\n\t\t\t\t\tNavigation.startActivityChallenge(mData.getActivity(), mData.getUser(), category);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "@Override\n\tpublic boolean shouldVisit(Page page, WebURL url) {\n\t\tString href = url.getURL().toLowerCase();\n\t\treturn !FILTERS.matcher(href).matches()\n\t\t\t\t&& (href.startsWith(\"http://www.amarujala.com/education\"));\n\t\t\t\t/*\n\t\t\t\t|| href.startsWith(\"http://www.amarujala.com/crime\"));\n\t\t\t\t*/\n\t}", "public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }", "public abstract boolean Verifypage();", "@Test\n public void testCategoryAccessControl() {\n // set permissions\n PermissionData data = new PermissionData(true, false, false, true);\n pms.configureCategoryPermissions(testUser, data);\n\n // test access control\n assertTrue(accessControlService.canViewCategories(), \"Test user should be able to view categories!\");\n assertTrue(accessControlService.canAddCategory(), \"Test user should be able to create categories!\");\n assertFalse(accessControlService.canEditCategory(category), \"Test user should not be able to edit category!\");\n assertFalse(accessControlService.canRemoveCategory(category), \"Test user should not be able to remove category!\");\n }", "public void navigateToWomanCategory(){\n a = new Actions(driver);\n a.moveToElement(driver.findElement(By.cssSelector(\"div[id ='block_top_menu'] a[title='Women']\"))).build().perform();\n driver.findElement(By.cssSelector(\"ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Casual Dresses'] \")).click();\n }", "boolean hasMobileAppCategoryConstant();", "protected void assertUtilisateurActif() {\n\t\t assertTrue( ((DoliUserPage)_currentPage).isUtilisateurActif());\n\t\t}", "private void showCategoryMenu() {\n if(CategoryMenu == null) {\n CategoryMenu = new PopupMenu(getActivity(), CategoryExpand);\n CategoryMenu.setOnMenuItemClickListener(this);\n\n MenuInflater inflater = CategoryMenu.getMenuInflater();\n inflater.inflate(R.menu.category_menu, CategoryMenu.getMenu());\n }\n\n if(Equival.isChecked()){\n Toaster toaster = new Toaster(getContext());\n toaster.standardToast(getText(R.string.err_modify_category).toString());\n }\n else CategoryMenu.show();\n setFromCategoryTitleToMenu();\n }", "public boolean verifyInProductPage() {\n\t\tString ExpMsg = \"PRODUCTS\";\t// confirmation msg\n\t\tString ActMsg = Title.getText();\n\t try {\n\t \twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[@id='inventory_container']\")));\n\t\t\tAssert.assertEquals(ActMsg, ExpMsg);\n\t\t\ttest.log(LogStatus.PASS, \"Successful assert we have landed on PRODUCTS page\");\t\n\t }\n\t catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Login failed? Not leading to PRODUCTS page?\");\n\t\t\tAssert.fail(\"Login failed? Not leading to PRODUCTS page?\");\n\t\t\treturn false;\n\t }\n\t\tcatch (Throwable e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Not on PRODUCTS page?!\");\n\t\t\tAssert.fail(\"Not in PRODUCTS page\");\n\t\t\treturn false; \n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public void verifyUserIsOnHomepage()\n {\n asserttextmessage(getTextFromElement(_welcomeTileText),expected,\"user on home page\");\n\n }", "public abstract boolean checkPolicy(User user);", "@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}", "public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}", "public String redirectCrearCategoria() {\n\t\treturn \"crear-categoria.xhtml\";\n\t}", "@Test\n\tpublic void checkValidLoginCommissioner() {\n\t\ttest = report.createTest(\"CheckValidLoginCommissioner\");\n\t\t\n\t\tcommissionerhomepage = loginpage.successfullLoginCommissioner(UserContainer.getCommissioner());\n\t\ttest.log(Status.INFO, \"Signed in\");\n\t\t\n\t\tAssert.assertEquals(commissionerhomepage.getUserNameText(), UserContainer.getCommissioner().getLogin());\n\t\ttest.log(Status.PASS, \"Checked if the right page is opened.\");\n\t\t\n\t\tloginpage = commissionerhomepage.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t}", "@Given(\"^Registered user is on the main page of website$\")\n public void registeredUserIsOnTheMainPageOfWebsite() {\n }", "Integer checkCategory(Integer choice, \n List<DvdCategory> categories) throws DvdStoreException;", "private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }", "boolean hasDomainCategory();", "public abstract boolean isLoggedIn(String url);", "private boolean isMenuPage(Document parsed) {\n boolean isCorrect = false;\n Element heading = parsed.getElementById(\"heading\");\n if (heading == null) {\n return false;\n }\n if (heading.text().equals(DirectoryParser.HEADING_TEST_STRING)) {\n isCorrect = true;\n }\n Elements selected = parsed.getElementsByTag(\"article\");\n if (selected.size() != 1) {\n return false;\n } else {\n Attributes articleAttributes = selected.first().attributes();\n if (articleAttributes.size() != 2) {\n return false;\n }\n if (articleAttributes.asList().contains(new Attribute(\"id\", \"main\"))) {\n if ((articleAttributes.asList().contains(new Attribute(\"class\", \"wholePage\")))) {\n isCorrect = true;\n }\n }\n }\n Element menu = parsed.getElementById(\"sixItems\");\n if (menu == null) {\n return false;\n }\n return isCorrect;\n }", "public boolean searchCategory(Object bean, ValidatorAction va, Field field,\r\n\t\t\tActionMessages messages, HttpServletRequest request) {\r\n\t\tboolean condition = true;\r\n\t\t\r\n\t\tMemberForm memForm = (MemberForm)bean;\r\n\t\tString searchCategory = StringUtil.safeString(memForm.getSearchCategory());\r\n\t\tString userName = StringUtil.safeString(memForm.getMemberUserName());\t\t\r\n\t\tString firstName = StringUtil.safeString(memForm.getFirstName());\r\n\t\tString lastName = StringUtil.safeString(memForm.getLastName());\r\n\t\tString dorm = StringUtil.safeString(memForm.getDormitoryId());\r\n\t\tString gender = StringUtil.safeString(memForm.getGender());\r\n\t\tString yearIn = StringUtil.safeString(memForm.getYearIn());\r\n\t\tString yearOut = StringUtil.safeString(memForm.getYearOut());\r\n\t\tString marriageName = StringUtil.safeString(memForm.getLastName());\r\n\t\tString nickName = StringUtil.safeString(memForm.getNickName());\r\n\t\tString maidenName = StringUtil.safeString(memForm.getMaidenName());\r\n\r\n\t\tif (searchCategory.equalsIgnoreCase(BaseConstants.FULL_SEARCH)) {\r\n\t\t\tif (firstName.length() == 0 && lastName.length() == 0\r\n\t\t\t\t\t&& dorm.length() == 0 && gender.length() == 0\r\n\t\t\t\t\t&& yearIn.length() == 0 && yearOut.length() == 0\r\n\t\t\t\t\t&& marriageName.length() == 0 && nickName.length() == 0/*\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * maidenName.length() ==\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */) {\r\n\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.FIRST_NAME)) {\r\n\t\t\tif (firstName.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.USERNAME)) {\r\n\t\t\tif (userName.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t}else if (searchCategory.equalsIgnoreCase(BaseConstants.LAST_NAME)) {\r\n\t\t\tif (lastName.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.DORMITORY)) {\r\n\t\t\tif (dorm.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.YEAR_IN)) {\r\n\t\t\tif (yearIn.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.YEAR_OUT)) {\r\n\t\t\tif (yearOut.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.NICK_NAME)) {\r\n\t\t\tif (nickName.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.MARRIED_NAME)) {\r\n\t\t\tif (marriageName.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.MAIDEN_NAME)) {\r\n\t\t\tif (maidenName.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t} else if (searchCategory.equalsIgnoreCase(BaseConstants.GENDER)) {\r\n\t\t\tif (gender.length() == 0) {\r\n\t\t\t\tcondition = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!condition) {\r\n\t\t\tmessages.add(field.getKey(), Resources.getActionMessage(request,\r\n\t\t\t\t\tva, field));\r\n\t\t}\r\n\r\n\t\treturn messages.isEmpty();\r\n\t}", "@Given(\"User is on the HomePage\")\r\n\tpublic void user_is_on_the_home_page() \r\n\t{\n\t driver.get(\"https://lkmdemoaut.accenture.com/TestMeApp/fetchcat.htm\");\r\n\t driver.findElement(By.linkText(\"SignIn\")).click();\r\n\t \r\n\t WebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name(\"userName\"))));\r\n\t \r\n\t driver.findElement(By.id(\"userName\")).sendKeys(\"Lalitha\");\r\n\t driver.findElement(By.id(\"password\")).sendKeys(\"password123\");\r\n\t driver.findElement(By.name(\"Login\")).click();\r\n\t}", "public boolean canCreateSnippet(Session session, Category category);", "public void checkAuthority() {\n }", "public boolean canEditCategory(Session session, Category category);", "public boolean shouldLogIn() {\n // Check if the page requires a login\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return true;\n }\n HashMap inputParameters = (HashMap) session.getAttribute(\"_inputs\");\n String command = (String) inputParameters.get(\"command\");\n if (_unrestrictedPages.contains(\"*\") ||\n _unrestrictedPages.contains(command) ||\n (command != null && command.startsWith(\"_\"))) {\n return false;\n }\n \n // Check if the user is logged in\n return !getBoolProperty(getSessionId());\n }", "boolean hasProductBiddingCategoryConstant();", "private static Boolean isAuthorised(Page page, List<GrantedAuthority> userAuthorities ) {\n if ( page.getAllowedRoles().size() == 0 ) {\n return true;\n }\n \n for ( GrantedAuthority role : userAuthorities ) {\n for ( String requiredRole : page.getAllowedRoles() ) {\n if ( role.getAuthority().equals(requiredRole) ) {\n return true;\n }\n }\n }\n return false;\n }", "@Given(\"^user is on the main page of website$\")\n public void userIsOnTheMainPageOfWebsite() {\n }", "public void verifyOnDashboardPage() {\n verifyUserLoggedIn.waitForState().enabled(30);\n verifyUserLoggedIn.assertContains().text(\"Dev Links\");\n }", "public boolean isCat() {\r\n\t\tboolean isCat = false;\r\n\r\n\t\tif (numOfLeg == 4 && mammal == true && sound.equals(\"meow\")) {\r\n\r\n\t\t\tisCat = true;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tisCat = false;\r\n\t\t}\r\n\r\n\t\treturn isCat;\r\n\t}", "public void VerifyMainMenuItems() {\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Dashboard);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Initiatives);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_LiveMediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_MediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Audiences);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Offers);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_CreativeAssets);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Reports);\n\t}", "public boolean hasPageCategoryId() {\n return pageCategoryId_ != null;\n }", "private boolean canView(final AbstractItem item) throws AccessDeniedException {\n\t\tif (item.isRssAllowed())\n\t\t\treturn true;\n\t\tList<Subscriber> subscribers = Lists.newArrayList(subscriberRepository.findAll(SubscriberPredicates.onCtx(item\n\t\t\t\t.getContextKey())));\n\t\t// TODO we consider that all items have targets directly on\n\t\t// for targets defined only on classification a check will be needed\n\t\tif (subscribers.isEmpty()) {\n\t\t\tlog.trace(\"Subscribers on item {} are empty -> true\", item.getContextKey());\n\t\t\treturn true;\n\t\t}\n\t\tfinal CustomUserDetails user = SecurityUtils.getCurrentUserDetails();\n\t\tif (user == null) {\n\t\t\tlog.trace(\"user is not authenticated -> throw an error to redirect on authentication\");\n\t\t\tthrow new AccessDeniedException(\"Access is denied to anonymous !\");\n\t\t} else if (user.getRoles().contains(AuthoritiesConstants.ADMIN)\n\t\t\t\t|| user.getUser().getLogin().equalsIgnoreCase(item.getCreatedBy().getLogin())\n\t\t\t\t|| user.getUser().getLogin().equalsIgnoreCase(item.getLastModifiedBy().getLogin())) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal UserDTO userDTO = user.getUser();\n\t\tif (userDTO != null) {\n\t\t\tList<String> groups = null;\n\t\t\tif (userDTO.getAttributes() != null) {\n\t\t\t\tgroups = userDTO.getAttributes().get(externalUserHelper.getUserGroupAttribute());\n\t\t\t}\n\t\t\tfor (Subscriber subscriber : subscribers) {\n\t\t\t\tlog.trace(\"Check if {} is in {}\", userDTO, subscriber);\n\t\t\t\tfinal SubjectKeyExtended subject = subscriber.getSubjectCtxId().getSubject();\n\t\t\t\tswitch (subject.getKeyType()) {\n\t\t\t\tcase GROUP:\n\t\t\t\t\tif (groups == null || groups.isEmpty()) {\n\t\t\t\t\t\tlog.trace(\"The user doesn't have a group -> break loop\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// test on startWith as some groups in IsMemberOf has only a part the\n\t\t\t\t\t// real group name.\n\t\t\t\t\tfor (String val : groups) {\n\t\t\t\t\t\tif (val.startsWith(subject.getKeyValue())) {\n\t\t\t\t\t\t\tlog.trace(\"Check if the user group {} match subscriber group {} -> return true\", val,\n\t\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON:\n\t\t\t\t\tif (subject.getKeyValue().equalsIgnoreCase(userDTO.getLogin())) {\n\t\t\t\t\t\tlog.trace(\"Check if the user key {} match subscriber key {} -> true\", userDTO.getLogin(),\n\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON_ATTR:\n\t\t\t\t\tif (subject.getKeyAttribute() != null\n\t\t\t\t\t\t\t&& userDTO.getAttributes().containsKey(subject.getKeyAttribute())\n\t\t\t\t\t\t\t&& userDTO.getAttributes().get(subject.getKeyAttribute()).contains(subject.getKeyValue())) {\n\t\t\t\t\t\tlog.trace(\"Check if the user attribute {} with values {} contains value {} -> true\",\n\t\t\t\t\t\t\t\tsubject.getKeyAttribute(), userDTO.getAttributes().get(subject.getKeyAttribute()),\n\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON_ATTR_REGEX:\n\t\t\t\t\tif (subject.getKeyAttribute() != null\n\t\t\t\t\t\t\t&& userDTO.getAttributes().containsKey(subject.getKeyAttribute())) {\n\t\t\t\t\t\tfor (final String value : userDTO.getAttributes().get(subject.getKeyAttribute())) {\n\t\t\t\t\t\t\tif (value.matches(subject.getKeyValue())) {\n\t\t\t\t\t\t\t\tlog.trace(\"Check if the user attribute {} with values {} match regex {} -> true\",\n\t\t\t\t\t\t\t\t\t\tsubject.getKeyAttribute(),\n\t\t\t\t\t\t\t\t\t\tuserDTO.getAttributes().get(subject.getKeyAttribute()), subject.getKeyValue());\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Warning Subject Type '\" + subject.getKeyType()\n\t\t\t\t\t\t\t+ \"' is not managed\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlog.trace(\"End of all checks -> false\");\n\t\treturn false;\n\t}", "@Test\r\n\t @Given(\"the application is in Post Free Ad Form Page\")\r\n\t public void the_application_is_in_Post_Free_Ad_Form_Page() {\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://www.quikr.com/pets/post-classifieds-ads+allindia?postadcategoryid=1392\");\r\n\t }", "boolean canCrit();", "@Given(\"^The user is in the login page$\")\n\tpublic void the_user_is_in_the_login_page() throws Throwable {\n\t\tChrome_Driver();\n\t\tlpw =new Login_Page_WebElements();\n\t\tlpw.open_orange_hrm();\n\t}", "public void ValidateProductSearchIsSuccessfull(){\n\t if (driver.findElement(search_refinement_categories_segment).isDisplayed()){\n\t Assert.assertTrue(true);\n\t logger.info(\"Search Page is displayed because refinement category is displayed\");\n\t }\n\t else{\n\t logger.fatal(\"Search Page is not displayed because refinement category is not displayed\");\n\t Assert.fail(\"Search Page is not displayed because refinement category is not displayed\");\n\t }\n\t }", "boolean getPageCategoryIdNull();", "@Override\n public Boolean isCollegeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.COLLEGE);\n }", "@NotNull\n boolean isTrustedWholeLand();", "boolean hasUserManaged();", "protected boolean loginRequiredForPage(RequestContext context, HttpServletRequest request, Page page)\r\n {\r\n boolean login = false;\r\n User user = context.getUser();\r\n switch (page.getAuthentication())\r\n {\r\n case guest:\r\n {\r\n login = (user == null);\r\n break;\r\n }\r\n \r\n case user:\r\n {\r\n login = (user == null || AuthenticationUtil.isGuest(user.getId()));\r\n break;\r\n }\r\n \r\n case admin:\r\n {\r\n login = (user == null || !user.isAdmin());\r\n if (login)\r\n {\r\n // special case for admin - need to clear user context before\r\n // we can login again to \"upgrade\" our user authentication level\r\n AuthenticationUtil.clearUserContext(request);\r\n }\r\n break;\r\n }\r\n }\r\n return login;\r\n }", "@Given(\"^User is on Login Page$\")\n\tpublic void userIsOnLoginPage() throws Throwable {\n\t\tassertTrue(isElementPresent(driver, By.id(\"new_user\")));\n\t}", "@Then(\"^user check is logged in$\")\n public void check_user_logged(){\n log.info(\"try to check if user is logged in\");\n String linkSignOut = pageLogin.getLinkSignOut().getText();\n Assert.assertTrue(linkSignOut.equals(\"Sign out\"), \"There is no visible link sign out\");\n String linkUserName = pageLogin.getLinkUserFullname().getText();\n Assert.assertTrue(linkUserName.equals(\"Antoni Giez\"));\n log.info(\"user is logged in, username - \" + linkUserName);\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateCheckboxField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the whether error message is getting displayed when the user doesnot marks Terms and conditions check box \"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateCheckboxTermsAndCnds(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "protected void validateCategory(Category category) throws WikiException {\r\n\t\tcheckLength(category.getName(), 200);\r\n\t\tcheckLength(category.getSortKey(), 200);\r\n\t}", "public void Senority(){\r\n\t\t\r\n\t\tif (age >= 65){\r\n\t\t\tSystem.out.println(\"\\nI'm a senior citizen\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"\\nI'm not old enough to be classified as a senior by Medicare!\");\r\n\t\t}\r\n\t}", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "@Then(\"I land on checkboxradio page\")\n public void i_land_on_checkboxradio_page() {\n System.out.println(\"checkbox landing page\");\n }", "@Then(\"User should be on product page\")\r\n\tpublic void user_should_be_on_product_page() \r\n\t{\n\t expected = \"Search\";\r\n\t \r\n\t String URL = driver.getCurrentUrl();\r\n\t if(URL.contains(expected))\r\n\t {\r\n\t \tSystem.out.println(\"TEST CASE 3 - PASSED\");\r\n\t }\r\n\t}", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "private void checkToLogout() {\n logout();\n checkToHome();\n drawViewSideMenu();\n }", "public void verifyManageProfileLink() {\n profileLink.assertState().enabled();\n profileLink.assertContains().text(\"Manage your user profile\");\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Intent intentPurchase = new Intent(MonitorActivity.this, SalesActivity.class);\n if (mAuth.getCurrentUser() != null ) {\n if (item.getItemId() == R.id.menuLogout) {\n mAuth.signOut();\n\n } else if (item.getItemId() == R.id.menuMonitor) {\n Toast.makeText(this, \"You are in Monitor Page Already\", Toast.LENGTH_SHORT).show();\n\n } else if (item.getItemId() == R.id.menuPurchase) {\n startActivity(intentPurchase);\n\n }\n } else {\n Toast.makeText(this, \"Nobody Logged In\", Toast.LENGTH_SHORT).show();\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "public boolean isMenor() {\r\n\t\treturn edad < LIMITE_EDAD;\r\n\t}", "@Given(\"^user is on the login page$\")\n public void userIsOnTheLoginPage() throws Throwable {\n }", "@Test\n public void software_technology() {\n goToSoftVision();\n HomePage home = new HomePage(driver);\n home.acceptCookieMethod();\n home.hoverApproachBtn();\n\n openMenuPage(\"Guilds\");\n GuildsPage guilds = new GuildsPage(driver);\n softwareTechnologyCategoryPage soft = guilds.softTech();\n }", "public static void eligibleToVote (int age, boolean isUSCitizen) {\n if(age>=21 && isUSCitizen){\n System.out.println(\"Eligible to vote\");\n }\n else{\n System.out.println(\"Not eligible to vote\");\n }\n }", "public abstract boolean isLoggedIn();", "private boolean validateCyl(int inCyl)\n {\n return ( (inCyl >= 2) && (inCyl <= 20) );\n }", "boolean hasForumCategoryId();", "public boolean isAllowedEnterSection(String section)\r\n {\r\n Identity userIdentity = securityService.findLoggedInIdentity();\r\n if (section.equals(SECTION_PILOT)) return rolesContainRole(userIdentity, \"PILOT\");\r\n if (section.equals(SECTION_GENERAL)) return rolesContainRole(userIdentity, \"GENERAL\");\r\n if (section.equals(SECTION_ADMIN)) return rolesContainRole(userIdentity, \"ADMIN\");\r\n return false;\r\n }", "@Override\n\tpublic boolean isVeifyUser(Lt_User user) throws Lt_Blog_Exception {\n\t\treturn false;\n\t}", "public void showMemberCategoryMenu() {\n System.out.println(\"Visa lista med: \");\n System.out.println(\"\\t1. Barnmedlemmar\");\n System.out.println(\"\\t2. Ungdomsmedlemmar\");\n System.out.println(\"\\t3. Vuxenmedlemmar\");\n System.out.println(\"\\t4. Seniormedlemmar\");\n System.out.println(\"\\t5. VIP-medlemmar\");\n System.out.print(\"Ange val: \");\n }", "@Step\n public void assertContactUs(){\n contactusPages.assertContactUs();\n }", "private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }", "public boolean hasPageCategoryId() {\n return pageCategoryIdBuilder_ != null || pageCategoryId_ != null;\n }", "public boolean isCreateRight() {\r\n if (getUser() != null) {\r\n return getUser().hasPermission(\"/vocabularies\", \"c\");\r\n }\r\n return false;\r\n }", "@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "boolean restrictCategory(){\n\n\n if((!top.isEmpty()||!bottom.isEmpty())&&!suit.isEmpty()){\n Toast.makeText(this, \"상의/하의와 한벌옷은 동시에 설정할 수 없습니다.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n\n\n detail_categories = new ArrayList<>(Arrays.asList(top_detail,bottom_detail,suit_detail,\n outer_detail,shoes_detail,bag_detail,accessory_detail));\n\n for (int kindNum=0; kindNum<7; kindNum++){\n String category = categories.get(kindNum); //해당 종류(ex.상의)에 설정된 카테고리명 받아옴\n String kind = Utils.getKey(Utils.Kind.kindNumMap,kindNum); //종류명 받아옴\n\n if(!category.isEmpty()){ //카테고리가 설정 되어있다면\n String detail_category = detail_categories.get(kindNum); //디테일 카테고리 받아옴\n Iterator<ClothesVO> cloListIter = clothesList.iterator();\n int remain_items=0;\n\n if(detail_category.isEmpty()){ //카테고리만 설정되어 있다면\n while (cloListIter.hasNext()) {\n ClothesVO clothes = cloListIter.next();\n String cloKind = clothes.getKind();\n if(cloKind.equals(kind)){\n if(!clothes.getCategory().equals(category))\n cloListIter.remove(); //해당 종류에 해당 카테고리가 아닌 옷들을 제거\n else\n remain_items+=1; //제거되지 않은 옷\n }\n\n if(kindNum == Utils.Kind.TOP || kindNum == Utils.Kind.BOTTOM){\n if(\"한벌옷\".equals(cloKind))\n cloListIter.remove();\n }else if(kindNum == Utils.Kind.SUIT){\n if(\"상의\".equals(cloKind) || \"하의\".equals(cloKind))\n cloListIter.remove(); //제거\n }\n }\n }else{ //디테일 카테고리도 설정되어 있다면\n while (cloListIter.hasNext()) {\n ClothesVO clothes = cloListIter.next();\n String cloKind = clothes.getKind();\n if(cloKind.equals(kind)){\n if(!clothes.getDetailCategory().equals(detail_category))\n cloListIter.remove();//해당 종류에 해당 세부 카테고리가 아닌 옷들을 제거\n else\n remain_items+=1; //제거되지 않은 옷\n }\n\n if(kindNum == Utils.Kind.TOP || kindNum == Utils.Kind.BOTTOM){\n if(\"한벌옷\".equals(cloKind))\n cloListIter.remove();\n }else if(kindNum == Utils.Kind.SUIT){\n if(\"상의\".equals(cloKind) || \"하의\".equals(cloKind))\n cloListIter.remove(); //제거\n }\n }\n }\n\n if(remain_items==0){\n if(!detail_category.isEmpty()){\n category = detail_category;\n }\n\n// if(recommendedDCate!=null ){\n// List<String>recommendedDCateArray = Arrays.asList(recommendedDCate);\n// if(!recommendedDCateArray.contains(category)){\n// Toast.makeText(this, \"해당 날씨에 맞지 않는 <\"+category+\"> 카테고리가 설정에 포함되어 있습니다.\", Toast.LENGTH_LONG).show();\n// return false;\n// }\n// }\n\n Toast.makeText(this, \"설정한 <\"+category+\"> 카테고리의 옷이 없거나 해당 날씨에 맞지 않습니다. \\n더 많은 옷을 추가해보세요.\", Toast.LENGTH_LONG).show();\n return false;\n }\n }\n }\n\n return true;\n }", "boolean hasPage();", "boolean hasPage();", "public boolean hasPageCategoryDescription() {\n return pageCategoryDescriptionBuilder_ != null || pageCategoryDescription_ != null;\n }", "@Given(\"^user is logged in My Store$\")\n public void userIsLoggedInMyStore() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n // Maximize the browser window\n driver.manage().window().maximize();\n\n //login correctly to my store\n driver.get(\"https://prod-kurs.coderslab.pl/index.php?controller=authentication&back=my-account\");\n loginPage = new LoginPage(driver);\n loginPage.loginAs(EMAIL, PASSWORD);\n Assert.assertEquals(LOGGED_USER, loginPage.getLoggedUsername());\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifySuperUserallaccountsConfirmationPageNavigation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether view name field is prepopulated as All accounts for super user\"); \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes()\n\t\t.EnterValid_SuperUserdata(userProfile)\t\n\t\t.AddNewUserNavigationVerification() \n\t\t.UserConfirmationPageNavigations(); \t \n\n\t}", "private boolean isInCategory(Location location, List<String> choosenCategories) {\n for(String category : choosenCategories) {\n if(location.getSubCategory().equals(category) || location.getSubCategory() == category)\n return true;\n }\n return false;\n }", "@Test\r\n\tpublic void testContestant_Page() {\r\n\t\tnew Contestant_Page(myID, myEntryData);\r\n\t\t\r\n\t}", "public boolean verifyHomePageDisplayed(){\r\n\t\tWebDriver driver = SeleniumDriver.getInstance().getWebDriver();\r\n\t\tWebElement body;\r\n\t\ttry{\r\n\t\t\tbody = driver.findElement(By.tagName(\"body\"));\r\n\t\t\tif(body.getAttribute(\"class\").contains(\"home page\")){\r\n\t\t\t\tmyAssert.setGblPassFailMessage(\"pass\", \"UpTake home page is displayed\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tmyAssert.setGblPassFailMessage(\"fail\", \"UpTake home page is not displayed\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t return true;\r\n\t}", "private boolean isAuthorized() {\n return true;\n }", "@Test(priority = 28)\r\n\tpublic void removalUserLinkCheck() {\r\n\tAssert.assertEquals(mainPage.removalUserLinkCheck(), true);\r\n\t}", "public void testUserIsBlogContributor() {\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1\");\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"user1\"));\n assertFalse(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"user2\"));\n }", "public boolean VerifyOrderConfirmation_MyStoreSection() {\n\t\t\tboolean flag = false;\n\t\t\t\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyMyStoreSection\", \"MyStoreSectionIsDisplayed\");\n\t\t }else{extentLogs.fail(\"VerifyMyStoreSection\", \"MyStoreSectionIsNotDisplayed\");}\n\t\t\t\n\t\t\treturn flag;\n\t\t}", "@Test\n\tpublic void testGetSubCategoryL2() {\n\t\tString subCategoryL2 = rmitAnalyticsModel.getSubCategoryL2();\n\t\tAssert.assertNotNull(subCategoryL2);\n\t\tAssert.assertEquals(\"rmit.html\", subCategoryL2);\n\t}", "public void validateCategory (String category){\n boolean isValid = category != null && !category.isEmpty();\n setDescriptionValid(isValid);\n }", "public boolean validateCategory(String item_category) {\r\n\t\tCategory[] category = Category.values();\r\n\t\tfor (Category c : category) {\r\n\t\t\tString s = c.toString();\r\n\t\t\tif (s.equalsIgnoreCase(item_category)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public void verifySurveyPage(String vertical) {\n String currentURL = getWebdriverInstance().getCurrentUrl();\n if (!currentURL.contains(vertical + \"/survey\") || !currentURL.contains(\"isMobileFullSite=true\")) {\n throw new org.openqa.selenium.NotFoundException(\"Was expecting to be on \" + vertical + \" survey page\" +\n \" but was on\" + currentURL);\n }\n\n }", "public boolean findNewCategory(String value) {\n Boolean isCheckCategory = null;\n waitForClickableOfElement(categoryDropdownEle, \"CategoryDropdown\");\n waitForJSandJQueryToLoad();\n clickElement(categoryDropdownEle, \"CategoryDropdown\");\n for (WebElement tdElement : tableOfCategoryDropdown) {\n String strSearchValue = null;\n try {\n waitForVisibleElement(tdElement, \"Get category name in list\");\n strSearchValue = tdElement.getText();\n } catch (Exception ex) {\n }\n getLogger().info(\"SearchValue = \" + strSearchValue);\n if (strSearchValue.equals(value)) {\n isCheckCategory = true;\n //Click anywhere to exit vefify\n eleAuvenirIncTxt.click();\n break;\n } else {\n isCheckCategory = false;\n }\n }\n getLogger().info(\"isCheckCategory is: \" + isCheckCategory);\n return isCheckCategory;\n }", "private void checkRol(HttpSession session){\n UserDetails user = (UserDetails) session.getAttribute(\"user\");\n if(!user.getRol().equals(\"Company\")){\n System.out.println(\"El usuario no puede acceder a esta pagina con este rol\");\n throw new MajorsACasaException(\"No tens permisos per accedir a aquesta pàgina. \" +\n \"Has d'haver iniciat sessió com a Company per a poder accedir-hi.\",\"AccesDenied\",\"../\"+user.getMainPage());\n }\n }" ]
[ "0.5967759", "0.589293", "0.58871514", "0.5714973", "0.5685913", "0.56765604", "0.5595889", "0.54782194", "0.53701156", "0.5344278", "0.5293533", "0.527103", "0.5246506", "0.51812655", "0.51700634", "0.51383996", "0.5118221", "0.51129407", "0.51102895", "0.510214", "0.5078099", "0.50580025", "0.5056889", "0.50411004", "0.5024359", "0.5022586", "0.5022376", "0.50050145", "0.5003565", "0.49920362", "0.4980552", "0.49688047", "0.49656388", "0.49504197", "0.49377835", "0.493689", "0.49152339", "0.49065268", "0.48719627", "0.4871844", "0.48663998", "0.48590043", "0.48519543", "0.48470432", "0.4844779", "0.48417264", "0.48376015", "0.483175", "0.48290014", "0.48253196", "0.4822406", "0.48213443", "0.4817526", "0.48157305", "0.48137662", "0.48119766", "0.47985628", "0.47926784", "0.47926226", "0.47890684", "0.47874928", "0.47751346", "0.4769655", "0.4760559", "0.47540066", "0.47539845", "0.47536153", "0.47486648", "0.47322804", "0.47302714", "0.4720541", "0.4713159", "0.4708637", "0.47079012", "0.47052717", "0.47035852", "0.46935165", "0.46908543", "0.46904266", "0.46828285", "0.46633416", "0.46605438", "0.46603212", "0.46603212", "0.46582168", "0.4654814", "0.4652158", "0.46480635", "0.46470845", "0.464674", "0.46461535", "0.46443024", "0.4643123", "0.46334735", "0.46310073", "0.46271095", "0.4624075", "0.4623534", "0.4622876", "0.4617416" ]
0.5685249
5
enter a product type in search field user should be able to enter a product & search using search field
public void searchProduct(String product){ driver.findElement(By.id("search_query_top")).sendKeys(product); List<WebElement> options = driver.findElements(By.className("ac_results")); for(WebElement option:options){ if(option.getText().equalsIgnoreCase("printed dress")){ option.click(); break; } } driver.findElement(By.name("submit_search")).click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void search(String product) {\n // ..\n }", "public void searchProd(){\n\t\t\n\t\t// STEP 4:-\n\t\t// Enter 'mobile' in search bar.\n\t\tWebElement search = driver.findElement(By.name(\"q\"));\n\t\tsearch.sendKeys(\"mobiles\");\n\t\tsearch.sendKeys(Keys.ENTER);\n\t\tSystem.out.println(\"Enter name successfully\");\n\t\t\t\t\t\n\t\t// Click on search icon.\n\t\t//WebElement searchClick = driver.findElement(By.className(\"L0Z3Pu\"));\n\t\t//searchClick.click();\n\t\t//System.out.println(\"clicked search button successfully\");\n\t}", "public void enterProduct(String product) {\n\n\t\tdriver.findElement(amazonSearchTextBox).sendKeys(product);\n\t}", "@When(\"User searchs for {string}\")\r\n\tpublic void user_searchs_for(String product) \r\n\t{\n\t driver.findElement(By.name(\"products\")).sendKeys(product);\r\n\t}", "private static void searchForItem() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println(\" Please type your search queries\");\r\n\t\tSystem.out.println();\r\n\t\tString choice = \"\";\r\n\t\tif (scanner.hasNextLine()) {\r\n\t\t\tchoice = scanner.nextLine();\r\n\t\t}\r\n\t\t//Currently only supports filtering by name\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" All products that matches your search are as listed\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Id|Name |Brand |Price |Total Sales\");\r\n\t\tint productId = 0;\r\n\t\tfor (Shop shop : shops) {\r\n\t\t\tint l = shop.getAllSales().length;\r\n\t\t\tfor (int j = 0; j < l; j++) {\r\n\t\t\t\tif (shop.getAllSales()[j].getName().contains(choice)) {\r\n\t\t\t\t\tprintProduct(productId, shop.getAllSales()[j]);\r\n\t\t\t\t}\r\n\t\t\t\tproductId++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void handleSearchProducts()\n {\n int searchProductID;\n Product searchedProduct;\n ObservableList<Product> searchedProducts;\n if (!productSearchTextField.getText().isEmpty())\n {\n // Clear selection from table\n productTable.getSelectionModel().clearSelection();\n\n try {\n // First try to search for part ID\n searchProductID = Integer.parseInt(productSearchTextField.getText());\n searchedProduct = this.inventory.lookupProduct(searchProductID);\n if (searchedProduct != null)\n productTable.getSelectionModel().select(searchedProduct);\n else // if ID parsed and not found\n throw new Exception(\"Item not found\");\n\n } catch (Exception e) {\n // If ID cannot be parsed, try to search by name\n searchedProducts = this.inventory.lookupProduct(productSearchTextField.getText());\n\n if (searchedProducts != null && searchedProducts.size() > 0)\n {\n // If product search yields results\n searchedProducts.forEach((product -> {\n productTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n productTable.getSelectionModel().select(product);\n }));\n }\n else\n { // If no products found alert user\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"No product was found!\");\n alert.setHeaderText(\"No product was found!\");\n alert.setContentText(\"Your search returned no results.\\n\" +\n \"Please enter the product ID or part name and try again.\");\n alert.show();\n }\n }\n }\n else\n {\n productTable.getSelectionModel().clearSelection();\n }\n }", "public Boolean enterAndSearchProductName(String productName,int expProduct)\n\t{ Boolean status=false;\n\tString vSearchBoxValue=searchTextBox.getAttribute(\"value\");\n\tif (!vSearchBoxValue.equals(\"\"))\n\t{\n\t\tsearchTextBox.clear();\n\t}\n\tsearchTextBox.sendKeys(productName);\n\ttry {\n\t\tThread.sleep(4000);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\tsearchTextBox.sendKeys(Keys.ENTER);\n\tList<WebElement> getProductIdlstWebElmnts=driver.findElements(By.xpath(\"//div[@class='s-main-slot s-result-list s-search-results sg-row']//div[starts-with(@data-component-type,'s-search-result')]\"));\n\tWebDriverWait wt2= new WebDriverWait(driver,30);\n\twt2.until(ExpectedConditions.visibilityOfAllElements(getProductIdlstWebElmnts));\n\tcollectnToStorePrdktIdLst.add(getProductIdlstWebElmnts.get(expProduct).getAttribute(\"data-asin\") );\n\ttry\n\t{ if (getProductIdlstWebElmnts.get(expProduct).getAttribute(\"data-asin\")!=\"\")\n\t{List<WebElement> getProductNamelstWebelement=driver.findElements(By.xpath(\"//div[@class='s-main-slot s-result-list s-search-results sg-row']//div[starts-with(@data-component-type,'s-search-result')]//h2//a\"));\n\tString getProductNameText=getProductNamelstWebelement.get(expProduct).getText();\n\tcollectnToStorePrdktNameLst.add(getProductNameText);\t\n\tgetProductNamelstWebelement.get(expProduct).click();\n\tstatus=true;\n\t}\n\t}catch(Exception e)\n\t{\n\t\tSystem.out.println(e);\n\t}\n\treturn status;\n\t}", "void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }", "private void getSearchButtonSemantics() {\n //TODO implement method\n searchView.getResultsTextArea().setText(\"\");\n if (searchView.getFieldComboBox().getSelectedItem() == null) {\n JOptionPane.showMessageDialog(new JFrame(), \"Please select a field!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getFieldComboBox().requestFocus();\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"SKU\")) {\n Optional<Product> skuoptional = inventoryModel.searchBySku(searchView.getSearchValueTextField().getText());\n if (skuoptional.isPresent()) {//check if there is an inventory with that SKU\n searchView.getResultsTextArea().append(skuoptional.get().toString());\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified SKU was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Name\")) {\n List<Product> name = inventoryModel.searchByName(searchView.getSearchValueTextField().getText());\n if (!name.isEmpty()) {\n for (Product nameproduct : name) {\n searchView.getResultsTextArea().append(nameproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified name was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Wholesale price\")) {\n try {\n List<Product> wholesaleprice = inventoryModel.searchByWholesalePrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!wholesaleprice.isEmpty()) {//check if there is an inventory by that wholesale price\n for (Product wholesalepriceproduct : wholesaleprice) {\n searchView.getResultsTextArea().append(wholesalepriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Retail price\")) {\n try {\n List<Product> retailprice = inventoryModel.searchByRetailPrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!retailprice.isEmpty()) {\n for (Product retailpriceproduct : retailprice) {\n searchView.getResultsTextArea().append(retailpriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Quantity\")) {\n try {\n List<Product> quantity = inventoryModel.searchByQuantity(Integer.parseInt(searchView.getSearchValueTextField().getText()));\n if (!quantity.isEmpty()) {\n for (Product quantityproduct : quantity) {\n searchView.getResultsTextArea().append(quantityproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n }\n }", "SearchProductsResult searchProducts(SearchProductsRequest searchProductsRequest);", "public List<Product> search(String searchString);", "public static void searchProduct() throws InterruptedException {\n browseSetUp(chromeDriver, chromeDriverPath, url);\n//****************************************<step 2- enter keyword in search box>**********************\n Thread.sleep(2000);\n driver.findElement(By.xpath(\"//*[@id=\\\"headerSearch\\\"]\")).sendKeys(\"paint roller\");\n Thread.sleep(3000);\n//*******************************************<step 3- click on the search button>**********************************\n driver.findElement(By.cssSelector(\".SearchBox__buttonIcon\")).click();\n//*******************************************<step 4- select the item>**********************************\n driver.findElement(By.cssSelector(\"#products > div > div.js-pod.js-pod-0.plp-pod.plp-pod--default.pod-item--0 > div > div.plp-pod__info > div.pod-plp__description.js-podclick-analytics > a\")).click();\n Thread.sleep(5000);\n//*******************************************<step 5- click to add the item to the cart>**********************************\n driver.findElement(By.xpath(\"//*[@id=\\\"atc_pickItUp\\\"]/span\")).click();\n Thread.sleep(6000);\n driver.close();\n\n\n }", "@Override\n\tpublic void searchProduct(HashMap<String, String> searchKeys) {\n\t\tQueryStringFormatter formatter=new QueryStringFormatter(\"http://shopper.cnet.com/1770-5_9-0.html\");\n\t\t\n\t\ttry\n\t\t{\n//\t\t\tformatter.addQuery(\"url\", \"search-alias\");\n\t\t\tif(searchKeys.get(ProductSearch.BRAND_NAME)!=null && searchKeys.get(ProductSearch.PRODUCT_NAME)!=null)\n\t\t\t{\n\t\t\t\tformatter.addQuery(\"query\",(String)searchKeys.get(ProductSearch.BRAND_NAME) +\" \"+ (String)searchKeys.get(ProductSearch.PRODUCT_NAME)+\" \" );\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tString color=(String)searchKeys.get(ProductSearch.COLOR);\n\t\t\tString min=(String)searchKeys.get(ProductSearch.MIN_PRICE);\n\t\t\tString max=(String)searchKeys.get(ProductSearch.MAX_PRICE);\n\t\t\tif(color!=null){\n\t\t\t\tformatter.addQuery(\"color\",color);\n\t\t\t}\n\t\t\tif(min.length()>0&&max.length()>0)\n\t\t\t{\n\t\t\t//formatter.addQuery(\"color\",(String)searchKeys.get(HeadPhonesSearch.COLOR_S)+\" Price between $\"+(String)searchKeys.get(HeadPhonesSearch.MIN_PRICE)+\" to $\"+(String)searchKeys.get(HeadPhonesSearch.MAX_PRICE));\n\t\t\t\t\n\t\t\t\tformatter.addQuery(\" Price between $\",min +\" to $\"+max);\n\t\t\t}\n\t\t\tformatter.addQuery(\"tag\",\"srch\");\n\t\t\t\n\t\t\tString finalQueryString=\"http://shopper.cnet.com/1770-5_9-0.html\"+formatter.getQueryString();\n\t\t\tSystem.out.println(\"query string :\"+formatter.getQueryString());\n\t\t\tSystem.out.println(\"Query:\"+finalQueryString);\n\t\t\tprocessMyNodes(finalQueryString);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\t\t\n\t}", "public void searchProducts()\n {\n if(!searchBar1.getText().equals(\"\"))\n {\n if(searchBar1.getText().matches(\"[0-9]*\"))\n {\n int number = Integer.parseInt(searchBar1.getText());\n ObservableList<Product> newProductList = FXCollections.observableArrayList();\n Product product = Inventory.lookupProduct(number);\n newProductList.add(product);\n productTableView.setItems(newProductList);\n if(newProductList.contains(null)) {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"No Product with that Name or ID found.\");\n alert.show();\n }\n } else {\n ObservableList<Product> newProductList = FXCollections.observableArrayList();\n newProductList = Inventory.lookupProduct(searchBar1.getText());\n productTableView.setItems(newProductList);\n if(newProductList.isEmpty()) {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"No Product with that Name or ID found.\");\n alert.show();\n }\n }\n } else {\n productTableView.setItems(Inventory.getAllProducts());\n }\n }", "public void searchForProduct(String productName) {\n setTextOnSearchBar(productName);\n clickOnSearchButton();\n }", "@GetMapping(\"/search\")\r\n\tpublic ProductDetails searchProduct(@Valid @RequestBody SearchProduct request) {\r\n\treturn productUtil.toProductDetails(productService.searchProduct(request.getProduct_Id()));\r\n\r\n\t}", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public void search() {\n boolean validate = true;\n code = \"\";\n Node<Product> p = null;\n System.out.print(\"Product code to search: \");\n while (validate) {\n code = s.nextLine();\n if (Validation.validateString(code)) {\n p = tree.search(code);\n validate = false;\n } else {\n System.err.println(\"Code must be required!\");\n System.err.print(\"Enter product code again: \");\n\n }\n }\n if (p != null) {\n System.out.println(\"Information of product code \" + p.info.getCode());\n tree.visit(p);\n } else {\n System.err.println(\"The product code \" + code + \" is not exist!\");\n }\n }", "public void searchProduct() throws InterruptedException {\n\n Thread.sleep(2000);\n\n if(isDisplayed(popup_suscriber)){\n click(popup_suscriber_btn);\n }\n\n if(isDisplayed(search_box) && isDisplayed(search_btn)){\n type(\"Remera\", search_box);\n click(search_btn);\n Thread.sleep(2000);\n click(first_product_gallery);\n Thread.sleep(2000);\n }else{\n System.out.println(\"Search box was not found!\");\n }\n\n }", "public boolean search(String prodName)\n\t{\n\t WebDriverWait wait = new WebDriverWait(driver, 20);\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(searchbox))).sendKeys(prodName);\n \n //Tap on search after entering prod name\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(searchBTN))).click();\n\t\n // When the page is loaded, verify whether the loaded result contains the name of product or not \n String k = driver.findElement(By.xpath(\"//*[@id=\\\"LST1\\\"]/div/div[1]/div[2]\")).getText();\n boolean p = k.contains(prodName);\n return p;\n \n\t}", "@RequestMapping(value=\"SearchEngine\")\r\n\tpublic String searchParticularProduct(HttpServletRequest request,ModelMap model){\r\n\t\tString productName=request.getParameter(\"search\");\r\n\t\tProductTO productTO=new ProductTO();\r\n\t\tmodel.addAttribute(\"imageList\", searchService.getProductByName(productName));\r\n\t\treturn \"ProductName\";\r\n\t}", "@Override\n\tpublic List<ttu.rakarh1.backend.model.data.Product> searchProducts(\n\t\t\tfinal ProductSearchCriteria ProductSearchCriteria, final HttpServletRequest request)\n\t{\n\t\tList<ttu.rakarh1.backend.model.data.Product> ProductList = null;\n\t\ttry\n\t\t{\n\t\t\tProduct Product;\n\t\t\tProductList = new ArrayList<ttu.rakarh1.backend.model.data.Product>();\n\t\t\tdb = dbconnection.getConnection();\n\t\t\tst = this.db.createStatement();\n\t\t\tString sql_and = \"\";\n\t\t\tString sql_where = \"\";\n\t\t\tString sql_all_together = \"\";\n\t\t\tString sql_criteria = \"\";\n\t\t\tString sql_end = \" ORDER BY name\";\n\t\t\tString sql_additional_attr = \"\";\n\t\t\tString genSql = \"\";\n\t\t\tList<ttu.rakarh1.backend.model.data.FormAttribute> formAttributes = null;\n\t\t\tMyLogger.LogMessage(\"FORMATTRIBUTES1\");\n\t\t\tformAttributes = (List<FormAttribute>) request.getAttribute(\"formAttributes\");\n\n\t\t\tif (formAttributes != null)\n\t\t\t{\n\t\t\t\tMyLogger.LogMessage(\"FORMATTRIBUTES2\");\n\t\t\t\tsql_additional_attr = getAdditionalSqlAttr(formAttributes);\n\t\t\t}\n\n\t\t\tString sql_from = \" FROM item i \"; /* ,unit_type, item_type \"; */\n\t\t\tString sql_start = \"SELECT distinct i.item, i.unit_type_fk, i.supplier_enterprise_fk, i.item_type_fk,name, i.store_price, i.sale_price, i.producer, i.description, i.producer_code, i.created \";\n\t\t\t// MyLogger.LogMessage(\"SEARCH CRITERIA PRODUCT CODE\" +\n\t\t\t// ProductSearchCriteria.getProduct_code());\n\t\t\tif (ProductSearchCriteria.getGenAttrList() != null)\n\t\t\t{\n\t\t\t\tgenSql = getGeneralSqlAttr(ProductSearchCriteria);\n\t\t\t}\n\n\t\t\tif (!(ProductSearchCriteria.getProduct_code().equals(\"\")))\n\t\t\t{\n\t\t\t\tsql_criteria = \"UPPER(i.producer_code) LIKE UPPER('\"\n\t\t\t\t\t\t+ ProductSearchCriteria.getProduct_code() + \"%')\";\n\t\t\t}\n\n\t\t\tif (!(ProductSearchCriteria.getName().equals(\"\")))\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tString search_string = ProductSearchCriteria.getName().replace(\" \", \" & \");\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" (to_tsvector(name) @@ to_tsquery('\"\n\t\t\t\t\t\t+ search_string + \"'))\";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getMin_price() != -1)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.store_price >= \"\n\t\t\t\t\t\t+ Float.toString(ProductSearchCriteria.getMin_price()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getMax_price() != -1)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.store_price <= \"\n\t\t\t\t\t\t+ Float.toString(ProductSearchCriteria.getMax_price()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getSupplier_enterprise_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.supplier_enterprise_fk = \"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getSupplier_enterprise_fk()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getUnit_type_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.unit_type_fk = \"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getUnit_type_fk()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getItem_type_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria\n\t\t\t\t\t\t+ sql_and\n\t\t\t\t\t\t+ \" i.item_type_fk in (with recursive sumthis(item_type, super_type_fk) as (\"\n\t\t\t\t\t\t+ \"select item_type, super_type_fk \" + \"from item_type \"\n\t\t\t\t\t\t+ \"where item_type =\"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getItem_type_fk()) + \" \"\n\t\t\t\t\t\t+ \"union all \" + \"select C.item_type, C.super_type_fk \" + \"from sumthis P \"\n\t\t\t\t\t\t+ \"inner join item_type C on P.item_type = C.super_type_fk \" + \") \"\n\t\t\t\t\t\t+ \"select item_type from sumthis\" + \") \";\n\t\t\t}\n\n\t\t\tif (!(sql_criteria.equals(\"\")))\n\t\t\t{\n\t\t\t\tsql_where = \" WHERE \";\n\t\t\t}\n\t\t\tif (!genSql.equals(\"\"))\n\t\t\t{\n\t\t\t\tsql_from += \"inner join item_type it on it.item_type = i.item_type_fk inner join type_attribute ta on ta.item_type_fk = it.item_type inner join item_attribute_type iat on iat.item_attribute_type = ta.item_attribute_type_fk inner join item_attribute ia on ia.item_attribute_type_fk = iat.item_attribute_type\";\n\t\t\t\tsql_criteria += \" and (\" + genSql + \")\";\n\t\t\t\t// sql_all_together = \" inner join ( \" + sql_additional_attr +\n\t\t\t\t// \") q2 on q2.item_fk = item\";\n\t\t\t}\n\t\t\tsql_all_together = sql_start + sql_from;\n\t\t\tif (sql_additional_attr != \"\")\n\t\t\t{\n\t\t\t\tsql_all_together += \" inner join ( \" + sql_additional_attr\n\t\t\t\t\t\t+ \") q2 on q2.item_fk = i.item\";\n\n\t\t\t}\n\n\t\t\tsql_all_together += sql_where + sql_criteria + sql_end;\n\n\t\t\tMyLogger.LogMessage(\"ProductDAOImpl -> fdfdf \" + sql_all_together);\n\t\t\tSystem.out.println(sql_all_together);\n\t\t\tResultSet rs = this.st.executeQuery(sql_all_together);\n\t\t\tint cnt = 0;\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tProduct = new Product();\n\t\t\t\tProduct.setProduct(rs.getInt(\"item\"));\n\t\t\t\tProduct.setName(rs.getString(\"name\"));\n\t\t\t\tProduct.setDescription(rs.getString(\"description\"));\n\t\t\t\tProduct.setProduct_code(rs.getString(\"producer_code\"));\n\t\t\t\tProduct.setStore_price(rs.getFloat(\"store_price\"));\n\t\t\t\tProduct.setSale_price(rs.getInt(\"sale_price\"));\n\t\t\t\tProduct.setProduct_catalog(rs.getInt(\"item_type_fk\"));\n\t\t\t\tProductList.add(Product);\n\t\t\t\tcnt = cnt + 1;\n\t\t\t}\n\n\t\t}\n\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tMyLogger.Log(\"searchProducts():\", ex.getMessage());\n\n\t\t}\n\n\t\treturn ProductList;\n\t}", "@Test\n void searchProduct() {\n List<DummyProduct> L1= store.SearchProduct(\"computer\",null,-1,-1);\n assertTrue(L1.get(0).getProductName().equals(\"computer\"));\n\n List<DummyProduct> L2= store.SearchProduct(null,\"Technology\",-1,-1);\n assertTrue(L2.get(0).getCategory().equals(\"Technology\")&&L2.get(1).getCategory().equals(\"Technology\"));\n\n List<DummyProduct> L3= store.SearchProduct(null,null,0,50);\n assertTrue(L3.get(0).getProductName().equals(\"MakeUp\"));\n\n List<DummyProduct> L4= store.SearchProduct(null,\"Fun\",0,50);\n assertTrue(L4.isEmpty());\n }", "@FXML\r\n public void lookupProduct() {\r\n \r\n String text = productSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing products from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n else{\r\n ObservableList<Product> result = stock.lookupProduct(text);\r\n if (!result.isEmpty()) {\r\n //Product found in inventory. Displaying information available. \r\n updateProductsTable(result);\r\n }\r\n else {\r\n //Product not found in inventory. Displaying all existing products from inventory, if available\r\n displayMessage(\"Product not found. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n }\r\n }", "@When(\"User search for {string}\")\r\n public void placingAnOrder(String product) {\n MainPage main = new MainPage(driver);\r\n main.searchFor(product);\r\n main.chooseThisOne(product);\r\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "static void searchProductDB() {\n\n int productID = Validate.readInt(ASK_PRODUCTID); // store product ID of user entry\n\n\n productDB.findProduct(productID); // use user entry as parameter for the findProduct method and if found will print details of product\n\n }", "private void startSearch(CharSequence text) {\n Query searchByName = product.orderByChild(\"productName\").equalTo(text.toString().trim());\n\n FirebaseRecyclerOptions<Product> productOptions = new FirebaseRecyclerOptions.Builder<Product>()\n .setQuery(searchByName, Product.class)\n .build();\n\n searchAdapter = new FirebaseRecyclerAdapter<Product, ProductViewHolder>(productOptions) {\n @Override\n protected void onBindViewHolder(@NonNull ProductViewHolder viewHolder, int position, @NonNull Product model) {\n\n viewHolder.product_name.setText(model.getProductName());\n\n Picasso.with(getBaseContext()).load(model.getProductImage())\n .into(viewHolder.product_image);\n\n final Product local = model;\n\n viewHolder.setItemClickListener(new ItemClickListener() {\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n\n Intent product_detail = new Intent(ProductListActivity.this, ProductDetailActivity.class);\n product_detail.putExtra(\"productId\", searchAdapter.getRef(position).getKey());\n startActivity(product_detail);\n }\n });\n }\n\n @NonNull\n @Override\n public ProductViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {\n\n View itemView = LayoutInflater.from(viewGroup.getContext())\n .inflate(R.layout.item_products, viewGroup, false);\n return new ProductViewHolder(itemView);\n }\n };\n searchAdapter.startListening();\n recycler_product.setAdapter(searchAdapter);\n }", "public void initSearchWidget(){\n\n searchview.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n //Closes the keyboard once query is submitted\n searchview.clearFocus();\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n\n //New arraylist for filtered products\n List<product> filteredList = new ArrayList<>();\n\n //Iterating over the array with products and adding every product that matches\n //the query to the new filtered list\n for (product product : listOfProducts){\n if (product.getProductName().toLowerCase().contains(newText.toLowerCase())){\n filteredList.add(product);\n }\n }\n\n //Hides the product list and display \"not found\" message when can't find match\n if (filteredList.size()<1){\n recyclerView.setVisibility(View.GONE);\n noResults.setVisibility(View.VISIBLE);\n }else {\n recyclerView.setVisibility(View.VISIBLE);\n noResults.setVisibility(View.GONE);\n }\n\n //Sets new adapter with filtered products to the recycler view\n productAdapter = new Adapter(MainActivity.this,filteredList);\n recyclerView.setAdapter(productAdapter);\n\n return true;\n }\n });\n }", "@Given(\"User is logging on MyStore\")\r\n public void searchingForProduct() {\n LoginPageNew login = new LoginPageNew(driver);\r\n MainPage main = new MainPage(driver);\r\n AccountPage accPage = new AccountPage(driver);\r\n AddingAnAddressForm addressForm = new AddingAnAddressForm(driver);\r\n login.loginAs(\"[email protected]\", \"123456\");\r\n main.goToAccPage();\r\n accPage.goToAddAddressForm();\r\n addressForm.fillingAddressForm(\"12\",\"Street Fighting Man\",\"02-223\",\"Sandia\",\"112322031\");\r\n accPage.goToMainPage();\r\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tif (searchText.equals(\"Restaurants\")){\n\t\t\tsearchType=\"restaurant\";\t\n\t\t}\n\t\telse if (searchText.equals(\"Shopping Mall\")){\n\t\t\tsearchType=\"shopping_mall\";\n\t\t}\n\t\telse if (searchText.equals(\"ATM\")){\n\t\t\tsearchType=\"atm\";\n\t\t}\n\t\telse if (searchText.equals(\"Bank\")){\n\t\t\tsearchType=\"bank\";\n\t\t}\n\t\telse if (searchText.equals(\"Hospital\")){\n\t\t\tsearchType=\"hospital\";\n\t\t}\n\t\tloadPage();\n\t\t\n\t}", "@FXML\n void modifyProductSearchOnAction(ActionEvent event) {\n if (modifyProductSearchField.getText().matches(\"[0-9]+\")) {\n modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n } else {\n modProdAddTable.getSelectionModel().select(Inventory.partName(modifyProductSearchField.getText()));\n }\n //modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n }", "public void onActionSearchProducts(ActionEvent actionEvent) {\r\n\r\n try {\r\n String search = searchProducts.getText();\r\n\r\n ObservableList<Product> searched = Inventory.lookupProduct(search);\r\n\r\n if (searched.size() == 0) {\r\n Alert alert1 = new Alert(Alert.AlertType.ERROR);\r\n alert1.setTitle(\"Name not found\");\r\n alert1.setContentText(\"Product name not found. If a number is entered in the search box, an id search will occur.\");\r\n alert1.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert1.showAndWait();\r\n try {\r\n int id = Integer.parseInt(search);\r\n Product product1 = Inventory.lookupProduct(id);\r\n if (product1 != null) {\r\n searched.add(product1);\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setTitle(\"Error Message\");\r\n alert2.setContentText(\"Product name and id not found.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (NumberFormatException e) {\r\n //ignore\r\n }\r\n }\r\n\r\n productsTableView.setItems(searched);\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "@Override\n\t\tpublic void searchProduct(HashMap<String, String> searchKeys) {\n\t\t\t \n\t\t\tQueryStringFormatter formatter=new QueryStringFormatter(\"http://www.target.com/s\");\n\t\t\ttry{\n\t\t\t\t//formatter.addQuery1(\"query\", \"ca77b9b4beca91fe414314b86bb581f8en20\");\n\t\t\t\t\n\t\t\t\tString color=(String)searchKeys.get(ProductSearch.COLOR);\n\t\t\t\tString min=(String)searchKeys.get(ProductSearch.MIN_PRICE);\n\t\t\t\tString max=(String)searchKeys.get(ProductSearch.MAX_PRICE);\n\t\t\t\t\n\t\t\t\tif((searchKeys.get(ProductSearch.BRAND_NAME)!=null) && (searchKeys.get(ProductSearch.PRODUCT_NAME)!=null)){\n\t\t\t\t\t\n\t\t\t\tformatter.addQuery1(\"searchTerm\",(String)searchKeys.get(ProductSearch.BRAND_NAME)+\" \"+(String)searchKeys.get(ProductSearch.PRODUCT_NAME));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(color!=null){\n\t\t\t\tformatter.addQuery1(\"\",color);\n\t\t\t\t}\n\t\t\t\tif(min.length()>0&&max.length()>0)\n\t\t\t\t{\n\t\t\t\t//formatter.addQuery(\"color\",(String)searchKeys.get(HeadPhonesSearch.COLOR_S)+\" Price between $\"+(String)searchKeys.get(HeadPhonesSearch.MIN_PRICE)+\" to $\"+(String)searchKeys.get(HeadPhonesSearch.MAX_PRICE));\n\t\t\t\t\t\n\t\t\t\t\tformatter.addQuery1(\" Price between $\",min +\" to $\"+max);\n\t\t\t\t}\n\t\t\t\tString finalQueryString=\"http://www.target.com/s\"+formatter.getQueryString();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Query:\"+finalQueryString);\n\t\t\t\tprocessMyNodes(finalQueryString);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "@And(\"^I searched for \\\"([^\\\"]*)\\\"$\")\t\t\t//Currently used by Order search & Passive Device Container \r\n\tpublic void i_searched_for_device(String field) throws Exception {\r\n\t\tSystem.out.println(field);\r\n\t\tenduser.fill_fields(field);\r\n\t\t//enduser.click_searchBtn();\t \r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n // Associate searchable configuration with the SearchView\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.menuSearch).getActionView();\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\n searchView.setIconifiedByDefault(false);\n searchView.setFocusable(true);\n searchView.setIconified(false);\n\n\n\n if( Intent.ACTION_VIEW.equals(getIntent().getAction())){\n Intent i = new Intent(SearchActivity.this, SearchActivity.class);\n query = getIntent().getStringExtra(SearchManager.QUERY);\n i.setAction(Intent.ACTION_SEARCH);\n i.putExtra(\"query\", query);\n startActivity(i);\n\n Toast.makeText(SearchActivity.this, query, Toast.LENGTH_SHORT).show();\n }\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // INPUT CODE HERE\n Toast.makeText(SearchActivity.this, query, Toast.LENGTH_SHORT).show();\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n // INPUT CODE HERE\n// String[] q = {\"promotion_name\"};\n// String[] t = {newText};\n// MySuggestionProvider suggestion = new MySuggestionProvider();\n// suggestion.query(Uri.parse(\"database.it.kmitl.ac.th/it_35\"), q, \"promotion_name LIKE %?%\", t, null);\n return false;\n }\n });\n return true;\n }", "@Override\n public boolean onQueryTextChange(String newText) {\n List<product> filteredList = new ArrayList<>();\n\n //Iterating over the array with products and adding every product that matches\n //the query to the new filtered list\n for (product product : listOfProducts){\n if (product.getProductName().toLowerCase().contains(newText.toLowerCase())){\n filteredList.add(product);\n }\n }\n\n //Hides the product list and display \"not found\" message when can't find match\n if (filteredList.size()<1){\n recyclerView.setVisibility(View.GONE);\n noResults.setVisibility(View.VISIBLE);\n }else {\n recyclerView.setVisibility(View.VISIBLE);\n noResults.setVisibility(View.GONE);\n }\n\n //Sets new adapter with filtered products to the recycler view\n productAdapter = new Adapter(MainActivity.this,filteredList);\n recyclerView.setAdapter(productAdapter);\n\n return true;\n }", "@Test(dependsOnMethods = {\"login\"})\n\tpublic void searchItem() {\n\t\thome.searchItem(data.readData(\"searchItem\"));\n\t\t// generating random number from total search result display using random number generator\n\t\tint index=data.randomeNum(getElementsCount(By.id(home.selectItem)));\n\t\t// storing title and price of searched item from search screen to verify later\n\t\ttitle= home.getTitle(index);\n\t\tprice=home.getPrice(index);\n\t\telementByIndex(By.id(home.selectItem), index).click();\n\t\twaitForElement(By.xpath(item.review));\n\t\t//Scrolling till we see addtocart button\n\t\tscrollPage();\n\t\tboolean actual = elementDisplay(By.xpath(item.addToCar));\n\t\tAssert.assertEquals(actual, true,\"Add to cart button not display\");\n\t}", "public void searchField(String name) {\r\n\t\tsafeType(addVehiclesHeader.replace(\"Add Vehicle\", \"Search\"), name);\r\n\t\t;\r\n\t}", "public void searchItem(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtSearch\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtSearch\"));\r\n\t\t\tsendKeys(locator_split(\"txtSearch\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the search box\");\r\n\t\t\tSystem.out.println(\"Search item - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public static void searchInvalidProduct() throws InterruptedException {\n// 4- test case: search for in search box\n//********************************** step 1 open browser and navigate to url***************************\n // Open Browser and Navigate to URL\n browseSetUp(chromeDriver, chromeDriverPath, url);\n//****************************************<step 2- enter keyword in search box>**********************\n Thread.sleep(2000);\n driver.findElement(By.xpath(\"//*[@id=\\\"headerSearch\\\"]\")).sendKeys(\"milk \");\n Thread.sleep(3000);\n//*******************************************<step 3- click on the search button>**********************************\n driver.findElement(By.cssSelector(\".SearchBox__buttonIcon\")).click();\n//*******************************************<step 4- select the item>**********************************\n driver.findElement(By.cssSelector(\"#products > div > div.js-pod.js-pod-0.plp-pod.plp-pod--default.pod-item--0 > div > div.plp-pod__info > div.pod-plp__description.js-podclick-analytics > a\")).click();\n Thread.sleep(5000);\n//*******************************************<step 5- click to add the item to the cart>**********************************\n driver.findElement(By.xpath(\"//*[@id=\\\"atc_pickItUp\\\"]/span\")).click();\n Thread.sleep(6000);\n driver.close();\n\n\n }", "@Test\n\tpublic void f() {\n\t\tgetDriver().findElement(By.id(\"search-field\"));\n\t\t// searchField.sendKeys(\"Chef'sChoice 1520 Angle Select Electric Knife\n\t\t// Sharpener\");\n\t\t// searchField.submit();\n\t\t// WebElement results =\n\t\tgetDriver().findElement(By.className(\"product-name\"));\n\t\t// results.click();\n\t\t// WebElement quantityField =\n\t\tgetDriver().findElement(By.className(\"qty\"));\n\t\t// quantityField.sendKeys(\"3\");\n\t}", "@PreAuthorize(\"hasRole('SEARCH_PRODUCT')\")\n\t@RequestMapping(\"/searchProductByName\")\n\tpublic ModelAndView searchProductByName(Map<String, Object> model,\n\t\t\t@Validated(Product.ValidationStepOne.class) @ModelAttribute(\"productForm\") Product productForm,\n\t\t\tBindingResult bindingresult, HttpServletRequest request) throws ServiceException, ProductException {\n\n\t\tlogger.debug(CCLPConstants.ENTER);\n\t\tModelAndView mav = new ModelAndView();\n\t\tString productName = \"\";\n\t\tString searchType = \"\";\n\n\t\tList<ProductDTO> productDtoList = null;\n\t\tmav.setViewName(\"productConfig\");\n\t\tsearchType = request.getParameter(\"searchType\");\n\t\tmav.addObject(\"SearchType\", searchType);\n\n\t\tlogger.debug(\"Before calling productService.getAllIssuers()\");\n\n\t\tif (bindingresult.hasErrors()) {\n\t\t\treturn mav;\n\t\t}\n\n\t\tproductName = productForm.getProductName();\n\t\tproductDtoList = productService.getProductsByName(productName);\n\n\t\tlogger.debug(\"after calling productService.getProductsByName()\");\n\n\t\tmav.addObject(\"productForm\", new Product());\n\t\tmav.setViewName(\"productConfig\");\n\t\tmav.addObject(\"productTableList\", productDtoList);\n\t\tmav.addObject(\"productForm\", productForm);\n\t\tmav.addObject(\"showGrid\", \"true\");\n\t\tlogger.debug(CCLPConstants.EXIT);\n\t\treturn mav;\n\t}", "@Test\n\tpublic void searchForProductLandsOnCorrectProduct() {\n\t}", "private void txtSearchingBrandKeyReleased(java.awt.event.KeyEvent evt) {\n String query=txtSearchingBrand.getText().toUpperCase();\n filterData(query);\n }", "public void searchFor(View view) {\n // Get a handle for the editable text view holding the user's search text\n EditText userInput = findViewById(R.id.user_input_edit_text);\n // Get the characters from the {@link EditText} view and convert it to string value\n String input = userInput.getText().toString();\n\n // Search filter for search text matching book titles\n RadioButton mTitleChecked = findViewById(R.id.title_radio);\n // Search filter for search text matching authors\n RadioButton mAuthorChecked = findViewById(R.id.author_radio);\n // Search filter for search text matching ISBN numbers\n RadioButton mIsbnChecked = findViewById(R.id.isbn_radio);\n\n if (!input.isEmpty()) {\n // On click display list of books matching search criteria\n // Build intent to go to the {@link QueryResultsActivity} activity\n Intent results = new Intent(MainActivity.this, QueryListOfBookActivity.class);\n\n // Get the user search text to {@link QueryResultsActivity}\n // to be used while creating the url\n results.putExtra(\"topic\", mUserSearch.getText().toString().toLowerCase());\n\n // Pass search filter, if any\n if (mTitleChecked.isChecked()) {\n // User is searching for book titles that match the search text\n results.putExtra(\"title\", \"intitle=\");\n } else if (mAuthorChecked.isChecked()) {\n // User is searching for authors that match the search text\n results.putExtra(\"author\", \"inauthor=\");\n } else if (mIsbnChecked.isChecked()) {\n // User is specifically looking for the book with the provided isbn number\n results.putExtra(\"isbn\", \"isbn=\");\n }\n\n // Pass on the control to the new activity and start the activity\n startActivity(results);\n\n } else {\n // User has not entered any search text\n // Notify user to enter text via toast\n\n Toast.makeText(\n MainActivity.this,\n getString(R.string.enter_text),\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "@FXML\n\tprivate void searchButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tString searchParameter = partsSearchTextField.getText().trim();\n\t\tScanner scanner = new Scanner(searchParameter);\n\t\t\n\t\tif (scanner.hasNextInt()) {\n\t\t\t\n\t\t\tPart part = Inventory.lookupPart(Integer.parseInt(searchParameter));\n\t\t\t\n\t\t\tif (part != null) {\n\t\t\t\t\n\t\t\t\tpartSearchProductTable.setItems(\n\t\t\t\t\tInventory.lookupPart(part.getName().trim().toLowerCase()));\n\t\t\t}\n\t\t} else {\n\t\t\t\n\t\t\tpartSearchProductTable.setItems(\n\t\t\t\t\tInventory.lookupPart(searchParameter.trim().toLowerCase()));\n\t\t}\n\t}", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "public void InkandTonersearchbox(String searchitem){\r\n\t\tString inktonersearch = getValue(searchitem);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- The search item '\"+inktonersearch+\"' should be entered in the search box\");\r\n\t\ttry{\r\n\r\n\t\t\tsendKeys(locator_split(\"InkandTonersearchbox\"), inktonersearch);\r\n\t\t\tclick(locator_split(\"InkandTonersearchboxgo\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Search item \"+inktonersearch+\" is enterd\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Search item '\"+inktonersearch+\"' is enterd in search box\");\r\n\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Search item '\"+inktonersearch+\"' is not enterd in search box\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"InkandTonersearchbox\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+\" or \"+elementProperties.getProperty(\"InkandTonersearchboxgo\").toString().replace(\"By.\", \" \")+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@RequestMapping(value=\"/search\")\r\n\tpublic String searchParameter(@ModelAttribute ProductTO productTO,BindingResult result,ModelMap model){\r\n\t\tif(result.hasErrors())\r\n\t\t\treturn \"SearchResult\";\r\n\t\telse{\r\n\t\t\tmodel.addAttribute(\"imageList\", searchService.getParticularProduct(productTO.getProductBrand(),productTO.getProductPrice(),productTO.getProductCategory()));\r\n\t\t\treturn \"SearchResult\"; \r\n\t\t}\r\n\t}", "List<Product> getProductsContainingProductNameOrShortDescription(String productSearchString);", "public void searchInkAndTonnerItem(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the Ink and Tonner search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtInkSearch\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtInkSearch\"));\r\n\t\t\tsendKeys(locator_split(\"txtInkSearch\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the Ink and Tonner search box\");\r\n\t\t\tSystem.out.println(\"Ink and Tonner Search item - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtInkSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "private void startSearch(CharSequence text) {\n Query searchByname = productList.orderByChild(\"name\").equalTo(text.toString());\n //Create Options with Query\n FirebaseRecyclerOptions<Product> productOptions = new FirebaseRecyclerOptions.Builder<Product>()\n .setQuery(searchByname,Product.class)\n .build();\n\n\n searchAdapter = new FirebaseRecyclerAdapter<Product, ProductViewHolder>(productOptions) {\n @Override\n protected void onBindViewHolder(@NonNull ProductViewHolder holder, int position, @NonNull Product model) {\n\n holder.txtProductName.setText(model.getName());\n Picasso.with(getBaseContext()).load(model.getImage())\n .into(holder.imgProduct);\n\n final Product local = model;\n holder.setItemClickListener(new ItemClickListener() {\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n //Start New Activity\n Intent detail = new Intent(ProductList.this,ProductDetail.class);\n detail.putExtra(\"ProductId\",searchAdapter.getRef(position).getKey());\n startActivity(detail);\n }\n });\n\n }\n\n @NonNull\n @Override\n public ProductViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {\n View itemView = LayoutInflater.from(viewGroup.getContext())\n .inflate(R.layout.product_item,viewGroup,false);\n return new ProductViewHolder(itemView);\n }\n };\n searchAdapter.startListening();\n recyclerView.setAdapter(searchAdapter);\n\n }", "public void handleSearch(ActionEvent actionEvent) {\n\t\tRadioButton radio = (RadioButton) toogleSearch.getSelectedToggle();\n\t\tString searchString = txtSearch.getText();\n\t\tObservableList<Item> itemList;\n\t\tif(radio == radioID){\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemById(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t} else if(radio == radioName){\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemByName(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemByLocation(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t}\n\n\n\n\t}", "List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = ((String)comboBoxProductAuthor.getSelectedItem()).toLowerCase();\n\t\t\t\t//String input = (productAuthorTextField.getText()).toLowerCase();\t// Convert input text to lower case. \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//All names in array should be stored in lower case.\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"select\")){ \t// If no value is selected\n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Author From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else{\t\t\t\t\t\t\t// Take in String and Search for it.\n\t\t\t\t\tproductTextArea.setText(product.viewProductByAuthor(input, products));\t\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\t\t// This sets the position of the scroll bar to the top of the page.\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t}\n\t\t\t}", "private void enterCriteriaToSerachField(String text) {\n WebElement searchField = findElementWithWait(By.id(\"gh-ac\"));\n searchField.clear();\n searchField.sendKeys(text);\n searchField.sendKeys(Keys.RETURN);\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }", "@FXML\r\n private void searchTxtAction(ActionEvent event) throws IOException {\r\n \r\n if (event.getSource() == partSearchTxt) {\r\n lookupPart();\r\n }\r\n else {\r\n if (event.getSource() == productSearchTxt) {\r\n lookupProduct();\r\n }\r\n }\r\n }", "public Inventory inventorySearch (TheGroceryStore g, String searchKey);", "@OnClick(R.id.search_estate_bt_search)\n public void search(View view) {\n Log.d(TAG, \"search: \");\n\n mSearchEstateViewModel.searchEstate(\n mEstateType.getText().toString(),\n mPrice1.getText().toString(),\n mPrice2.getText().toString(),\n mSurface1.getText().toString(),\n mSurface2.getText().toString(),\n mCity.getText().toString(),\n mNumbersRooms1.getText().toString(),\n mNumbersRooms2.getText().toString(),\n mNumbersBathrooms1.getText().toString(),\n mNumbersBathrooms2.getText().toString(),\n mNumbersBedrooms1.getText().toString(),\n mNumbersBedrooms2.getText().toString(),\n mNumbersPhoto1.getText().toString(),\n mNumbersPhoto2.getText().toString(),\n // Point of Interest\n mChipGarden.isChecked(),\n mChipLibrary.isChecked(),\n mChipRestaurant.isChecked(),\n mChipSchool.isChecked(),\n mChipSwimmingPool.isChecked(),\n mChipTownHall.isChecked()\n );\n }", "public String conductSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\t// Transfer the user to the Search Results page\r\n\t\tthis.pageBackingBean.setRenderPage(Constants.PAGE_RESTRICTED_SEARCHRESULTS);\r\n\t\t\r\n\t\treturn \"update\";\r\n\t}", "private void searchTV() {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] instanceof TV) {\r\n\t\t\t\tSystem.out.println(products[i].toString());\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"TV가 없습니다.\");\r\n\t}", "@Override\n public SearchResult search_item(String keyword, int page, int rows , int search_type) throws Exception{\n return null;\n }", "@Override\r\n\tpublic List<Product> search(String key) {\n\tProductExample example = new ProductExample();\r\n\texample.createCriteria().andNameLike(\"%\"+key+\"%\");\r\n\texample.setOrderByClause(\"id desc\");\r\n\tList<Product> list = productMapper.selectByExample(example);\r\n\tsetAll(list);\r\n\treturn list;\r\n\t\t}", "protected void lbl_searchEvent() {\n\t\tif(text_code.getText().isEmpty()){\n\t\t\tlbl_notice.setText(\"*请输入股票代码\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tif(text_code.getText().length()!=6||!Userinfochange.isNumeric(text_code.getText())){\n\t\t\tlbl_notice.setText(\"*股票代码为6位数字\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tif(text_place.getText().isEmpty()){\n\t\t\tlbl_notice.setText(\"*请输入股票交易所\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(!text_place.getText().equals(\"sz\") && !text_place.getText().equals(\"sh\")){\n\t\t\tlbl_notice.setText(\"*交易所填写:sz或sh\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tString[] informationtemp = null ;\n\t\ttry {\n\n\t\t\tinformationtemp = Internet.share.Internet.getSharedata(text_place.getText(), text_code.getText());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \"网络异常或者不存在该只股票\", \"异常\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\n\t\t}\n\t\tString name = informationtemp[0];\n\t\tif (name == null) {\n\t\t\tlbl_notice.setText(\"*不存在的股票\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tString[] names = new String[2];\n\t\tSystem.out.println(\"搜索出的股票名:\" + name + \"(Dia_buy 297)\");\n\t\tnames = name.split(\"\\\"\");\n\t\tname = names[1];\n\t\tif (name.length() == 0) {\n\t\t\tlbl_notice.setText(\"*不存在的股票\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tinformation = informationtemp;\n\t\tplace = text_place.getText();\n\t\tcode=text_code.getText();\n\t\t\n\t\ttrade_shortsell();//显示文本框内容\n\t\t\n\t\tlbl_notice.setText(\"股票信息获取成功!\");\n\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_GREEN));\n\t}", "@Test\n\tpublic void testExistingProductsSearchTyped() {\n\t\tEntityManager em = emf.createEntityManager();\n\t\ttry {\n\t\t\tDataLoader dl = new DataLoader(emf);\n\t\t\tList<Product> products = dl.loadProducts(null);\n\t\t\tdl.loadStock(products);\n\t\t\t// Search for mutiple Stocks.\n\t\t\tTypedQuery<Stock> query = em.createNamedQuery(\"Stock.getAllStocks\", Stock.class);\n\t\t\tList<Stock> result = query.getResultList();\n\n\t\t\tassertTrue(\n\t\t\t\t\t\"Search for mutiple existing stocks: Multiple stocks not added\",\n\t\t\t\t\tresult.size() > 2);\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}", "public void search() {\r\n \t\r\n }", "@CrossOrigin()\r\n @PostMapping(\"/products/search\")\r\n List<ProductEntity> search(@RequestBody @Valid @NotNull String searchExpression) {\r\n System.out.println(searchExpression);\r\n return productRepository.findBySearch(searchExpression);\r\n }", "@FXML\r\n private void search(){\n \r\n String s = tfSearch.getText().trim(); \r\n String type = cmbType.getSelectionModel().getSelectedItem();\r\n String col = cmbFilterBy.getSelectionModel().getSelectedItem();\r\n \r\n /**\r\n * Column Filters\r\n * \r\n */\r\n \r\n \r\n if(!s.isEmpty()){\r\n if(!chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%' AND status<>'active'\", tblTrainingList);\r\n }\r\n\r\n if(chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%'\", tblTrainingList);\r\n } \r\n } \r\n }", "Search getSearch();", "private void get_products_search()\r\n\r\n {\n MakeWebRequest.MakeWebRequest(\"get\", AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n AppConfig.SALES_RETURN_PRODUCT_LIST + \"[\" + Chemist_ID + \",\"+client_id +\"]\", this, true);\r\n\r\n// MakeWebRequest.MakeWebRequest(\"out_array\", AppConfig.SALES_RETURN_PRODUCT_LIST, AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n// null, this, false, j_arr.toString());\r\n //JSONArray jsonArray=new JSONArray();\r\n }", "@And(\"I enter the book name in the search field\")\n\tpublic void i_enter_the_book_name_in_the_search_field() {\n\t\tdriver.findElement(By.xpath(campobusca)).sendKeys(searchTerm);\n\t}", "public void performSearch() {\n OASelect<CorpToStore> sel = getCorpToStoreSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "public void setType(String type) {\r\n\t\tthis.productType = type;\r\n\t}", "@Override\n public SearchResult queryBrandShopProduct(String brandId, String pageIndex, String pageSize, String userLv, String price, String size, String colorId, String tagId, String categoryId, String order, String postArea, String imei,String channnelType) throws Exception {\n SearchResult searchResult=aspBizSerchService.queryBrandProductList(\"\", pageIndex, pageSize, tagId, brandId, price, colorId, size, categoryId, order, userLv, postArea, imei, \"2.9.16\",channnelType);\n// brandShop.setResult(searchResult);\n \n return searchResult;\n }", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "public void searchProduct(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n\n if(intent.resolveActivity(getContext().getPackageManager()) != null) {\n getContext().startActivity(intent);\n }\n }", "private void onClickSearch() {\n if (lat.isEmpty() || lon.isEmpty()) {\n Toast.makeText(\n self,\n getResources()\n .getString(R.string.wait_for_getting_location),\n Toast.LENGTH_SHORT).show();\n getLatLong();\n }\n //get current distance search :\n distance = ((double) skbDistance.getProgress() / 10) + \"\";\n\n Bundle b = new Bundle();\n b.putString(GlobalValue.KEY_SEARCH, edtSearch.getText().toString());\n b.putString(GlobalValue.KEY_CATEGORY_ID, categoryId);\n b.putString(GlobalValue.KEY_CITY_ID, cityId);\n b.putString(GlobalValue.KEY_OPEN, ALL_OR_OPEN);\n b.putString(GlobalValue.KEY_DISTANCE, distance);\n b.putString(GlobalValue.KEY_SORT_BY, SORT_BY);\n b.putString(GlobalValue.KEY_SORT_TYPE, SORT_TYPE);\n if (Constant.isFakeLocation) {\n b.putString(GlobalValue.KEY_LAT, GlobalValue.glatlng.latitude + \"\");\n b.putString(GlobalValue.KEY_LONG, GlobalValue.glatlng.longitude + \"\");\n } else {\n b.putString(GlobalValue.KEY_LAT, lat);\n b.putString(GlobalValue.KEY_LONG, lon);\n }\n\n if (isSelectShop)\n ((MainTabActivity) getParent()).gotoActivity(\n SearchShopResultActivity.class, b);\n else\n ((MainTabActivity) getParent()).gotoActivity(\n SearchProductResultActivity.class, b);\n }", "public void setSearchType(final int searchType)\r\n\t{\r\n\t\tthis.searchType = searchType;\r\n\t}", "public void treatmentSearch(){\r\n searchcb.getItems().addAll(\"treatmentID\",\"treatmentName\",\"medicineID\", \"departmentID\", \"diseaseID\");\r\n searchcb.setValue(\"treatmentID\");;\r\n }", "@When(\"user clicks on search button and types{string}\")\r\n\tpublic void user_clicks_on_search_button_and_types(String string) {\n\t driver.findElement(By.xpath(\"//*[@id=\\\"myInput\\\"]\")).sendKeys(\"HeadPhone\");\r\n\t}", "public AbstractProductSearchCriteria(final String searchType, final String storeName, final String keyWord,\r\n\t\t\tfinal String category) {\r\n\r\n\t\tsuper();\r\n\r\n\t\tsetSearchType(searchType);\r\n\t\tsetStoreName(storeName);\r\n\r\n\t\tthis.keyWord = keyWord;\r\n\t\tthis.category = category;\r\n\t}", "public void update(Product product) {\n\t\tif (product != null) {\n\t\t\tsearchHelper.update(product, TokenizePatterns.FROM_START, product.getProductNbr(), product.getIngredients());\n\t\t\tsearchHelper.add(product, TokenizePatterns.ALL, product.getName());\n\n\t\t\t// Add active/deactive state afterwards\n\t\t\tif (product.isActive()) {\n\t\t\t\tsearchHelper.add(product, TokenizePatterns.WORD, \"aktiv\");\n\t\t\t} else {\n\t\t\t\tsearchHelper.add(product, TokenizePatterns.WORD, \"inaktiv\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_share) {\n shareTextUrl();\n return true;\n }\n if (id == R.id.search) {\n SearchView search = (SearchView) item.getActionView();\n\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n ApiInterface apiService =\n ApiClient.getClient().create(ApiInterface.class);\n\n Call<ProductResponse> call = apiService.getProducts(query, API_KEY);\n call.enqueue(new Callback<ProductResponse>() {\n @Override\n public void onResponse(Call<ProductResponse> call, Response<ProductResponse> response) {\n List<Product> products = response.body().getResults();\n if (products.size() > 0) {\n binding.setProduct(products.get(0));\n productUrl = products.get(0).getProductUrl();\n productId = products.get(0).getProductId();\n fab.setImageResource(R.drawable.plus);\n }\n }\n\n\n @Override\n public void onFailure(Call<ProductResponse> call, Throwable t) {\n Log.e(TAG, t.toString());\n createDialog(t);\n }\n });\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n ApiInterface apiService =\n ApiClient.getClient().create(ApiInterface.class);\n\n Call<ProductResponse> call = apiService.getProducts(newText, API_KEY);\n call.enqueue(new Callback<ProductResponse>() {\n @Override\n public void onResponse(Call<ProductResponse> call, Response<ProductResponse> response) {\n List<Product> products = response.body().getResults();\n if (products.size() > 0) {\n binding.setProduct(products.get(0));\n productUrl = products.get(0).getProductUrl();\n productId = products.get(0).getProductId();\n fab.setImageResource(R.drawable.plus);\n }\n }\n\n @Override\n public void onFailure(Call<ProductResponse> call, Throwable t) {\n Log.e(TAG, t.toString());\n createDialog(t);\n }\n });\n return true;\n }\n });\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Test(priority =1)\n\tpublic void userAddProductsToCompareList() {\n\t\tsearch = new SearchPage(driver);\n\t\tproductDetails = new ProductDetailsPage(driver);\n\t\tcompare = new AddToCompareListPage(driver);\n\n\t\tsearch.searchUsingAutoCompleteList(\"niko\");\n\t\tassertTrue(productDetails.productNameInBreadCrumb.getText().equalsIgnoreCase(firstProductName));\n\t\tproductDetails.addToCompareList();\n\t\t\n\t\tsearch.searchUsingAutoCompleteList(\"leic\");\n\t\tproductDetails = new ProductDetailsPage(driver);\n\t\tassertTrue(productDetails.productNameInBreadCrumb.getText().equalsIgnoreCase(secondProductName));\n\t\tproductDetails.addToCompareList();\n\t\tproductDetails.openProductComparisonPage();\n\t\tcompare.compareProducts();\n\n\t}", "@Step(\"Work Order Type Search Lookup\")\n public boolean lookupWorkOrderTypeSearch(String searchText) {\n boolean flag = false;\n pageActions.clickAt(workOrderTypeLookup, \"Clicking on Work Order Type Look Up Search\");\n try {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n new WebDriverWait(driver, 20)\n .until(ExpectedConditions.elementToBeClickable(searchInTypeGrid));\n pageActions.typeAndPressEnterKey(searchInTypeGrid, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 20).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "void searchProbed (Search search);", "public String searchResult(){\n return getText(first_product_title);\n }", "@RequestMapping(value = \"/signup/getProducts\", method = RequestMethod.POST)\n @ResponseBody\n public SPResponse getProducts(@RequestParam ProductType productType) {\n SPResponse spResponse = new SPResponse();\n \n String property = enviornment.getProperty(\"sp.active.products.\" + productType.toString());\n String[] productsArr = property.split(\",\");\n List<String> productsList = Arrays.asList(productsArr);\n List<Product> products = productRepository.findAllProductsById(productsList);\n if (products != null && products.size() != 0) {\n spResponse.add(\"products\", products);\n } else {\n spResponse.addError(\"Product_Not_Found\", \"No products found for type :\" + productType);\n }\n return spResponse;\n }", "@Override\r\n\tpublic List<Product> searchProduct(String name,List<Product> prodlist) {\n\t\tList<Product> n=new ArrayList<Product>();\r\n\t\t{\r\n\t\t\tfor (Product x:prodlist)\r\n\t\t\t{\r\n\t\t\t\tif(name.equals(x.getName()))\r\n\t\t\t\t{\r\n\t\t\t\t\tn.add(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn n;\t\r\n\t\t\r\n\t}", "@FXML\n\tvoid search(ActionEvent event) {\n\n\t\ttry {\n\n\t\t\tif(idEditText.getText().equals(\"\")) {\n\n\t\t\t\tthrow new InsufficientInformationException();\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tPlanetarySystem ps = ns.search(Integer.parseInt(idEditText.getText()));\n\n\t\t\t\tif(ps != null) {\n\t\t\t\t\t\n\t\t\t\t\tloadInformation(ps);\t\t\t\t\t\n\t\t\t\t\teditSelectionAlerts();\n\t\t\t\t\tupdateValidationsAvailability(true);\n\t\t\t\t\tupdateButtonsAvailability(true, true, true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsystemNotFoundAlert();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tcatch(InsufficientInformationException e) {\n\t\t\tinsufficientDataAlert();\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tsystemNotFoundAlert();\n\t\t}\n\n\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "private void setSearchItems(Number index) {\n String searchSelected;\n if (index == null) {\n searchSelected = searchSelection.getSelectionModel().getSelectedItem();\n } else {\n searchSelected = menuItems[index.intValue()];\n }\n\n final String searchText = searchField.getText().trim().toUpperCase();\n if (searchText == null || \"\".equals(searchText)) {\n // Search field is blank, remove filters if active\n if (searchFilter != null) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n return;\n }\n\n boolean matchAny = MATCHANY.equals(searchSelected);\n\n if (searchFilter == null) {\n searchFilter = new CustomerListFilter();\n searchFilter.setOr(true);\n filterList.add(searchFilter);\n } else {\n searchFilter.getFilterList().clear();\n }\n if ((matchAny || SURNAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aSurname = a.getSurname().toUpperCase();\n return (aSurname.contains(searchText));\n });\n }\n if ((matchAny || FORENAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aForename = a.getForename().toUpperCase();\n return (aForename.contains(searchText));\n });\n }\n if (matchAny || CHILD.equals(searchSelected)) {\n searchFilter.addFilter(a -> {\n String aChildname = a.getChildrenProperty().getValue().toUpperCase();\n return (aChildname.contains(searchText));\n });\n }\n if ((matchAny || CARREG.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aCars = a.getCarRegProperty().getValue().toUpperCase();\n return (aCars.contains(searchText));\n });\n }\n // No filter to apply?\n if (searchFilter.getFilterList().size() == 0) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n }", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\n\t\t}", "@Test\n public void searchingItem() throws InterruptedException {\n ChromeDriver driver = openChromeDriver();\n driver.get(\"https://www.knjizare-vulkan.rs/\");\n WebElement cookieConsent = driver.findElement(By.xpath(\"//button[@class='cookie-agree 3'][.//span[contains(text(), 'Slažem se')]]\"));\n WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(3));\n\n wait.until(ExpectedConditions.visibilityOf(cookieConsent));\n cookieConsent.click();\n\n WebElement searchLocator = driver.findElement(By.xpath(\"//div[@data-content='Pretraži sajt']\"));\n searchLocator.click();\n\n\n WebElement searchField = driver.findElement(By.id(\"search-text\"));\n Thread.sleep(2000);\n\n\n searchField.click();\n searchField.clear();\n searchField.sendKeys(\"Prokleta avlija\");\n searchField.sendKeys(Keys.ENTER);\n\n WebElement numberOfProducts = driver.findElement(By.xpath(\"//div[@class='products-found']\"));\n if (numberOfProducts != null) {\n System.out.println(\"The book with title Prokleta avlija is found. \");\n } else{\n System.out.println(\"Product is not found. \");\n }\n\n\n\n\n\n\n }" ]
[ "0.78339994", "0.7058392", "0.6970282", "0.694802", "0.69180226", "0.67235297", "0.6687466", "0.6683326", "0.6612895", "0.6582935", "0.6547865", "0.6541652", "0.6492922", "0.6485328", "0.64819825", "0.64586246", "0.6457227", "0.64007765", "0.6398578", "0.63820124", "0.63655573", "0.63458794", "0.63352686", "0.63347286", "0.63205355", "0.62734467", "0.62617224", "0.6252058", "0.62495804", "0.6247984", "0.6190212", "0.6160953", "0.61548173", "0.6132115", "0.6127788", "0.6088026", "0.6074066", "0.60646564", "0.6063375", "0.6046791", "0.6041308", "0.6030764", "0.60250056", "0.601002", "0.59908086", "0.59450066", "0.5928365", "0.5917343", "0.5912588", "0.5910239", "0.5908964", "0.59048355", "0.5892171", "0.5873008", "0.58636516", "0.5826815", "0.5819339", "0.5810796", "0.5794873", "0.57945114", "0.57813996", "0.5771879", "0.5769986", "0.5765812", "0.5762721", "0.57544065", "0.57447314", "0.5743168", "0.5740793", "0.5736641", "0.57313716", "0.57179326", "0.5705656", "0.57047164", "0.5704013", "0.57036245", "0.570123", "0.5696208", "0.56950235", "0.5687122", "0.5681273", "0.5679064", "0.5671297", "0.5667471", "0.5648548", "0.5644521", "0.564182", "0.5637943", "0.5623023", "0.5620561", "0.5612643", "0.56124675", "0.5607984", "0.56067026", "0.5606341", "0.5605287", "0.560499", "0.55951154", "0.55945575", "0.55922604" ]
0.6671376
8
verify user is on printed dress page
public String verifyUserOnPrintedDressPage(){ WebElement page = driver.findElement(By.cssSelector("span[class='lighter']")); String pageStatus = page.getText(); return pageStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean Verifypage();", "@Override\n\tpublic void checkPage() {\n\t}", "public void verifyPrintPageOpenedInNewWindow() {\n\t Assert.assertTrue(printPreviewApp.isDisplayed());\n\t}", "public void v_Verify_Guest4_Displayed(){\n\t}", "private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }", "boolean hasPage();", "boolean hasPage();", "public String verifyPrintableViewIsOpening(String object, String data) {\n logger.debug(\"Inside verifyPrintableViewIsOpening() \");\n\n try {\n\n String mainwindow = \"\";\n String newwindow = \"\";\n Set<String> windowids = driver.getWindowHandles();\n Iterator<String> ite = windowids.iterator();\n mainwindow = ite.next();\n newwindow = ite.next();\n driver.switchTo().window(newwindow);\n Thread.sleep(5000);\n String url = driver.getCurrentUrl();\n driver.close();\n driver.switchTo().window(mainwindow);\n if (url.contains(data)) {\n return Constants.KEYWORD_PASS + \" printable window opens\";\n } else {\n return Constants.KEYWORD_FAIL + \" printable window does not open\";\n }\n\n } catch (Exception nse) {\n\n return Constants.KEYWORD_FAIL + nse.getLocalizedMessage();\n }\n }", "public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void v_Verify_Guest10_Displayed(){\n\t}", "public void v_Verify_Guest7_Displayed(){\n\t}", "public void v_Verify_Guest5_Displayed(){\n\t}", "boolean hasLandingPageView();", "@When(\"^Test Insurance review page is diplayed$\")\n\tpublic void test_Insurance_review_page_is_diplayed() throws Throwable {\n\t\treviewPageObjects.verifyReviewPagedisplayed();\n\t}", "public boolean veirfyUserOnSummerDressesPage(){\n WebElement page = driver.findElement(By.cssSelector(\"div[class='cat_desc']\"));\n boolean pageStatus = page.isDisplayed();\n return pageStatus;\n }", "public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }", "private Boolean isPDF(PrintDocument printDocument) {\n String url = printDocument.getUrl();\n String filename = url.substring(url.lastIndexOf(\"/\") + 1);\n\n return filename.matches(\"^.*\\\\.(pdf)$\");\n }", "public void v_Verify_Guest3_Displayed(){\n\t}", "private boolean runPrintReceiptSequenceEpson() {\n if (!initializeObjectEpson()) {\n return false;\n }\n\n if (!createReceiptDataEpson()) {\n finalizeObjectEpson();\n return false;\n }\n\n if (!printDataEpson()) {\n finalizeObjectEpson();\n return false;\n }\n\n return true;\n }", "public boolean isEnabledPrint() {\n return enabledPrint;\n }", "public void v_Verify_Guest11_Displayed(){\n\t}", "@Given(\"^User is on netbanking landing page$\")\r\n public void user_is_on_netbanking_landing_page() throws Throwable {\n System.out.println(\"Navigated to Login URL\");\r\n }", "private void doPrintAdvice(){\n\t\tcurrentStep = OPERATION_NAME+\": printing advice\";\n\t\tString[] toDisplay = {\n\t\t\t\t\"Operation succeeded!\",\n\t\t\t\t\"You have changed your password\",\n\t\t\t\t\"Press 1 -> Print the advice\",\n\t\t\t\t\"Press 2 -> Quit without printing\"\n\t\t};\n\t\tif (!_atmssHandler.doDisDisplayUpper(toDisplay)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn;\n\t\t}\n\t\twhile (true) {\n\t\t\tString userInput = _atmssHandler.doKPGetSingleInput(TIME_LIMIT);\n\t\t\tif (userInput == null) return;\n\t\t\tif (userInput.equals(\"1\")) {\n\t\t\t\tString[] toPrint = {\n\t\t\t\t\t\t\"Operation name: \" + OPERATION_NAME,\n\t\t\t\t\t\t\"Card Number: \" + _session.getCardNo(),\n\t\t\t\t\t\t\"Result: succeeded\"\n\t\t\t\t};\n\t\t\t\tif (!_atmssHandler.doAPPrintStrArray(toPrint)) record(\"AP\");\n\t\t\t\treturn;\n\t\t\t} else if (userInput.equals(\"2\")) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public boolean verifyPageLoad() {\n\t\tboolean result = lnkLoginButton.isDisplayed();\n\t\tLog.info(\"Home Page Loaded Successfully\");\n\t\treturn result;\n\t}", "Point onPage();", "public void PrinterStatus(){\n PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);\n System.out.println(\"Printer Services found:\");\n printService(services);\n\n // Look up the default print service\n PrintService service = PrintServiceLookup.lookupDefaultPrintService();\n if (service!=null) {\n System.out.println(\"Default Printer Service found:\");\n System.out.println(\"t\" + service);\n }\n\n\t\n // find printer service by name\n AttributeSet aset_name = new HashAttributeSet();\n aset_name.add(new PrinterName(\"Microsoft XPS Document Writer\", null));\n services = PrintServiceLookup.lookupPrintServices(null, aset_name);\n\n System.out.println(\"Printer Service Microsoft XPS Document Writer:\");\n printService(services);\n \n // find printer service by ip\n PrintServiceAttributeSet aset_URI = new HashPrintServiceAttributeSet();\n try {\n aset_URI.add(new PrinterURI(new URI(\"this ipp is wrong --ipp://hostName/printerName\")));\n } catch (URISyntaxException e) {\n System.out.println(\"URI exception caught: \"+e);\n }\n services = PrintServiceLookup.lookupPrintServices(null,aset_URI); \n // null could be replaced by DocFlavor.INPUT_STREAM.POSTSCRIPT, etc...\n System.out.println(\"Printer specific URI :\");\n printService(services);\n \n /*\n //another way to print to a specific uri\n URI printerURI = null;\n try {\n printerURI = new URI(\"ipp://SERVER:631/printers/PRINTER_NAME\");\n } catch (URISyntaxException ex) {\n Logger.getLogger(PrinterStatus.class.getName()).log(Level.SEVERE, null, ex);\n }\n IppPrintService svc = new IppPrintService(printerURI);\n services = PrintServiceLookup.lookupPrintServices(null,aset_URI); \n // null could be replaced by DocFlavor.INPUT_STREAM.POSTSCRIPT, etc...\n System.out.println(\"Printer specific URI :\");\n printService(services);\n // following is the way to print sth in a format of flavor\n InputStream stream = new BufferedInputStream(new FileInputStream(\"image.epl\"));\n DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;\n Doc myDoc = new SimpleDoc(stream, flavor, null);\n DocPrintJob job = svc.createPrintJob();\n job.print(myDoc, null);\n */\n \n /*\n // find services that support a particular input format (e.g. JPEG)\n services = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.JPEG, null);\n System.out.println(\"Printer Services with JPEG support:\");\n printService(services);\n\n //find services that support a set of print job capabilities (e.g. color)\n aset = new HashAttributeSet();\n aset.add(ColorSupported.SUPPORTED);\n services = PrintServiceLookup.lookupPrintServices(null, aset);\n\n System.out.println(\"Printer Services with color support:\");\n printService(services);\n */ \n }", "public void v_Verify_Guest1_Displayed(){\n\t}", "private boolean isPageLoaded(List<By> vps) {\n\t\ttry {\n\t\t\tfor (By point : vps) {\n\t\t\t\tif(!webDriver.findElement(point).isDisplayed()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If all verification points are found, we are on the correct page.\n\t\t\treturn true;\n\t\t} catch (NoSuchElementException noSuchElementException) {\n\t\t\tlog.debug(NO_SUCH_ELEMENT, noSuchElementException);\n\t\t\treturn false;\n\t\t} catch (NullPointerException noPointerException) {\n\t\t\tlog.debug(NULL_WEB_ELEMENT, noPointerException);\n\t\t\treturn false;\n\t\t} catch (ElementNotVisibleException notVisibleException) {\n\t\t\tlog.debug(NOT_VISIBLE, notVisibleException);\n\t\t\treturn false;\n\t\t}\n\t}", "public void user_details()\n {\n\t boolean userdetpresent =userdetails.size()>0;\n\t if(userdetpresent)\n\t {\n\t\t //System.out.println(\"User details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User details report is not present\");\n\t }\n }", "public void v_Verify_Guest12_Displayed(){\n\t}", "public static boolean isPrint(Node n) {\n\n if (n.getNode(0).getName() == \"SelectionExpression\") {\n if (n.getNode(0).getNode(0).getName() == \"PrimaryIdentifier\") {\n if (n.getNode(0).getNode(0).getString(0).equals(\"System\")) {\n return true;\n }\n }\n }\n return false;\n }", "public void v_Verify_Guest9_Displayed(){\n\t}", "@NotNull\n boolean isTrustedWholeLand();", "protected boolean validatePage( UserRequest request,\n int pageNumber,\n String buttonPressed)\n throws IOException, ServletException\n {\n // default noop\n return true;\n }", "public void visitPOSPrinter( DevCat devCat ) {}", "public void v_Verify_Guest6_Displayed(){\n\t}", "public void verifyRunDiagnosticsPage(String university)\r\n\t{ \r\n\t\tverifyHelpPageUrl(driver,university);\r\n\t\tif(picture.isDisplayed())\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"run diagnostics page verified\");\r\n\t\t\tATUReports.add(time +\" run diagnostics page verified\", LogAs.PASSED, null);\r\n\t\t\tAssert.assertTrue(true);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"run diagnostics page not verified\");\r\n\t\t\tATUReports.add(time +\" run diagnostics page not verified\", LogAs.FAILED, new CaptureScreen(ScreenshotOf.BROWSER_PAGE));\r\n\t\t\tAssert.assertTrue(false);\r\n\t\t}\r\n\t}", "private boolean printing_status() {\n\t\treturn _status_line != null;\n\t}", "public void v_Verify_Guest8_Displayed(){\n\t}", "public boolean isPageOpened() {\n\t\ttry {\n\t\t\tTechnicalComponents.waitTill(txtUpgradeAccount, \"visible\");\n\t\t\tif (driver.getCurrentUrl().contains(urlsuffix)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (FrameworkException e) {\n\t\t\tthrow new FrameworkException(\n\t\t\t\t\t\"Upgarde page Not Loaded within specified time.---\" + e.getClass() + \"---\" + e.getMessage());\n\t\t}\n\n\t}", "public String markDivorceExtractAsPrinted() {\n MarriageRegister marriageRegister = marriageRegistrationService.getMarriageRegisterByIdUKey(idUKey, user,\n Permission.PRINT_MARRIAGE_EXTRACT);\n\n if (marriageRegister != null && marriageRegister.getState() == MarriageRegister.State.DIVORCE_CERT_PRINTED) {\n addActionMessage(getText(\"message.divorcerextract.alreadymarkedasprinted\"));\n return SUCCESS;\n } else {\n try {\n //TODO : refactor rename licensePrintedLocationId and licenseIssuedUserId in order to user this attribute for both notice and Extract print\n marriageRegistrationService.markDivorceExtractAsPrinted(idUKey, locationDAO.\n getLocation(licensePrintedLocationId), userDAO.getUserByPK(licenseIssuedUserId), user);\n } catch (CRSRuntimeException e) {\n switch (e.getErrorCode()) {\n case ErrorCodes.MARRIAGE_REGISTER_NOT_FOUND:\n addActionError(getText(\"error.marriageregister.notfound\"));\n break;\n case ErrorCodes.INVALID_STATE_OF_MARRIAGE_REGISTER:\n addActionError(getText(\"error.marriageregister.invalidstate\"));\n break;\n case ErrorCodes.PERMISSION_DENIED:\n addActionError(getText(\"message.permissiondenied\"));\n break;\n case ErrorCodes.INVALID_LOCATION_ON_ISSUING_MARRIAGE_EXTRACT:\n addActionError(getText(\"message.marriagerextract.markasprintedfailed\"));\n break;\n case ErrorCodes.INVALID_USER_ON_CERTIFYING_MARRIAGE_EXTRACT:\n addActionError(getText(\"message.marriagerextract.markasprintedfailed\"));\n break;\n default:\n addActionError(getText(\"message.marriagerextract.markasprintedfailed\"));\n break;\n }\n return ERROR;\n }\n }\n addActionMessage(getText(\"message.divorceextract.markasprinted\"));\n return SUCCESS;\n }", "public boolean isSprinting ( ) {\n\t\treturn extract ( handle -> handle.isSprinting ( ) );\n\t}", "@Given(\"^That dante is in the flights page$\")\n\tpublic void thatDanteIsInTheFlightsPage() throws Exception {\n\t\tdante.wasAbleTo(OpenTheBrowser.on(viajesExitoHomePage));\n\t}", "private static void printDetail() {\n System.out.println(\"Welcome to LockedMe.com\");\n System.out.println(\"Version: 1.0\");\n System.out.println(\"Developer: Sherman Xu\");\n System.out.println(\"[email protected]\");\n }", "public void v_Verify_Guest2_Displayed(){\n\t}", "boolean hasPageNo();", "boolean hasPageNo();", "public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}", "@Given(\"^User is on the NetBanking landing page$\")\n\tpublic void user_is_on_the_NetBanking_landing_page() {\n\t\tSystem.out.println(\"User navigated to landing page\");\n\t}", "public boolean validateBrokersAndNavigatorsPageisDisplayed() {\n\t\tboolean result = false;\n\n\t\tif (Browser.isDisplayed(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\")) {\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\n\t}", "@Test\r\n\t @Given(\"the application is in Post Free Ad Form Page\")\r\n\t public void the_application_is_in_Post_Free_Ad_Form_Page() {\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://www.quikr.com/pets/post-classifieds-ads+allindia?postadcategoryid=1392\");\r\n\t }", "private boolean canPrintContratEngagement(ContratDTO c)\r\n\t{\n\t\tif (new EditionSpeService().needEngagement(c.modeleContratId)==false)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tswitch (peMesContrats.canPrintContratEngagement)\r\n\t\t{\r\n\t\tcase TOUJOURS:\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\tcase JAMAIS:\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\tcase APRES_DATE_FIN_DES_INSCRIPTIONS:\r\n\t\t\tDate dateRef = DateUtils.getDateWithNoTime();\r\n\t\t\treturn dateRef.after(c.dateFinInscription);\r\n\r\n\t\tdefault:\r\n\t\t\tthrow new AmapjRuntimeException();\r\n\t\t}\r\n\t}", "@Override\n public boolean isPageLoaded() {\n\n setLogString(\"Verify the savings Page is loaded\", true, CustomLogLevel.LOW);\n return isDisplayed(getDriver(), By.cssSelector(SAVINGS_CONTAINER), TINY_TIMEOUT)\n && isDisplayed(getDriver(), By.className(SAVINGS_DOLLARS), TINY_TIMEOUT)\n && isDisplayed(getDriver(), By.cssSelector(MENU_SAVINGS), TINY_TIMEOUT);\n\n }", "public String verifyDisabledContentInPrintWindow(String object, String data) {\n logger.debug(\"Inside verifyDisabledContentInPrintWindow() \");\n\n try {\n /*\n * boolean flag=false; boolean flag2=false;\n */\n String mainwindow = \"\";\n String newwindow = \"\";\n Set<String> windowids = driver.getWindowHandles();\n Iterator<String> ite = windowids.iterator();\n mainwindow = ite.next();\n newwindow = ite.next();\n driver.switchTo().window(newwindow);\n Thread.sleep(5000);\n\n String objArr[] = object.split(Constants.Object_SPLIT);\n\n for (int i = 0; i < objArr.length; i++) {\n int size = explictWaitForElementSize(objArr[i]);\n if (size > 0) {\n continue;\n } else {\n driver.close();\n driver.switchTo().window(mainwindow);\n return Constants.KEYWORD_FAIL + \" -elements in printable window are not disabled\";\n\n }\n }\n String url = driver.getCurrentUrl();\n logger.debug(url);\n driver.close();\n driver.switchTo().window(mainwindow);\n if (url.contains(data)) {\n return Constants.KEYWORD_PASS + \" printable window opens and elements are disabled\";\n } else {\n return Constants.KEYWORD_FAIL + \" printable window does not open\";\n }\n\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n }\n }", "public static boolean usePrinting() {\n\t\treturn (isWindows() || isSolaris() || isMac());\n\t}", "void printCheck();", "@Override\n\tpublic boolean checkViewSupport(int viewPage) {\n\t\treturn false;\n\t}", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "public boolean isAt(){\n\t\tWaitExtensions.waitForPageToLoad(10);\n\t\treturn loginButton.isDisplayed();\n\t\t\n\t}", "private boolean isThereSuchPage (int number) {\n\t\tif (number > 0 && number <= this.getPages().length) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSystem.out.println(\"There isn't such page!\");\n\t\t\treturn false;\n\t\t}\n\t}", "void isPrintable(boolean b) {\n\t\tm.isPrintable=b;\n\t}", "public boolean isSprinting(){\n return this.sprint;\n }", "private static boolean isPrintableDate(long days) {\n return days >= -141427 & days <= 2932896;\n }", "@Test(description = \"Проверка отображения стартовой страницы\")\n public void startPageDisplayCheck() {\n StartPage startPage = (StartPage) context.getBean(\"startPage\");\n\n startPage.checkPageShow();\n }", "public void v_Verify_Guest4_Hidden(){\n\t}", "public boolean isPageRequested() {\n\n // If we're in add XML MO mode and have at least one future MO, a new page is not desired.\n if (wizard.isInAddXmlMoMode() && wizard.hasFutureManagedObjects()) {\n return false;\n }\n\n return getPageIdx() >= 0;\n }", "private Boolean isRaw(PrintDocument printDocument) {\n return printDocument.getRawContent() != null && !printDocument.getRawContent().isEmpty();\n }", "boolean hasFingerPrint();", "boolean hasPokemonDisplay();", "public void verifyDemoPageisOpened(String strTitleofthepage) {\r\n\t\tWebElement demopage = driver.findElement(By.xpath(\"//h3[text()='\" + strTitleofthepage + \"']\"));\r\n\t\tif (demopage.isDisplayed()) {\r\n\t\t\tSystem.out.println(demopage.getText() + \"is opened\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Expected page is not opened\");\r\n\t\t}\r\n\t}", "public void v_Verify_Guest10_Hidden(){\n\t}", "@Given(\"^The user is in the login page$\")\n\tpublic void the_user_is_in_the_login_page() throws Throwable {\n\t\tChrome_Driver();\n\t\tlpw =new Login_Page_WebElements();\n\t\tlpw.open_orange_hrm();\n\t}", "public static void isPupupPreasent(WebElement ele ,String objectName) {\n if (ele.isDisplayed())\n\t{System.out.println(ele +\"Is displayed in he screen\");}\n else \n\t{System.out.println(ele+\"not found in the Screen\");}\n\n\n}", "@Then(\"I land on checkboxradio page\")\n public void i_land_on_checkboxradio_page() {\n System.out.println(\"checkbox landing page\");\n }", "private Boolean isPageValid(final HtmlPage page) {\n HtmlTable table = (HtmlTable) page.getElementById(RESULTS_TABLE_ID);\n return (table != null && table.getRowCount() > 1);\n }", "private void actionPrint() {\n // get PrinterJob\n PrinterJob job = PrinterJob.getPrinterJob();\n MyPrintable printable = new MyPrintable(job.defaultPage(), layoutPanel);\n\n // setup Printable, Pageable\n job.setPrintable(printable);\n job.setPageable(printable);\n\n // display print dialog and print\n if (job.printDialog()) {\n try {\n job.print();\n } catch (PrinterException e) {\n e.printStackTrace();\n }\n }\n }", "public void assertMyTraderPage() {\r\n\t\tprint(\"Welcome to My Trader text on My Trader page\");\r\n\t\twaitForElementPresentInDom(3);\r\n\t\tlocator = Locator.MyTrader.MyTrader_Message.value;\r\n\t\tAssert.assertTrue(isTextPresent(locator, \"Welcome to MyTrader\"), \"Element Locator :\" + locator + \" Not found\");\r\n\t}", "private void print_da_page() {\n \t\tSystem.out.println(\"**** Hell yeah, print da page\");\n \t\t// des Assert ici pour verifier qq truc sur le local storage serait p-e\n \t\t// bien..\n \n \t\tsetInSlot(SLOT_OPTION_SELECION, cardSelectionOptionPresenter);\n \t\tcardSelectionOptionPresenter.init();\n \t\t\n \t\tsetInSlot(SLOT_BOARD, boardPresenter);\n \n \t\tcardDragController.registerDropController(cardDropPanel);\n \t\t\n \t\tsetStaticFirstComboView();\n \t\twriteInstancePanel();\n \t\tStorage_access.setCurrentProjectInstanceBddId(0);\n \t\t//Storage_access.setCurrentProjectInstance(Storage_access.getInstanceBddId(Storage_access.getCurrentProjectInstance()));\n \t\t\n \t\treDrowStatusCard();\n \t\t\n \t\tthis.boardPresenter.redrawBoard(0,0); //TODO n'enregistrerons nous pas la \"vue par default\"? ou la derniere ?\n \t\t\n \t\twriteCardWidgetsFirstTime();\n \t\t//getView().constructFlex(cardDragController);\n \t\n \t\t\n \t\t\n \t\t//CellDropControler dropController = new CellDropControler(simplePanel);\n \t //\tcardDragController.registerDropController(dropController);\n \n \t}", "public void Verify_Page_Header_Visibility()\r\n\t{\r\n\t\t if(Page_header.isDisplayed())\r\n\t\t\t System.out.println(\"header visible at webpage\");\r\n\t\t else\r\n\t\t\t System.out.println(\"header not visible at webpage\");\r\n\t\t\r\n\t}", "public boolean isUntrustedVirtualDisplay() {\n return this.mDisplay.getType() == 5 && this.mDisplay.getOwnerUid() != 1000;\n }", "protected boolean validatePage(PDPage page, DocumentHandler handler,\n List<ValidationError> result) throws ValidationException {\n boolean isValid = validateActions(page, handler, result);\n isValid = isValid && validateAnnotation(page, handler, result);\n isValid = isValid && validateTransparency(page, handler, result);\n isValid = isValid && validateContent(page, handler, result);\n isValid = isValid && validateShadingPattern(page, handler, result);\n return isValid;\n }", "@Flaky\n @Test\n public void checkServicePage() {\n assertEquals(getWebDriver().getTitle(), MAIN_DRIVER_TITLE);\n\n //2. Perform login\n servicePage.login(cfg.login(), cfg.password());\n\n //3. Assert User name in the left-top side of screen that user is loggined\n servicePage.checkUserNameTitle();\n\n\n }", "public void doPrint() {\n printBehavior.printReceipt();\n\n }", "public boolean defineSetupPage_state() {\r\n\t\treturn IsElementVisibleStatus(DefineSetupPageName);\r\n\t}", "public void verifyPage() {\n\t\twaitForPageToLoad();\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tAssert.assertEquals(title,\"News: India News, Latest Bollywood News, Sports News, Business & Political News, National & International News | Times of India\");\n\t}", "@Override\n\tpublic boolean getPrint() {\n\t\treturn false;\n\t}", "public void v_Verify_Guest5_Hidden(){\n\t}", "public String verifyNewWindowURL(String object, String data) {\n\t\tlogger.debug(\"Inside verifyPrintableViewIsOpening() \");\n\n\t\ttry {\n\t\t\tString mainwindow = \"\";\n\t\t\tString newwindow = \"\";\n\t\t\tSet<String> windowids = driver.getWindowHandles();\n\t\t\tIterator<String> ite = windowids.iterator();\n\t\t\tmainwindow = ite.next();\n\t\t\tnewwindow = ite.next();\n\t\t\tdriver.switchTo().window(newwindow);\n\t\t\tThread.sleep(5000);\n\t\t\tString url = driver.getCurrentUrl();\n\t\t\tdriver.close();\n\t\t\tdriver.switchTo().window(mainwindow);\n\t\t\tlogger.debug(url);\n\t\t\tlogger.debug(data);\n\t\t\tif (url.contains(data)) {\n\t\t\t\treturn Constants.KEYWORD_PASS + \" printable window opens\";\n\t\t\t} else {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" printable window does not open\";\n\t\t\t}\n\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\t}", "public void v_Verify_Guest7_Hidden(){\n\t}", "public void printReceipt(int amount){\r\n PaymentAuthorization payAuth = new PaymentAuthorization();\r\n if (payAuth.authRequest(card)){\r\n System.out.println(\"Take the receipt\");\r\n }\r\n }", "public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}", "public boolean isPageComplete();", "@Test\r\n\tpublic void TC_01_verifyRegistrationPage() {\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t}", "private void gotoCompletePage() {\n WebkitUtil.forward(mWebView, AFTER_PRINT_PAGE);\n }", "private static double checkUserBalance(User user, Document doc, Printer printer) {\n\t\t\n\t\tdouble balance = user.getBalance().doubleValue();\n\t\tint pagesToPrint = printer.numPagesToPrint(doc).intValue();\n\t\t\n\t\tchar format = doc.getPageFormat();\n\t\tchar toner = doc.getPageToner();\n\n\t\tdouble pricing = 0.0;\n\n\t\t// Get printer pricing\n\t\tif(format == '4' && toner == 'B') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA4Black().doubleValue();\n\t\t} else if(format == '4' && toner == 'C') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA4Color().doubleValue();\n\t\t} else if(format == '3' && toner == 'B') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA3Black().doubleValue();\n\t\t} else if(format == '3' && toner == 'C') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA3Color().doubleValue();\n\t\t}\n\t\t\n\t\t// Calc total cost\n\t\tdouble totalCost = pricing * pagesToPrint;\n\t\t\n\t\tif(balance >= totalCost) return 0;\n\t\telse return totalCost;\n\t}", "public boolean isSetUpPage() {\n return EncodingUtils.testBit(__isset_bitfield, __UPPAGE_ISSET_ID);\n }", "public String verifyUserOnWomenPage(){\n WebElement womenPage = driver.findElement(By.cssSelector(\"div[class='breadcrumb clearfix'] a[title='Dresses']\"));\n String womenPageStatus = womenPage.getText();\n return womenPageStatus;\n }", "public void v_Verify_Guest3_Hidden(){\n\t}", "if(true==adhocTicket.isPaid()){\n System.out.println(\"isPaid() is passed\");\n }", "public void v_Verify_Guest6_Hidden(){\n\t}" ]
[ "0.6095072", "0.59478676", "0.58678347", "0.5688211", "0.56757146", "0.56710196", "0.56710196", "0.56496394", "0.56094766", "0.5585991", "0.55397505", "0.55327165", "0.5520644", "0.5486691", "0.5460352", "0.54495466", "0.544696", "0.54449177", "0.5428328", "0.5426106", "0.54185", "0.54175836", "0.541516", "0.5399642", "0.53933835", "0.5392545", "0.53922904", "0.5389832", "0.53849304", "0.538362", "0.5381428", "0.53782225", "0.53750074", "0.5368816", "0.53666914", "0.53615415", "0.53614974", "0.53445137", "0.53428924", "0.53216475", "0.531313", "0.5311953", "0.5311055", "0.5300494", "0.52792627", "0.52695256", "0.52695256", "0.5250905", "0.5248454", "0.524408", "0.52255577", "0.52131665", "0.5212256", "0.52112734", "0.5210573", "0.52065176", "0.52063376", "0.52040017", "0.51997507", "0.5193478", "0.5184316", "0.5169742", "0.516885", "0.5167768", "0.5165429", "0.51465005", "0.51237565", "0.51174855", "0.5115132", "0.5096901", "0.50943273", "0.50895476", "0.50894207", "0.50825006", "0.5081916", "0.5080061", "0.5075239", "0.50594854", "0.5057271", "0.505491", "0.50532895", "0.5042937", "0.5034555", "0.50313824", "0.50180745", "0.5007222", "0.49955666", "0.49953", "0.49849096", "0.4982916", "0.49817926", "0.4978693", "0.49783042", "0.49747437", "0.49702471", "0.49685296", "0.4966678", "0.49644026", "0.49605888", "0.49586698" ]
0.65789634
0
user should be able to click on summer dresses under Women category
public void clickOnSummerDresses(){ a = new Actions(driver); a.moveToElement(driver.findElement(By.cssSelector("div[id ='block_top_menu'] a[title='Women']"))).build().perform(); driver.findElement(By.cssSelector("ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Summer Dresses']")).click(); a.moveToElement(driver.findElement(By.xpath("//ul[contains(@class,'product_list')]/li[2]"))).build().perform(); driver.findElement(By.xpath("//ul[contains(@class,'product_list')]/li[2]/div/div[2]/div[2]/a[1]")).click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void navigateToWomanCategory(){\n a = new Actions(driver);\n a.moveToElement(driver.findElement(By.cssSelector(\"div[id ='block_top_menu'] a[title='Women']\"))).build().perform();\n driver.findElement(By.cssSelector(\"ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Casual Dresses'] \")).click();\n }", "public void selectCategory() {\n\t\t\r\n\t}", "@Test(priority = 2)\n\tpublic void SelectMen() throws InterruptedException {\n\t\t\n\t\tThread.sleep(3000);\n\t\t\n\t\tWebElement Men = driver.findElement(By.xpath(\"//a[@data-group=\\\"men\\\" and contains(text(),'Men')]\"));\n\n\t\tActions act = new Actions(driver);\n\t\tact.moveToElement(Men).perform();\n\n\t\tThread.sleep(2000);\n\n\t\tdriver.findElement(By.xpath(\"//a[text()='Rain Jackets']\")).click();\n\t\t\n\t\tString url = driver.getCurrentUrl();\n\t\tSystem.out.println(\"The url after clicking Rain jackets is:\"+ url);\n\n\t}", "public void onCategoryClicked(String category){\n\t\tfor(int i = 0 ; i < mData.getStatistics().size(); i++){\r\n\t\t\tif(mData.getStatistics().get(i).getCategory().equals(category)){\r\n\t\t\t\tif(mData.getStatistics().get(i).getDueChallenges() == 0){\r\n\t\t\t\t\tmGui.showToastNoDueChallenges(mData.getActivity());\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Start activity challenge (learn session) with category and user \t\r\n\t\t\t\t\tNavigation.startActivityChallenge(mData.getActivity(), mData.getUser(), category);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "void clickOnWarehouse(Node warehouse);", "@When(\"^user click on apparel category from home page$\")\n public void userClickOnApparelCategoryFromHomePage() {\n homePage.clickOnAppareal();\n }", "public void clickGender() {\n driver.findElement(gender).click();\n }", "public void category1() {\r\n\t\tmySelect1.click();\r\n\t}", "public void category(String menuCategory) {\n for (WebElement element : categories) {\n\n if (menuCategory.equals(CategoryConstants.NEW_IN.toString())) {\n String newin = menuCategory.replace(\"_\", \" \");\n menuCategory = newin;\n }\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String elementText = element.getText();\n if (elementText.equals(menuCategory)) {\n element.click();\n\n break;\n }\n }\n }", "public void clickPresselGermany(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- PresselGermany link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"lnkPresselGermany\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- PresselGermany link is clicked\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- PresselGermany link is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkPresselGermany\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public String searchWomenByName() {\n getNavigate(Locators.LINK_SEARCH);\n String selectedTextInDropDown = getTextFromDropDownSelectedValue(Locators.DROP_DOWN_LIST_SORT_BY, \"name\");\n return selectedTextInDropDown;\n }", "public void selectMenuCatagory(String menuChoice) {\n\t\tBy cName = By.className(\"btn lvl1tab\");\n\t\tList<WebElement> elements = driver.findElements(cName);\n\t\t\n\t\tfor (WebElement item : elements) {\n\t\t\tString test = item.getAttribute(\"innerHTML\");\n\t\t\tif (test.contains(menuChoice)){\n\t\t\t\titem.click();\n\t\t\t}\n\t\t}\n\t}", "public void clickDemandSideManagement();", "@Override\n public void onClick(View view) {\n mFoodAdapter = new FoodAdapter(mFoodManager.getFoodsCategory(mCategoryTitleTextView.getText().toString()));\n mSelectedCategory = getAdapterPosition();\n mIsCategoryOpen = true;\n searchView.setQueryHint(\"Search in \" + FOOD_CATEGORIES[mSelectedCategory]);\n noSearchResultsTextView.setText(\"No results found in \" + FOOD_CATEGORIES[mSelectedCategory]);\n toolbarTitle.setText(FOOD_CATEGORIES[mSelectedCategory]);\n v.requestFocus();\n mFoodRecyclerView.setAdapter(mFoodAdapter);\n }", "@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }", "public void showMemberCategoryMenu() {\n System.out.println(\"Visa lista med: \");\n System.out.println(\"\\t1. Barnmedlemmar\");\n System.out.println(\"\\t2. Ungdomsmedlemmar\");\n System.out.println(\"\\t3. Vuxenmedlemmar\");\n System.out.println(\"\\t4. Seniormedlemmar\");\n System.out.println(\"\\t5. VIP-medlemmar\");\n System.out.print(\"Ange val: \");\n }", "@Override\n public void onClick(View view) {\n final String e = imagedat.get(0).getCategory();\n Intent c = new Intent(MainActivity.this, categories_Activity.class) ;\n c.putExtra(\"Cat\", e);\n startActivity(c);\n }", "public void category2() {\r\n\t\tmySelect2.click();\r\n\t}", "public void clickSupercatlink(String CategoryName){\r\n\t\tString supercartlink1 = getValue(CategoryName);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+supercartlink1);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- '\"+supercartlink1+\"' link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"BylnkSuperCat\"));\r\n\t\t\tclickSpecificElement(locator_split(\"BylnkSuperCat\"),supercartlink1);\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(supercartlink1+\" link is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- '\"+supercartlink1+\"' link is clicked\");\r\n\t\t\tsleep(3000);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+supercartlink1+\" link is not clicked\");\r\n\r\n\t\t}\r\n\t}", "@Override\n public void onCategoryClicked(View itemView) {\n int position = mRecyclerView.getChildLayoutPosition(itemView);\n\n String mCategory = CategoryData.CATEGORY_LIST[position].toLowerCase();\n\n String mDifficulty = \"medium\";\n\n // select a random difficulty level\n Random random = new Random();\n switch(random.nextInt(3)) {\n case 0:\n mDifficulty = \"easy\";\n break;\n case 1:\n mDifficulty = \"medium\";\n break;\n case 2:\n mDifficulty = \"hard\";\n break;\n }\n\n // Select a random word from the assigned category and difficulty\n int resId = FileHelper.getStringIdentifier(getActivity(), mCategory + \"_\" + mDifficulty, \"raw\");\n mWord = FileHelper.selectRandomWord(getActivity(), resId);\n\n // set the edit text\n mEditText.setText(mWord);\n }", "@OnClick(R.id.shop_by_category_layout)\n public void onCategoryLayoutClicked() {\n if (myListener != null) {\n myListener.changeToCategoriesMenu();\n }\n }", "public void visitCashDrawer( DevCat devCat ) {}", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(v.getContext(), DetailViewActivity.class);\n intent.putExtra(\"title\", countries.get(position).getName());\n intent.putExtra(\"link\", countries.get(position).altSpellings.get(0));\n v.getContext().startActivity(intent);\n\n\n\n }", "public void selectProduct() {\n\t\tActions obj = new Actions(driver);\n\t\tobj.moveToElement(driver.findElements(By.xpath(\".//*[@id='center_column']/ul/li\")).get(0)).build().perform();\n\t\tdriver.findElement(By.xpath(\".//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]/span\")).click();\n\t}", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n City item = (City) parent.getItemAtPosition(position);\r\n Toast.makeText(MainActivity.this, \"\"+item.getName(), Toast.LENGTH_SHORT).show();\r\n\r\n Intent i = new Intent (MainActivity.this, DistrictActivity.class);\r\n i.putExtra(\"city_name\", item.getName());\r\n startActivity(i);\r\n }", "public void onSelectCategory(View view) {\n\n Intent intent = new Intent(this, SelectCategoryActivity.class);\n intent.putExtra(\"whichActivity\", 1);\n startActivity(intent);\n\n }", "public void clickOnMoreLatesBookLink() {\n\t}", "Category selectCategory(String name);", "public void clickContactUS() {\n\t\tSystem.out.println(\"Clicked contactus link\");\n\t}", "@Override\n public void onClick(View v) {\n Intent it = new Intent(self, SelectDistrictActivity.class);\n startActivity(it);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, final View view,\n int position, long id) {\n Categoria item = (Categoria) parent.getItemAtPosition(position);\n Toast.makeText(getApplicationContext(), \"SELECIONADO \" + item.getDescricao(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(mContext,SubCategoryPage.class);\n mContext.startActivity(i);\n }", "private void showCategoryMenu() {\n if(CategoryMenu == null) {\n CategoryMenu = new PopupMenu(getActivity(), CategoryExpand);\n CategoryMenu.setOnMenuItemClickListener(this);\n\n MenuInflater inflater = CategoryMenu.getMenuInflater();\n inflater.inflate(R.menu.category_menu, CategoryMenu.getMenu());\n }\n\n if(Equival.isChecked()){\n Toaster toaster = new Toaster(getContext());\n toaster.standardToast(getText(R.string.err_modify_category).toString());\n }\n else CategoryMenu.show();\n setFromCategoryTitleToMenu();\n }", "@Override\n public void onItemCategoryClick(String categoryTitle) {\n Intent intent = new Intent(getContext(), ProductDetails.class);\n intent.putExtra(Constant.CATEGORY_ID_KEY, categoryTitle);\n Log.d(\"categoryTitle\",categoryTitle);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view, int position, boolean isLongClick) {\n Intent foodListIntent = new Intent(Home.this,FoodList.class);\n // CategoryId is a key , so we just get the key of the clicked item\n foodListIntent.putExtra(\"categoryId\" , adapter.getRef(position).getKey());\n startActivity(foodListIntent);\n }", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.ivHookCat:\n unselectAllCategories();\n findViewById(R.id.btnEduCat).setSelected(true);\n toggleSubCategoryView();\n break;\n\n case R.id.btnEduCat:\n unselectAllCategories();\n findViewById(R.id.btnEduCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_EDU);\n break;\n\n case R.id.btnFunCat:\n unselectAllCategories();\n findViewById(R.id.btnFunCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_FUN);\n break;\n\n case R.id.btnGovtCat:\n unselectAllCategories();\n findViewById(R.id.btnGovtCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_GOVT);\n break;\n\n case R.id.btnHealthCat:\n unselectAllCategories();\n findViewById(R.id.btnHealthCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_HEALTH);\n break;\n\n case R.id.btnJobCat:\n unselectAllCategories();\n findViewById(R.id.btnJobCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_JOB);\n break;\n\n case R.id.btnLawCat:\n unselectAllCategories();\n findViewById(R.id.btnLawCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_LAW);\n break;\n\n case R.id.btnMoneyCat:\n unselectAllCategories();\n findViewById(R.id.btnMoneyCat).setSelected(true);\n toggleSubCategoryView(0, AppConstants.CAT_MONEY);\n break;\n\n case R.id.ivOpenerCat:\n if (llFlowingDetails.getWidth() < 1)\n showFlowingDetails();\n else\n hideFlowingDetails();\n break;\n\n default:\n break;\n\n }\n }", "public void clickOnMedication() {\n\t\tscrollDown(element(\"link_medications\"));\n\t\telement(\"link_medications\").click();\n\t\tlogMessage(\"User clicks on Medications on left navigation bar at Physician End\");\n\t}", "@When(\"user clicks on Careers link\")\n public void user_clicks_on_careers_link() throws InterruptedException {\n // bu.windowHandling();\n hp.search();\n }", "@Override\n public void onClick(View v) {\n popup.setOnMenuItemClickListener (new PopupMenu.OnMenuItemClickListener () {\n public boolean onMenuItemClick(MenuItem item) {\n GlobalVariables.indexCityChosen = GlobalVariables.popUpIDToCityIndex.get (item.getItemId ());\n GlobalVariables.CURRENT_CITY_NAME = item.getTitle ().toString ();\n if (GlobalVariables.CITY_GPS != null &&\n item.getTitle ().equals (GlobalVariables.CITY_GPS) &&\n GPSMethods.getCityIndexFromName (GlobalVariables.CITY_GPS) >= 0) {\n currentCityButton.setText (item.getTitle () + \"(GPS)\");\n } else {\n currentCityButton.setText (item.getTitle ());\n }\n ArrayList<EventInfo> tempEventsList =\n FilterMethods.filterByCityAndFilterName (\n GlobalVariables.namesCity[GlobalVariables.indexCityChosen],\n GlobalVariables.CURRENT_FILTER_NAME,\n GlobalVariables.CURRENT_SUB_FILTER,\n GlobalVariables.CURRENT_DATE_FILTER,\n GlobalVariables.CURRENT_PRICE_FILTER,\n GlobalVariables.ALL_EVENTS_DATA);\n filtered_events_data.clear ();\n filtered_events_data.addAll (tempEventsList);\n eventsListAdapter.notifyDataSetChanged ();\n GlobalVariables.USER_CHOSEN_CITY_MANUALLY = true;\n return true;\n }\n });\n popup.show ();//showing popup menu\n }", "@Test\n public void obesityCategory() {\n\n driver.findElement(By.xpath(\"//input[@name='wg']\")).sendKeys(\"102.7\");\n driver.findElement(By.xpath(\"//input[@name='ht']\")).sendKeys(\"185\");\n driver.findElement(By.xpath(\"//input[@name='cc']\")).click();\n Assert.assertEquals(driver.findElement(By.name(\"desc\")).getAttribute(\"value\"), \"Your category is Overweight\",\n \"actual text is not: Your category is Overweight\");\n }", "void clickAmFromMenu();", "@Override\n public void doClick(){\n if(checkBounds())\n {\n mealselect.setDessert(this.type);\n }\n }", "@Override\n public void onClick(View v) {\n displayCitylist();\n }", "public void trendingTopic() {\n\t\tWebElement allTrending = BrowserUtil.driver.findElement(By.xpath(\".//*[@class='topic-list']\"));\n\t\tList<WebElement> trends = allTrending.findElements(By.tagName(\"a\"));\n\t\tRandomizer r = new Randomizer();\n\t\tr.randomClick(trends);\n\t}", "@Override\n public void onItemSelcted(Object data, String brandName) {\n\n Intent c = new Intent(MainActivity.this, categories_Activity.class);\n c.putExtra(\"Cat\", brandName);\n c.putExtra(\"img\", \"https://ownshopz.com/wp-content/uploads/2018/07/5d84ef15c47229ed33758985f45411e3.jpg\");\n startActivity(c);\n }", "public void clickCommunitiesLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Communities or Collaboration Plans\",GlobalVariables.configuration.getAttrSearchList(), \"Communities or Collaboration Plans\");\r\n\t\tUIActions.click(fileName,\"Communities or Collaboration Plans\",GlobalVariables.configuration.getAttrSearchList(), \"Communities or Collaboration Plans\");\r\n\t\t\t\t\r\n\t\t// Assertion : Check Title of Page\r\n \tString title=dataController.getPageDataElements(fileName, \"Collaboration Plans Page Title\", \"Title\");\r\n \tUIActions.waitForTitle(title,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}", "public void setCategory(String category){\n this.category = category;\n }", "@Override\n\t\t\t\t\tpublic void onSelcted(Category mParent, Category category) {\n\t\t\t\t\t\tif (view == solverMan) {\n\t\t\t\t\t\t\tsolverCategory = category;\n\t\t\t\t\t\t\tsolverMan.setContent(category.getName());\n\t\t\t\t\t\t} else {// check is foucs choose person\n\t\t\t\t\t\t\tChooseItemView chooseItemView = (ChooseItemView) view\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.common_add_item_title);\n\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (category.getId().equals(mCategory.getId())) {\n\t\t\t\t\t\t\t\t\t// modify do nothing.\n\t\t\t\t\t\t\t\t\tif (!category.getName().equals(\n\t\t\t\t\t\t\t\t\t\t\tchooseItemView.getContent())) {\n\t\t\t\t\t\t\t\t\t\tshowToast(\"该关注人已经在列表了\");// not in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// chooseItem,but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// other already\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// has this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// name.\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchooseItemView.setContent(category.getName());\n\n\t\t\t\t\t\t\tAddItem addItem = (AddItem) chooseItemView.getTag();\n\t\t\t\t\t\t\t// 关注人是否已经存在,就只更新\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (addItem.tag.equals(mCategory.tag)) {\n\t\t\t\t\t\t\t\t\t// modify .\n\t\t\t\t\t\t\t\t\tmCategory.setName(category.getName());\n\t\t\t\t\t\t\t\t\tmCategory.setId(category.getId());\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLog.i(TAG,\n\t\t\t\t\t\t\t\t\t\"can not find the select item from fouc:\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "@Override\n public CatalogItemFragment findWomen() {\n return mMainView.findWomenView();\n }", "public void seleccionarCategoria(String name);", "public void clickSchool(View view){\n Intent i = new Intent(this,School.class);\n startActivity(i);\n }", "public static WebElement lnk_selectSingleCategory() throws Exception{\r\n \ttry{\r\n \t\t// Date 1-Sep-2016 UI Changed\r\n \t\t//*[contains(@class, 'sidebar_con relateCat kwRelateLink')]\r\n \t\tWebDriverWait waits = new WebDriverWait(driver, 15);\r\n \t\twaits.until(ExpectedConditions.visibilityOfElementLocated(\r\n \t\t\t\tBy.xpath(\"//*[contains(@class, 'sidebar_con relateCat')]\")));\r\n \t\t\r\n \t//\telement = driver.findElement(\r\n \t//\t\t\tBy.xpath(\"(//*[contains(@class, 'sidebar_con relateCat')]/li/a)[position()=1]\"));\r\n \t\t\r\n \t\t// 03-Jan-2017: Select 2nd category\r\n \t\t// 08-Feb-2017: Select 1st category\r\n \t\telement = driver.findElement(\r\n \t\t\t\tBy.xpath(\"(//*[contains(@class, 'sidebar_con relateCat')]/li/a)[position()=1]\"));\r\n \t\t\r\n \t/*\tWebDriverWait waits = new WebDriverWait(driver, 15);\r\n \t\twaits.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"catList\")));\r\n \t\t\r\n \t\telement = driver.findElement(\r\n \t\t\t\tBy.xpath(\"(//*[@id='catList']/li[1]/a)[position()=1]\"));\r\n \t*/\t\r\n \t\t// Print selected category into console\r\n \t\tString txt_getSelectedCategoryName = element.getText();\r\n \t\tAdd_Log.info(\"Selected single category are ::\" + txt_getSelectedCategoryName);\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"Related Categories side bar is NOT found on the page.\");\r\n \t\t// Get the list of window handles\r\n \t\tArrayList<String> tabs = new ArrayList<String> (driver.getWindowHandles());\r\n \t\tAdd_Log.info(\"Print number of window opened ::\" + tabs.size());\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }", "void onChamaItemClicked(int position);", "@Override\n public void onClick(View view) {\n Editable mNameViewText = mNameView.getText();\n Object mGenderViewSelectedItem = mGenderView.getSelectedItem();\n Object mAgeViewSelectedItem = mAgeView.getSelectedItem();\n SearchProvider.search(Shelter.getShelterList(),\n mNameViewText.toString(),\n mGenderViewSelectedItem.toString(),\n mAgeViewSelectedItem.toString());\n startActivity(new Intent(ShelterSearchActivity.this, ShelterResultsActivity.class));\n }", "@Override\n public void onClick(View v) {\n Intent r1page = new Intent(v.getContext(), the_oxford_kitchen.class);\n startActivity(r1page);\n }", "@Override\n\t\t\tpublic boolean onChildClick(ExpandableListView arg0, View arg1,\n\t\t\t\t\tint groupPosition , int childPosition , long arg4) {\n\t\t\t\tSharedPreferences sharedPreferences=getSharedPreferences(Constants.SP_NAME, MODE_PRIVATE);\n\t\t\t\tEditor editor=sharedPreferences.edit();\n\t\t\t\teditor.putString(Constants.SP_UNIVERSITY, university[groupPosition][childPosition]);\n\t\t\t\teditor.commit();\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(UniversityActivity.this, PersonInrformationActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tfinish();\n\t\t\t\treturn true;\n\t\t\t}", "public static void openBooksSection() {\n click(BOOKS_TAB_UPPER_MENU);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Categories.this, ListApps.class);\n intent.putExtra(\"imId\", categorias.get(position).getImId());\n startActivity(intent);\n }", "public void onClick(View v) {\n Intent westminsterIntent = new Intent(confessionsActivity.this, westminsterActivity.class);\n startActivity(westminsterIntent);\n }", "@Override\n public void onClick(View view, int position, boolean isLongClick) {\n //get category id from adapter and set in Common.CategoryId\n Common.categoryId=adapter.getRef(position).getKey(); // 01 or 02 or 03 ..... of category\n Common.categoryName=model.getName(); // set name of category to Common variable categoryName\n startActivity(Start.newIntent(getActivity()));// move to StartActivity\n\n }", "public void clickSupercatNextLevel(String CategoryName){\r\n\t\tString supercartlink2 = getValue(CategoryName);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+supercartlink2);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- '\"+supercartlink2+\"' link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"BylnkSuperCatNext\"));\r\n\t\t\tclickSpecificElementContains(locator_split(\"BylnkSuperCatNext\"),supercartlink2);\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(supercartlink2+\"link clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- '\"+supercartlink2+\"' link is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- '\"+supercartlink2+\"' link is not clicked\");\r\n\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\r\n\t\t\tcase R.id.liscli_shopName:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}", "public boolean veirfyUserOnSummerDressesPage(){\n WebElement page = driver.findElement(By.cssSelector(\"div[class='cat_desc']\"));\n boolean pageStatus = page.isDisplayed();\n return pageStatus;\n }", "public void clickonFilter() {\n\t\t\n\t}", "public void ClickAtDesireProduct(String product){ //clicarNoProdutoDesejado\n driver.findElement(By.xpath(\"//h3[contains(text(),'\" + product + \"')]\")).click();\n\n }", "@Override\n public void onClick(View v) {\n PopupMenu popup = new PopupMenu(MainActivity.this, frameLayoutCategories);\n\n for (int i = 0; i < categories.length; i++){\n popup.getMenu().add(0, i, 0, categories[i]);\n\n }\n\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.poupup_menu_categories, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n ((TextView)findViewById(R.id.textViewCategory)).setText(\"Category: \" + item.getTitle());\n item.setChecked(true);\n currentCategoryID = item.getItemId();\n multipleChoiceQuestion (categories[currentCategoryID], jeopardyMode);\n\n return true;\n }\n });\n\n\n\n popup.show();//showing popup menu\n }", "@Override\n public void onClick(View view) {\n User user = mFirebaseService.getUser();\n \n if(!user.getInterests().contains(category.getName())){\n user.addInterest(category.getName());\n mFirebaseService.updateUser(user);\n updateUI();\n }\n else{\n user.deleteInterest(category.getName());\n mFirebaseService.updateUser(user);\n updateUI();\n }\n }", "public void chooseCategory(String category) {\n for (Category c : categories) {\n if (c.getName().equals(category)) {\n if (c.isActive()) {\n c.setInActive();\n } else {\n c.setActive();\n }\n }\n }\n for (int i = 0; i < categories.size(); i++) {\n System.out.println(categories.get(i).getName());\n System.out.println(categories.get(i).isActive());\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Intent i;\n switch (id) {\n case R.id.action_search:\n break;\n case R.id.overflow1:\n i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(\"http://advanced.shifoo.in/site/appterms-and-conditions\"));\n startActivity(i);\n break;\n case R.id.overflow2:\n i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(\"http://www.shifoo.in/site/privacy-policy\"));\n startActivity(i);\n break;\n default:\n return super.onOptionsItemSelected(item);\n }\n return true;\n }", "String category();", "@Test\n public void testSearchBoxCategoriesList() throws InterruptedException {\n log.info(\"Go to Homepage \" );\n log.info(\"Go to Search Box in Header \" );\n log.info(\"Write urn \" );\n Actions builder = new Actions(driver);\n WebElement searchBox = driver.findElement(By.id(\"SearchInputs\")).findElement(By.tagName(\"input\"));\n searchBox.click();\n searchBox.sendKeys(\"urn\");\n WebElement categoryResults = driver.findElement(By.partialLinkText(\"category results\"));\n List<WebElement> categoryResultsList = driver.findElement(By.className(\"categories\")).findElements(By.tagName(\"a\"));\n WebDriverWait wait = new WebDriverWait(driver, 1000);\n wait.until(ExpectedConditions.elementToBeClickable(categoryResults));\n log.info(\"Click on first result from category suggestion list\" );\n categoryResultsList.get(0).click();\n log.info(\"Confirm that the link oppened contains searched term (urn in this case ) related results.\");\n assertTrue(driver.getCurrentUrl().contains(\"urn\"));\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n earthquake current_earthquake= (earthquake)adapterView.getItemAtPosition(i);\n Uri webpage = Uri.parse(current_earthquake.getUrl());\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "@Then (\"\")\n\t\n\t\n\t@When (\"buy women clothes\")\n\tpublic void buy_women_clothes() {\n\t\t\n\t\taction = new Actions(driver);\n\t\tWebElement womenbutton = driver.findElement(By.xpath(\"//*[@id='block_top_menu']/ul/li[1]\"));\n\t\twomenbutton.click();\n\t\tjsx.executeScript(\"window.scrollBy(0,950)\", \"\");\n\t\t//*[@id='center_column']//ul[@class='product_list grid row']/li[1]/div/div[1]/div/a/img xpath de la imagen\n\t\t//*[@id='center_column']//ul[@class='product_list grid row']/li[1]//div[@class='right-block'] xpath del segundo bloque\n\t\t//*[@id='center_column']//ul[@class='product_list grid row']/li[1] todo el bloque\n\t\t//*[@id='center_column']//ul[@class='product_list grid row']/li[1]/div/div[2]/div[2]/a[1] \n\t\t\n\t\tWebElement womencloth = driver.findElement(By.xpath(\"//*[@id='center_column']//ul[@class='product_list grid row']/li[1]\"));\n\t\tWebElement womencloth2 = driver.findElement(By.xpath(\"//*[@id='center_column']//ul[@class='product_list grid row']/li[1]/div/div[2]/div[2]/a[1]\"));\n\t\taction.moveToElement(womencloth).perform();\n\t\taction.moveToElement(womencloth2).perform();\n\t\t\n\t\twomencloth2.click();\n\t\n}", "HtmlPage clickSiteName();", "@Override\n public void onClick(View v) {\n showMemoriesPopover();\n }", "public void clickOnPatients() {\n\t\twait.waitForStableDom(250);\n\t\tisElementDisplayed(\"link_patients\");\n\t\twait.waitForElementToBeClickable(element(\"link_patients\"));\n\t\twait.waitForStableDom(250);\n\t\texecuteJavascript(\"document.getElementById('doctor-patients').click();\");\n\t\tlogMessage(\"user clicks on Patients\");\n\t}", "@Override\n\tpublic void verifyCategories() {\n\t\t\n\t\tBy loc_catNames=MobileBy.xpath(\"//android.widget.TextView[@resource-id='com.ionicframework.SaleshuddleApp:id/category_name_tv']\");\n\t\tPojo.getObjSeleniumFunctions().waitForElementDisplayed(loc_catNames, 15);\n\t\tList<AndroidElement> catNames=Pojo.getObjSeleniumFunctions().getWebElementListAndroidApp(loc_catNames);\n\t\tList<String> catNamesStr=new ArrayList<String>();\n\t\t\n\t\t\n\t\tfor(AndroidElement catName:catNames)\n\t\t{\n\t\t\tcatNamesStr.add(catName.getText().trim());\n\t\t}\n\t\t\n\t\tif(catNamesStr.size()==0)\n\t\t{\n\t\tPojo.getObjUtilitiesFunctions().logTestCaseStatus(\"Verify that catgory names are correct\", false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPojo.getObjUtilitiesFunctions().logTestCaseStatus(\"Verify that catgory names are correct\", BuildSpGamePage.expectedData.get(\"Categories\").containsAll(catNamesStr));\n\n\t\t}\n\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityStCategory = items[which];\n }", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenu.getPopupMenu().show(menu, menu.getX()+menu.getWidth(), menu.getHeight());\n\t\t\t\tui_ShowAnimal6 animal6 = new ui_ShowAnimal6();\n\t\t\t\tsplitPane.setRightComponent(panel_1.add(animal6.getContentPane()));\n\t\t\t}", "@Override\n public void onClick(View v)\n {\n Intent viewIntent =\n new Intent(\"android.intent.action.VIEW\",\n Uri.parse(\"https://datadiscovery.nlm.nih.gov/Drugs-and-Supplements/Pillbox/crzr-uvwg\"));\n startActivity(viewIntent);\n }", "@Test\n public void librarianSelectsDramaBookCategory(){\n driver.get(\"https://library2.cybertekschool.com/\");\n //locate and send valid email to email input bar\n driver.findElement(By.id(\"inputEmail\")).sendKeys(\"librarian21@library\");\n //locate and send valid email to password input bar\n driver.findElement(By.xpath(\"//*[@id=\\\"inputPassword\\\"]\")).sendKeys(\"Sdet2022*\");\n //press sign in button\n driver.findElement(By.cssSelector(\"button.btn.btn-lg.btn-primary.btn-block\")).click();\n //sign in complete, librarian is on homepage\n\n //librarian clicks books module\n driver.findElement(By.linkText(\"Books\")).click();\n\n WebElement bookCategories = driver.findElement(By.cssSelector(\"select#book_categories\"));\n WebElement dramaCategory = driver.findElement(By.cssSelector(\"select#book_categories>option[value='6']\"));\n Select bookCategoriesDropDown = new Select(bookCategories);\n bookCategoriesDropDown.selectByVisibleText(\"Drama\");\n assertTrue(dramaCategory.isSelected());\n\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tButton btn_category = (Button) v;\n\t\t\t\t\t\n\t\t\t\t\tapp.setCategory_id(btn_category.getId());\n\t\t\t\t\t\n\t\t \tIntent ItemIntent = new Intent(CategoryActivity.this, ItemActivity.class);\n\t\t \tstartActivity(ItemIntent);\n\t\t\t\t}", "public static void contextMenuClickOnFeature(WebDriver driver, String name, String type, int start, int end) {\n\t\tString xpath = \"//*[local-name() = 'g' and @class='pieFeature']\" +\n\t\t\t\t\"/*[local-name() = 'path']/*[local-name() = 'title'][text()='\"+type+\" - \"+name+\": \"+start+\"..\"+end+\"']/parent::*\";\t\t\n\t\tActions builder = new Actions(driver); \n\t\tbuilder.contextClick(SelUtil.findElement(driver, By.xpath(xpath)));\n\t\tbuilder.perform();\n\t}", "@Test\n public void articleSingleView()throws Exception{\n ChromeDriver driver = openChromeDriver();\n try {\n driver.get(\"https://www.knjizare-vulkan.rs\");\n clearCookies(driver);\n\n WebElement schoolProgram = driver.findElement(By.xpath(\"//a[@href='https://www.knjizare-vulkan.rs/program-za-skolu']\"));\n schoolProgram.click();\n\n WebElement childPencilBox = driver.findElement(By.xpath(\"/html/body/div[4]/div[1]/div/div/div/div[5]/div/div[2]/div/div/div[7]/div[1]/div[1]/a[2]\"));\n childPencilBox.click();\n\n\n\n Thread.sleep(3000);\n\n } finally {\n\n driver.quit();\n\n }\n\n }", "@Override\n public void mouseClicked(MouseEvent me) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View child, int position, long pos) \n\t\t\t{\n\t\t\t\tTextView category = (TextView)child.findViewById(R.id.drink_name);\n\t\t\t\tString milk = category.getText().toString();\n\t\t\t\tcurrentOrder.put(\"milk\", milk);\n\t\t\t\t\n\t\t\t\t//Create New Intent\n\t\t\t\tIntent i = new Intent(child.getContext(), UI_Sauce_Syrup_Menu.class);\n\t\t\t\ti.putExtra(\"current_order\", currentOrder);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/privacy\"));\n startActivity(browserIntent);\n }", "@UiHandler(\"people\")\n\tvoid patientsClicked(ClickEvent event) {\n\t\tplaceController.goTo(new StandardizedPatientPlace(\"PatientPlace\"));\n\t}", "public void openEmployeesPage() {\n // Navigate to HumanResources > Employees through the left menu\n driver.findElement(By.cssSelector(\"div.group-items>fuse-nav-vertical-collapsable:nth-child(5)\")).click();\n driver.findElement(By.cssSelector(\"fuse-nav-vertical-collapsable:nth-child(5)>div.children>fuse-nav-vertical-item:nth-child(2)\")).click();\n }", "public void selectAProduct() {\n specificProduct.click();\n }", "@Then(\"^choose mumbai location$\")\r\n\tpublic void choose_mumbai_location() throws Exception {\n\t\t\t\t\tWebElement location_bms = wait.until(ExpectedConditions.visibilityOfElementLocated(uimap.getLocator(\"Select_location\")));\r\n\t\t\t\t\tlocation_bms.click();\r\n\t\t\t// Click on the No Thanks \r\n\t\t\t\t\t\r\n\t\t\t\t\tWebElement alert_btn = wait.until(ExpectedConditions.visibilityOfElementLocated(uimap.getLocator(\"Alert_Btn\")));\r\n\t\t\t\t\talert_btn.click();\r\n\t\t\t// Click on the Movies \r\n\t\t\t\t\tWebElement movies_link = driver.findElement(uimap.getLocator(\"Movies_Link\"));\r\n\t\t\t\t\tmovies_link.click();\r\n\t}", "public void clickNederlands(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Nederalnds link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"lnkNederland\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Nederalnds link is clicked\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Nederalnds link is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkNederland\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "String getCategory();", "String getCategory();", "public void onClick(View arg0) {\n\n\t\t\t\tIntent i=new Intent(getApplicationContext(),Community_Vitality.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "private void xuLyClickItems() {\n lvMenu.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n idGroupFood=dsContents.get(i).getTxtIdGroup();\n// txtIdGroupMenu = view.findViewById(R.id.txtGroupMenu);\n// int idGroup = Integer.parseInt(txtIdGroupMenu.getText().toString());\n Intent intent = new Intent(MenuActivity.this,MenuFoodActivity.class);\n startActivity(intent);\n }\n });\n }", "@Override\n public void onClick(View view) {\n\n String[] facts = {\n \"Ants stretch when they wake up in the morning.\",\n \"Ostriches can run faster than horses.\",\n \"Olympic gold medals are actually made mostly of silver.\",\n \"You are born with 300 bones; by the time you are an adult you will have 200.\",\n \"It takes about 8 minutes for light from the Sun to reach Earth.\",\n \"Some bamboo plants can grow almost a meter in just one day.\",\n \"The state of Florida is bigger than England.\",\n \"Some penguins can leap 2-3 meters out of the water.\",\n \"On average, it takes 56 days to form a new habit.\",\n \"Mammoths still walked the earth when the Great Pyramid was being built.\",\n \"There are more life forms living in your skin than there are people on the planet.\",\n \"Otters sleep holding hands.\",\n \"Caterpillars completely liquify as they transform into moths.\",\n \"An indoor vegetable factory in Japan produces up to 10,000 heads of lettuce per day and uses 1% of the amount of water needed for outdoor fields.\",\n \"When hippos are upset, their sweat turns red.\",\n \"“Facebook Addiction Disorder” is a mental disorder identified by Psychologists.\",\n \"The average woman uses her height in lipstick every 5 years.\",\n \"Human saliva has a boiling point three times that of regular water.\",\n \"During your lifetime, you will produce enough saliva to fill two swimming pools.\",\n \"Bikinis and tampons were invented by men.\",\n \"Heart attacks are more likely to happen on a Monday.\",\n \"Camels have three eyelids to protect themselves from blowing sand.\",\n \"Dolphins sleep with one eye open.\",\n \"Months that begin on a Sunday will always have a ‘Friday the 13th’.\",\n \"Fictional/horror writer Stephen King sleeps with a nearby light on to calm his fear of the dark.\",\n \"Americans travel 1,144,721,000 miles by air every day.\",\n \"38% of American men say they love their cars more than women.\",\n \"The U.S. military operates 234 golf courses.\",\n \"A cat has 32 muscles in each ear.\",\n \"A duck’s quack doesn’t echo, and no one knows why.\",\n \"The average lifespan of an eyelash is five months.\",\n \"A spider has transparent blood.\",\n \"Babies are most likely to be born on Tuesdays.\",\n \"The Minneapolis phone book has 21 pages of Andersons.\",\n \"A horse can look forward with one eye and back with the other.\",\n \"The word Pennsylvania is misspelled on the Liberty Bell.\",\n \"You spend 7 years of your life in the bathroom.\",\n \"Simplistic passwords contribute to over 80% of all computer password break-ins.\",\n \"Dentists have recommended that a toothbrush be kept at least 6 feet away from a toilet to avoid airborne particles resulting from the flush.\",\n \"Most dust particles in your house are made from dead skin.\",\n \"Venus is the only planet that rotates clockwise.\",\n \"Oak trees do not produce acorns until they are fifty years of age or older.\",\n \"The king of hearts is the only king without a mustache.\",\n \"Thirty-five percent of people who use personal ads for dating are already married.\",\n \"One out of 20 people have an extra rib.\",\n \"The longest distance a deepwater lobster has been recorded to travel is 225 miles.\",\n \"Orcas when traveling in groups, breathe in unison.\",\n \"Pucks hit by hockey sticks have reached speeds of up to 150 miles per hour\",\n \"Most lipstick contains fish scales.\",\n \"No piece of paper can be folded in half more than 7 times.\",\n \"More people are killed by donkeys annually than are killed in plane crashes.\",\n \"The fear of peanut butter sticking to the roof of the mouth is called Arachibutyrophobia.\",\n \"Serving ice cream on cherry pie was once illegal in Kansas.\",\n \"Emus cannot walk backwards.\",\n \"Infants spend more time dreaming than adults do.\",\n \"Over 200 varieties of watermelons are grown in the U.S.\",\n \"The most dangerous job in the United States is that of a fisherman, followed by logging and then an airline pilot.\",\n \"The youngest pope was 11 years old.\",\n \"You share your birthday with at least 9 other million people in the world.\",\n \"During the First World War, cigarettes were handed out to soldiers along with their rations.\",\n \"The USA bought Alaska from Russia for 2 cents an acre.\",\n \"Walmart sells more apparel a year than all the other competing department stores combined.\",\n \"Canada has more inland waters and lakes than any other country in the world.\",\n \"Ramses II, a pharaoh of Egypt died in 1225 B.C. At the time of his death, he had fathered 96 sons and 60 daughters.\",\n \"Women are twice as likely to be diagnosed with depression than men in the United States.\",\n \"An average city dog lives approximately three years longer than an average country dog.\",\n \"On average, falling asleep while driving results in 550 accidents per day in the United States.\",\n \"The average life span of a single red blood cell is 120 days.\",\n \"Over 250 million Slinky toys have been sold since its debut in 1946.\",\n \"The last thing Elvis Presley ate before he died was four scoops of ice cream and 6 chocolate chip cookies.\",\n \"Every year, Burger King restaurants prepare over 950,000 pounds of bacon for their breakfast customers.\",\n \"The cosmos is within us, we're made of star stuff. We are a way for the cosmos to know itself.\",\n \"There is a dog museum in St. Louis, Missouri.\",\n \"An average person laughs about 15 times a day.\",\n \"About 10% of the 100,000 thunderstorms that occur in the USA every year are classified as severe.\",\n \"A leech has 32 brains.\",\n \"There are about 6,800 languages in the world.\",\n \"By walking an extra 20 minutes every day, an average person will burn off seven pounds of body fat in an year.\",\n \"A slug has four noses.\",\n \"Camel is considered unclean meat in the Bible.\",\n \"Mosquitoes have teeth.\",\n \"Cats have over one hundred vocal sounds, dogs only have about ten.\",\n \"Lions cannot roar until they reach the age of two.\",\n \"In Las Vegas, casinos do not have any clocks.\",\n };\n\n String fact = \"\";\n\n Random rng = new Random();\n int random = rng.nextInt(facts.length);\n\n fact = facts[random];\n factLabel.setText(fact);\n didY.setText(\"Did you know?\");\n }", "public static void setCategory(String categoryName) {\n wait.until(ExpectedConditions.elementToBeClickable(EntityCreationPage.PlatformsPanel.selectCategory()));\n EntityCreationPage.PlatformsPanel.selectCategory().click();\n wait.until(ExpectedConditions.visibilityOf(EntityCreationPage.PlatformsPanel.selectCategoryPopUp(categoryName)));\n EntityCreationPage.PlatformsPanel.selectCategoryPopUp(categoryName).click();\n }", "@Test\n public void findDishesByCategoryName3() {\n\n String categoryName = \"Vegan\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }", "public void setCategory(String category);" ]
[ "0.7315352", "0.5939127", "0.59226537", "0.5860338", "0.58300436", "0.57847404", "0.5759359", "0.5757838", "0.56781745", "0.56059617", "0.55228126", "0.54909974", "0.5486478", "0.5456487", "0.54532474", "0.5447356", "0.5442811", "0.5442566", "0.5421218", "0.5417098", "0.54156417", "0.53850114", "0.5373725", "0.53732204", "0.53712", "0.5365951", "0.5364311", "0.535549", "0.53509253", "0.53479093", "0.5344064", "0.5343749", "0.5333218", "0.5333092", "0.5323466", "0.53162456", "0.5314888", "0.53124475", "0.5308003", "0.53020144", "0.5299195", "0.529203", "0.52826416", "0.5271346", "0.52664125", "0.5265283", "0.5245692", "0.5239339", "0.5219078", "0.52180624", "0.5211994", "0.5211308", "0.52090496", "0.5208055", "0.52060527", "0.52037674", "0.5203482", "0.51896656", "0.51889455", "0.51811045", "0.51658756", "0.51642853", "0.5147823", "0.5145397", "0.51451373", "0.51410264", "0.5140295", "0.51401407", "0.5133241", "0.5130456", "0.512699", "0.5121189", "0.5115975", "0.511506", "0.51126283", "0.51122504", "0.5102942", "0.5102826", "0.5092025", "0.50887275", "0.5088041", "0.5083482", "0.5082117", "0.50767064", "0.5069874", "0.506817", "0.5067031", "0.50652754", "0.5061843", "0.5060902", "0.50583464", "0.5056824", "0.50509787", "0.50509787", "0.5049427", "0.50490177", "0.50439525", "0.50436693", "0.5041236", "0.5041085" ]
0.6990004
1